← d65b2dd82d74 · d68754fb0d84 →
d6607fc42bcc
A 0-background 10..18 x 10..18 grid contains one or two vertically separated color-1 rectangular frames. Each frame has exactly one non-corner notch on its top or bottom edge and exactly one interior dot in color 2..9, aligned to the notch column. The output fills the frame interior and notch with the dot color and paints one full-width row immediately outside the notched edge. The color-1 wall remains.
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* ((objs (objects-multicolor g))
(blue-objs (filter (lambda (o)
(for/or ((cl (obj-cells o)))
(= 1 (at g (fst cl) (snd cl)))))
objs)))
(reduce (lambda (acc obj)
(let* ((fr1 (obj-r1 obj))
(fr2 (obj-r2 obj))
(fc1 (obj-c1 obj))
(fc2 (obj-c2 obj))
(interior (positions-in-rect (+ fr1 1)
(+ fc1 1)
(- fr2 1)
(- fc2 1)))
(dot (find (lambda (p)
(let* ((v (at g (fst p) (snd p))))
(and (!= 0 v) (!= 1 v))))
interior))
(dc (if dot (at g (fst dot) (snd dot)) 0)))
(if (zero? dc)
acc
(let* ((top-open (not (all? (lambda (kc) (= 1 (at g fr1 kc)))
(range (+ fc1 1) fc2)))))
(cellmap g
(r kc v)
(cond
((and
(> r fr1)
(< r fr2)
(> kc fc1)
(< kc fc2)
(zero? (at acc r kc))) dc)
((and
top-open
(= r fr1)
(> kc fc1)
(< kc fc2)
(zero? v)) dc)
((and
top-open
(= r (- fr1 1))
(>= (- fr1 1) 0)
(>= kc fc1)
(<= kc fc2)) dc)
((and
(not top-open)
(= r fr2)
(> kc fc1)
(< kc fc2)
(zero? v)) dc)
((and
(not top-open)
(= r (+ fr2 1))
(< (+ fr2 1) h)
(>= kc fc1)
(<= kc fc2)) dc)
(else (at acc r kc))))))))
g
blue-objs))))Provenance
- Generator
- generators/d6607fc42bcc/generator.py
- Notes and decisions
- generators/d6607fc42bcc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 01bd9fe9646fea8b34ef2604e9bf8b162051b6c8ffd3ac89577fa96d55013402
- Rule hash
- 30de93f65182
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate d6607fc42bcc --count 1 --seed 20261108 --test 1