← 7515881f2786 · 75381adf158d →

751baf3d18b2

An alternating zero/nonzero top row is a column legend. Recolor each nonzero body cell under an active header to that header color; preserve zeros, the header row, and optional body cells under empty headers.

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!
 ;; Below the header row, non-zero cells take their COLUMN HEADER's color
 ;; (empty headers leave them unchanged).
 (grid-from-fn h w (lambda (r c)
   (let ((v (at g r c)) (header (at g 0 c)))
     (if (and (> r 0) (!= v 0) (!= header 0)) header v)))))

Provenance

Generator
generators/751baf3d18b2/generator.py
Notes and decisions
generators/751baf3d18b2/notes.md
Review label
reviewed_safe
Generator SHA-256
1a3026f70c78aca21160a5ccdfbe4e572510f06d301033c92570962c6d2d02a4
Rule hash
56d0892cc35d
Sources
bank:22a17f7a0399
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 751baf3d18b2 --count 1 --seed 20261108 --test 1