← 97bcb3b9194e · 97d3714964b0 →
97c9b7818f99
A cyan (8) rectangular frame encloses 2-4 distinct single-cell seeds. A seed may use any nonzero color except cyan, including gray (5). For each empty interior cell, copy the color of its nearest seed by Manhattan distance; when two or more seeds are tied for nearest, paint gray (5). The frame and the original seeds stay unchanged.
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) (and (not (= (third cell) 0))
(not (= (third cell) 8))))
(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)))
(nearest (filter (lambda (cell) (= (dist cell r c) dmin)) seeds)))
(if (>= (length nearest) 2) 5 (third (first nearest)))))
(for*/fold ([out g])
([r (in-range 1 (- (rows g) 1))]
[c (in-range 1 (- (cols g) 1))])
(if (= (at out r c) 0) (set-cell out r c (fill-value r c)) out))))Provenance
- Generator
- generators/97c9b7818f99/generator.py
- Notes and decisions
- generators/97c9b7818f99/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 1c8a6546e04a3696caad1b85ac48888f0685c840c1c3414c1208fc26820cd6aa
- Rule hash
- af2297af758f
- Sources
- bank:63dac95f0c67
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 97c9b7818f99 --count 1 --seed 20261108 --test 1