← 443eebb271d9 · 44756e464c2d →
44690b1b635f
BFS-fill reachable zero cells around a singleton marker with alternating marker colors; wall 8 blocks traversal.
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 marker-cells (positions-of g (lambda (v) (and (!= v 0) (!= v 8)))))
(define marker-colors
(remove-duplicates (map (lambda (p) (at g (first p) (second p)))
marker-cells)))
(define (color-count col)
(count-if (lambda (p) (= (at g (first p) (second p)) col)) marker-cells))
(define center-color
(find-first (lambda (col) (= (color-count col) 1)) marker-colors))
(define arm-color
(find-first (lambda (col) (!= col center-color)) marker-colors))
(define start (first (positions-of g (lambda (v) (= v center-color)))))
(define (seen-pos? r c seen)
(for/or ((e seen)) (and (= (first e) r) (= (second e) c))))
(define visited
(let loop
((frontier (list (list (first start) (second start) 0))) (seen (list (list (first start) (second start) 0))))
(if (empty? frontier)
seen
(let* ((e (first frontier))
(r (first e))
(c (second e))
(d (third e))
(new (filter identity
(map (lambda (delta)
(let ((nr (+ r (first delta)))
(nc (+ c (second delta))))
(and
(and
(in-bounds? nr nc h w)
(!= (at g nr nc) 8)
(not (seen-pos? nr nc seen)))
(list nr nc (+ d 1)))))
cardinal-deltas))))
(loop (append (rest frontier) new) (append seen new))))))
(define (entry-at r c)
(find-first (lambda (e) (and (= (first e) r) (= (second e) c))) visited))
(cellmap g
(r c v)
(let ((e (entry-at r c)))
(if (and e (zero? v))
(if (zero? (modulo (third e) 2)) center-color arm-color)
v)))))))Provenance
- Generator
- generators/44690b1b635f/generator.py
- Notes and decisions
- generators/44690b1b635f/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- bb35eded97d3630896e16b409b8c80dd6f5b7439aa2c00f6f08302740db18356
- Rule hash
- 72a0e00e932b
- Sources
- augmented, training
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 44690b1b635f --count 1 --seed 20261108 --test 1