← 8dbffe99308f · 8dd7ace7de9a →
8dd23f285c61
A 7..16 by 9..16 zero-background grid contains 2..5 color-2 emitters and 1..4 disconnected color-5 wall components. Wall geometry varies between singleton/two-cell blockers and longer horizontal or vertical segments. Each emitter becomes color 8 and casts color-8 rays up, down, left, and right until the first color-5 wall cell or the grid edge.
invented primitive: ray_until_blocksame-size fillwall-bounded propagation
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 dirs4 (list (list -1 0) (list 1 0) (list 0 -1) (list 0 1))) (define (e5b-ray grid r c dr dc blockers include-start bounds) (let ((start-cells (if include-start (if (or (not bounds) (and (<= (first bounds) r) (<= r (third bounds)) (<= (second bounds) c) (<= c (fourth bounds)))) (list (list r c)) (list)) (list)))) (let loop ((rr (+ r dr)) (cc (+ c dc)) (acc start-cells)) (cond ((not (in-bounds? rr cc (rows grid) (cols grid))) acc) ((and bounds (not (and (<= (first bounds) rr) (<= rr (third bounds)) (<= (second bounds) cc) (<= cc (fourth bounds))))) acc) ((member? (at grid rr cc) blockers) acc) (else (loop (+ rr dr) (+ cc dc) (append acc (list (list rr cc))))))))) (for*/fold ((out g)) ((r (in-range (rows g))) (c (in-range (cols g)))) (if (= (at g r c) 2) (for/fold ((acc out)) ((d (in-list dirs4))) (paint-cells acc (filter (lambda (p) (not (= (at g (first p) (second p)) 5))) (e5b-ray g r c (first d) (second d) (list 5) #t #f)) 8)) out))))
Provenance
- Generator
- generators/8dd23f285c61/generator.py
- Notes and decisions
- generators/8dd23f285c61/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- da36673a235091edcc9dc1937da280c3d9edbf6c8ac6c2fa30d447bc89e71a9e
- Rule hash
- 346b3beb0ce3
- Sources
- bank:61554c4a7bfb
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 8dd23f285c61 --count 1 --seed 20261108 --test 1