← 457b4958145b · 46580cfcca75 →
45922a9666b2
Every red cell on the bottom row starts an independent walker. A walker moves upward while the cell above is not gray. When gray blocks the cell above, it moves one cell right if that cell is in bounds and not gray, then again prefers upward. It stops at the top or when both options are blocked, and every visited cell becomes red.
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))
(starts (filter (lambda (c) (= 2 (at g (- h 1) c))) (range 0 w)))
(trace-path (lambda (sc)
(let* ((max-iter (* h w))
(result (reduce (lambda (state _)
(let ((r (first state))
(c (second state))
(cells (third state))
(stopped (fourth state)))
(if stopped
state
(cond
((and
(> r 0)
(!= 5
(at g (- r 1) c))) (list (- r 1)
c
(append cells
(list (list (- r
1)
c)))
#f))
((and
(> r 0)
(< (+ c 1) w)
(!= 5
(at g r (+ c 1)))
(= 5 (at g (- r 1) c))) (list r
(+ c 1)
(append cells
(list (list r
(+ c
1))))
#f))
(else (list r c cells #t))))))
(list (- h 1)
sc
(list (list (- h 1) sc))
#f)
(range 0 max-iter))))
(third result))))
(all-cells (reduce append (list) (map trace-path starts))))
(cellmap g (r c v) (if (member? (list r c) all-cells) 2 v)))))Provenance
- Generator
- generators/45922a9666b2/generator.py
- Notes and decisions
- generators/45922a9666b2/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 901b35aa8aaf523990096af8ecfae1e4dac10f9fdfa84b21557c7179e8b52fac
- Rule hash
- 26a6c2419e6e
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 45922a9666b2 --count 1 --seed 20261108 --test 1