The finite exponential correlation bound #
Applying the agreement estimate to p and p + 1 bounds both signs of the
correlation. The error is the kth power of a single-block middle-band fraction.
theorem
Complexity.BooleanAnalysis.PolynomialCorrelation.Internal.correlation_finite_bound
{k m d : ℕ}
(p : MvPolynomial (Fin k × Fin (2 * m + 1)) (ZMod 2))
(hp : p.totalDegree ≤ d)
:
correlation (polynomialEval p) xorMajority ≤ (↑(Nat.card (ExceptionalAtom m d)) / 2 ^ (2 * m + 1)) ^ k