← 0ff4b77946cc · 105b239cb812 →

1034300a135f

Stable-sort marker cells by minimum edge distance and paint their colors as concentric output rings from outside inward.

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)) (cells (flatmap (lambda (r) (flatmap (lambda (c) (if (= (at g r c) bg) (list) (let ((d (min r c (- h 1 r) (- w 1 c)))) (list (list d (at g r c)))))) (range 0 w))) (range 0 h))) (sorted (sort-by cells (lambda (p) (first p)))) (sorted-colors (map second sorted)) (n (length sorted-colors))) (cellmap g (rr cc v) (let ((d (min rr cc (- h 1 rr) (- w 1 cc)))) (if (< d n) (nth sorted-colors d) bg)))))))

Provenance

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