← 6ecd8be24495 · 6fc2f51cfbb2 →

6f6c567e365b

Read row-0 keys left-to-right and output the initial motif followed by every cumulative transform state, packed with one blank column. Keys 1/2/3/4 mean rotate-CW/rotate-180/flip-LR/flip-UD.

parametric familygallerykeyed_transformtimeline

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 crop r0 c0 (overwrite-zero #f)) (for*/fold ((out grid)) ((r (in-range (rows crop))) (c (in-range (cols crop)))) (let ((v (at crop r c))) (if (or overwrite-zero (not (= v 0))) (let ((rr (+ r0 r)) (cc (+ c0 c))) (if (in-bounds? rr cc (rows grid) (cols grid)) (set-cell out rr cc v) out)) out)))) (define (gallery crops) (if (empty? crops) (list (list 0)) (let* ((h (apply max (map rows crops))) (w (+ (apply + (map cols crops)) (max 0 (- (length crops) 1))))) (let pack ((remaining crops) (left 0) (out (empty-grid h w 0))) (if (empty? remaining) out (let ((crop (first remaining))) (pack (rest remaining) (+ left (cols crop) 1) (paste-crop out crop 0 left #f)))))))) (define (transform-by-key grid key) (cond ((= key 1) (rotate-cw grid)) ((= key 2) (rotate-180 grid)) ((= key 3) (flip-lr grid)) ((= key 4) (flip-ud grid)) (else grid))) (let* ((keys (filter (lambda (v) (not (= v 0))) (first g))) (crop (crop-to-content (rest g) 0))) (let build ((remaining keys) (cur crop) (acc (list crop))) (if (empty? remaining) (gallery (reverse acc)) (let ((next (transform-by-key cur (first remaining)))) (build (rest remaining) next (cons next acc))))))))

Provenance

Generator
generators/6f6c567e365b/generator.py
Notes and decisions
generators/6f6c567e365b/notes.md
Review label
reviewed_safe
Generator SHA-256
b7a4ffbd8615db3dcc107eea51cbe662f3dc8164681defee55c762c927e1b2b7
Rule hash
33361398d469
Sources
bank:fec6a16dfcc9
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6f6c567e365b --count 1 --seed 20261108 --test 1