← 628b4a2c24c1 · 629ec8fd452e →

629901f9cf30

A 4..18 rectangular zero-background grid contains 2..6 distinct-color single-cell seeds. Fill each cell from its unique nearest Manhattan seed; leave cells tied between different nearest colors as 0.

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! (let ((dummy 0)) (let ((seeds (filter values (for*/list ((r (in-range (rows g))) (c (in-range (cols g)))) (let ((v (at g r c))) (if (= v 0) #f (list r c v))))))) (grid-from-fn (rows g) (cols g) (lambda (r c) (let* ((dists (map (lambda (s) (list (+ (abs (- (first s) r)) (abs (- (second s) c))) (third s))) seeds)) (best (apply min (map first dists))) (colors (map second (filter (lambda (item) (= (first item) best)) dists))) (unique (remove-duplicates colors))) (if (= (length unique) 1) (first unique) 0)))))))

Provenance

Generator
generators/629901f9cf30/generator.py
Notes and decisions
generators/629901f9cf30/notes.md
Review label
reviewed_safe
Generator SHA-256
63f61afd4a83f40a3906bba4f9eb500aeff81bb3da3cf2489d7a6a8608734e8f
Rule hash
96013a689278
Sources
bank:97e1cc8b45f0
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 629901f9cf30 --count 1 --seed 20261108 --test 1