← 892ae3bfe537 · 89a9a629c544 →

899e2a4cfac9

Remove border-touching same-color 4-components; preserve all interior components.

parametric familyborder testconnected componentsobject 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).

Original task pairs

From the source task; the reference rule must reproduce them.

Reference rule (Racket)

(rule!
  (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))
        out
        (paint-cells out (obj-cells obj) (obj-color obj)))))

Provenance

Generator
generators/899e2a4cfac9/generator.py
Notes and decisions
generators/899e2a4cfac9/notes.md
Review label
reviewed_safe
Generator SHA-256
0fe1fd03f31b285873c464d28ad3e0356299f3f6709fb75c1af57c5dd68a7ce5
Rule hash
50ed982b7d21
Sources
bank:534c4be491a1
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 899e2a4cfac9 --count 1 --seed 20261108 --test 1