← e5477d32d98b · e58027e9749f →
e5525362bfb8
On a black grid, identify complete color-3 cardinal plus centers. Connect every diagonal-aligned pair, painting only intervening zero cells red (2). Inputs include two-plus pairs, three-plus collinear/bent/skipped-pair scenes, and five-plus crossing networks with green arms on both bridges. A three-demonstration curriculum retains a compound witness under each single-query rotation. The canonical Racket authority is unchanged.
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* ((centers (filter
(lambda (rc)
(let* ((r (fst rc)) (c (snd rc)) (h (rows g)) (w (cols g)))
(and (in-bounds? (- r 1) c h w)
(in-bounds? (+ r 1) c h w)
(in-bounds? r (- c 1) h w)
(in-bounds? r (+ c 1) h w)
(= 3 (at g (- r 1) c))
(= 3 (at g (+ r 1) c))
(= 3 (at g r (- c 1)))
(= 3 (at g r (+ c 1))))))
(find-color g 3)))
(n (length centers))
(pairs (flatmap
(lambda (i)
(map (lambda (j) (list (nth centers i) (nth centers j)))
(range (+ i 1) n)))
(range 0 n))))
(foldl
(lambda (pr acc)
(let* ((a (first pr)) (b (second pr))
(ar (fst a)) (ac (snd a))
(br (fst b)) (bc (snd b))
(dr (- br ar)) (dc (- bc ac)))
(if (and (!= dr 0) (= (abs dr) (abs dc)))
(let ((sr (if (> dr 0) 1 -1))
(sc (if (> dc 0) 1 -1)))
(foldl
(lambda (k a2)
(let ((r (+ ar (* k sr))) (c (+ ac (* k sc))))
(if (zero? (at a2 r c)) (set-cell a2 r c 2) a2)))
acc
(range 1 (abs dr))))
acc)))
g
pairs))))Provenance
- Generator
- generators/e5525362bfb8/generator.py
- Notes and decisions
- generators/e5525362bfb8/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 8881324e04e919f61e7c329bc6c9df4afeca1863ce095ad4d7f834b1eddddad2
- Rule hash
- 7aef5b5cd6e6
- Sources
- custom
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate e5525362bfb8 --count 1 --seed 20261108 --test 1