Documentation

CslibFrontier.Computability.Communication.NIH.ProductHellinger

Multi-party number-in-hand protocols and product-input transcript Hellinger inequality #

This module formalizes deterministic and public-coin multi-party number-in-hand (NIH) communication protocols together with a structural-induction product-input transcript inequality in squared Hellinger and Jensen–Shannon divergence (a key tool for multi-party AND and disjointness information-cost lower bounds, following the Hellinger cut-and-paste / direct-sum framework of Bar-Yossef, Jayram, Kumar, and Sivakumar, 2004, and Jayram, 2009):

Multi-party number-in-hand communication protocols #

def Cslib.Communication.NIH.NIHProtocol.leafCount {ι : Type u} {X : ι → Type v} {Z : Type w} :

Number of leaves of an NIH protocol tree. Exposed so Fin p.leafCount reduces structurally.

def Cslib.Communication.NIH.NIHProtocol.leaf {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) :
((j : ι) → X j) → Fin p.leafCount

The leaf index reached on input x, ordered left-to-right.

def Cslib.Communication.NIH.NIHProtocol.leafOutput {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) :
Fin p.leafCount → Z

Output label attached to each leaf.

def Cslib.Communication.NIH.NIHProtocol.leafSide {ι : Type u} {X : ι → Type v} {Z : Type w} [DecidableEq ι] (p : NIHProtocol X Z) :
Fin p.leafCount → (j : ι) → Set (X j)

The j-th player's side of the combinatorial rectangle corresponding to leaf ℓ.

@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leafCount_output {ι : Type u} {X : ι → Type v} {Z : Type w} (z : Z) :
@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leafCount_speak {ι : Type u} {X : ι → Type v} {Z : Type w} (j : ι) (send : X j → Bool) (p₀ p₁ : NIHProtocol X Z) :
(speak j send p₀ p₁).leafCount = p₀.leafCount + p₁.leafCount
@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leaf_output {ι : Type u} {X : ι → Type v} {Z : Type w} (z : Z) (x : (j : ι) → X j) :
@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leaf_speak {ι : Type u} {X : ι → Type v} {Z : Type w} (j : ι) (send : X j → Bool) (p₀ p₁ : NIHProtocol X Z) (x : (i : ι) → X i) :
(speak j send p₀ p₁).leaf x = bif send (x j) then Fin.natAdd p₀.leafCount (p₁.leaf x) else Fin.castAdd p₁.leafCount (p₀.leaf x)
@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leafOutput_output {ι : Type u} {X : ι → Type v} {Z : Type w} (z : Z) (ℓ : Fin (output z).leafCount) :
(output z).leafOutput ℓ = z
@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leafOutput_speak_castAdd {ι : Type u} {X : ι → Type v} {Z : Type w} (j : ι) (send : X j → Bool) (p₀ p₁ : NIHProtocol X Z) (ℓ : Fin p₀.leafCount) :
(speak j send p₀ p₁).leafOutput (Fin.castAdd p₁.leafCount ℓ) = p₀.leafOutput ℓ
@[simp]
theorem Cslib.Communication.NIH.NIHProtocol.leafOutput_speak_natAdd {ι : Type u} {X : ι → Type v} {Z : Type w} (j : ι) (send : X j → Bool) (p₀ p₁ : NIHProtocol X Z) (ℓ : Fin p₁.leafCount) :
(speak j send p₀ p₁).leafOutput (Fin.natAdd p₀.leafCount ℓ) = p₁.leafOutput ℓ
theorem Cslib.Communication.NIH.NIHProtocol.leafCount_pos {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) :

Every NIH protocol has at least one leaf.

An NIH protocol of depth d has at most 2 ^ d leaves.

theorem Cslib.Communication.NIH.NIHProtocol.leaf_eq_iff {ι : Type u} {X : ι → Type v} {Z : Type w} [DecidableEq ι] {p : NIHProtocol X Z} {x : (j : ι) → X j} {ℓ : Fin p.leafCount} :
p.leaf x = ℓ ↔ ∀ (j : ι), x j ∈ p.leafSide ℓ j

An input reaches leaf ℓ if and only if every player's component lies in leafSide ℓ.

theorem Cslib.Communication.NIH.NIHProtocol.run_eq_leafOutput_leaf {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) (x : (j : ι) → X j) :
p.run x = p.leafOutput (p.leaf x)

The output of p on x is the label of the leaf p.leaf x.

theorem Cslib.Communication.NIH.NIHProtocol.run_eq_leafOutput {ι : Type u} {X : ι → Type v} {Z : Type w} [DecidableEq ι] {p : NIHProtocol X Z} {x : (j : ι) → X j} {ℓ : Fin p.leafCount} (hx : ∀ (j : ι), x j ∈ p.leafSide ℓ j) :
p.run x = p.leafOutput ℓ

Every leaf rectangle is monochromatic under p.run.

def Cslib.Communication.NIH.NIHProtocol.bind {ι : Type u} {X : ι → Type v} {Z Z' : Type w} :
NIHProtocol X Z → (Z → NIHProtocol X Z') → NIHProtocol X Z'

Sequential composition of NIH protocols.

def Cslib.Communication.NIH.NIHProtocol.runAll {ι : Type u} {X : ι → Type v} {Z Z' : Type w} {m : ℕ} :
(Fin m → NIHProtocol X Z) → ((Fin m → Z) → Z') → NIHProtocol X Z'

Run m NIH protocols sequentially and combine their outputs via combine.

theorem Cslib.Communication.NIH.NIHProtocol.run_bind {ι : Type u} {X : ι → Type v} {Z Z' : Type w} (p : NIHProtocol X Z) (cont : Z → NIHProtocol X Z') (x : (j : ι) → X j) :
(p.bind cont).run x = (cont (p.run x)).run x
theorem Cslib.Communication.NIH.NIHProtocol.depth_bind_le {ι : Type u} {X : ι → Type v} {Z Z' : Type w} (p : NIHProtocol X Z) (cont : Z → NIHProtocol X Z') {d : ℕ} (hd : ∀ (z : Z), (cont z).depth ≤ d) :
(p.bind cont).depth ≤ p.depth + d
theorem Cslib.Communication.NIH.NIHProtocol.run_runAll {ι : Type u} {X : ι → Type v} {Z Z' : Type w} {m : ℕ} (ps : Fin m → NIHProtocol X Z) (combine : (Fin m → Z) → Z') (x : (j : ι) → X j) :
(runAll ps combine).run x = combine fun (t : Fin m) => (ps t).run x

Running runAll ps combine evaluates each protocol on x and applies combine.

theorem Cslib.Communication.NIH.NIHProtocol.depth_runAll_le {ι : Type u} {X : ι → Type v} {Z Z' : Type w} {m : ℕ} (ps : Fin m → NIHProtocol X Z) (combine : (Fin m → Z) → Z') :
(runAll ps combine).depth ≤ ∑ t : Fin m, (ps t).depth

The depth of runAll ps combine is at most the sum of the component depths.

theorem Cslib.Communication.NIH.NIHProtocol.depth_runAll_le_mul {ι : Type u} {X : ι → Type v} {Z Z' : Type w} {m d : ℕ} {ps : Fin m → NIHProtocol X Z} (combine : (Fin m → Z) → Z') (h : ∀ (t : Fin m), (ps t).depth ≤ d) :
(runAll ps combine).depth ≤ m * d

If every protocol in ps has depth at most d, then runAll ps combine has depth at most m * d.

def Cslib.Communication.NIH.NIHProtocol.Solves {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) (R : ((j : ι) → X j) → Z → Prop) (A : Set ((j : ι) → X j)) :

A deterministic NIH protocol solves relation R on promise set A.

theorem Cslib.Communication.NIH.NIHProtocol.solves_iff {ι : Type u} {X : ι → Type v} {Z : Type w} {p : NIHProtocol X Z} {R : ((j : ι) → X j) → Z → Prop} {A : Set ((j : ι) → X j)} :
p.Solves R A ↔ ∀ x ∈ A, R x (p.run x)
theorem Cslib.Communication.NIH.NIHProtocol.solves_apply {ι : Type u} {X : ι → Type v} {Z : Type w} {p : NIHProtocol X Z} {R : ((j : ι) → X j) → Z → Prop} {A : Set ((j : ι) → X j)} (hp : p.Solves R A) {x : (j : ι) → X j} (hx : x ∈ A) :
R x (p.run x)
noncomputable def Cslib.Communication.NIH.NIHProtocol.ecomplexity {ι : Type u} {X : ι → Type v} {Z : Type w} (R : ((j : ι) → X j) → Z → Prop) (A : Set ((j : ι) → X j)) :

Deterministic NIH communication complexity of relation R on promise set A.

theorem Cslib.Communication.NIH.NIHProtocol.le_ecomplexity_iff {ι : Type u} {X : ι → Type v} {Z : Type w} {R : ((j : ι) → X j) → Z → Prop} {A : Set ((j : ι) → X j)} {d : ℕ∞} :
d ≤ ecomplexity R A ↔ ∀ (p : NIHProtocol X Z), p.Solves R A → d ≤ ↑p.depth

Lower bounds on NIH deterministic communication complexity reduce to bounding the depth of every solving protocol.

def Cslib.Communication.NIH.NIHProtocol.randomizedCost {ι : Type u} (X : ι → Type v) (Z : Type w) :
RandomizedCost (NIHProtocol X Z) ((j : ι) → X j) Z

Deterministic NIH protocols as a Cslib.RandomizedCost model.

noncomputable def Cslib.Communication.NIH.NIHProtocol.distributionalError {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) (ν : PMF ((j : ι) → X j)) (R : ((j : ι) → X j) → Z → Prop) :

Distributional error of a deterministic NIH protocol on input distribution ν.

theorem Cslib.Communication.NIH.NIHProtocol.distributionalError_eq {ι : Type u} {X : ι → Type v} {Z : Type w} (p : NIHProtocol X Z) (ν : PMF ((j : ι) → X j)) (R : ((j : ι) → X j) → Z → Prop) :
p.distributionalError ν R = (ν.toOuterMeasure {x : (j : ι) → X j | ¬R x (p.run x)}).toReal
noncomputable def Cslib.Communication.NIH.NIHProtocol.distributionalComplexity {ι : Type u} {X : ι → Type v} {Z : Type w} (ε : ℝ) (R : ((j : ι) → X j) → Z → Prop) (ν : PMF ((j : ι) → X j)) :

Distributional NIH communication complexity under input distribution ν.

theorem Cslib.Communication.NIH.NIHProtocol.le_distributionalComplexity_iff {ι : Type u} {X : ι → Type v} {Z : Type w} {ε : ℝ} {R : ((j : ι) → X j) → Z → Prop} {ν : PMF ((j : ι) → X j)} {d : ℕ∞} :
d ≤ distributionalComplexity ε R ν ↔ ∀ (p : NIHProtocol X Z), p.distributionalError ν R ≤ ε → d ≤ ↑p.depth
@[reducible, inline]
abbrev Cslib.Communication.NIH.NIHPublicCoin {ι : Type u} (X : ι → Type v) (Z : Type w) :
Type (max u v w)

A public-coin randomized NIH protocol is a distribution over deterministic NIH protocols.

noncomputable def Cslib.Communication.NIH.NIHPublicCoin.depth {ι : Type u} {X : ι → Type v} {Z : Type w} (μ : NIHPublicCoin X Z) :

Worst-case communication depth of a public-coin NIH protocol.

noncomputable def Cslib.Communication.NIH.NIHPublicCoin.errorProb {ι : Type u} {X : ι → Type v} {Z : Type w} (μ : NIHPublicCoin X Z) (R : ((j : ι) → X j) → Z → Prop) (x : (j : ι) → X j) :

Per-input error probability of a public-coin NIH protocol.

def Cslib.Communication.NIH.NIHPublicCoin.Solves {ι : Type u} {X : ι → Type v} {Z : Type w} (μ : NIHPublicCoin X Z) (ε : ℝ) (R : ((j : ι) → X j) → Z → Prop) (A : Set ((j : ι) → X j)) :

A public-coin NIH protocol solves R on promise set A with error at most ε.

noncomputable def Cslib.Communication.NIH.NIHPublicCoin.ecomplexity {ι : Type u} {X : ι → Type v} {Z : Type w} (ε : ℝ) (R : ((j : ι) → X j) → Z → Prop) (A : Set ((j : ι) → X j)) :

Public-coin randomized NIH communication complexity of R on promise set A with error ε.

theorem Cslib.Communication.NIH.NIHPublicCoin.distributionalComplexity_le_ecomplexity {ι : Type u} {X : ι → Type v} {Z : Type w} {ε : ℝ} {R : ((j : ι) → X j) → Z → Prop} {A : Set ((j : ι) → X j)} {ν : PMF ((j : ι) → X j)} (hν : ∀ x ∈ ν.support, x ∈ A) :

Yao's averaging principle for public-coin NIH protocols: distributional complexity under any distribution supported on A lower-bounds public-coin communication complexity on A.

theorem Cslib.Communication.NIH.NIHPublicCoin.ecomplexity_le_two_mul_mul {ι : Type u} {X : ι → Type v} {ε : ℝ} {f : ((j : ι) → X j) → Bool} {A : Set ((j : ι) → X j)} (hε : ε ≤ 1 / 2) (r : ℕ) :
ecomplexity ((4 * ε * (1 - ε)) ^ r) (fun (x : (j : ι) → X j) (b : Bool) => f x = b) A ≤ 2 * ↑r * ecomplexity ε (fun (x : (j : ι) → X j) (b : Bool) => f x = b) A

Majority error amplification for Boolean public-coin NIH protocols: reducing error ε ≤ 1 / 2 to (4 * ε * (1 - ε)) ^ r multiplies complexity by at most 2 * r.

theorem Cslib.Communication.NIH.NIHPublicCoin.ecomplexity_anti {ι : Type u} {X : ι → Type v} {Z : Type w} {ε ε' : ℝ} {R : ((j : ι) → X j) → Z → Prop} {A : Set ((j : ι) → X j)} (hε : ε ≤ ε') :
ecomplexity ε' R A ≤ ecomplexity ε R A

Error monotonicity: larger error budget cannot increase public-coin NIH complexity.

theorem Cslib.Communication.NIH.NIHPublicCoin.ecomplexity_le_depth_of_solves {ι : Type u} {X : ι → Type v} {Z : Type w} {p : NIHProtocol X Z} {ε : ℝ} {R : ((j : ι) → X j) → Z → Prop} {A : Set ((j : ι) → X j)} (hp : p.Solves R A) (hε : 0 ≤ ε) :
ecomplexity ε R A ≤ ↑p.depth

Any deterministic NIH protocol solving R on A gives an upper bound on ecomplexity ε for any 0 ≤ ε.

noncomputable def Cslib.Communication.NIH.NIHProtocol.leafDist {k : ℕ} {X : Fin k → Type u_1} [∀ (j : Fin k), Finite (X j)] {Z : Type u_2} (p : NIHProtocol X Z) (ν : (j : Fin k) → PMF (X j)) :

Leaf distribution of an NIH protocol p when players hold independent inputs drawn from ν : ∀ j, PMF (X j).

theorem Cslib.Communication.NIH.NIHProtocol.leafDist_eq {k : ℕ} {X : Fin k → Type u_1} [∀ (j : Fin k), Finite (X j)] {Z : Type u_2} (p : NIHProtocol X Z) (ν : (j : Fin k) → PMF (X j)) :
theorem Cslib.Communication.NIH.hellingerSq_all_le_inv_add_sum {k : ℕ} {X : Fin k → Type u_1} [∀ (j : Fin k), Finite (X j)] {Z : Type u_2} (p : NIHProtocol X Z) (ν₀ ν₁ : (j : Fin k) → PMF (X j)) {M : ℝ} (hM : 1 ≤ M) :
Probability.PMF.hellingerSq (p.leafDist ν₀) (p.leafDist ν₁) ≤ 1 / M + 10 * M * ∑ j : Fin k, Probability.PMF.hellingerSq (p.leafDist ν₀) (p.leafDist (Function.update ν₀ j (ν₁ j)))

Stopping-time Hellinger bound (parameterized form): for any M ≥ 1 and any deterministic k-party NIH protocol p with independent input distributions ν₀, ν₁, hellingerSq μ_0 μ_1 ≤ 1 / M + 10 * M * ∑ j, hellingerSq μ_0 μ_j.

theorem Cslib.Communication.NIH.sq_hellingerSq_div_forty_le_sum_hellingerSq {k : ℕ} {X : Fin k → Type u_1} [∀ (j : Fin k), Finite (X j)] {Z : Type u_2} (p : NIHProtocol X Z) (ν₀ ν₁ : (j : Fin k) → PMF (X j)) :
Probability.PMF.hellingerSq (p.leafDist ν₀) (p.leafDist ν₁) ^ 2 / 40 ≤ ∑ j : Fin k, Probability.PMF.hellingerSq (p.leafDist ν₀) (p.leafDist (Function.update ν₀ j (ν₁ j)))

Product-input transcript Hellinger inequality (a tool for multi-party AND lower bounds): for any deterministic k-party NIH protocol p and two families of product marginals ν₀, ν₁, (hellingerSq μ_0 μ_1)^2 / 40 ≤ ∑ j, hellingerSq μ_0 μ_j.

theorem Cslib.Communication.NIH.sq_hellingerSq_div_eighty_le_sum_jensenShannon {k : ℕ} {X : Fin k → Type u_1} [∀ (j : Fin k), Finite (X j)] {Z : Type u_2} (p : NIHProtocol X Z) (ν₀ ν₁ : (j : Fin k) → PMF (X j)) :
Probability.PMF.hellingerSq (p.leafDist ν₀) (p.leafDist ν₁) ^ 2 / 80 ≤ ∑ j : Fin k, Probability.PMF.jensenShannon (p.leafDist ν₀) (p.leafDist (Function.update ν₀ j (ν₁ j)))

Product-input transcript Jensen–Shannon inequality (a tool for multi-party AND lower bounds): combining sq_hellingerSq_div_forty_le_sum_hellingerSq with half_hellingerSq_le_jensenShannon gives (hellingerSq μ_0 μ_1)^2 / 80 ≤ ∑ j, jensenShannon μ_0 μ_j.