← 8029363f9cb7 · 8069b5294ce4 →
806425ca81b3
In every row, process each nonzero color independently: preserve its anchors and fill zero cells strictly between its leftmost and rightmost anchors. A singleton color creates no span, and two disjoint color spans in the same row remain separate.
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)))
(grid-from-fn h w (lambda (r c)
(let ((v (cell-at g r c)))
(if (!= v 0) v
(let ((colors (filter (lambda (v2) (!= v2 0))
(map (lambda (cc) (cell-at g r cc)) (range 0 w)))))
(if (null? colors) 0
(let ((color (find-first (lambda (col)
(let ((left (find-first (lambda (cc) (= col (cell-at g r cc))) (range 0 c)))
(right (find-first (lambda (cc) (= col (cell-at g r cc))) (range (+ c 1) w))))
(and left right)))
(unique colors))))
(if color color 0)))))))))))Provenance
- Generator
- generators/806425ca81b3/generator.py
- Notes and decisions
- generators/806425ca81b3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 15ddb9a1f91a75f47cced693400aae0f952ff10032d7880e2ac36996ad981c66
- Rule hash
- c27cec63afa0
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 806425ca81b3 --count 1 --seed 20261108 --test 1