← 63a780e1d475 · 646eeb47599b →
64592477ccc8
A zero-background grid contains two or three colors. For each color, exactly four cells mark the four corners of one axis-aligned rectangle. Each rectangle spans at least two rows and two columns, is not a 2x2 identity case, and its eventual outline is disjoint from every other color's outline. The output is a fresh blank grid of the same size with the complete bounding-box outline of every color painted in that color.
corner markersoutline drawingrectangle inference
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!
(let ((colors (remove-duplicates
(map third (filter (lambda (cell) (not (= (third cell) 0))) (grid-cells g))))))
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([color (in-list colors)])
(let* ((cells (find-color g color))
(bb (bbox-of-cells cells))
(r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb))
(outline
(append
(for/list ([c (in-range c0 (+ c1 1))]) (list r0 c))
(for/list ([c (in-range c0 (+ c1 1))]) (list r1 c))
(for/list ([r (in-range r0 (+ r1 1))]) (list r c0))
(for/list ([r (in-range r0 (+ r1 1))]) (list r c1)))))
(paint-cells out outline color)))))Provenance
- Generator
- generators/64592477ccc8/generator.py
- Notes and decisions
- generators/64592477ccc8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 916c1128bf675d3ee62e7e46ceee339c31021a382a17caa519f280fc14027040
- Rule hash
- fb7ed02e18c2
- Sources
- bank:dc02f6f7c147
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 64592477ccc8 --count 1 --seed 20261108 --test 1