← 27b865c5f43a · 27f5eba1051c →
27bc4c66eed7
A 5-7 by 7-10 zero-background grid contains 2-5 maximal horizontal monochrome runs. Runs can share a row or a color; lengths cover 1-5, including singleton and even runs. On a fresh zero grid, replace every run independently by one same-colored cell at start + length // 2 (the right-middle cell for even lengths).
rowsrunssame_sizeselection
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))
(define (paint-runs r)
(let loop ([c 0] [out (empty-grid (rows g) (cols g) 0)])
(cond [(>= c (cols g)) out]
[(= (at g r c) 0) (loop (+ c 1) out)]
[else
(let* ((color (at g r c))
(end (let find-end ([cc c])
(if (and (< cc (cols g)) (= (at g r cc) color))
(find-end (+ cc 1))
(- cc 1))))
(mid (+ c (quotient (+ (- end c) 1) 2))))
(loop (+ end 1) (set-cell out r mid color)))])))
(for/fold ([out (empty-grid (rows g) (cols g) 0)]) ([r (in-range (rows g))])
(for*/fold ([acc out])
([c (in-range (cols g))])
(let ((v (at (paint-runs r) r c)))
(if (not (= v 0)) (set-cell acc r c v) acc))))))Provenance
- Generator
- generators/27bc4c66eed7/generator.py
- Notes and decisions
- generators/27bc4c66eed7/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- b6dee800cf7404169e351298da0408f08477071d2d18aa8210e0da67575a9d78
- Rule hash
- a6711bc4802c
- Sources
- bank:a54e1d9e1d4b
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 27bc4c66eed7 --count 1 --seed 20261108 --test 1