← ee6ef749efca · ef02aedbac38 →
eefadafb2b7b
Two exact red 2x2 blocks in canonical-scale noisy cyan scenes. Return 8 iff one 8-connected cyan component touches both block rings, else 0. A four-profile cyclic curriculum constructively refutes 4-connectivity, bounding-box, any-contact, and largest-component shortcuts.
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* ((blocks (filter (lambda (b) b)
(flatmap (lambda (r)
(map (lambda (c)
(and
(and
(= (at g r c) 2)
(= (at g r (+ c 1)) 2)
(= (at g (+ r 1) c) 2)
(= (at g (+ r 1) (+ c 1)) 2))
(list r c)))
(range 0 (- w 1))))
(range 0 (- h 1)))))
(b1r (first (first blocks)))
(b1c (second (first blocks)))
(b2r (first (second blocks)))
(b2c (second (second blocks)))
(touches-block (lambda (cr cc br bc)
(and
(>= cr (- br 1))
(<= cr (+ br 2))
(>= cc (- bc 1))
(<= cc (+ bc 2))
(not (and
(>= cr br)
(<= cr (+ br 1))
(>= cc bc)
(<= cc (+ bc 1)))))))
(cyan-mask (cellmap g (r c v) (if (= v 8) 1 0)))
(cyan-objs (objects-8 cyan-mask 0))
(bridge (find (lambda (obj)
(let ((cells (obj-cells obj)))
(and
(find (lambda (p)
(touches-block (first p)
(second p)
b1r
b1c))
cells)
(find (lambda (p)
(touches-block (first p)
(second p)
b2r
b2c))
cells))))
cyan-objs)))
(list (list (if bridge 8 0)))))))Provenance
- Generator
- generators/eefadafb2b7b/generator.py
- Notes and decisions
- generators/eefadafb2b7b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 68be4a4a51650f17e612f4edc8066b331717a659a8b0571ad6dbc687191da15a
- Rule hash
- 1d44fc0f4360
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate eefadafb2b7b --count 1 --seed 20261108 --test 1