← 9c3781759581 · 9c5259babb4b →
9c50790b939c
On a color-7 field, one vertical 8/9 source rail has an end-aligned color-9 block and one unique all-8 target rail is exactly two cells longer. Several additional all-8 vertical rails reproduce the canonical rail field. Move the block to the target's matching end and grow it by one cell. Non-half source blocks refute the canonical-only shortcut of painting half the target.
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)))
(begin
(define nines (find-color g 9))
(if (empty? nines)
g
(let* ((c (snd (fst nines)))
(rmin (min-of fst nines))
(rmax (max-of fst nines))
(r1 (let loop
((r rmin))
(if (and
(> r 0)
(let ((v (at g (- r 1) c))) (or (= v 8) (= v 9))))
(loop (- r 1))
r)))
(r2 (let loop
((r rmax))
(if (and
(< r (- h 1))
(let ((v (at g (+ r 1) c))) (or (= v 8) (= v 9))))
(loop (+ r 1))
r)))
(top? (= rmin r1))
(target-len (+ 2 (+ 1 (- r2 r1))))
(block-len (+ 1 (length nines)))
(base (recolor-cells g nines 8))
(target #f))
(for* ((cc (range 0 w)) (rr (range 0 h)))
(when
(and
(not target)
(= (at base rr cc) 8)
(or (zero? rr) (!= (at base (- rr 1) cc) 8)))
(let ((end (let scan
((er rr))
(if (and
(< er (- h 1))
(= (at base (+ er 1) cc) 8))
(scan (+ er 1))
er))))
(when
(= (+ 1 (- end rr)) target-len)
(set! target (list rr cc end))))))
(if target
(let* ((tr1 (fst target))
(tc (snd target))
(tr2 (nth target 2))
(start (if top? tr1 (+ 1 (- tr2 block-len)))))
(reduce (lambda (acc rr) (set-cell acc rr tc 9))
base
(range start (+ start block-len))))
base)))))))Provenance
- Generator
- generators/9c50790b939c/generator.py
- Notes and decisions
- generators/9c50790b939c/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 08b52963e0ef45f418fa275bb846122d0e9340a791c1431ca6daa69b40edf9d1
- Rule hash
- 846ddca6645d
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9c50790b939c --count 1 --seed 20261108 --test 1