Documentation

CslibFrontier.Computability.Communication.Discrepancy.LinearThreshold

Discrepancy Bounds for Linear Threshold Gates and Majority-of-Threshold Circuits #

This module bounds the correlation of arbitrary real-weight linear threshold predicates with a two-party Boolean function g : X → Y → Bool in terms of the distributional discrepancy discrepancy ν g, and deduces a discriminator-lemma lower bound on the size of depth-2 majority-of-threshold circuits.

Sorting Alice's inputs X (of cardinality 2 ^ K) by her linear contribution reduces any separable real threshold predicate θ ≤ A x + B y to a K-bit integer comparison, whose indicator decomposes into K + 1 disjoint prefix-equality events. Expanding each equality in the Fourier basis splits its signed expectation into at most four combinatorial rectangles per Fourier character, yielding a (8 * K + 9) * discrepancy ν g correlation bound without weight rounding. Combining this with a uniform pointwise margin for Cslib.majority gives a general size lower bound for majority-of-threshold circuits.

The discriminator-lemma reduction from majority-of-threshold circuits to threshold-gate correlation follows Hajnal et al.; the (8 * K + 9) * discrepancy ν g bound for separable real linear threshold gates is proved via a self-contained Fourier-rectangle argument (in the spirit of Nisan's 1993 communication and discrepancy bounds for threshold gates).

Main results #

References #

theorem Cslib.Communication.abs_sum_mul_signVal_ltf_le {X : Type u_1} {Y : Type u_2} [Fintype X] [Fintype Y] {K : ℕ} (hcard : Fintype.card X = 2 ^ K) (ν : PMF (X × Y)) (g : X → Y → Bool) (A : X → ℝ) (B : Y → ℝ) (θ : ℝ) :
|∑ x : X, ∑ y : Y, (ν (x, y)).toReal * BitString.signVal (g x y) * BitString.signVal (decide (θ ≤ A x + B y))| ≤ (8 * ↑K + 9) * discrepancy ν g

Linear-threshold correlation bound via discrepancy: for finite X, Y with |X| = 2 ^ K, any distribution ν on X × Y, any g : X → Y → Bool, and any separable real linear threshold predicate θ ≤ A x + B y, |𝔼_ν[g(x, y) * signVal (decide (θ ≤ A x + B y))]| ≤ (8 * K + 9) * discrepancy ν g.

Pointwise margin for Cslib.majority: for every S : ℕ (even, odd, or zero) and every v : BitString S, 1 / 2 ≤ signVal (Cslib.majority S v) * ((∑ k, signVal (v k)) - 1 / 2).

theorem Cslib.Communication.one_le_majOfLtf_size_mul_discrepancy {mA mB S : ℕ} (g : BitString mA → BitString mB → Bool) (weights : Fin S → Fin (mA + mB) → ℝ) (thresholds : Fin S → ℝ) (hC : ∀ (u : BitString (mA + mB)), (majority S fun (k : Fin S) => Circuits.Boolean.WeightedThreshold.ltfEval (weights k) (thresholds k) u) = g (fun (i : Fin mA) => u (Fin.castAdd mB i)) fun (j : Fin mB) => u (Fin.natAdd mA j)) (ν : PMF (BitString mA × BitString mB)) :
1 ≤ (1 + 2 * ↑S * (8 * ↑mA + 9)) * discrepancy ν g

Discriminator-lemma lower bound for majority-of-threshold circuits: if a majority of S real-weight linear threshold gates on mA + mB bits computes g on BitString mA × BitString mB, then for every distribution ν, 1 ≤ (1 + 2 * S * (8 * mA + 9)) * discrepancy ν g.