Documentation

CslibFrontier.Computability.Communication.NOF.GeneralizedInnerProduct

The generalized inner product #

The generalized inner product of k strings x i of n bits, one on each player's forehead, is the parity of the number of positions at which all the strings have a 1: GIP(x) = ⊕_r ∧_i x i r (NOF.gip). With two players it is the inner product modulo two (NOF.gip_fin_two).

Babai, Nisan and Szegedy [BNS92] proved an Ω(n / 4 ^ k) lower bound for it by discrepancy, which holds for protocols with public coins and constant error below 1 / 2 Jukna, Section 5.6. We follow the cube-bound proof (CslibFrontier.Computability.Communication.NOF.Cube). Over the corners of a cube spanned by a and b, the generalized inner product adds up to its value at a + b. This follows from the distributive law ∏ i, (b i + a i) = ∑ S, ∏_{i ∈ S} b i ∏_{i ∉ S} a i in the two-element Boolean ring. So the cube expectation of GIP equals its bias 𝔼 (-1) ^ GIP (NOF.cubeExpectation_gip). By independence of the positions, the bias is (1 - 2 / 2 ^ k) ^ n (NOF.expect_signVal_gip), so disc(GIP) ^ (2 ^ k) ≤ (1 - 2 / 2 ^ k) ^ n under the uniform distribution (NOF.discrepancy_gip_pow_le). With the discrepancy bound and 1 - x ≤ exp (-x), a public-coin protocol with error 1 / 2 - γ sending c bits has (2 γ) ^ (2 ^ k) ≤ 2 ^ (c 2 ^ k) (1 - 2 / 2 ^ k) ^ n (NOF.PublicCoin.pow_le_of_ecomplexityFun_gip_le). For error 1 / 3 this gives 2 n < 4 ^ k (c + 2) (NOF.PublicCoin.two_mul_lt_four_pow_mul_of_ecomplexityFun_gip_le), and deterministic protocols give 2 n ≤ 4 ^ k c (NOF.Protocol.two_mul_le_four_pow_mul_of_ecomplexityFun_gip_le).

With one player the bias is 0 for n ≥ 1, so no protocol beats error 1 / 2. That player sees nothing.

Main definitions #

Main results #

References #

def Cslib.Communication.NOF.gip {ι : Type u} [Fintype ι] {n : ℕ} (x : ι → BitString n) :

The generalized inner product of k strings of n bits held by the players ι: the parity of the number of positions r at which every string has a 1, ⊕_r ∧_i x i r, computed in the two-element Boolean ring.

theorem Cslib.Communication.NOF.gip_fin_two {n : ℕ} (x : Fin 2 → BitString n) :
gip x = x 0 ⬝ᵥ x 1

With two players, the generalized inner product is the inner product modulo two.

The cube expectation of the generalized inner product is its bias: over the corners of a cube, the generalized inner product adds up to its value at a + b, by the distributive law ∏ i, (b i + a i) = ∑ S, ∏_{i ∈ S} b i ∏_{i ∉ S} a i in the Boolean ring, and a + b is uniform.

theorem Cslib.Communication.NOF.expect_signVal_gip {ι : Type u_1} [Fintype ι] [DecidableEq ι] (n : ℕ) :
(Finset.univ.expect fun (c : ι → BitString n) => BitString.signVal (gip c)) = (1 - 2 / 2 ^ Fintype.card ι) ^ n

The bias of the generalized inner product of k strings of n bits is (1 - 2 / 2 ^ k) ^ n: the positions are independent, and at each the bits of the players are all 1 with probability 2 ^ (-k).

The discrepancy of the generalized inner product under the uniform distribution: disc(GIP) ^ (2 ^ k) ≤ (1 - 2 / 2 ^ k) ^ n for k ≥ 1 players holding n bits each, by the cube bound.

theorem Cslib.Communication.NOF.two_mul_le_of_pow_le {k n c : ℕ} (hk : k ≠ 0) {A m : ℝ} (hA : 0 < A) (hAm : A⁻¹ ≤ Real.exp m) (h : A ^ 2 ^ k ≤ 2 ^ (c * 2 ^ k) * (1 - 2 / 2 ^ k) ^ n) :
2 * ↑n ≤ 4 ^ k * (↑c + m)

From a bound A ^ (2 ^ k) ≤ 2 ^ (c 2 ^ k) (1 - 2 / 2 ^ k) ^ n with A⁻¹ ≤ exp m, using 1 - x ≤ exp (-x): 2 n ≤ 4 ^ k (c + m).

theorem Cslib.Communication.NOF.two_mul_le_four_pow_mul_of_cube_discrepancy {k n c : ℕ} (hk : k ≠ 0) {D : ℝ} (h1 : 1 ≤ 2 ^ c * D) (hcube : D ^ 2 ^ k ≤ (1 - 2 / 2 ^ k) ^ n) :
2 * n ≤ 4 ^ k * c

Deterministic cube-discrepancy trade-off: from 1 ≤ 2 ^ c * D and D ^ (2 ^ k) ≤ (1 - 2 / 2 ^ k) ^ n (k ≠ 0), deduce 2 * n ≤ 4 ^ k * c.

theorem Cslib.Communication.NOF.PublicCoin.pow_le_of_ecomplexityFun_gip_le {ι : Type u_1} [Fintype ι] [Nonempty ι] {n c : ℕ} {γ : ℝ} (hγ : 0 ≤ γ) (h : ecomplexityFun (1 / 2 - γ) gip ≤ ↑c) :
(2 * γ) ^ 2 ^ Fintype.card ι ≤ 2 ^ (c * 2 ^ Fintype.card ι) * (1 - 2 / 2 ^ Fintype.card ι) ^ n

Randomized protocols for the generalized inner product: if k ≥ 1 players holding n bits each compute the generalized inner product by a public-coin NOF protocol with error at most 1 / 2 - γ, for γ ≥ 0, sending at most c bits, then (2 γ) ^ (2 ^ k) ≤ 2 ^ (c 2 ^ k) (1 - 2 / 2 ^ k) ^ n.

Babai–Nisan–Szegedy lower bound for the generalized inner product [BNS92]: public-coin NOF protocols of k ≥ 1 players holding n bits each that compute the generalized inner product with error at most 1 / 3, sending at most c bits, have 2 n < 4 ^ k (c + 2): R_{1/3}(GIP) = Ω(n / 4 ^ k). The proof gives 2 n ≤ 4 ^ k (c + 3 / 2), from 3 ≤ exp (3 / 2).

Deterministic protocols for the generalized inner product: a deterministic NOF protocol of k ≥ 1 players holding n bits each computing the generalized inner product exactly, sending at most c bits, has 2 n ≤ 4 ^ k c. This cannot be strict: with n = 0 the function is constant and c = 0.