← e2fa7e7aee7c · e3be2a9d8ce2 →
e3a2ff6ea587
A zero-background grid contains one to three true rectangle-corner colors and one to three deliberately nonqualifying colors. In first-appearance order, a color with exactly four cells at exactly the corners of its bbox fills that bbox into a fresh output; all other colors disappear.
parametric familycorner detectionrectangle completionsolid fill
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).
Reference rule (Racket)
(rule!
;; A color whose four cells sit EXACTLY at its bbox corners gets the whole
;; bbox FILLED with that color; every other color's cells are dropped.
;; (Colors iterate in first-appearance order — overlap paint order matters.)
(let ((colors (remove-duplicates
(map third (filter (lambda (cell) (!= (third cell) 0))
(grid-cells g))))))
(for/fold ((out (empty-grid h w 0))) ((color (in-list colors)))
(let* ((cells (find-color g color))
(bb (bbox-of-cells cells))
(corners (list (list (first bb) (second bb))
(list (first bb) (fourth bb))
(list (third bb) (second bb))
(list (third bb) (fourth bb)))))
(if (and (= (length cells) 4)
(all? (lambda (p) (member? p corners)) cells))
(paint-cells out
(positions-in-rect (first bb) (second bb)
(third bb) (fourth bb))
color)
out)))))Provenance
- Generator
- generators/e3a2ff6ea587/generator.py
- Notes and decisions
- generators/e3a2ff6ea587/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5c7b1ee8866c4659b49636c621eae355bdae97307fee9d2bc8ce21567e98942f
- Rule hash
- fc212e483f16
- Sources
- bank:f3a2e93ae563
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate e3a2ff6ea587 --count 1 --seed 20261108 --test 1