← b5b012cd97d9 · b5df32f2dc17 →

b5c887448ed9

For each color pair, sort endpoints in row-major order, draw horizontally from the upper endpoint to the lower endpoint's column and then vertically to the lower endpoint; later-read colors overwrite earlier colors at crossings.

parametric familyManhattan routingpairing by colorsame-size drawing

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))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((color (in-list (e8b-colors-reading g)))) (let ((cells (sort (find-color g color) e8b-list<))) (if (= (length cells) 2) (paint-cells out (s16b-elbow-cells (first cells) (second cells)) color) out)))))

Provenance

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