← 9db8deba5903 · 9dcb885757dc →

9dc70dbec7cf

0-background grid with 2-6 distinct endpoint colors, each appearing exactly twice. The rule connects each row-major endpoint pair with the canonical horizontal-then-vertical elbow, overlays the paths, and maps coverage counts 1/2/3+ to colors 3/6/9.

parametric familycount accumulationpath overlayvalue remapping

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 (e8b-list< a b) (cond ((empty? a) #f) ((< (first a) (first b)) #t) ((> (first a) (first b)) #f) (else (e8b-list< (rest a) (rest b))))) (define (e8b-colors-reading grid) (remove-duplicates (filter (lambda (v) (not (= v 0))) (map (lambda (p) (at grid (first p) (second p))) (grid-positions grid))))) (define (s16b-elbow-cells p0 p1) (let* ((r0 (first p0)) (c0 (second p0)) (r1 (first p1)) (c1 (second p1)) (cstep (if (>= c1 c0) 1 -1)) (rstep (if (>= r1 r0) 1 -1))) (append (map (lambda (c) (list r0 c)) (range c0 (+ c1 cstep) cstep)) (map (lambda (r) (list r c1)) (range r0 (+ r1 rstep) rstep))))) (let ((path-cells (apply append (for/list ((color (in-list (e8b-colors-reading g)))) (let ((cells (sort (find-color g color) e8b-list<))) (if (= (length cells) 2) (s16b-elbow-cells (first cells) (second cells)) (list))))))) (grid-from-fn (rows g) (cols g) (lambda (r c) (let ((cnt (count-where (lambda (p) (equal? p (list r c))) path-cells))) (cond ((>= cnt 3) 9) ((= cnt 2) 6) ((= cnt 1) 3) (else 0))))))))

Provenance

Generator
generators/9dc70dbec7cf/generator.py
Notes and decisions
generators/9dc70dbec7cf/notes.md
Review label
reviewed_safe
Generator SHA-256
8504d608a887030378ff71747fa05683441b2268ff81d97ee15e1482dc50dd07
Rule hash
3b6803cad20f
Sources
bank:5deb8ef303b3
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 9dc70dbec7cf --count 1 --seed 20261108 --test 1