← 1f3e27c86f7a · 20014c9d3729 →

1f9fef86a482

Count the blue cells in row 0 to obtain k. Below the blank separator, find same-colour 4-connected components and their cardinal-contact graph. Repaint every component of degree exactly k with 8 and erase the rest.

parametric familygraph degree filteringheader decodingsame-size masking

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 (adjacent? grid a b) (any? (lambda (p) (any? (lambda (d) (member (list (+ (first p) (first d)) (+ (second p) (second d))) (obj-cells b))) cardinal-deltas)) (obj-cells a))) (define (neighbors grid objs i) (filter (lambda (j) (and (not (= i j)) (adjacent? grid (list-ref objs i) (list-ref objs j)))) (range 0 (length objs)))) (define (degree grid objs i) (length (neighbors grid objs i))) (define k (count-where (lambda (v) (= v 1)) (row g 0))) (define body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (define objs (objects body 0)) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((i (in-range (length objs)))) (if (= (degree body objs i) k) (paint-cells out (map (lambda (p) (list (+ (first p) 1) (second p))) (obj-cells (list-ref objs i))) 8) out))))

Provenance

Generator
generators/1f9fef86a482/generator.py
Notes and decisions
generators/1f9fef86a482/notes.md
Review label
reviewed_safe
Generator SHA-256
fa02b244487ff210c82c374b2274cb0226eedc0733315c8cbab6e4f837843496
Rule hash
dfe6e5f597b6
Sources
bank:3a1815be7c2e
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 1f9fef86a482 --count 1 --seed 20261108 --test 1