← 4fd85612056f · 501c7f0770eb →

5000bcb83fa9

Place 3-5 distinct-color horizontal runs of odd length 1, 3, or 5 on separate rows of a zero-background grid. Reduce every run to its unique central cell, preserving that cell's color and position.

rowsrun_logicsame_size

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 (empty-grid (rows g) (cols g) 0))) ((r (in-range (rows g)))) (let loop ((c 0) (acc out)) (if (>= c (cols g)) acc (let ((v (at g r c))) (if (= v 0) (loop (+ c 1) acc) (let ((end (let find-end ((cc c)) (if (and (< cc (cols g)) (= (at g r cc) v)) (find-end (+ cc 1)) cc)))) (loop end (if (= (modulo (- end c) 2) 1) (set-cell acc r (+ c (quotient (- end c) 2)) v) acc))))))))))

Provenance

Generator
generators/5000bcb83fa9/generator.py
Notes and decisions
generators/5000bcb83fa9/notes.md
Review label
reviewed_safe
Generator SHA-256
147ccd0e4a3b449adb2c59ac663083715b1dee85ad1d9009e3a76177ea06b7aa
Rule hash
2b45ada2fe3e
Sources
bank:cedcb02251c0
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 5000bcb83fa9 --count 1 --seed 20261108 --test 1