← f5bef0d462cd · f60cfd11346a →
f5e7cf8dc78d
A 0-background grid contains 2-8 uniquely colored singleton markers on distinct interior rows. Sorting markers by row defines horizontal bands; the oracle draws each marker color across its row and along that band's left/right borders, closing the first and last bands at the grid edges.
parametric family
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* ((dots (sort-by (reduce (lambda (acc c)
(append acc
(map (lambda (p)
(list (fst p) (snd p) c))
(find-color g c))))
(list)
(range 1 10))
(lambda (d) (fst d))))
(n (length dots)))
(cellmap g
(r c v)
(let* ((bi (reduce (lambda (best i)
(let* ((dr (fst (nth dots i)))
(bs (if (zero? i)
0
(+ (floor (/ (+ (fst (nth dots
(- i
1)))
dr)
2))
1)))
(be (if (= i (- n 1))
(- h 1)
(floor (/ (+ dr
(fst (nth dots
(+ i 1))))
2)))))
(if (and (>= r bs) (<= r be)) i best)))
0
(range 0 n)))
(dr (fst (nth dots bi)))
(color (nth (nth dots bi) 2)))
(cond
((= r dr) color)
((and (zero? bi) (zero? r)) color)
((and (= bi (- n 1)) (= r (- h 1))) color)
((or (zero? c) (= c (- w 1))) color)
(else 0))))))))Provenance
- Generator
- generators/f5e7cf8dc78d/generator.py
- Notes and decisions
- generators/f5e7cf8dc78d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cb35f13c794fc767e784af23ebb51bf887b4c84c452b1efde140c92e875f7831
- Rule hash
- 4480c3031a45
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f5e7cf8dc78d --count 1 --seed 20261108 --test 1