← 4e16917b1bde · 4e53f3cd64e8 →

4e4fa6c8d4ce

A uniquely most-common-colour block mask and a separate dense 3x3 or 4x4 palette share positional coordinates. Output copies each palette cell iff the corresponding large block is present, else 0. Defaults cycle through all four canonical size/colour profiles and include connected and disconnected masks plus shape-colour palette witnesses.

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)))
           (let* ((shape-color (mode g 0))
                  (shape-cells (for*/list ((r (range 0 h)) (c (range 0 w))
                                   #:when
                                   (= (at g r c) shape-color))
                                 (list r c)))
                  (srs (map first shape-cells))
                  (scs (map second shape-cells))
                  (sr1 (min-list srs))
                  (sc1 (min-list scs))
                  (sr2 (max-list srs))
                  (sc2 (max-list scs))
                  (pal-cells (for*/list ((r (range 0 h)) (c (range 0 w))
                                 #:when
                                 (and (!= (at g r c) 0) (!= (at g r c) shape-color)))
                               (list r c)))
                  (prs (map first pal-cells))
                  (pcs (map second pal-cells))
                  (pr1 (min-list prs))
                  (pc1 (min-list pcs))
                  (pr2 (max-list prs))
                  (pc2 (max-list pcs))
                  (ph (+ 1 (- pr2 pr1)))
                  (pw (+ 1 (- pc2 pc1)))
                  (shape-h (+ 1 (- sr2 sr1)))
                  (shape-w (+ 1 (- sc2 sc1)))
                  (block-h (quotient shape-h ph))
                  (block-w (quotient shape-w pw)))
             (build-grid ph
                         pw
                         (br bc)
                         (let* ((br-pos (+ sr1 (* br block-h)))
                                (bc-pos (+ sc1 (* bc block-w)))
                                (filled (= (at g br-pos bc-pos) shape-color)))
                           (if filled (at g (+ pr1 br) (+ pc1 bc)) 0)))))))

Provenance

Generator
generators/4e4fa6c8d4ce/generator.py
Notes and decisions
generators/4e4fa6c8d4ce/notes.md
Review label
reviewed_safe
Generator SHA-256
13e8277e676c4b84e5d8c2bf27a4388b515227c0f93d06509c880ebeafc620b9
Rule hash
adb72b5aa400
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 4e4fa6c8d4ce --count 1 --seed 20261108 --test 1