← 6d33e42a400d · 6e068328f4ce →

6d678fbbe87e

Scan every 2x2 input window. If it contains exactly three equal non-zero cells and one zero corner, fill that zero with the shared colour. Apply all such completions simultaneously and preserve every other cell.

parametric family

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)) (let ((fills (filter values (for*/list ((r (in-range (- (rows g) 1))) (c (in-range (- (cols g) 1)))) (let* ((pts (list (list r c) (list r (+ c 1)) (list (+ r 1) c) (list (+ r 1) (+ c 1)))) (vals (map (lambda (p) (at g (first p) (second p))) pts)) (nz (filter (lambda (v) (not (= v 0))) vals))) (if (and (= (length nz) 3) (= (length (remove-duplicates nz)) 1) (= (length (filter (lambda (v) (= v 0)) vals)) 1)) (let ((p (first (filter (lambda (p) (= (at g (first p) (second p)) 0)) pts)))) (list (first p) (second p) (first nz))) #f)))))) (for/fold ((out g)) ((item (in-list fills))) (set-cell out (first item) (second item) (third item))))))

Provenance

Generator
generators/6d678fbbe87e/generator.py
Notes and decisions
generators/6d678fbbe87e/notes.md
Review label
reviewed_safe
Generator SHA-256
659439eb5d5c14675a0b054b9a7cb04b7d4ff0c6294c1abb1cfbd14d02980f8e
Rule hash
e0165fc03ab4
Sources
bank:c0e651d407f3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 6d678fbbe87e --count 1 --seed 20261108 --test 1