← 6d06c5b96c19 · 6d19cd1698b1 →
6d095613d305
Trace each color's row-major waypoints with horizontal-then-vertical segments; paint cells shared by both traces with color 9.
parametric familyintersection detectionmarker ordermulti-object tracing
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).
Reference rule (Racket)
(rule!
(let ((dummy 0))
(define (step-range a b)
(if (<= a b) (range a (+ b 1)) (reverse (range b (+ a 1)))))
(define (trace points)
(if (empty? points)
(list)
(let loop ([remaining (rest points)] [prev (first points)] [out (list (first points))])
(if (empty? remaining)
(reverse (foldl (lambda (p acc) (if (member p acc) acc (cons p acc))) (list) (reverse out)))
(let* ((next (first remaining))
(r1 (first prev)) (c1 (second prev))
(r2 (first next)) (c2 (second next))
(hpart (map (lambda (c) (list r1 c)) (rest (step-range c1 c2))))
(vpart (map (lambda (r) (list r c2)) (rest (step-range r1 r2)))))
(loop (rest remaining) next (append out hpart vpart)))))))
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([color (in-list (grid-colors g 0))])
(for/fold ([acc out]) ([p (in-list (trace (find-color g color)))])
(if (= (at acc (first p) (second p)) 0)
(set-cell acc (first p) (second p) color)
(set-cell acc (first p) (second p) 9))))))Provenance
- Generator
- generators/6d095613d305/generator.py
- Notes and decisions
- generators/6d095613d305/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 5ac475aba254060b6f5a4d848c3b50b76a5e00fa55c497baf27f25b404641c68
- Rule hash
- bd682e817aa3
- Sources
- bank:f3a2e93ae563
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 6d095613d305 --count 1 --seed 20261108 --test 1