← 0f26224a6da3 · 0f5fbe0de38e →
0f423424b1dc
Fill a vertical span only when its column has exactly two matching nonzero endpoints with zeros between; leave mismatched, blocked, and singleton columns 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! (let ((dummy 0)) (for/fold ((out g)) ((c (in-range (cols g)))) (let ((nz (filter (lambda (rv) (not (= (second rv) 0))) (for/list ((r (in-range (rows g)))) (list r (at g r c)))))) (if (and (= (length nz) 2) (= (second (first nz)) (second (second nz))) (all? (lambda (r) (= (at g r c) 0)) (range (+ (first (first nz)) 1) (first (second nz))))) (paint-cells out (map (lambda (r) (list r c)) (range (first (first nz)) (+ (first (second nz)) 1))) (second (first nz))) out)))))
Provenance
- Generator
- generators/0f423424b1dc/generator.py
- Notes and decisions
- generators/0f423424b1dc/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- bc41dfd17675af9b71ba310882da7d02dd02894c80c2b7948eaec2be0160c85d
- Rule hash
- 1e2581a2f271
- Sources
- bank:66491d778d88
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 0f423424b1dc --count 1 --seed 20261108 --test 1