NLA-lib Explorer

NLAlib.sum_walshHadamard_apply

Library · theorem

Character sums: a row of the Walsh–Hadamard matrix sums to 2^\mathbf{b} for the zero string and to 0 otherwise.

NLAlib.sum_walshHadamard_apply.{u_1} {R : Type u_1} [Ring R] {b : ℕ} (x : Fin b → ZMod 2) :
  ∑ y, walshHadamard R b x y = if x = 0 then 2 ^ b else 0

Full source on GitHub

Import NLAlib.Matrix.Structured.Walsh.