← 17de34436a9f · 17f92e205b34 →
17ea562973ac
On a zero background, find all 2..8 cells of the single nonzero color. Compute their minimal bounding rectangle and return a fresh grid of the same size containing only that rectangle's one-cell outline in the same color. Interior source markers are cleared.
parametric familybounding boxextremesrectangle border 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).
Original task pairs
From the source task; the reference rule must reproduce them.
Reference rule (Racket)
(rule!
(let* ((cells (filter-cells g (lambda (r c v) (not (= v 0)))))
(color (at g (first (first cells)) (second (first cells))))
(bb (bbox-of-cells cells))
(border (append
(for/list ([c (in-range (second bb) (+ (fourth bb) 1))]) (list (first bb) c))
(for/list ([c (in-range (second bb) (+ (fourth bb) 1))]) (list (third bb) c))
(for/list ([r (in-range (+ (first bb) 1) (third bb))]) (list r (second bb)))
(for/list ([r (in-range (+ (first bb) 1) (third bb))]) (list r (fourth bb))))))
(paint-cells (empty-grid (rows g) (cols g) 0) border color)))Provenance
- Generator
- generators/17ea562973ac/generator.py
- Notes and decisions
- generators/17ea562973ac/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 05d0b41e19145209728e54f911ed19f9448e168b198992f1a912c976f22d10ee
- Rule hash
- 22bfb52d3f48
- Sources
- bank:be1bc1d91387
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 17ea562973ac --count 1 --seed 20261108 --test 1