The Boolean inner product of bit lists #
Cslib.BitString.listDot x r is the parity of the positions where both lists have a true bit,
the inner product ⟨x, r⟩ over 𝔽₂ computed by Goldreich–Levin, Boolean Gaussian elimination
and small-bias checks. Bits beyond the shorter list are ignored. On n-bit strings it agrees with
the dot product x ⬝ᵥ r.
Main definitions #
Cslib.BitString.listDot: the inner product of two bit lists.
Main results #
Cslib.BitString.listDot_ofFn: on finite bit strings,listDotis the dot product⬝ᵥ.
The inner product over 𝔽₂ of two bit lists: the parity of the positions where both are
true. Bits beyond the shorter list are ignored.