← 866b956f2402 · 86e4139d27c1 →

86af5978a32a

Compose two equal 3..5 square panels horizontally or vertically. The panel with 2..4 nonzero colors is a layout and the one-color panel is a shape mask. Expand each nonzero layout cell into a recolored copy of the mask. A four-step teaching schedule crosses orientation, panel order, and whether color 8 belongs to the shape or the layout.

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)))
           (let* ((horizontal (>= w h))
                  (half-h (if horizontal h (quotient h 2)))
                  (half-w (if horizontal (quotient w 2) w))
                  (first-cells (for*/list ((r (range 0 half-h)) (c (range 0 half-w))
                                   #:when
                                   (!= (at g r c) 0))
                                 (list r c (at g r c))))
                  (second-r1 (if horizontal 0 half-h))
                  (second-c1 (if horizontal half-w 0))
                  (second-cells (for*/list ((r (range second-r1 h)) (c (range second-c1 w))
                                    #:when
                                    (!= (at g r c) 0))
                                  (list (- r second-r1) (- c second-c1) (at g r c))))
                  (first-colors (remove-duplicates (map third first-cells)))
                  (second-colors (remove-duplicates (map third second-cells)))
                  (layout-first (> (length first-colors) (length second-colors)))
                  (layout-cells (if layout-first first-cells second-cells))
                  (shape-cells (if layout-first second-cells first-cells))
                  (shape-positions (map (lambda (c) (list (first c) (second c)))
                                        shape-cells))
                  (out-h (* half-h half-h))
                  (out-w (* half-w half-w))
                  (base (build-grid out-h out-w (r c) 0)))
             (for/fold ((out base))
               ((m layout-cells))
               (let ((mr (first m))
                     (mc (second m))
                     (col (third m)))
                 (for/fold ((o out))
                   ((sp shape-positions))
                   (set-cell o
                             (+ (* mr half-h) (first sp))
                             (+ (* mc half-w) (second sp))
                             col))))))))

Provenance

Generator
generators/86af5978a32a/generator.py
Notes and decisions
generators/86af5978a32a/notes.md
Review label
reviewed_safe
Generator SHA-256
ee84cd19b1f4ccb64bb6a089b497acacae3c195c16fd3fbe100c83c4b3238a0e
Rule hash
80100e676959
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 86af5978a32a --count 1 --seed 20261108 --test 1