← fb7f02aa9ab0 · fc41c9b3a565 →
fbf36c193fa6
A 16..23 by 16..23 zero-background grid contains one solid 3x3 cyan(8) square and 20..64 gray(5) obstacles. Red(2) rays leave the four square corners on the outward diagonals, stopping before a diagonal gray cell or before a diagonal cell pinched by gray cells on both inward orthogonal sides. Yellow(4) rays leave the corners in the clockwise-adjacent diagonal directions as alternating staircases: gray at the start suppresses the ray, gray on an intermediate step stops before it, and gray on the next diagonal cell preserves the intermediate step before stopping. Gray and cyan cells remain unchanged. Ordinary draws use open/mixed/mixed profiles with opposite mixed orientations and variable blocker depths, so every three-example lesson exposes free travel, all blocker branches, and a downward corner-pinch.
parametric family
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))
(sq (find-color g 8))
(r1 (apply min (map first sq)))
(r2 (apply max (map first sq)))
(c1 (apply min (map second sq)))
(c2 (apply max (map second sq)))
(grayset (find-color g 5))
(isgray? (lambda (r c) (and (member (list r c) grayset) #t)))
(inb? (lambda (r c) (and (>= r 0) (< r h) (>= c 0) (< c w))))
(redray (lambda (cr cc dr dc)
(let loop
((r (+ cr dr)) (c (+ cc dc)) (acc (list)))
(if (not (inb? r c))
acc
(if (isgray? r c)
acc
(if (and
(isgray? r (- c dc))
(isgray? (- r dr) c))
acc
(loop (+ r dr)
(+ c dc)
(cons (list r c) acc))))))))
(corners (list (list r1 c1 -1 -1)
(list r1 c2 -1 1)
(list r2 c1 1 -1)
(list r2 c2 1 1)))
(redcells (flatmap (lambda (cm)
(redray (first cm)
(second cm)
(third cm)
(fourth cm)))
corners))
(ycorners (list (list r1 c1 -1 1)
(list r1 c2 1 1)
(list r2 c2 1 -1)
(list r2 c1 -1 -1)))
(yellowray (lambda (cr cc dr dc)
(let* ((sr (+ cr dr))
(sc (+ cc dc)))
(if (or (not (inb? sr sc)) (isgray? sr sc))
(list)
(let ((startphase (if (< (* dr dc) 0) 0 1)))
(let loop
((ar sr) (ac sc)
(phase startphase)
(acc (list (list sr sc))))
(let* ((br (+ ar dr))
(bc (+ ac dc))
(pr (if (= phase 0) (+ ar dr) ar))
(pc (if (= phase 0) ac (+ ac dc))))
(if (not (inb? br bc))
acc
(if (or
(not (inb? pr pc))
(isgray? pr pc))
acc
(let ((acc2 (cons (list pr pc) acc)))
(if (isgray? br bc)
acc2
(loop br
bc
(if (= phase 0) 1 0)
(cons (list br bc) acc2)))))))))))))
(yellowcells (flatmap (lambda (cm)
(yellowray (first cm)
(second cm)
(third cm)
(fourth cm)))
ycorners))
(g1 (recolor-cells g redcells 2)))
(recolor-cells g1 yellowcells 4))))Provenance
- Generator
- generators/fbf36c193fa6/generator.py
- Notes and decisions
- generators/fbf36c193fa6/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b04b2ff18150208d0dabbe05a259dcdfd1aa4776df651aa44d8a671d2e68c334
- Rule hash
- df658022eba5
- Sources
- training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate fbf36c193fa6 --count 1 --seed 20261108 --test 1