← c6a453e86480 · c6fa0b0b24da →

c6b14e07214c

Manhattan nearest-seed fill in a 7-frame, with numeric color ties and preserved interior 7s.

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* ((bb (bbox-of-cells (find-color g 7))) (seeds (filter values (for*/list ((r (in-range (+ (first bb) 1) (third bb))) (c (in-range (+ (second bb) 1) (fourth bb)))) (let ((v (at g r c))) (if (member? v (list 0 7)) #f (list r c v))))))) (for*/fold ((out g)) ((r (in-range (+ (first bb) 1) (third bb))) (c (in-range (+ (second bb) 1) (fourth bb)))) (if (= (at out r c) 0) (let ((best (first (sort seeds (lambda (a b) (e8b-list< (list (+ (abs (- (first a) r)) (abs (- (second a) c))) (third a) (first a) (second a)) (list (+ (abs (- (first b) r)) (abs (- (second b) c))) (third b) (first b) (second b)))))))) (set-cell out r c (third best))) out)))))

Provenance

Generator
generators/c6b14e07214c/generator.py
Notes and decisions
generators/c6b14e07214c/notes.md
Review label
reviewed_safe
Generator SHA-256
10ca64b8f0a74c5689230d7edda9709f4b339a8a9996a0b6bc4ea853c10f7a06
Rule hash
d219d22bc8a3
Sources
bank:b64eb6bd4039
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate c6b14e07214c --count 1 --seed 20261108 --test 1