← a76216bfa3e8 · a784ff872856 →
a78185b4bd20
Scan monochrome 4-connected components in row-major order, select the first component whose bounding-box crop is left-right symmetric, crop it, and recolor every nonzero cell to cyan(8). A four-step schedule covers the canonical three- and five-component scene counts; three-component lessons anchor the canonical 11x11 four-color profile, and five-component lessons add a later same-color symmetric competitor so order, not size or color alone, determines the answer.
object selectionrecoloringsymmetry detection
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 (f14b-binary-crop grid) (crop-nonzero (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 1))))) (define (s17b-object-crop grid obj) (let ((bb (obj-bbox obj))) (subgrid grid (first bb) (second bb) (third bb) (fourth bb)))) (define (t10b-recolor grid color) (grid-from-fn (rows grid) (cols grid) (lambda (r c) (if (= (at grid r c) 0) 0 color)))) (let ((hits (filter (lambda (obj) (let ((crop (s17b-object-crop g obj))) (equal? (f14b-binary-crop crop) (f14b-binary-crop (flip-lr crop))))) (objects g 0)))) (if (empty? hits) (list (list 0)) (t10b-recolor (s17b-object-crop g (first hits)) 8)))))
Provenance
- Generator
- generators/a78185b4bd20/generator.py
- Notes and decisions
- generators/a78185b4bd20/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- ccee4a2b457fdaa49abbbd154447c2a804a075f738af6ba410da52e3880c26a9
- Rule hash
- 4f60736ed86a
- Sources
- bank:0e3c36a9dbcc
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate a78185b4bd20 --count 1 --seed 20261108 --test 1