← 9e80ef661ecc · 9edcccd1341f →
9ea9f1e62275
One color-1 rectangular frame contains distinct colored seeds; fill each interior cell from its uniquely nearest seed by Manhattan distance and leave cross-color ties black.
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* ((frame (first (objects (keep-only g 1) 0)))
(bb (obj-bbox frame))
(seeds (filter (lambda (cell)
(let ((v (third cell)))
(and (not (= v 0))
(not (= v 1))
(> (first cell) (first bb))
(< (first cell) (third bb))
(> (second cell) (second bb))
(< (second cell) (fourth bb)))))
(grid-cells g))))
(define (dist cell r c)
(+ (abs (- (first cell) r)) (abs (- (second cell) c))))
(define (nearest-color r c)
(let* ((ds (map (lambda (cell) (dist cell r c)) seeds))
(m (apply min ds))
(colors (remove-duplicates
(map third
(filter (lambda (cell) (= (dist cell r c) m)) seeds)))))
(if (= (length colors) 1) (first colors) 0)))
(for*/fold ([out g])
([r (in-range (+ (first bb) 1) (third bb))]
[c (in-range (+ (second bb) 1) (fourth bb))])
(if (= (at g r c) 1)
out
(set-cell out r c (nearest-color r c))))))Provenance
- Generator
- generators/9ea9f1e62275/generator.py
- Notes and decisions
- generators/9ea9f1e62275/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e72be86abf351273a65681622ba7bce72ed1ef32c38d718d1aebba8acb78b167
- Rule hash
- caf596654388
- Sources
- bank:3c7b85b8eeb1
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 9ea9f1e62275 --count 1 --seed 20261108 --test 1