Documentation

CslibFrontier.Computability.Communication.UnboundedError

Unbounded-error communication #

A private-coin protocol solves a relation with unbounded error when on every pair of inputs its answer is correct with probability strictly greater than 1 / 2, that is, its error probability is less than 1 / 2 (PrivateCoin.SolvesUnbounded). The unbounded-error communication complexity is the least depth of such a protocol, over all numbers of private random bits (PrivateCoin.uppComplexity, PrivateCoin.uppComplexityFun) Paturi and Simon.

The private random strings are finite, of any lengths a and b, so the error probabilities of a protocol are multiples of 1 / 2 ^ (a + b), and a protocol with unbounded error has error at most some fixed ε < 1 / 2 (PrivateCoin.SolvesUnbounded.exists_solves). Hence the unbounded-error complexity is the infimum of the bounded-error complexities PrivateCoin.ecomplexity ε over all ε < 1 / 2 (PrivateCoin.uppComplexity_eq_iInf), which is the definition of UPP in Sherstov and Wu, eq. (2.8).

The coins must be private: on finite inputs, players sharing public coins could guess Alice's input, check the guess with one bit, answer correctly when it is right and flip a fair public coin otherwise, so every function would have unbounded-error cost at most two.

The sign-rank characterizes the unbounded-error complexity of Boolean functions; see CslibFrontier.Computability.Communication.PaturiSimon.

Main definitions #

Main results #

References #

theorem Cslib.Communication.PrivateCoin.errorProb_eq_card {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} (P : PrivateCoin a b X Y Z) (R : X → Y → Z → Prop) (x : X) (y : Y) [DecidablePred (R x y)] :
P.errorProb R x y = ↑{r : BitString a × BitString b | ¬R x y (Protocol.run P (x, r.1) (y, r.2))}.card / (2 ^ a * 2 ^ b)

The error probability of a private-coin protocol is the fraction of the 2 ^ a * 2 ^ b pairs of random strings on which its output is not related to the inputs.

def Cslib.Communication.PrivateCoin.SolvesUnbounded {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} (P : PrivateCoin a b X Y Z) (R : X → Y → Z → Prop) (A : Set X) (B : Set Y) :

A private-coin protocol solves R on A × B with unbounded error when on every pair of inputs from A × B its output is related to them with probability more than 1 / 2, that is, its error probability is less than 1 / 2 Paturi and Simon.

noncomputable def Cslib.Communication.PrivateCoin.uppComplexity {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (R : X → Y → Z → Prop) (A : Set X) (B : Set Y) :

The unbounded-error communication complexity of R on A × B: the least depth of a private-coin protocol solving it with unbounded error, with any numbers of random bits, or ⊤ if there is none Paturi and Simon.

noncomputable def Cslib.Communication.PrivateCoin.uppComplexityFun {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (f : X → Y → Z) :

The unbounded-error communication complexity of computing f: uppComplexity of the relation f x y = z on all inputs.

theorem Cslib.Communication.PrivateCoin.SolvesUnbounded.mono {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} {P : PrivateCoin a b X Y Z} {R : X → Y → Z → Prop} {A A' : Set X} {B B' : Set Y} (h : P.SolvesUnbounded R A B) (hA : A' ⊆ A) (hB : B' ⊆ B) :
P.SolvesUnbounded R A' B'
theorem Cslib.Communication.PrivateCoin.Solves.solvesUnbounded {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} {P : PrivateCoin a b X Y Z} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} {ε : ℝ} (h : P.Solves ε R A B) (hε : ε < 1 / 2) :

A protocol with error at most some ε < 1 / 2 solves with unbounded error.

theorem Cslib.Communication.PrivateCoin.SolvesUnbounded.exists_solves {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} {P : PrivateCoin a b X Y Z} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} (h : P.SolvesUnbounded R A B) :
∃ ε < 1 / 2, P.Solves ε R A B

Conversely, a protocol that solves with unbounded error has error at most some fixed ε < 1 / 2 on all inputs, even on infinitely many: its error probabilities are multiples of 1 / 2 ^ (a + b), so they are at most 1 / 2 - 1 / 2 ^ (a + b + 1).

theorem Cslib.Communication.PrivateCoin.uppComplexity_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} {P : PrivateCoin a b X Y Z} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} (h : P.SolvesUnbounded R A B) :
theorem Cslib.Communication.PrivateCoin.le_uppComplexity_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} {k : ℕ∞} :
k ≤ uppComplexity R A B ↔ ∀ (a b : ℕ) (P : PrivateCoin a b X Y Z), P.SolvesUnbounded R A B → k ≤ ↑(Protocol.depth P)
theorem Cslib.Communication.PrivateCoin.uppComplexity_le_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} {k : ℕ} :
uppComplexity R A B ≤ ↑k ↔ ∃ (a : ℕ) (b : ℕ) (P : PrivateCoin a b X Y Z), P.SolvesUnbounded R A B ∧ Protocol.depth P ≤ k
theorem Cslib.Communication.PrivateCoin.uppComplexity_eq_iInf {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} :
uppComplexity R A B = ⨅ (ε : ℝ), ⨅ (_ : ε < 1 / 2), ecomplexity ε R A B

Unbounded error is the limit of bounded error: the unbounded-error complexity is the infimum of the private-coin complexities with error ε over all ε < 1 / 2 Sherstov and Wu, eq. (2.8).

theorem Cslib.Communication.PrivateCoin.uppComplexity_le_ecomplexity {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} {ε : ℝ} (hε : ε < 1 / 2) :

Unbounded error is at most bounded error ε < 1 / 2.

theorem Cslib.Communication.PrivateCoin.uppComplexity_le_protocol {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} :

Unbounded error is at most deterministic communication.

theorem Cslib.Communication.PrivateCoin.uppComplexity_mono {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {R : X → Y → Z → Prop} {A A' : Set X} {B B' : Set Y} (hA : A' ⊆ A) (hB : B' ⊆ B) :

Solving a relation with unbounded error on larger sets is harder.

theorem Cslib.Communication.PrivateCoin.uppComplexityFun_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} {P : PrivateCoin a b X Y Z} {f : X → Y → Z} (h : P.SolvesUnbounded (fun (x : X) (y : Y) (z : Z) => f x y = z) Set.univ Set.univ) :
theorem Cslib.Communication.PrivateCoin.uppComplexityFun_le_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {f : X → Y → Z} {k : ℕ} :
uppComplexityFun f ≤ ↑k ↔ ∃ (a : ℕ) (b : ℕ) (P : PrivateCoin a b X Y Z), P.SolvesUnbounded (fun (x : X) (y : Y) (z : Z) => f x y = z) Set.univ Set.univ ∧ Protocol.depth P ≤ k
theorem Cslib.Communication.PrivateCoin.le_uppComplexityFun_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {f : X → Y → Z} {k : ℕ∞} :
k ≤ uppComplexityFun f ↔ ∀ (a b : ℕ) (P : PrivateCoin a b X Y Z), P.SolvesUnbounded (fun (x : X) (y : Y) (z : Z) => f x y = z) Set.univ Set.univ → k ≤ ↑(Protocol.depth P)

Unbounded error is at most deterministic communication.

theorem Cslib.Communication.PrivateCoin.uppComplexityFun_comap_le {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {X' : Type u_4} {Y' : Type u_5} (f : X → Y → Z) (g : X' → X) (h : Y' → Y) :
(uppComplexityFun fun (x : X') (y : Y') => f (g x) (h y)) ≤ uppComplexityFun f

Transforming the inputs does not make a function harder with unbounded error.