← 2a5919c40197 · 2a928a0f8378 →
2a6aac780e6d
Fill every row that has exactly two separated, same-color nonzero endpoints; preserve blank and nonqualifying rows.
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! (let ((dummy 0)) (for/fold ((out g)) ((r (in-range (rows g)))) (let ((nz (filter (lambda (cv) (not (= (second cv) 0))) (map (lambda (c) (list c (at g r c))) (range (cols g)))))) (if (and (= (length nz) 2) (= (second (first nz)) (second (second nz))) (all? (lambda (c) (= (at g r c) 0)) (range (+ (first (first nz)) 1) (first (second nz))))) (paint-cells out (map (lambda (c) (list r c)) (range (first (first nz)) (+ (first (second nz)) 1))) (second (first nz))) out)))))
Provenance
- Generator
- generators/2a6aac780e6d/generator.py
- Notes and decisions
- generators/2a6aac780e6d/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- 6af986271b699d9e54a7673769f18a3f9185365b1053c941e13a22d08fc513bc
- Rule hash
- 4f90f10302a9
- Sources
- bank:391ca7d21fbe
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 2a6aac780e6d --count 1 --seed 20261108 --test 1