← ec9340d27f7e · eca9af4f6c53 →
ec9cf2c80d58
Two to five distinct color bands with zero holes. Each hole selects its first nonzero neighbor in up/down/left/right order and compares original row and column counts of that color or zero. Row >= column clears matching column cells; otherwise matching row cells. Includes inactive bands, edge holes, independent canvas aspect ratios, and varied multi-band extent/tie witnesses that defeat the retained profile-gated shortcut.
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 ((zeros (filter (lambda (p) (zero? (at g (first p) (second p))))
(reduce append
(list)
(map (lambda (r)
(map (lambda (c) (list r c)) (range 0 w)))
(range 0 h))))))
(reduce (lambda (acc pos)
(let ((zr (first pos))
(zc (second pos)))
(let ((color (let ((nbrs (filter (lambda (d)
(let ((nr (+ zr (first d)))
(nc (+ zc (second d))))
(and
(>= nr 0)
(< nr h)
(>= nc 0)
(< nc w)
(not (zero? (at g nr nc))))))
(list (list -1 0)
(list 1 0)
(list 0 -1)
(list 0 1)))))
(if (empty? nbrs)
#f
(let ((d (first nbrs)))
(at g (+ zr (first d)) (+ zc (second d))))))))
(if (not color)
acc
(let ((row-ext (length (filter (lambda (c)
(let ((v (at g zr c)))
(or
(= v color)
(zero? v))))
(range 0 w))))
(col-ext (length (filter (lambda (r)
(let ((v (at g r zc)))
(or
(= v color)
(zero? v))))
(range 0 h)))))
(if (>= row-ext col-ext)
(reduce (lambda (gg r) (set-cell gg r zc 0))
acc
(filter (lambda (r)
(let ((v (at g r zc)))
(or (= v color) (zero? v))))
(range 0 h)))
(reduce (lambda (gg c) (set-cell gg zr c 0))
acc
(filter (lambda (c)
(let ((v (at g zr c)))
(or (= v color) (zero? v))))
(range 0 w)))))))))
g
zeros)))))Provenance
- Generator
- generators/ec9cf2c80d58/generator.py
- Notes and decisions
- generators/ec9cf2c80d58/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 39cb6a9ff704cbc37689246fc0a7f2cd40a6b95de37ea6fb94fa20e8947413e9
- Rule hash
- 899eb4e6a25d
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ec9cf2c80d58 --count 1 --seed 20261108 --test 1