← 88ce0ac7322b · 8921bea21bbb →

891a82451a8a

Fill a 5..18 by 5..18 grid with one background color and place exactly one seed of a color from the fixed cycle 0,5,2,8,9,6,1,3,4. The background may be any nonzero ARC color (the selected Racket mode ignores zero). Color every output cell by Manhattan distance from the seed, advancing through the fixed cycle from the seed's color. Defaults cover corner, edge, center, and interior seeds and include an 8x8 canonical-profile branch in every difficulty band.

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* ((bg (mode g))
                  (seed (first (positions-of g (lambda (v) (!= v bg)))))
                  (sr (first seed))
                  (sc (second seed))
                  (seed-color (at g sr sc))
                  (cycle (list 0 5 2 8 9 6 1 3 4))
                  (n (length cycle))
                  (start (find-first (lambda (i) (= (list-ref cycle i) seed-color))
                                     (range 0 n))))
             (cellmap g
                      (r c v)
                      (list-ref cycle
                                (modulo (+ start (abs (- r sr)) (abs (- c sc))) n)))))))

Provenance

Generator
generators/891a82451a8a/generator.py
Notes and decisions
generators/891a82451a8a/notes.md
Review label
reviewed_safe
Generator SHA-256
e7ba6890d0edbb7fcf6194dc8e553e6897bbca2773b594e7cd1e1b571afb65a9
Rule hash
635140e0e1b3
Sources
augmented, training
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 891a82451a8a --count 1 --seed 20261108 --test 1