← 40dea3d45f2a · 410fb6b72f16 →

40e85135fbf8

Read row headers from column 0 and column headers from row 0, discard the header row/column, and build their colored equality matrix: output[r][c] is the shared nonzero header color when the two headers are equal, else 0.

parametric familymatrix constructionrow/column headerssize-changing output

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!
 ;; Drop the header row+column; an interior cell lights with the shared
 ;; header color when its ROW header equals its COLUMN header (non-zero).
 (grid-from-fn (- h 1) (- w 1) (lambda (r c)
   (let ((left (at g (+ r 1) 0)) (top (at g 0 (+ c 1))))
     (if (and (!= left 0) (= left top)) left 0)))))

Provenance

Generator
generators/40e85135fbf8/generator.py
Notes and decisions
generators/40e85135fbf8/notes.md
Review label
reviewed_safe
Generator SHA-256
2460492c695be301ea5c5d270802ed5f26922c21200550ede570e30c55382aa0
Rule hash
5d3d67439533
Sources
bank:ad4abc25f505
Lesson seeds
20261108, 20261109, 20261110, 20261111, 20261112
Reproduce lesson 1
arcpuzzles generate 40e85135fbf8 --count 1 --seed 20261108 --test 1