← 019445e9b5a1 · 01bb2cbe1309 →
01ab62800c73
Row 0 contains an ordered sequence of transform codes: 1=flip-lr, 2=flip-ud, 3=rotate-cw, 4=rotate-180. Crop the non-zero body in rows 1+ and execute every command from left to right. Body colors, including 1..4, are payload rather than extra commands.
Generated by the released generator before publication; every output was computed by its Racket reference rule. White outlines mark the cells the rule changed. Lesson check:
refuted: a demonstration contradicts the rival. survived_all: it fits every demonstration and also gives the intended answer, so it cannot mislead here. ambiguous: it fits every demonstration but answers the query differently. Names are as declared by the generator; a declared shortcut is not guaranteed to fit the original pairs (see the paper’s Limitations).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule! (let ((dummy 0)) (define (nonzero-cells grid) (filter (lambda (p) (not (= (at grid (first p) (second p)) 0))) (grid-positions grid))) (define (crop-nonzero grid) (let ((cells (nonzero-cells grid))) (if (empty? cells) (list (list 0)) (let* ((bb (bbox-of-cells cells))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))))) (define (t10-apply-ops grid ops) (let loop ((cur grid) (rest-ops ops)) (if (empty? rest-ops) cur (let ((op (first rest-ops))) (loop (cond ((= op 1) (flip-lr cur)) ((= op 2) (flip-ud cur)) ((= op 3) (rotate-cw cur)) ((= op 4) (rotate-180 cur)) (else cur)) (rest rest-ops)))))) (let* ((ops (filter (lambda (v) (not (= v 0))) (first g))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1)))) (t10-apply-ops (crop-nonzero body) ops))))
Provenance
- Generator
- generators/01ab62800c73/generator.py
- Notes and decisions
- generators/01ab62800c73/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 449c1d95c75158329e3b497aa724f1124f613e6442433a626c13a4cf72527318
- Rule hash
- 6f47f78828c8
- Sources
- bank:22a17f7a0399
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 01ab62800c73 --count 1 --seed 20261108 --test 1