← 72a6d8b343e4 · 72c77addd109 →
72b99d3a9be8
A 12..22 square or rectangular zero-background grid contains a diagonal color-1 seed. Extend the seed in both directions. Color-2 line walls reflect the path according to their input-measured orientation; color-3 segments are pass-through distractors. Ordinary draws exercise both true horizontal and true vertical reflection branches.
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)))
(begin
(define (in-b r c) (and (>= r 0) (< r h) (>= c 0) (< c w)))
(define ones (find-color g 1))
(define p1 (first ones))
(define p2
(find (lambda (p)
(and
(!= p p1)
(= 1 (abs (- (first p) (first p1))))
(= 1 (abs (- (second p) (second p1))))))
ones))
(define dir
(if p2
(list (- (first p2) (first p1)) (- (second p2) (second p1)))
(list 1 1)))
(define (wall-orient r c)
(let ((up (and (in-b (- r 1) c) (= (at g (- r 1) c) 2)))
(dn (and (in-b (+ r 1) c) (= (at g (+ r 1) c) 2))))
(if (or up dn) 'vertical 'horizontal)))
(define max-steps (* h w 4))
(define (walk gg r c dr dc fuel)
(if (<= fuel 0)
gg
(let ((nr (+ r dr))
(nc (+ c dc)))
(cond
((not (in-b nr nc)) gg)
((= (at g nr nc) 2) (let* ((orient (wall-orient nr nc))
(ndr (if (= orient 'horizontal) (- dr) dr))
(ndc (if (= orient 'vertical) (- dc) dc)))
(walk gg r c ndr ndc (- fuel 1))))
(else (walk (set-cell gg nr nc 1) nr nc dr dc (- fuel 1)))))))
(define sorted-by-row (sort-by ones (lambda (p) (first p))))
(define start-bwd (first sorted-by-row))
(define start-fwd (nth sorted-by-row (- (length sorted-by-row) 1)))
(define after-fwd
(walk g
(first start-fwd)
(second start-fwd)
(first dir)
(second dir)
max-steps))
(walk after-fwd
(first start-bwd)
(second start-bwd)
(- 0 (first dir))
(- 0 (second dir))
max-steps)))))Provenance
- Generator
- generators/72b99d3a9be8/generator.py
- Notes and decisions
- generators/72b99d3a9be8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 8606ad55de7e4cb48657589b1aa557c93e034d8ad00ee325b368e787a9b44fb5
- Rule hash
- dbb1ccf4e193
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 72b99d3a9be8 --count 1 --seed 20261108 --test 1