← 9758187b19ad · 97bcb3b9194e →

97b3f59b5cc4

Treat each same-color 4-connected nonzero component independently. Keep it in place when any cell touches the top, bottom, left, or right grid border; erase components that remain strictly inside the grid.

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! (let ((dummy 0)) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (if (any? (lambda (p) (or (= (first p) 0) (= (first p) (- (rows g) 1)) (= (second p) 0) (= (second p) (- (cols g) 1)))) (obj-cells obj)) (paint-cells out (obj-cells obj) (obj-color obj)) out))))

Provenance

Generator
generators/97b3f59b5cc4/generator.py
Notes and decisions
generators/97b3f59b5cc4/notes.md
Review label
reviewed_safe
Generator SHA-256
57900b879408118f4f95513cc2defc9a65b43e043725b12d618732417c5870ca
Rule hash
e3401b50999e
Sources
bank:91ced140cdc4
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 97b3f59b5cc4 --count 1 --seed 20261108 --test 1