← 28268c57c367 · 2847032fa29b →

28423cdf02cc

A 0-background grid has a fully colored asymmetric 3x3 template at rows 0..2, columns 0..2; a full-height color-5 divider at column 3; and 3..6 color-1 markers in the right region. For every marker, copy the complete 3x3 template centered on that marker. The original template and divider remain unchanged.

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))
                (pat (for/list ((r (range 0 3)))
                       (for/list ((c (range 0 3))) (at g r c))))
                (blues (filter (lambda (p) p)
                               (for*/list ((r (range 0 h)) (c (range 0 w)))
                                 (and (= (at g r c) 1) (list r c))))))
           (reduce (lambda (acc dot)
                     (let* ((dr (first dot))
                            (dc (second dot)))
                       (reduce (lambda (g1 pr)
                                 (reduce (lambda (g2 pc)
                                           (let* ((nr (+ (- dr 1) pr))
                                                  (nc (+ (- dc 1) pc)))
                                             (if (and
                                                   (>= nr 0)
                                                   (< nr h)
                                                   (>= nc 0)
                                                   (< nc w)
                                                   (or
                                                     (zero? (at g2 nr nc))
                                                     (= (at g2 nr nc) 1)))
                                                 (set-cell g2
                                                           nr
                                                           nc
                                                           (nth (nth pat pr) pc))
                                                 g2)))
                                         g1
                                         (range 0 3)))
                               acc
                               (range 0 3))))
                   g
                   blues))))

Provenance

Generator
generators/28423cdf02cc/generator.py
Notes and decisions
generators/28423cdf02cc/notes.md
Review label
reviewed_safe
Generator SHA-256
75ee24dc86a6d294fab9aab46fc47392cab0b7f5dbdaa58a59e63b349acf83c9
Rule hash
63b41fa0b187
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 28423cdf02cc --count 1 --seed 20261108 --test 1