← f5952ff1cee1 · f5bef0d462cd →

f59691ac00f3

Color-7 background grid. Row 0 contains a lawful 2/5 seed pattern and all lower rows start as 7. For each row r>0 and column c, read the two diagonal parents lp=(r-1,c-1) and rp=(r-1,c+1), using 7 outside the grid. If either parent is 7, keep 7. If lp==rp, write the opposite 2/5 color; otherwise write rp. Generated lessons always contain at least one active parent pair, so the output is never identical to the input.

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* ((opp (lambda (v) (if (= v 2) 5 2))))
             (reduce (lambda (grid r)
                       (reduce (lambda (g2 c)
                                 (if (zero? r)
                                     g2
                                     (let* ((lp (if (> c 0) (at g2 (- r 1) (- c 1)) 7))
                                            (rp (if (< c (- w 1))
                                                    (at g2 (- r 1) (+ c 1))
                                                    7)))
                                       (if (or (= lp 7) (= rp 7))
                                           g2
                                           (if (= lp rp)
                                               (set-cell g2 r c (opp lp))
                                               (set-cell g2 r c rp))))))
                               grid
                               (range 0 w)))
                     g
                     (range 0 h))))))

Provenance

Generator
generators/f59691ac00f3/generator.py
Notes and decisions
generators/f59691ac00f3/notes.md
Review label
reviewed_safe
Generator SHA-256
26a305e8ce1c8708c974cd550c722b9fac5e4aed59be27605ca5f8e8e2c5b7c1
Rule hash
343570d857e4
Sources
training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate f59691ac00f3 --count 1 --seed 20261108 --test 1