← e4351af561ac · e44712f65f3e →

e438ce3e02ce

A 9..10 by 9..12 zero-background grid contains 3..5 singleton seed cells in pairwise-distinct colors excluding 0 and 8. Fill each zero with the color of its uniquely nearest seed under Manhattan distance; if two or more seeds tie for minimum distance, paint the cell cyan (8). Preserve all seed cells.

parametric familydistance reasoningpartitioningtie handling

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).

Reference rule (Racket)

(rule!
  (let ((seeds (filter (lambda (cell) (not (= (third cell) 0))) (grid-cells g))))
    (define (dist cell r c)
      (+ (abs (- r (first cell))) (abs (- c (second cell)))))
    (define (fill-value r c)
      (let* ((dmin (apply min (map (lambda (cell) (dist cell r c)) seeds)))
             (colors (remove-duplicates
                       (map third (filter (lambda (cell) (= (dist cell r c) dmin)) seeds)))))
        (if (= (length colors) 1) (first colors) 8)))
    (grid-from-fn (rows g) (cols g)
      (lambda (r c)
        (if (= (at g r c) 0) (fill-value r c) (at g r c))))))

Provenance

Generator
generators/e438ce3e02ce/generator.py
Notes and decisions
generators/e438ce3e02ce/notes.md
Review label
reviewed_safe
Generator SHA-256
60a2cee1c491a112a7d37e67336131257da46cdb417cc03b92fc6c176a068c7f
Rule hash
866bf2f14b22
Sources
bank:868e1a8cbe17
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate e438ce3e02ce --count 1 --seed 20261108 --test 1