← 18bd3cd2985e · 19158f03ecb2 →
18e652e005b1
A zero-background grid has a nonempty, single-color motif in the field above the last row and left of the reserved final column. The last row starts with 2-6 distinct nonzero command colors followed only by zeros. Crop the motif to its bounding box, make one copy per command color, recolor every occupied motif cell with that command, and concatenate the copies left-to-right with one blank column between adjacent copies.
parametric familymotif extractionrecoloringsequence 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).
Reference rule (Racket)
(rule!
(let* ((commands (filter (lambda (v) (not (= v 0))) (last g)))
(base (subgrid g 0 0 (- (rows g) 2) (- (cols g) 1)))
(motif (crop-to-content base))
(mh (rows motif))
(mw (cols motif))
(out-w (+ (* (length commands) mw) (max 0 (- (length commands) 1)))))
(grid-from-fn mh out-w
(lambda (r c)
(let* ((tile (quotient c (+ mw 1)))
(offset (modulo c (+ mw 1))))
(if (or (>= tile (length commands)) (>= offset mw) (= (at motif r offset) 0))
0
(list-ref commands tile)))))))Provenance
- Generator
- generators/18e652e005b1/generator.py
- Notes and decisions
- generators/18e652e005b1/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7190a33a8e8ca368d52b81d264c853f7a3c47ff4fa2336f45da0a2534648cee0
- Rule hash
- 6674d903ad0a
- Sources
- bank:dc02f6f7c147
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 18e652e005b1 --count 1 --seed 20261108 --test 1