← 629901f9cf30 · 630d6cc550e4 →

629ec8fd452e

On a 0-background grid, inspect each 4-connected same-colour component. Keep the component iff it encloses at least one background region that cannot reach the border of that component's bounding box. Erase solid components and open almost-rings. Generated lessons include non-rectangular hole-bearing objects plus color- and size-matched erased distractors so rectangle, color, cell-count, bbox-gap, and bbox-gap-plus-size shortcuts are contradicted.

parametric familycomponent analysishole detectionselection

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)) (define (t3-hole-regions grid cells) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (binary (grid-from-fn (+ 1 (- r1 r0)) (+ 1 (- c1 c0)) (lambda (r c) (if (member? (list (+ r0 r) (+ c0 c)) cells) 1 0)))) (regions (find-0-regions binary 0))) (map (lambda (region) (map (lambda (p) (list (+ r0 (first p)) (+ c0 (second p)))) region)) (filter (lambda (region) (not (any? (lambda (p) (or (= (first p) 0) (= (first p) (- (rows binary) 1)) (= (second p) 0) (= (second p) (- (cols binary) 1)))) region))) regions)))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objects g 0)))) (if (empty? (t3-hole-regions g (obj-cells obj))) out (paint-cells out (obj-cells obj) (obj-color obj))))))

Provenance

Generator
generators/629ec8fd452e/generator.py
Notes and decisions
generators/629ec8fd452e/notes.md
Review label
reviewed_safe
Generator SHA-256
e6df6a7650d7c55baee9f373aca09d9097bd2430c40e2ab87815ba0ab8b6a2aa
Rule hash
83b51fc36bb6
Sources
bank:6ee66428b984
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 629ec8fd452e --count 1 --seed 20261108 --test 1