← b25434a1b56e · b2d6e6b60917 →

b28619e32f6f

Find every 4-connected zero region. Preserve border-connected exterior zero. Recolor each enclosed zero region independently by its cell count: size <=8 with 8, size <=24 with 4, and size >24 with 3; preserve red boundaries and interior red dividers.

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!
 (lambda (grid)
   ;; Treat each 4-connected zero component independently.
   (reduce
    (lambda (out region)
      (let* ((cell (first region))
             (size (length region))
             (fill-color
              (cond
               ((<= size 8) 8)
               ((<= size 24) 4)
               (else 3))))
        ;; Border-connected zero is exterior; recolor only enclosed regions.
        (if (enclosed? grid (first cell) (second cell))
            (recolor-cells out region fill-color)
            out)))
    grid
    (find-0-regions grid))))

Provenance

Generator
generators/b28619e32f6f/generator.py
Notes and decisions
generators/b28619e32f6f/notes.md
Review label
reviewed_safe
Generator SHA-256
978effd2f08efe379b14864946cde3481d91da6ded0374e3a689729cbefebe8f
Rule hash
1683fe78ae83
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate b28619e32f6f --count 1 --seed 20261108 --test 1