← 3e0aef964b9e · 3e5b763caa3d →
3e2b303f4cf7
Aligned same-color solid 2x2 block pairs become filled 2-wide bars; off-axis or unpaired 2x2 blocks remain unchanged, and horizontal bars overwrite vertical bars where completed rectangles cross.
completionsame_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)) (define (solid-2x2-blocks grid) (filter values (for*/list ((r (in-range 0 (- (rows grid) 1))) (c (in-range 0 (- (cols grid) 1)))) (let ((v (at grid r c))) (if (and (not (= v 0)) (= (at grid r (+ c 1)) v) (= (at grid (+ r 1) c) v) (= (at grid (+ r 1) (+ c 1)) v)) (list v r c) #f))))) (let ((blocks (solid-2x2-blocks g))) (for*/fold ((out g)) ((i (in-range (length blocks))) (j (in-range (+ i 1) (length blocks)))) (let* ((a (list-ref blocks i)) (b (list-ref blocks j)) (v1 (first a)) (r1 (second a)) (c1 (third a)) (v2 (first b)) (r2 (second b)) (c2 (third b))) (cond ((not (= v1 v2)) out) ((= r1 r2) (let ((left (min c1 c2)) (right (+ (max c1 c2) 1))) (for*/fold ((acc out)) ((rr (in-list (list r1 (+ r1 1)))) (cc (in-range left (+ right 1)))) (set-cell acc rr cc v1)))) ((= c1 c2) (let ((top (min r1 r2)) (bottom (+ (max r1 r2) 1))) (for*/fold ((acc out)) ((cc (in-list (list c1 (+ c1 1)))) (rr (in-range top (+ bottom 1)))) (set-cell acc rr cc v1)))) (else out)))))))
Provenance
- Generator
- generators/3e2b303f4cf7/generator.py
- Notes and decisions
- generators/3e2b303f4cf7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 2313b4acad6868cab7a309ef9b996ec1f05d7da9d08044f95d26b212e0f9997c
- Rule hash
- 0f4a8a97ac1b
- Sources
- bank:ece0cc5101a3
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 3e2b303f4cf7 --count 1 --seed 20261108 --test 1