← 78e3f26e92aa · 78fd2bcdbb99 →

78f3cf31c4bf

Find every 2x2 window with exactly three cells of one non-background colour and one zero, then fill that zero with the same colour. Windows are evaluated from the original input in one simultaneous pass. Scenes include canonical-profile isolated motifs, connected multi-window components, repeated colours, and mixed-colour near-matches.

2x2local_completionsame_size

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 0 (- (rows g) 1))) (c (in-range 0 (- (cols g) 1)))) (let* ((cells (list (list r c) (list (+ r 1) c) (list r (+ c 1)) (list (+ r 1) (+ c 1)))) (vals (map (lambda (p) (at g (first p) (second p))) cells)) (nz (filter (lambda (v) (not (= v 0))) vals))) (if (and (= (length nz) 3) (= (length (remove-duplicates nz)) 1) (= (count-where (lambda (v) (= v 0)) vals) 1)) (let ((p (first (filter (lambda (p) (= (at g (first p) (second p)) 0)) cells)))) (set-cell out (first p) (second p) (first nz))) out)))))

Provenance

Generator
generators/78f3cf31c4bf/generator.py
Notes and decisions
generators/78f3cf31c4bf/notes.md
Review label
reviewed_safe
Generator SHA-256
788832612d5ab93e59f99522fd2b89e72e8d1d2ca7776779f272c13f22d08cf5
Rule hash
4954a1b1ccb4
Sources
bank:056856052daa
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 78f3cf31c4bf --count 1 --seed 20261108 --test 1