← 2c6496d261a6 · 2c7b1545edf9 →

2c784862f42b

Read a 5x5 prototype, then apply four codes cumulatively: 0 identity, 1 clockwise, 2 half-turn, 3 counter-clockwise, 4 left-right reflection, and 5 up-down reflection. Recolor each intermediate panel to the final row color and stamp the four panels left-to-right with blank separators.

gallery row constructionsequential transformationstateful composition

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 (paste-crop grid shape top left) (for*/fold ((out grid)) ((r (in-range (rows shape))) (c (in-range (cols shape)))) (let ((v (at shape r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows out) (cols out))) (set-cell out rr cc v) out)))) (define (panelize-row panels sep) (let* ((h (rows (first panels))) (w (+ (apply + (map cols panels)) (* sep (max 0 (- (length panels) 1)))))) (let loop ((xs panels) (left 0) (out (empty-grid h w 0))) (if (empty? xs) out (loop (rest xs) (+ left (cols (first xs)) sep) (paste-crop out (first xs) 0 left)))))) (define (recolor-grid grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (define (transform-by-code6 grid code) (cond ((= code 0) grid) ((= code 1) (rotate-cw grid)) ((= code 2) (rotate-180 grid)) ((= code 3) (rotate-ccw grid)) ((= code 4) (flip-lr grid)) ((= code 5) (flip-ud grid)) (else grid))) (let* ((proto (subgrid g 0 0 4 (- (cols g) 1))) (row (list-ref g 5)) (codes (take row 4)) (target-color (list-ref row 4))) (let loop ((codes-left codes) (cur proto) (panels (list))) (if (empty? codes-left) (panelize-row (reverse panels) 1) (let ((next (transform-by-code6 cur (first codes-left)))) (loop (rest codes-left) next (cons (recolor-grid next target-color) panels))))))))

Provenance

Generator
generators/2c784862f42b/generator.py
Notes and decisions
generators/2c784862f42b/notes.md
Review label
reviewed_safe
Generator SHA-256
b036d188d0f5e63b0f467ae32fbbfa55d678e4b76a69bb6d6719f79e2841e691
Rule hash
e8e6e0187218
Sources
bank:889fa9012eb1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 2c784862f42b --count 1 --seed 20261108 --test 1