← 04b1a77fc994 · 04e2ffe8dc8e →

04c98e3e35bb

On fixed background 0, recolor each same-color four-connected component to 2 when it touches any grid edge, otherwise to 8. Input colors 1..9, including 2 and 8, are legal. Different-color contacts and same-color diagonal contacts do not join components. Every production input has at least one border component and one strictly interior component.

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)
  (let* ((height (rows grid))
         (width (cols grid))
         (objs (objects grid 0)))
    (reduce (lambda (acc obj)
      (let ((new-color
              (if (or (= (obj-r1 obj) 0)
                      (= (obj-c1 obj) 0)
                      (= (obj-r2 obj) (- height 1))
                      (= (obj-c2 obj) (- width 1)))
                  2
                  8)))
        (recolor-cells acc (obj-cells obj) new-color)))
      grid
      objs))))

Provenance

Generator
generators/04c98e3e35bb/generator.py
Notes and decisions
generators/04c98e3e35bb/notes.md
Review label
reviewed_safe
Generator SHA-256
4a98b688f9b3ae54ed1f0b956b946a1610831961c87a8cd53a118d69b393c555
Rule hash
264a1a87abe5
Sources
custom
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 04c98e3e35bb --count 1 --seed 20261108 --test 1