← 2288bfea426b · 22e428cda452 →
22d1f016cb3d
Recolor each 5 from its opposing cardinal-neighbor pairs: interior=2, corner/end=1, and edge=4; preserve every non-5 cell.
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)))
(cellmap g
(r c v)
(if (!= 5 v)
v
(let* ((l (if (and (> c 0) (= 5 (at g r (- c 1)))) 1 0))
(ri (if (and (< c (- (cols g) 1)) (= 5 (at g r (+ c 1))))
1
0))
(u (if (and (> r 0) (= 5 (at g (- r 1) c))) 1 0))
(d (if (and (< r (- (rows g) 1)) (= 5 (at g (+ r 1) c)))
1
0))
(h-both (and (= 1 l) (= 1 ri)))
(v-both (and (= 1 u) (= 1 d))))
(cond
((and h-both v-both) 2)
((and (not h-both) (not v-both)) 1)
(else 4))))))))Provenance
- Generator
- generators/22d1f016cb3d/generator.py
- Notes and decisions
- generators/22d1f016cb3d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 26f3491ab54d2e4cd38590da33f59a567f140c2e8a342a1dcfd5ab59f701abbd
- Rule hash
- 2219db85ca5f
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 22d1f016cb3d --count 1 --seed 20261108 --test 1