← 12ace26107fd · 12b9259f7792 →

12b35b7402b6

Count all gray(5) top-row markers and recolor the unique blue(1) 4-connected component with that many cells red(2).

parametric familycomponent size comparisoncountingobject selection

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-color grid color) (filter (lambda (obj) (= (obj-color obj) color)) (objects grid 0))) (define (paint-obj grid obj color) (paint-cells grid (obj-cells obj) color)) (define (bbox< a b) (cond ((not (= (obj-r1 a) (obj-r1 b))) (< (obj-r1 a) (obj-r1 b))) ((not (= (obj-c1 a) (obj-c1 b))) (< (obj-c1 a) (obj-c1 b))) ((not (= (obj-r2 a) (obj-r2 b))) (< (obj-r2 a) (obj-r2 b))) (else (< (obj-c2 a) (obj-c2 b))))) (let* ((count5 (length (find-color g 5))) (target (first (sort (filter (lambda (obj) (= (obj-size obj) count5)) (objs-color g 1)) bbox<)))) (paint-obj g target 2))))

Provenance

Generator
generators/12b35b7402b6/generator.py
Notes and decisions
generators/12b35b7402b6/notes.md
Review label
reviewed_safe
Generator SHA-256
9a3404d0b44e84a714cae4060bb003217a6df8b0a2764bd6d9972da4d3f106e5
Rule hash
cb01ed25524c
Sources
bank:b87bafc16aa7
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 12b35b7402b6 --count 1 --seed 20261108 --test 1