← 40e85135fbf8 · 4179e1ac3cf7 →

410fb6b72f16

On a zero background, find 4-connected blue (1) components. Recolor only components of size exactly one red (2); preserve every larger blue component. Some generated lessons add an isolated green singleton that must remain green, making both the blue color condition and size-one condition observable.

4-connectivitycomponent size filteringsame-size recolor

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)) (for/fold ((out g)) ((obj (in-list (objs-color g 1)))) (if (= (obj-size obj) 1) (paint-obj out obj 2) out))))

Provenance

Generator
generators/410fb6b72f16/generator.py
Notes and decisions
generators/410fb6b72f16/notes.md
Review label
reviewed_safe
Generator SHA-256
7ecb38a7d0c7d4cdcc45973733715245a31d36dafb4e756ae9d765721ea4ca88
Rule hash
286a8c0cd852
Sources
bank:081996b60750
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 410fb6b72f16 --count 1 --seed 20261108 --test 1