← f34cf63540e2 · f38ce802fe57 →
f361853c0fcd
A zero-background canvas contains one hollow color-5 rectangular frame. Equal, aligned markers on top/bottom fill their interior column; equal, aligned markers on left/right fill their interior row. Unmatched and misaligned border markers remain inert. Colors paint in ascending order (column then row within a color), so the numerically largest crossing color wins. Default lessons explicitly refute marker-without-mate and orientation-priority shortcuts.
frame detectionline fillingpair matching
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)
;; A color-5 rectangular frame carries paired markers ON its border: a color sitting at BOTH
;; ends of an interior row (its left AND right border cell) fills that row inside the frame;
;; likewise a color at both top AND bottom of a column fills that column. Colors paint in
;; ASCENDING order (columns then rows within each color), so crossings resolve to the highest
;; color deterministically.
(let* ((b (bbox-of-cells (find-color g 5)))
(r1 (first b)) (c1 (second b)) (r2 (third b)) (c2 (fourth b))
(border (append (map (lambda (r) (at g r c1)) (range r1 (+ r2 1)))
(map (lambda (r) (at g r c2)) (range r1 (+ r2 1)))
(map (lambda (c) (at g r1 c)) (range c1 (+ c2 1)))
(map (lambda (c) (at g r2 c)) (range c1 (+ c2 1)))))
(colors (sort (filter (lambda (v) (and (!= v 0) (!= v 5))) (unique border)) <)))
(for/fold ((out g)) ((color colors))
(let* ((after-cols
(for/fold ((acc out)) ((c (range (+ c1 1) c2)))
(if (and (= (at g r1 c) color) (= (at g r2 c) color))
(recolor-cells acc (map (lambda (r) (list r c)) (range (+ r1 1) r2)) color)
acc))))
(for/fold ((acc after-cols)) ((r (range (+ r1 1) r2)))
(if (and (= (at g r c1) color) (= (at g r c2) color))
(recolor-cells acc (map (lambda (c) (list r c)) (range (+ c1 1) c2)) color)
acc)))))))Provenance
- Generator
- generators/f361853c0fcd/generator.py
- Notes and decisions
- generators/f361853c0fcd/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- bb3a5ba1a206cd43860aed90f9ec7385a903b4daeb6ed2631e4d19de0598c6bc
- Rule hash
- cffc010305aa
- Sources
- bank:f716aa11d181
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f361853c0fcd --count 1 --seed 20261108 --test 1