The mod-2 inner product of two n-bit vectors: it is true exactly when the number
of coordinates where both inputs are true is odd.
Equations
- CommunicationComplexity.Functions.InnerProduct.innerProduct n x y = ∑ i : Fin n, (x i && y i)
Instances For
@[simp]
theorem
CommunicationComplexity.Functions.InnerProduct.innerProduct_zero_right
{n : ℕ}
(x : BoolInput n)
:
Coordinatewise xor of two Boolean inputs.
Equations
- CommunicationComplexity.Functions.InnerProduct.xorInput y z i = (y i ^^ z i)
Instances For
theorem
CommunicationComplexity.Functions.InnerProduct.abs_discrepancy_le_of_isRectangle
{n : ℕ}
(R : Set (BoolInput n × BoolInput n))
(hR : Rectangle.IsRectangle R)
:
Every rectangle has discrepancy at most 2^{-n/2} for the inner product function over the
uniform distribution on BoolInput n × BoolInput n.