← ba29d14676d1 · ba5056d6102e →
ba32e05911b0
Trace color-6 markers upward; roll right across orange ledges or stop when the roll is blocked or reaches the edge.
parametric family
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! (lambda (g)
(let* ((h (rows g))
(w (cols g)))
(let* ((result (make-hash))
(dummy (for* ((r (range 0 h)) (c (range 0 w)))
(hash-set! result (list r c) (at g r c))))
(magentas (for*/list ((r (range 0 h)) (c (range 0 w)) #:when (= (at g r c) 6))
(list r c))))
(for ((mag magentas))
(let trace
((r (- (first mag) 1)) (col (second mag)))
(cond
((< r 0) (hash-set! result (list 0 col) 6))
((= (at g r col) 7) (let find-re
((re col))
(if (and (< (+ re 1) w) (= (at g r (+ re 1)) 7))
(find-re (+ re 1))
(let ((gc (+ re 1)))
(if (>= gc w)
(hash-set! result (list (+ r 1) col) 6)
(let check
((cc (+ col 1)) (ok #t))
(cond
((> cc gc) (if ok
(begin
(hash-set! result (list r col) 8)
(hash-set! result
(list (+ r 1) col)
4)
(for ((c (range (+ col 1) (+ re 1))))
(hash-set! result
(list (+ r 1) c)
2))
(hash-set! result
(list (+ r 1) gc)
3)
(trace r gc))
(hash-set! result
(list (+ r 1) col)
6)))
((and
(< (+ r 1) h)
(< cc w)
(= (at g (+ r 1) cc) 7)) (check (+ cc 1) #f))
(else (check (+ cc 1) ok)))))))))
(else (hash-set! result (list r col) 2) (trace (- r 1) col)))))
(cellmap g (r c v) (hash-ref result (list r c) 0))))))Provenance
- Generator
- generators/ba32e05911b0/generator.py
- Notes and decisions
- generators/ba32e05911b0/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- e71e4c26811b60906e4725b9f885f81a27857baeedb267234b8de7be59621345
- Rule hash
- 96b86f6cf562
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate ba32e05911b0 --count 1 --seed 20261108 --test 1