← 1b9d8370e28b · 1ba9f2a08016 →
1b9e8a54331b
On a 0-background grid, isolated color-2 seeds emit horizontal color-7 rays and isolated color-1 seeds emit vertical color-8 rays. Color-5 line segments stop rays and remain gray; cells reached by both ray families become color 6. Ordinary draws constructively include both a crossing and a wall-stop witness.
invented primitive: ray_until_blockorientation by coloroverlap handling
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 (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))))))))) (let* ((hpaint (remove-duplicates (apply append (for*/list ((r (in-range (rows g))) (c (in-range (cols g))) #:when (= (at g r c) 2)) (append (e5b-ray g r c 0 1 (list 5) #t #f) (e5b-ray g r c 0 -1 (list 5) #f #f)))))) (vpaint (remove-duplicates (apply append (for*/list ((r (in-range (rows g))) (c (in-range (cols g))) #:when (= (at g r c) 1)) (append (e5b-ray g r c 1 0 (list 5) #t #f) (e5b-ray g r c -1 0 (list 5) #f #f))))))) (grid-from-fn (rows g) (cols g) (lambda (r c) (let ((p (list r c))) (cond ((= (at g r c) 5) 5) ((and (member? p hpaint) (member? p vpaint)) 6) ((member? p hpaint) 7) ((member? p vpaint) 8) (else 0))))))))
Provenance
- Generator
- generators/1b9e8a54331b/generator.py
- Notes and decisions
- generators/1b9e8a54331b/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6c473f114b9933795919e6cfdc01f60f9bfd54bfa73b03ff3d8454ebd128dae0
- Rule hash
- db20de981b4f
- Sources
- bank:61554c4a7bfb
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 1b9e8a54331b --count 1 --seed 20261108 --test 1