← dee38d045bc9 · df0b5d094b2d →
defba1ab4f90
A non-corner red 2 marker on the top edge fires a stream downward; a left-edge marker is the transposed rightward case. On each blue 1 or green 3 bar, the stream slides above the bar and exits just beyond one end: blue turns to the stream's left hand and green to its right. Transposition flips chirality. Unhit length-3 bars are inert distractors.
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)
;; A red (2) edge marker fires a stream into the grid (down from a top marker, right from a
;; left-edge marker). Each bar it lands on STEERS it by color: blue (1) deflects the stream to
;; its own LEFT hand, green (3) to its RIGHT; it slides past the bar's end and flows on. A
;; left-edge task is solved as its transpose — transposing mirrors chirality, so blue's step
;; flips sign.
(define (flow gg blue-step)
(let* ((h (rows gg)) (w (cols gg))
(mk (first (find-color gg 2)))
(free? (lambda (r c) (and (>= c 0) (< c w) (zero? (at gg r c))))))
(let fall ((r (first mk)) (c (second mk)) (cells (list mk)))
(cond ((= r (- h 1)) (recolor-cells gg cells 2))
((free? (+ r 1) c) (fall (+ r 1) c (cons (list (+ r 1) c) cells)))
(else
(let* ((step (if (= (at gg (+ r 1) c) 1) blue-step (- blue-step))))
(let slide ((cc (+ c step)) (acc cells))
(if (free? (+ r 1) cc)
(fall (+ r 1) cc (cons (list (+ r 1) cc) (cons (list r cc) acc)))
(slide (+ cc step) (cons (list r cc) acc))))))))))
(let* ((mk (first (find-color g 2))))
(if (and (zero? (second mk)) (!= (first mk) 0))
(transpose (flow (transpose g) -1))
(flow g 1)))))Provenance
- Generator
- generators/defba1ab4f90/generator.py
- Notes and decisions
- generators/defba1ab4f90/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 4189136b4e863e70bf07ee2466d865493554544a72273e4f3918da61da7f7c26
- Rule hash
- c58d2da3a0e5
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate defba1ab4f90 --count 1 --seed 20261108 --test 1