Documentation

CslibFrontier.Computability.Communication.NOF.Leaf

Leaves of number-on-forehead protocols #

The bits written while a deterministic number-on-forehead protocol runs on an input determine the leaf it reaches, and conversely. We number the leaves from left to right (NOF.Protocol.leaf), as for two-party protocols. There are at most 2 ^ depth of them (NOF.Protocol.leafCount_le_two_pow_depth), and the output is a function of the leaf (NOF.Protocol.run_eq_of_leaf_eq).

The basic structural fact is the star lemma (NOF.Protocol.leaf_eq_of_view_eq). Suppose that for every player i some input y i, which player i cannot tell apart from q, reaches the leaf l. Then q reaches l too. At each node the speaker writes the same bit on q as on their own witness, and all the witnesses take the same branch. Equivalently, the inputs reaching a leaf form a cylinder intersection (NOF.Protocol.isCylinderIntersection_leaf, in the discrepancy module). This is what makes Ramsey-type lower bounds work: a leaf containing the corners of a "star" contains its center.

Main definitions #

Main results #

References #

def Cslib.Communication.NOF.Protocol.leafCount {ι : Type u} {X : ι → Type v} {Z : Type w} :
Protocol X Z → ℕ

The number of leaves of a protocol. It is exposed because the type Fin p.leafCount of leaf must unfold along the protocol.

def Cslib.Communication.NOF.Protocol.leaf {ι : Type u} {X : ι → Type v} {Z : Type w} (p : Protocol X Z) :
((i : ι) → X i) → Fin p.leafCount

The leaf a protocol reaches on the input x, numbering the leaves from left to right.

@[simp]
theorem Cslib.Communication.NOF.Protocol.leafCount_output {ι : Type u} {X : ι → Type v} {Z : Type w} (z : Z) :
@[simp]
theorem Cslib.Communication.NOF.Protocol.leafCount_speak {ι : Type u} {X : ι → Type v} {Z : Type w} (i : ι) (send : View X i → Bool) (p₀ p₁ : Protocol X Z) :
(speak i send p₀ p₁).leafCount = p₀.leafCount + p₁.leafCount
@[simp]
theorem Cslib.Communication.NOF.Protocol.leaf_output {ι : Type u} {X : ι → Type v} {Z : Type w} (z : Z) (x : (i : ι) → X i) :
@[simp]
theorem Cslib.Communication.NOF.Protocol.leaf_speak {ι : Type u} {X : ι → Type v} {Z : Type w} (i : ι) (send : View X i → Bool) (p₀ p₁ : Protocol X Z) (x : (i : ι) → X i) :
(speak i send p₀ p₁).leaf x = bif send (view i x) then Fin.natAdd p₀.leafCount (p₁.leaf x) else Fin.castAdd p₁.leafCount (p₀.leaf x)
theorem Cslib.Communication.NOF.Protocol.leafCount_pos {ι : Type u} {X : ι → Type v} {Z : Type w} (p : Protocol X Z) :

Every protocol has a leaf.

theorem Cslib.Communication.NOF.Protocol.leafCount_eq_one_of_isEmpty {ι : Type u} {X : ι → Type v} {Z : Type w} [IsEmpty ι] (p : Protocol X Z) :

With no players nobody can speak, so a protocol is a single leaf.

theorem Cslib.Communication.NOF.Protocol.leafCount_le_two_pow_depth {ι : Type u} {X : ι → Type v} {Z : Type w} (p : Protocol X Z) :

At most 2 ^ depth leaves.

theorem Cslib.Communication.NOF.Protocol.leaf_speak_eq_iff {ι : Type u} {X : ι → Type v} {Z : Type w} {i : ι} {send : View X i → Bool} {p₀ p₁ : Protocol X Z} {x y : (j : ι) → X j} :
(speak i send p₀ p₁).leaf x = (speak i send p₀ p₁).leaf y ↔ send (view i x) = true ∧ send (view i y) = true ∧ p₁.leaf x = p₁.leaf y ∨ send (view i x) = false ∧ send (view i y) = false ∧ p₀.leaf x = p₀.leaf y

Two inputs reach the same leaf below a node when the speaker writes the same bit on both and they reach the same leaf of the branch taken.

theorem Cslib.Communication.NOF.Protocol.run_eq_of_leaf_eq {ι : Type u} {X : ι → Type v} {Z : Type w} (p : Protocol X Z) {x y : (i : ι) → X i} (h : p.leaf x = p.leaf y) :
p.run x = p.run y

The output is a function of the leaf.

theorem Cslib.Communication.NOF.Protocol.leaf_eq_of_view_eq {ι : Type u} {X : ι → Type v} {Z : Type w} (p : Protocol X Z) {q : (i : ι) → X i} {y : ι → (i : ι) → X i} (hview : ∀ (i : ι), view i (y i) = view i q) (hleaf : ∀ (i j : ι), p.leaf (y i) = p.leaf (y j)) (i : ι) :
p.leaf q = p.leaf (y i)

The star lemma. If, for every player i, an input y i that player i cannot tell apart from q (view i (y i) = view i q) reaches the same leaf as every other y j, then q reaches that leaf too.