← 758360aea29b · 75b8cb3d5e9b →

75837d4fa905

Find every distinct-colour solid 2x2 square. Keep each square unchanged and paint its colour into the four diagonal corner cells one step beyond the square. Ignore corners outside the grid. If blooms overlap, the first square in row-major order owns a cell that was still background.

localsame_sizeshape

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 ((v (at g r c))) (if (and (not (= v 0)) (= (at g r (+ c 1)) v) (= (at g (+ r 1) c) v) (= (at g (+ r 1) (+ c 1)) v)) (for/fold ((acc out)) ((d (in-list (list (list -1 -1) (list -1 2) (list 2 -1) (list 2 2))))) (let ((rr (+ r (first d))) (cc (+ c (second d)))) (if (and (in-bounds? rr cc (rows g) (cols g)) (= (at acc rr cc) 0)) (set-cell acc rr cc v) acc))) out)))))

Provenance

Generator
generators/75837d4fa905/generator.py
Notes and decisions
generators/75837d4fa905/notes.md
Review label
reviewed_safe
Generator SHA-256
e27e0582a89f0f77b9dbb9ca6849c44d349c219a608e0611070bdc94e45db9a4
Rule hash
e56cca9b3b6c
Sources
bank:ece0cc5101a3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 75837d4fa905 --count 1 --seed 20261108 --test 1