← 67ec1565020d · 683b2102b08c →

68176b5eb124

Fill zero centers with four equal nonzero cardinal neighbors.

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)) (for*/fold ((out g)) ((r (in-range 1 (- (rows g) 1))) (c (in-range 1 (- (cols g) 1)))) (if (not (= (at g r c) 0)) out (let ((vals (list (at g (- r 1) c) (at g (+ r 1) c) (at g r (- c 1)) (at g r (+ c 1))))) (if (and (not (= (first vals) 0)) (all? (lambda (v) (= v (first vals))) vals)) (set-cell out r c (first vals)) out))))))

Provenance

Generator
generators/68176b5eb124/generator.py
Notes and decisions
generators/68176b5eb124/notes.md
Review label
reviewed_safe
Generator SHA-256
b91b4373c019a822c72077028ddb39d5b3d94b73d3a2ed32e22d3356ef0d1bb1
Rule hash
2dc205754ece
Sources
bank:66491d778d88
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 68176b5eb124 --count 1 --seed 20261108 --test 1