Documentation

CslibFrontier.Computability.Communication.PaturiSimon

The Paturi–Simon theorem #

The unbounded-error communication complexity of a Boolean function f on finite sets is determined, up to an additive constant, by the sign-rank of f Paturi and Simon: in the form of Sherstov and Wu, Theorem 2.16, log rk±(f) ≤ UPP(f) ≤ log rk±(f) + 2. Here ⌈log₂ (signRank f)⌉ ≤ uppComplexityFun f ≤ ⌊log₂ (signRank f)⌋ + 2 (PrivateCoin.clog_signRank_le_uppComplexityFun_le).

Lower bound. For a private-coin protocol, the number of random strings (s, t) on which it reaches a leaf factors as a product of a count depending on Alice's input and one depending on Bob's. Hence the signed vote ∑ s, ∑ t, ±1 of the protocol is a matrix of rank at most the number of leaves (Protocol.rank_sum_comp_run_le), and when the error is less than 1 / 2 it sign-represents f (PrivateCoin.errorProb_lt_half_iff). So a protocol of depth d has signRank f ≤ 2 ^ d (PrivateCoin.signRank_le_leafCount, PrivateCoin.clog_signRank_le_uppComplexityFun). Moreover, because the output at each leaf is fixed by the transcript, every subtree of depth at most one depends on at most one player and contributes a matrix of rank at most one, sharpening the rank bound to 2 ^ (d - 1) (Protocol.rank_sum_comp_run_le_two_pow_sub_one) and giving ⌈log₂ (signRank f)⌉ + 1 ≤ uppComplexityFun f whenever 2 ≤ signRank f (PrivateCoin.clog_signRank_add_one_le_depth, PrivateCoin.clog_signRank_add_one_le_uppComplexityFun). The lower bounds need only Bob's inputs to be finite.

Upper bound. Take an integer sign-representation U * V through r = signRank f dimensions (exists_int_mul_signRepresents). Alice draws an index from Option (Fin r) with dyadic probabilities affine in her row of U, and sends it in ⌈log₂ (r + 1)⌉ bits; Bob answers true with a dyadic probability affine in his column of V. The bias of the answer is a positive multiple of (U * V) x y, so it has the right sign (PrivateCoin.exists_solvesUnbounded_depth_le, PrivateCoin.uppComplexityFun_le_log_signRank_add_two). All probabilities are dyadic, so finitely many private random bits suffice; the lower bound holds for any finite number of them.

As a consequence equality on a finite set X, which needs ⌈log₂ |X|⌉ + 1 bits deterministically when |X| ≥ 2 (ecomplexityFun_equality), needs at most three with unbounded error (PrivateCoin.uppComplexityFun_equality_le_three), and on three or more inputs it costs three bits (PrivateCoin.uppComplexityFun_equality_eq_three).

The cost model is that of PrivateCoin: the depth of the protocol tree, with the output at the leaves known to both players and private random strings of finite, unbounded length. Sherstov and Wu allow unlimited private random bits and let Bob output locally without sending the final bit; the bounds proved here are stated for leaf-output protocols with finitely many random bits.

Main results #

References #

theorem Cslib.Communication.Protocol.rank_sum_comp_run_le {X : Type u_1} {Y : Type u_2} {X' : Type u_3} {Y' : Type u_4} {Z : Type u_5} {S : Type u_6} {T : Type u_7} [Fintype S] [Fintype T] [Finite Y] (p : Protocol X' Y' Z) (α : X → S → X') (β : Y → T → Y') (g : Z → ℝ) :
(Matrix.of fun (x : X) (y : Y) => ∑ s : S, ∑ t : T, g (p.run (α x s) (β y t))).rank ≤ p.leafCount

The rank bound for averaged protocols. For a protocol p, finite sets S and T of random choices, maps α and β into Alice's and Bob's inputs and a relabelling g of the outputs, the matrix with entry ∑ s, ∑ t, g (p.run (α x s) (β y t)) at x and y has rank at most the number of leaves of p: on each leaf rectangle the sum factors as the number of s with α x s on Alice's side times the number of t with β y t on Bob's side.

theorem Cslib.Communication.Protocol.rank_sum_comp_run_le_two_pow_sub_one {X : Type u_1} {Y : Type u_2} {X' : Type u_3} {Y' : Type u_4} {Z : Type u_5} {S : Type u_6} {T : Type u_7} [Fintype S] [Fintype T] [Finite Y] (p : Protocol X' Y' Z) (α : X → S → X') (β : Y → T → Y') (g : Z → ℝ) :
(Matrix.of fun (x : X) (y : Y) => ∑ s : S, ∑ t : T, g (p.run (α x s) (β y t))).rank ≤ 2 ^ (p.depth - 1)

For a leaf-output protocol p, finite sets S and T of random choices, maps α and β into Alice's and Bob's inputs and a relabelling g of the outputs, the matrix with entry ∑ s, ∑ t, g (p.run (α x s) (β y t)) at x and y has rank at most 2 ^ (p.depth - 1): every subtree of depth at most one depends on at most one player, so it contributes a matrix of rank at most one.

theorem Cslib.Communication.PrivateCoin.signMatrix_mul_sum {X : Type u_1} {Y : Type u_2} {a b : ℕ} (P : PrivateCoin a b X Y Bool) (f : X → Y → Bool) (x : X) (y : Y) :
signMatrix ℝ f x y * ∑ s : BitString a, ∑ t : BitString b, BitString.signVal (Protocol.run P (x, s) (y, t)) = 2 ^ a * 2 ^ b * (1 - 2 * P.errorProb (fun (x : X) (y : Y) (z : Bool) => f x y = z) x y)

The bias identity. For a private-coin protocol computing a Boolean value, the number of random strings on which it answers false, minus the number on which it answers true, multiplied by the sign of f x y, is 2 ^ a * 2 ^ b * (1 - 2 * errorProb).

theorem Cslib.Communication.PrivateCoin.errorProb_lt_half_iff {X : Type u_1} {Y : Type u_2} {a b : ℕ} (P : PrivateCoin a b X Y Bool) (f : X → Y → Bool) (x : X) (y : Y) :
P.errorProb (fun (x : X) (y : Y) (z : Bool) => f x y = z) x y < 1 / 2 ↔ 0 < signMatrix ℝ f x y * ∑ s : BitString a, ∑ t : BitString b, BitString.signVal (Protocol.run P (x, s) (y, t))

A private-coin protocol for f has error less than 1 / 2 on x and y exactly when its signed vote ∑ s, ∑ t, ±1 has the sign of signMatrix ℝ f x y.

theorem Cslib.Communication.PrivateCoin.signRank_le_leafCount {X : Type u_1} {Y : Type u_2} {a b : ℕ} [Finite Y] {f : X → Y → Bool} (P : PrivateCoin a b X Y Bool) (hP : P.SolvesUnbounded (fun (x : X) (y : Y) (z : Bool) => f x y = z) Set.univ Set.univ) :

Paturi–Simon, lower bound (leaf form). A private-coin protocol computing f with unbounded error has at least signRank f leaves: the signed votes form a matrix that sign-represents f and has rank at most the number of leaves (Protocol.rank_sum_comp_run_le).

theorem Cslib.Communication.PrivateCoin.clog_signRank_le_depth {X : Type u_1} {Y : Type u_2} {a b : ℕ} [Finite Y] {f : X → Y → Bool} (P : PrivateCoin a b X Y Bool) (hP : P.SolvesUnbounded (fun (x : X) (y : Y) (z : Bool) => f x y = z) Set.univ Set.univ) :

A private-coin protocol computing f with unbounded error sends at least ⌈log₂ (signRank f)⌉ bits.

Paturi–Simon, lower bound: the unbounded-error complexity of f is at least ⌈log₂ (signRank f)⌉ Sherstov and Wu, Theorem 2.16.

theorem Cslib.Communication.PrivateCoin.clog_signRank_add_one_le_depth {X : Type u_1} {Y : Type u_2} {a b : ℕ} [Finite Y] {f : X → Y → Bool} (P : PrivateCoin a b X Y Bool) (hP : P.SolvesUnbounded (fun (x : X) (y : Y) (z : Bool) => f x y = z) Set.univ Set.univ) (hf : 2 ≤ signRank f) :

When 2 ≤ signRank f, a private-coin protocol computing f with unbounded error sends at least ⌈log₂ (signRank f)⌉ + 1 bits: its signed vote matrix sign-represents f and has rank at most 2 ^ (P.depth - 1) (Protocol.rank_sum_comp_run_le_two_pow_sub_one).

In the leaf-output PrivateCoin model, when 2 ≤ signRank f, the unbounded-error complexity of f is at least ⌈log₂ (signRank f)⌉ + 1. With uppComplexityFun_le_log_signRank_add_two this gives uppComplexityFun f = ⌊log₂ (signRank f)⌋ + 2 whenever signRank f is not a power of two; 2 ≤ signRank f is needed since a constant function has sign-rank 1 and complexity 0.

Upper bound #

theorem Cslib.Communication.PrivateCoin.exists_solvesUnbounded_depth_le {X : Type u_1} {Y : Type u_2} [Finite X] [Finite Y] (f : X → Y → Bool) :
∃ (a : ℕ) (b : ℕ) (P : PrivateCoin a b X Y Bool), P.SolvesUnbounded (fun (x : X) (y : Y) (z : Bool) => f x y = z) Set.univ Set.univ ∧ Protocol.depth P ≤ Nat.clog 2 (signRank f + 1) + 1

Paturi–Simon, upper bound (protocol form). On finite inputs, f has a private-coin protocol with unbounded error that sends at most ⌈log₂ (signRank f + 1)⌉ + 1 bits: Alice sends an index in Option (Fin (signRank f)) drawn according to her row of an integer sign-representation and Bob answers with one biased bit.

Paturi–Simon, upper bound: on finite inputs, the unbounded-error complexity of f is at most ⌊log₂ (signRank f)⌋ + 2 Sherstov and Wu, Theorem 2.16.

The Paturi–Simon theorem: on finite inputs, the unbounded-error communication complexity of a Boolean function lies between ⌈log₂ (signRank f)⌉ and ⌊log₂ (signRank f)⌋ + 2 Sherstov and Wu, Theorem 2.16.

Equality is cheap with unbounded error: on any finite set, three bits suffice, since equality has sign-rank at most three. Deterministically it needs ⌈log₂ |X|⌉ + 1 bits when |X| ≥ 2 (ecomplexityFun_equality).

In the leaf-output PrivateCoin model, computing equality with unbounded error on a finite set with three or more elements costs three bits. For four or more inputs this follows at once from signRank_equality_eq_three and clog_signRank_add_one_le_uppComplexityFun; on three inputs signRank is two, and protocol-tree convexity rules out depth two. On two inputs two bits suffice (Fintype.card X = 2).