Documentation

CslibFrontier.Computability.Communication.Information

Information cost of communication protocols #

The information cost of a protocol measures what its transcript T reveals about the inputs, rather than how many bits it sends. Fix a joint law of Alice's input X, Bob's input Y and T. Its internal information cost I(T; X | Y) + I(T; Y | X) (internalInfoCost) is what each player learns about the other's input. Its external information cost I(T; X Y) (externalInfoCost) is what an outside observer learns about both Braverman and Rao, Section 1.

For a deterministic protocol p on inputs drawn from μ, the transcript is the leaf that p reaches (Protocol.leaf), which determines and is determined by the bits sent on the way there (Protocol.transcriptLaw). A private-coin protocol draws the players' random bits uniformly and independently of the inputs (PrivateCoin.inputLaw, PrivateCoin.transcriptLaw); its transcript is the leaf of the deterministic protocol run on inputs and random bits. A public-coin protocol draws a deterministic protocol, and its costs are the averages of the costs of the protocols it draws (PublicCoin.internalInfoCost, PublicCoin.externalInfoCost). This is Braverman and Rao's public-coin convention, where the public randomness is part of the transcript and reveals nothing about the inputs by itself Braverman and Rao, Lemma 3.13.

Information is at most communication: internalInfoCost ≤ externalInfoCost ≤ log₂ (number of leaves) ≤ depth. The first inequality is proved by induction on the protocol tree. Each bit sent splits both costs by the chain rule; a bit sent by Alice tells Bob at most what it tells an observer and tells Alice nothing, because, given her input and the transcript so far, it is independent of Bob's input. This independence holds because conditioning on a partial transcript keeps the law of the two players' views in the product form w (x, y) * α (Alice's view) * β (Bob's view). The last two inequalities bound mutual information by the entropy of the transcript. With independent inputs the internal and external costs agree (Protocol.internalInfoCost_eq_externalInfoCost). This is the information identity I(T; X Y) - (I(T; X | Y) + I(T; Y | X)) = I(X; Y) - I(X; Y | T) (externalInfoCost_sub_internalInfoCost) together with the inequality.

PublicCoin.infoComplexity is the least internal information cost of a public-coin protocol solving a relation with error ε on every pair of inputs from A × B. It is at most the public-coin communication complexity (PublicCoin.infoComplexity_le_ecomplexity). Braverman and Rao instead bound the error on inputs drawn from μ, which they take to be supported on the input domain, and also allow private coins. For μ supported on A × B, worst-case error at most ε gives error at most ε on inputs drawn from μ, so infoComplexity (a stricter error requirement over a smaller class of protocols) is an upper bound on their information complexity. Without that hypothesis it is not: inputs outside A × B carry no correctness requirement. For A = B = ∅, a protocol that sends nothing and outputs a fixed answer solves every relation, so the information complexity is 0 under every μ.

Main definitions #

Main results #

References #

noncomputable def Cslib.Communication.internalInfoCost {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] (law : PMF (X × Y × τ)) :

The internal information cost I(T; X | Y) + I(T; Y | X) of a joint law of Alice's input X, Bob's input Y and a transcript T: what the players learn about each other's input.

noncomputable def Cslib.Communication.externalInfoCost {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] (law : PMF (X × Y × τ)) :

The external information cost I(T; X Y) of a joint law of Alice's input X, Bob's input Y and a transcript T: what an observer learns about the inputs.

theorem Cslib.Communication.internalInfoCost_map {X : Type u_1} {Y : Type u_2} {τ : Type u_4} {Ω : Type u_6} [Finite X] [Finite Y] [Finite τ] (ν : PMF Ω) (A : Ω → X) (B : Ω → Y) (T : Ω → τ) :
internalInfoCost (PMF.map (fun (ω : Ω) => (A ω, B ω, T ω)) ν) = Probability.PMF.condMutualInfo (PMF.map (fun (ω : Ω) => (B ω, A ω, T ω)) ν) + Probability.PMF.condMutualInfo (PMF.map (fun (ω : Ω) => (A ω, B ω, T ω)) ν)
theorem Cslib.Communication.externalInfoCost_map {X : Type u_1} {Y : Type u_2} {τ : Type u_4} {Ω : Type u_6} [Finite X] [Finite Y] [Finite τ] (ν : PMF Ω) (A : Ω → X) (B : Ω → Y) (T : Ω → τ) :
externalInfoCost (PMF.map (fun (ω : Ω) => (A ω, B ω, T ω)) ν) = Probability.PMF.mutualInfo (PMF.map (fun (ω : Ω) => ((A ω, B ω), T ω)) ν)
theorem Cslib.Communication.internalInfoCost_nonneg {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] (law : PMF (X × Y × τ)) :
theorem Cslib.Communication.externalInfoCost_nonneg {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] (law : PMF (X × Y × τ)) :
theorem Cslib.Communication.externalInfoCost_le_logb_card {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] [Fintype τ] (law : PMF (X × Y × τ)) :

The external information cost is at most the logarithm of the number of transcripts.

theorem Cslib.Communication.internalInfoCost_map_congr {X : Type u_1} {Y : Type u_2} {τ : Type u_4} {τ' : Type u_5} {Ω : Type u_6} [Finite X] [Finite Y] [Finite τ] [Finite τ'] (ν : PMF Ω) (A : Ω → X) (B : Ω → Y) {T : Ω → τ} {T' : Ω → τ'} {e : τ → τ'} (he : Function.Injective e) (h : ∀ ω ∈ ν.support, T' ω = e (T ω)) :
internalInfoCost (PMF.map (fun (ω : Ω) => (A ω, B ω, T' ω)) ν) = internalInfoCost (PMF.map (fun (ω : Ω) => (A ω, B ω, T ω)) ν)

Re-encoding the transcript injectively on the support does not change the internal information cost.

theorem Cslib.Communication.externalInfoCost_map_congr {X : Type u_1} {Y : Type u_2} {τ : Type u_4} {τ' : Type u_5} {Ω : Type u_6} [Finite X] [Finite Y] [Finite τ] [Finite τ'] (ν : PMF Ω) (A : Ω → X) (B : Ω → Y) {T : Ω → τ} {T' : Ω → τ'} {e : τ → τ'} (he : Function.Injective e) (h : ∀ ω ∈ ν.support, T' ω = e (T ω)) :
externalInfoCost (PMF.map (fun (ω : Ω) => (A ω, B ω, T' ω)) ν) = externalInfoCost (PMF.map (fun (ω : Ω) => (A ω, B ω, T ω)) ν)

Re-encoding the transcript injectively on the support does not change the external information cost.

theorem Cslib.Communication.externalInfoCost_sub_internalInfoCost {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] (law : PMF (X × Y × τ)) :
externalInfoCost law - internalInfoCost law = Probability.PMF.mutualInfo (PMF.map (fun (x : X × Y × τ) => match x with | (x, y, snd) => (x, y)) law) - Probability.PMF.condMutualInfo (PMF.map (fun (x : X × Y × τ) => match x with | (x, y, t) => (t, x, y)) law)

Information identity: the external information cost exceeds the internal one by I(X; Y) - I(X; Y | T).

theorem Cslib.Communication.internalInfoCost_eq_of_mutualInfo_eq_zero {X : Type u_1} {Y : Type u_2} {τ : Type u_4} [Finite X] [Finite Y] [Finite τ] (law : PMF (X × Y × τ)) (hle : internalInfoCost law ≤ externalInfoCost law) (h : Probability.PMF.mutualInfo (PMF.map (fun (x : X × Y × τ) => match x with | (x, y, snd) => (x, y)) law) = 0) :

With independent inputs, internalInfoCost ≤ externalInfoCost is an equality.

Information is at most external information #

Proof plumbing for the induction on the protocol tree. The players' views u : U and v : V contain their inputs fx u and fy v (and, for private coins, their random bits).

Deterministic protocols #

theorem Cslib.Communication.Protocol.logb_leafCount_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) :

log₂ of the number of leaves is at most the depth.

noncomputable def Cslib.Communication.Protocol.transcriptLaw {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (μ : PMF (X × Y)) :

The joint law of Alice's input, Bob's input and the leaf that p reaches, on inputs drawn from μ.

theorem Cslib.Communication.Protocol.transcriptLaw_eq {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (μ : PMF (X × Y)) :
p.transcriptLaw μ = PMF.map (fun (q : X × Y) => (q.1, q.2, p.leaf q.1 q.2)) μ
theorem Cslib.Communication.Protocol.map_transcriptLaw {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (μ : PMF (X × Y)) :
PMF.map (fun (x : X × Y × Fin p.leafCount) => match x with | (x, y, snd) => (x, y)) (p.transcriptLaw μ) = μ

The inputs of the transcript law are drawn from μ.

The internal information cost of a deterministic protocol is at most its external information cost.

theorem Cslib.Communication.Protocol.externalInfoCost_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (p : Protocol X Y Z) (μ : PMF (X × Y)) :

Information is at most communication for deterministic protocols.

theorem Cslib.Communication.Protocol.internalInfoCost_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (p : Protocol X Y Z) (μ : PMF (X × Y)) :

With independent inputs, the internal and external information costs agree.

Private-coin protocols #

noncomputable def Cslib.Communication.PrivateCoin.inputLaw {X : Type u_1} {Y : Type u_2} (a b : ℕ) (μ : PMF (X × Y)) :

Inputs drawn from μ, together with independent uniformly random bit strings for Alice and Bob.

theorem Cslib.Communication.PrivateCoin.inputLaw_apply {X : Type u_1} {Y : Type u_2} {a b : ℕ} (μ : PMF (X × Y)) (x : X) (r : BitString a) (y : Y) (r' : BitString b) :
(inputLaw a b μ) ((x, r), y, r') = μ (x, y) * (↑(Fintype.card (BitString a × BitString b)))⁻¹
noncomputable def Cslib.Communication.PrivateCoin.transcriptLaw {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} (P : PrivateCoin a b X Y Z) (μ : PMF (X × Y)) :

The joint law of Alice's input, Bob's input and the leaf that the private-coin protocol P reaches, on inputs drawn from μ and uniformly random bits.

theorem Cslib.Communication.PrivateCoin.transcriptLaw_eq {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} (P : PrivateCoin a b X Y Z) (μ : PMF (X × Y)) :
P.transcriptLaw μ = PMF.map (fun (x : (X × BitString a) × Y × BitString b) => match x with | (u, v) => (u.1, v.1, Protocol.leaf P u v)) (inputLaw a b μ)
theorem Cslib.Communication.PrivateCoin.map_transcriptLaw {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} (P : PrivateCoin a b X Y Z) (μ : PMF (X × Y)) :
PMF.map (fun (x : X × Y × Fin (Protocol.leafCount P)) => match x with | (x, y, snd) => (x, y)) (P.transcriptLaw μ) = μ

The inputs of the transcript law are drawn from μ.

The internal information cost of a private-coin protocol is at most its external information cost.

theorem Cslib.Communication.PrivateCoin.externalInfoCost_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} [Finite X] [Finite Y] (P : PrivateCoin a b X Y Z) (μ : PMF (X × Y)) :

Information is at most communication for private-coin protocols.

theorem Cslib.Communication.PrivateCoin.internalInfoCost_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {a b : ℕ} [Finite X] [Finite Y] (P : PrivateCoin a b X Y Z) (μ : PMF (X × Y)) :

With independent inputs, the internal and external information costs agree.

Public-coin protocols #

noncomputable def Cslib.Communication.PublicCoin.internalInfoCost {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (π : PublicCoin X Y Z) (μ : PMF (X × Y)) :

The internal information cost of a public-coin protocol: the average over the public coins of the internal information cost of the deterministic protocol they select. It is valued in ℝ≥0∞, like PublicCoin.depth and the public-coin communication complexity, so that the average over a countable support needs no summability side condition; the deterministic costs are real and enter through ENNReal.ofReal.

noncomputable def Cslib.Communication.PublicCoin.externalInfoCost {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (π : PublicCoin X Y Z) (μ : PMF (X × Y)) :

The external information cost of a public-coin protocol: the average over the public coins of the external information cost of the deterministic protocol they select, valued in ℝ≥0∞ like PublicCoin.internalInfoCost.

theorem Cslib.Communication.PublicCoin.internalInfoCost_le_externalInfoCost {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (π : PublicCoin X Y Z) (μ : PMF (X × Y)) :

The internal information cost of a public-coin protocol is at most its external information cost.

theorem Cslib.Communication.PublicCoin.externalInfoCost_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (π : PublicCoin X Y Z) (μ : PMF (X × Y)) :

Information is at most communication for public-coin protocols.

theorem Cslib.Communication.PublicCoin.internalInfoCost_le_depth {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (π : PublicCoin X Y Z) (μ : PMF (X × Y)) :
theorem Cslib.Communication.PublicCoin.internalInfoCost_eq_externalInfoCost {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (π : PublicCoin X Y Z) (μ : PMF (X × Y)) (hμ : Probability.PMF.mutualInfo μ = 0) :

With independent inputs, the internal and external information costs agree.

noncomputable def Cslib.Communication.PublicCoin.infoComplexity {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (ε : ℝ) (R : X → Y → Z → Prop) (A : Set X) (B : Set Y) (μ : PMF (X × Y)) :

The information complexity of R on A × B with error ε on inputs drawn from μ: the least internal information cost of a public-coin protocol solving R with error at most ε on every pair of inputs from A × B, or ⊤ if there is none. Braverman and Rao bound the error on inputs drawn from μ and also allow private coins, so for μ supported on A × B this is an upper bound on their information complexity. Inputs outside A × B carry no correctness requirement, so without that hypothesis it can be smaller.

theorem Cslib.Communication.PublicCoin.infoComplexity_le_internalInfoCost {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] {π : PublicCoin X Y Z} {ε : ℝ} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} (h : π.Solves ε R A B) (μ : PMF (X × Y)) :
theorem Cslib.Communication.PublicCoin.le_infoComplexity_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] {c : ENNReal} {ε : ℝ} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} {μ : PMF (X × Y)} :
c ≤ infoComplexity ε R A B μ ↔ ∀ (π : PublicCoin X Y Z), π.Solves ε R A B → c ≤ π.internalInfoCost μ

Lower bounds on information complexity are lower bounds on the internal information cost of every public-coin protocol solving the relation, including when there is none.

theorem Cslib.Communication.PublicCoin.infoComplexity_le_protocol {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] {p : Protocol X Y Z} {ε : ℝ} {R : X → Y → Z → Prop} {A : Set X} {B : Set Y} (hp : p.Solves R A B) (hε : 0 ≤ ε) (μ : PMF (X × Y)) :

A deterministic protocol solving R bounds the information complexity by its internal information cost.

theorem Cslib.Communication.PublicCoin.infoComplexity_le_ecomplexity {X : Type u_1} {Y : Type u_2} {Z : Type u_3} [Finite X] [Finite Y] (ε : ℝ) (R : X → Y → Z → Prop) (A : Set X) (B : Set Y) (μ : PMF (X × Y)) :
infoComplexity ε R A B μ ≤ ↑(ecomplexity ε R A B)

Information complexity is at most communication complexity.