← 80271cb9b303 · 806425ca81b3 →
8029363f9cb7
Launch a beam rightward from the single red(2) source, including when the source is nearer the right frame. Paint only empty cells traversed by that beam cyan(8), reflect on slash(3) and backslash(4) mirrors, and stop at the first gray(5) wall. Mirrors and walls outside the traced route are distractors and remain unchanged.
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!
;; The lone red source launches one beam immediately to its right.
(let* ((source (first (find-color g 2))))
;; Slash and backslash mirrors redirect the current ray differently.
(define (slash dr dc) (list (- 0 dc) (- 0 dr)))
(define (backslash dr dc) (list dc dr))
;; Paint only traversed black cells; the first gray wall ends the trace.
(let loop ([out g] [r (first source)] [c (+ (second source) 1)] [dr 0] [dc 1] [seen (list)] [fuel 500])
(if (or (= fuel 0) (not (in-bounds? r c (rows g) (cols g))) (member? (list r c dr dc) seen) (= (at out r c) 5))
out
(let* ((v (at out r c))
(nd (cond [(= v 3) (slash dr dc)]
[(= v 4) (backslash dr dc)]
[else (list dr dc)]))
(next-out (if (= v 0) (set-cell out r c 8) out)))
(loop next-out (+ r (first nd)) (+ c (second nd)) (first nd) (second nd) (cons (list r c dr dc) seen) (- fuel 1)))))))Provenance
- Generator
- generators/8029363f9cb7/generator.py
- Notes and decisions
- generators/8029363f9cb7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6a09172dbea66502b5f29d9e2311a0a702d586f8b06f0a4382e7beefa50928af
- Rule hash
- a08bfbc3cb49
- Sources
- bank:385e738e9e70
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8029363f9cb7 --count 1 --seed 20261108 --test 1