← 2dacb90452ce · 2db1f7f0392d →
2dae2c34641b
Two or three colors each mark two non-aligned endpoints. For every color, connect the upper endpoint vertically to the lower row and then horizontally to the lower endpoint. Generated elbow paths are disjoint.
parametric familynew primitive: elbow_pathorthogonal path drawingpairing by color
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 (s6b-elbow-path a b) (let* ((r1 (first a)) (c1 (second a)) (r2 (first b)) (c2 (second b)) (rstep (if (>= r2 r1) 1 -1)) (cstep (if (>= c2 c1) 1 -1)) (vertical (map (lambda (r) (list r c1)) (range r1 (+ r2 rstep) rstep))) (horizontal (map (lambda (c) (list r2 c)) (range c1 (+ c2 cstep) cstep)))) (remove-duplicates (append vertical horizontal)))) (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<))) (paint-cells out (s6b-elbow-path (first cells) (second cells)) color)))))
Provenance
- Generator
- generators/2dae2c34641b/generator.py
- Notes and decisions
- generators/2dae2c34641b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- cadbe43ce6f4cb7bf6df1437f0efbbe1b45270df8fa2d5f55972d5f7dc8e4838
- Rule hash
- 95bc32a62544
- Sources
- bank:529ce7614691
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2dae2c34641b --count 1 --seed 20261108 --test 1