← 2d2b102b7740 · 2d59c1b766d5 →

2d4e8c8fa10e

On a black background, keep every cardinally connected magenta object whose whole shape is exactly a solid 2x2 square; erase every other magenta object, including horizontal/vertical tetrominoes and 2x2 squares with an attached tail.

parametric familycomponent erasureshape filteringsolid block detection

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).

Reference rule (Racket)

(rule! (let ((dummy 0)) (define (objs-of color) (filter (lambda (obj) (= (obj-color obj) color)) (objects g 0))) (define (normalize-cells cells) (if (empty? cells) (list) (let* ((bb (bbox-of-cells cells)) (r0 (first bb)) (c0 (second bb))) (sort (map (lambda (p) (list (- (first p) r0) (- (second p) c0))) cells) cell<)))) (define (solid-2x2? obj) (equal? (normalize-cells (obj-cells obj)) (list (list 0 0) (list 0 1) (list 1 0) (list 1 1)))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((obj (in-list (objs-of 6)))) (if (solid-2x2? obj) (paint-cells out (obj-cells obj) 6) out))))

Provenance

Generator
generators/2d4e8c8fa10e/generator.py
Notes and decisions
generators/2d4e8c8fa10e/notes.md
Review label
reviewed_safe
Generator SHA-256
46c323125e453e9c61f99b5a6f187887ff8c42e5c541f7898af738dac8dac50c
Rule hash
dbcfc990f307
Sources
bank:b4ec712e8849
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 2d4e8c8fa10e --count 1 --seed 20261108 --test 1