Documentation

CslibFrontier.Computability.Communication.NOF.Cube

The cube bound on multiparty discrepancy #

Two inputs a, b : ∀ i, X i span a cube with 2 ^ k corners S.piecewise b a, for S a set of players: the input that agrees with b on the players of S and with a on the others. The cube expectation E(f) of f : (∀ i, X i) → Bool is the average over independent uniform a and b of the product of the signs (-1) ^ f at the corners (NOF.cubeExpectation). The cube bound says that with k ≥ 1 players the discrepancy of f under the uniform distribution satisfies disc(f) ^ (2 ^ k) ≤ E(f) (NOF.discrepancy_uniformOfFintype_pow_le). This is the BNS–Chung criterion BabaiNisanSzegedy1992, in the proof of Raz [Raz00]; see also Jukna, Section 5.6. So to bound the discrepancy, and with it the communication complexity of f (NOF.PublicCoin.two_mul_le_two_pow_mul_discrepancy), it suffices to compute the cube expectation.

The proof is k applications of the Cauchy–Schwarz inequality, one per player (NOF.pow_expect_mul_prod_le). A cylinder intersection's indicator is the product over players i of a function g i of what player i sees, so g i does not depend on x i. Resampling x i (Fintype.expect_expect_update_pi) and applying Cauchy–Schwarz removes g i at the cost of squaring, and duplicates x i into the two coordinates a i, b i of the cube.

Main definitions #

Main results #

References #

theorem Cslib.Communication.NOF.pow_expect_mul_prod_le {ι : Type u} {X : ι → Type v} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (X i)] (T : Finset ι) (F : ((i : ι) → X i) → ℝ) (g : ι → ((i : ι) → X i) → ℝ) (hg : ∀ i ∈ T, ∀ (x : (a : ι) → X a) (e : X i), g i (Function.update x i e) = g i x) (hg1 : ∀ i ∈ T, ∀ (x : (i : ι) → X i), |g i x| ≤ 1) :
(Finset.univ.expect fun (x : (i : ι) → X i) => F x * ∏ i ∈ T, g i x) ^ 2 ^ T.card ≤ Finset.univ.expect fun (a : (i : ι) → X i) => Finset.univ.expect fun (b : (i : ι) → X i) => ∏ S ∈ T.powerset, F (S.piecewise b a)

The cube lemma: the correlation of F with a product of bounded functions g i, each not depending on x i, over the players i ∈ T, is controlled by the averages of products of F over the 2 ^ |T| corners S.piecewise b a, S ⊆ T, of a random cube.

noncomputable def Cslib.Communication.NOF.cubeExpectation {ι : Type u} {X : ι → Type v} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (X i)] (f : ((i : ι) → X i) → Bool) :

The cube expectation of f : (∀ i, X i) → Bool: the average, over two independent uniform inputs a and b, of the product of the signs (-1) ^ f at the 2 ^ k corners S.piecewise b a of the cube they span (taking b i for i ∈ S and a i otherwise).

theorem Cslib.Communication.NOF.discrepancy_uniformOfFintype_pow_le {ι : Type u} {X : ι → Type v} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (X i)] [Nonempty ι] [∀ (i : ι), Nonempty (X i)] (f : ((i : ι) → X i) → Bool) :

The cube bound, the BNS–Chung criterion BabaiNisanSzegedy1992 in the proof of Raz [Raz00]: with at least one player, the discrepancy of f under the uniform distribution satisfies disc(f) ^ (2 ^ k) ≤ E(f), for k the number of players and E(f) the cube expectation. With no players the only cylinder intersection is the set of all inputs, and the bound fails for the constant true.