← 926c6bd137d3 · 92f4d4eb0dbb →
928c39acebe3
Trace the right-launched red(2) ray, paint every traversed cell cyan(8), reflect on slash(4) and backslash(5) mirrors, and stop before magenta(6).
mirrorsraytracesame_size
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 (turn-slash d) (cond ((equal? d (list 0 1)) (list -1 0)) ((equal? d (list -1 0)) (list 0 1)) ((equal? d (list 0 -1)) (list 1 0)) (else (list 0 -1)))) (define (turn-back d) (cond ((equal? d (list 0 1)) (list 1 0)) ((equal? d (list 1 0)) (list 0 1)) ((equal? d (list 0 -1)) (list -1 0)) (else (list 0 -1)))) (define (trace out start) (let loop ((r (first start)) (c (second start)) (d (list 0 1)) (acc out)) (let ((nr (+ r (first d))) (nc (+ c (second d)))) (if (not (in-bounds? nr nc (rows g) (cols g))) acc (let ((v (at g nr nc))) (if (or (= v 6) (= v 2)) acc (loop nr nc (cond ((= v 4) (turn-slash d)) ((= v 5) (turn-back d)) (else d)) (set-cell acc nr nc 8)))))))) (for/fold ((out (empty-grid (rows g) (cols g) 0))) ((em (in-list (find-color g 2)))) (trace out em))))
Provenance
- Generator
- generators/928c39acebe3/generator.py
- Notes and decisions
- generators/928c39acebe3/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- fab600af480571e33e42761999659614750de88c8f6f4ae7b783f17dac3fc3d1
- Rule hash
- 5e6d34fb1a87
- Sources
- bank:cedcb02251c0
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 928c39acebe3 --count 1 --seed 20261108 --test 1