← 678b4a951150 · 67aae675d447 →

67a09b7f6b66

An ordered three-color legend maps dot counts 1/2/3 to fill colors for three equal color-8-walled chambers; chamber order is independently varied.

parametric familychamber detectioncount-conditioned fillinglegend decoding

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 dirs4 (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (e15b-region-dots grid region) (let* ((bb (bbox-of-cells region)) (r1 (max 1 (- (first bb) 1))) (c1 (max 0 (- (second bb) 1))) (r2 (min (- (rows grid) 1) (+ (third bb) 1))) (c2 (min (- (cols grid) 1) (+ (fourth bb) 1)))) (filter (lambda (p) (and (= (at grid (first p) (second p)) 1) (any? (lambda (d) (member? (list (+ (first p) (first d)) (+ (second p) (second d))) region)) dirs4))) (positions-in-rect r1 c1 r2 c2)))) (let* ((legend (filter values (for/list ((c (in-range (cols g)))) (let ((v (at g 0 c))) (if (= v 0) #f (list c v)))))) (body (subgrid g 1 0 (- (rows g) 1) (- (cols g) 1))) (regions (map (lambda (region) (map (lambda (p) (list (+ 1 (first p)) (second p))) region)) (find-0-regions body 0)))) (for/fold ((out g)) ((region (in-list regions))) (let* ((dots (e15b-region-dots g region)) (n (length dots)) (hit (filter (lambda (pair) (= (first pair) n)) legend))) (if (empty? hit) out (paint-cells out (append region dots) (second (first hit)))))))))

Provenance

Generator
generators/67a09b7f6b66/generator.py
Notes and decisions
generators/67a09b7f6b66/notes.md
Review label
reviewed_safe
Generator SHA-256
df01780544b9e505813229e1072ec11689ac9798c49213b1d29a00c4fdaf7dd2
Rule hash
100ba25d6ec9
Sources
bank:392b6b954bfd
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 67a09b7f6b66 --count 1 --seed 20261108 --test 1