← 9c69eb63c11a · 9ce2dcf587b8 →

9c75b1456763

Two or three disconnected blue(1) room-and-corridor networks each have one unique marker color. Within each network, repaint every cell whose eight neighbours are all nonzero with that network's marker color.

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 (g)
         (let* ((h (rows g))
                (w (cols g))
                (blued (recolor-map* g (hash 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1)))
                (comps (objects blued 0)))
           (reduce (lambda (acc comp)
                     (let* ((marker-colors (filter (lambda (v) (and (!= v 0) (!= v 1)))
                                                   (map (lambda (cell)
                                                          (at g (fst cell) (snd cell)))
                                                        (obj-cells comp))))
                            (mc (if (empty? marker-colors) #f (first marker-colors))))
                       (if mc
                           (reduce (lambda (a cell)
                                     (let* ((r (fst cell))
                                            (c (snd cell)))
                                       (if (and
                                             (> r 0)
                                             (< r (- h 1))
                                             (> c 0)
                                             (< c (- w 1))
                                             (!= (at blued (- r 1) c) 0)
                                             (!= (at blued (+ r 1) c) 0)
                                             (!= (at blued r (- c 1)) 0)
                                             (!= (at blued r (+ c 1)) 0)
                                             (!= (at blued (- r 1) (- c 1)) 0)
                                             (!= (at blued (- r 1) (+ c 1)) 0)
                                             (!= (at blued (+ r 1) (- c 1)) 0)
                                             (!= (at blued (+ r 1) (+ c 1)) 0))
                                           (set-cell a r c mc)
                                           a)))
                                   acc
                                   (obj-cells comp))
                           acc)))
                   g
                   comps))))

Provenance

Generator
generators/9c75b1456763/generator.py
Notes and decisions
generators/9c75b1456763/notes.md
Review label
reviewed_safe
Generator SHA-256
d5056d94e7217a201f16d249328bf02f931acde3a301dfdffa2444e6e997a1c1
Rule hash
58004efe7e78
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9c75b1456763 --count 1 --seed 20261108 --test 1