← 5fdbbb5a53ef · 600284beb8e4 →

5ffd8d801705

Place distinct-color solid 2x2 squares at non-overlapping arbitrary anchors, including edge and mixed coordinate-residue witnesses. Replace each square by its top-left/bottom-right diagonal and preserve all other cells.

blockslocalsame_sizeshape_rewrite

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* ((used (apply append (for*/list ((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)) (list (list r c) (list r (+ c 1)) (list (+ r 1) c) (list (+ r 1) (+ c 1))) (list)))))) (diags (for*/fold ((out (empty-grid (rows g) (cols g) 0))) ((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)) (set-cell (set-cell out r c v) (+ r 1) (+ c 1) v) out))))) (for*/fold ((out diags)) ((r (in-range (rows g))) (c (in-range (cols g)))) (if (and (not (= (at g r c) 0)) (not (member? (list r c) used))) (set-cell out r c (at g r c)) out)))))

Provenance

Generator
generators/5ffd8d801705/generator.py
Notes and decisions
generators/5ffd8d801705/notes.md
Review label
reviewed_safe
Generator SHA-256
d00998296015b10f16dc66def01af39cfd8a94388d14c7a459257632e0b42a7a
Rule hash
c845504525a2
Sources
bank:fc0f4ba66a95
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5ffd8d801705 --count 1 --seed 20261108 --test 1