← b650a355848c · b6ba2d176fe8 →
b6592c220670
Read the nonzero codes in row 0 from left to right. Crop the motif below the all-zero separator row to its bounding box, then apply every code to the previous state (1=identity, 2=rotate-CW, 3=flip-LR, 4=rotate-180). Pack all intermediate states left-to-right with one zero column between them. Motif colours are preserved; they may overlap the script colours.
compositiongallerytransforms
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 (place-transparent out sub top left) (for*/fold ((acc out)) ((r (in-range (rows sub))) (c (in-range (cols sub)))) (let ((v (at sub r c)) (rr (+ top r)) (cc (+ left c))) (if (and (not (= v 0)) (in-bounds? rr cc (rows out) (cols out))) (set-cell acc rr cc v) acc)))) (define (gallery-top grids) (if (empty? grids) (grid (list 0)) (let* ((h (apply max (map rows grids))) (w (+ (apply + (map cols grids)) (max 0 (- (length grids) 1))))) (let loop ((remaining grids) (left 0) (out (empty-grid h w 0))) (if (empty? remaining) out (let ((piece (first remaining))) (loop (rest remaining) (+ left (cols piece) 1) (place-transparent out piece 0 left)))))))) (define (script-step grid code) (cond ((= code 2) (rotate-cw grid)) ((= code 3) (flip-lr grid)) ((= code 4) (rotate-180 grid)) (else grid))) (let* ((script (filter (lambda (v) (member? v (list 1 2 3 4))) (row g 0))) (temp (grid-from-fn (rows g) (cols g) (lambda (r c) (if (and (= r 0) (member? (at g r c) (list 1 2 3 4))) 0 (at g r c))))) (obj (crop-to-content temp))) (let loop ((codes script) (cur obj) (states (list))) (if (empty? codes) (gallery-top (reverse states)) (let ((next (script-step cur (first codes)))) (loop (rest codes) next (cons next states))))))))
Provenance
- Generator
- generators/b6592c220670/generator.py
- Notes and decisions
- generators/b6592c220670/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5447275c4a8eb23119a9357aa3d8933543d6a801f923152243545dd72c91a3f2
- Rule hash
- 042a7b2c96f6
- Sources
- bank:056856052daa
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate b6592c220670 --count 1 --seed 20261108 --test 1