← 72f0b65569a4 · 7355dc4aa5e5 →
733c1bac8c45
On a zero-background grid, process each row independently. Count its nonzero cells and rewrite the row as that many copies of the row's first nonzero color packed from column 0; empty rows remain empty.
countingrow_signature
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!
;; Each row collapses to a left-packed run of its FIRST non-zero color,
;; one cell per original non-zero.
(grid-from-fn h w (lambda (r c)
(let ((vals (filter (lambda (v) (!= v 0)) (row g r))))
(if (and (not (empty? vals)) (< c (length vals))) (first vals) 0)))))Provenance
- Generator
- generators/733c1bac8c45/generator.py
- Notes and decisions
- generators/733c1bac8c45/notes.md
- Review label
- reviewed_safe
- Generator SHA-256
- f26e0d57e48fd5913642f4d41bb15f9de6a02518c92131c20ecbdd15fc4e2a34
- Rule hash
- 816c15c8ae9f
- Sources
- bank:037ff40eee92
- Lesson seeds
- 20261108, 20261109, 20261110, 20261111, 20261112
- Reproduce lesson 1
arcpuzzles generate 733c1bac8c45 --count 1 --seed 20261108 --test 1