← f0f02eb1d2e0 · f112ec4615da →
f0f2806877da
Decode five gap-separated binary pieces as straight, left, or right moves and trace their two-cell steps from (1,3) in a fixed 8x7 output, with path color 2 and start marker 3.
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)))
(let* ((is-gap (lambda (c) (and (zero? (at g 0 c)) (zero? (at g 1 c)))))
(pieces-starts (filter (lambda (c)
(and
(not (is-gap c))
(or (zero? c) (is-gap (- c 1)))))
(range 0 w)))
(pieces-ends (filter (lambda (c)
(and
(not (is-gap c))
(or (= c (- w 1)) (is-gap (+ c 1)))))
(range 0 w)))
(pieces (map (lambda (i)
(list (nth pieces-starts i) (nth pieces-ends i)))
(range 0 (length pieces-starts))))
(piece-type (lambda (p)
(let ((s (first p))
(e (second p)))
(if (= s e) 0 (if (zero? (at g 0 s)) 1 2)))))
(types (map piece-type pieces))
(trace (reduce (lambda (state t)
(let ((cells (first state))
(row (second state))
(cur (third state)))
(cond
((zero? t) (list (append cells
(list (list row cur)
(list (+ row 1) cur)))
(+ row 2)
cur))
((= t 1) (list (append cells
(list (list row (- cur 1))
(list row cur)))
(+ row 1)
(- cur 1)))
(else (list (append cells
(list (list row cur)
(list row (+ cur 1))))
(+ row 1)
(+ cur 1))))))
(list (list) 1 3)
types))
(all-cells (first trace)))
(build-grid 8
7
(r c)
(cond
((and (zero? r) (= c 3)) 3)
((member? (list r c) all-cells) 2)
(else 0)))))))Provenance
- Generator
- generators/f0f2806877da/generator.py
- Notes and decisions
- generators/f0f2806877da/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 841286382091b40d7b521dd15fdcfb8a7d24cacccbb816aea476038cc82c0ad5
- Rule hash
- a194cd8aacd2
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate f0f2806877da --count 1 --seed 20261108 --test 1