← d07c7972d183 · d0a85a878975 →
d09fae8197f6
Dense field (h 12..22, w 12..22) of noise colors 0/1/8 with magenta-6 cells at ~6..16% and exactly one 3x3 template (yellow-4 body + magenta-6 markers, 3..5 markers, yellows spanning the bbox; yellow appears nowhere else). Rule: for every dihedral orientation of the template, stamp its yellow cells wherever its magenta pattern matches grid 6s (>=2 hits, no conflicts; bottom/right 1-cell overhang allowed). The generator plants 1..3 guaranteed match windows in the noise so the rule always fires; emergent noise matches add more, matching the canonical 3..18 stamped-cell range.
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! (lambda (g)
(let* ((h (rows g))
(w (cols g)))
(let* ((yellows (find-color g 4))
(yr1 (min-of first yellows))
(yc1 (min-of second yellows))
(yr2 (max-of first yellows))
(yc2 (max-of second yellows))
(template (for/list ((r (range yr1 (+ yr2 1))))
(for/list ((c (range yc1 (+ yc2 1))))
(let ((v (at g r c))) (casev v (hash 4 4 6 6) -1)))))
(rot-cw (lambda (tmpl)
(let ((rows (length tmpl))
(cols (length (first tmpl))))
(for/list ((r (range 0 cols)))
(for/list ((c (range 0 rows)))
(list-ref (list-ref tmpl (- rows 1 c)) r))))))
(flip-lr (lambda (tmpl) (map reverse tmpl)))
(t0 template)
(t1 (rot-cw t0))
(t2 (rot-cw t1))
(t3 (rot-cw t2))
(t4 (flip-lr t0))
(t5 (rot-cw t4))
(t6 (rot-cw t5))
(t7 (rot-cw t6))
(orientations (list t0 t1 t2 t3 t4 t5 t6 t7))
(result (make-hash)))
(for* ((r (range 0 h)) (c (range 0 w)))
(hash-set! result (list r c) (at g r c)))
(for ((tmpl orientations))
(let ((tmpl-h (length tmpl))
(tmpl-w (length (first tmpl))))
(for* ((r (range 0 (min h (- (+ h 2) tmpl-h)))) (c (range 0 (min w (- (+ w 2) tmpl-w)))))
(let* ((mag-match (for*/sum ((tr (range 0 tmpl-h)) (tc (range 0 tmpl-w)))
(let ((gr (+ r tr))
(gc (+ c tc)))
(if (and
(>= gr 0)
(< gr h)
(>= gc 0)
(< gc w)
(= (list-ref (list-ref tmpl
tr)
tc)
6)
(= (at g gr gc) 6))
1
0))))
(has-mismatch (for/or ((tr (range 0 tmpl-h)))
(for/or ((tc (range 0 tmpl-w)))
(let ((gr (+ r tr))
(gc (+ c tc)))
(and
(>= gr 0)
(< gr h)
(>= gc 0)
(< gc w)
(let ((tv (list-ref (list-ref tmpl
tr)
tc))
(gv (at g gr gc)))
(or
(and
(= tv 6)
(!= gv 6))
(and
(= tv 4)
(= gv 6))))))))))
(when
(and (not has-mismatch) (>= mag-match 2))
(for* ((tr (range 0 tmpl-h)) (tc (range 0 tmpl-w)))
(let ((gr (+ r tr))
(gc (+ c tc)))
(when
(and
(>= gr 0)
(< gr h)
(>= gc 0)
(< gc w)
(= (list-ref (list-ref tmpl tr) tc) 4))
(hash-set! result (list gr gc) 4)))))))))
(cellmap g (r c v) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/d09fae8197f6/generator.py
- Notes and decisions
- generators/d09fae8197f6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 7ede233024db1986cad07ad92f207b8a93a7e74714d2e1c9d9eb2a4ce03a4937
- Rule hash
- be26cdb395f0
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d09fae8197f6 --count 1 --seed 20261108 --test 1