← e410357cf67e · e4351af561ac →
e42b0a4cc753
A 6..10 by 7..12 grid has a complete color-8 outer border and 2..5 pairwise-distinct colored singleton seeds in its otherwise-zero interior. Fill each blank interior cell with the color of its Manhattan-nearest seed. On equal distances, choose the seed appearing first in row-major reading order. Preserve the border and all seed cells.
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)) (define (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (let* ((frame (find-color g 8)) (bb (bbox-of-cells frame)) (r0 (first bb)) (c0 (second bb)) (r1 (third bb)) (c1 (fourth bb)) (seeds (sort (filter (lambda (p) (let ((v (at g (first p) (second p)))) (and (> (first p) r0) (< (first p) r1) (> (second p) c0) (< (second p) c1) (not (member? v (list 0 8)))))) (grid-positions g)) e8b-list<))) (for*/fold ((out g)) ((r (in-range (+ r0 1) r1)) (c (in-range (+ c0 1) c1))) (if (or (not (= (at out r c) 0)) (empty? seeds)) out (let* ((best (first (sort seeds (lambda (a b) (e8b-list< (list (+ (abs (- (first a) r)) (abs (- (second a) c))) (first a) (second a)) (list (+ (abs (- (first b) r)) (abs (- (second b) c))) (first b) (second b))))))) (color (at g (first best) (second best)))) (set-cell out r c color)))))))
Provenance
- Generator
- generators/e42b0a4cc753/generator.py
- Notes and decisions
- generators/e42b0a4cc753/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e2271d4ce81f37366d64781ce5f29f087e748e3211cd869f1e67181c5d7bb44b
- Rule hash
- f23844d6433c
- Sources
- bank:05283c9df3d9
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate e42b0a4cc753 --count 1 --seed 20261108 --test 1