← 9dcb885757dc · 9de65c6eed00 →

9de4ae27d0d0

Treat each same-color 4-connected nonzero component independently. Keep a component unchanged when any of its cells touches the top, bottom, left, or right grid border; erase every component wholly in the interior.

border contactcomponent filtering

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 ((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/9de4ae27d0d0/generator.py
Notes and decisions
generators/9de4ae27d0d0/notes.md
Review label
reviewed_safe
Generator SHA-256
22b6b938eec017b413c01f595f8f86c32d493ca4f3dfb8a8d05d24241104f40d
Rule hash
e3401b50999e
Sources
bank:eb9f9fbbbec1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9de4ae27d0d0 --count 1 --seed 20261108 --test 1