Documentation

CslibFrontier.Computability.Communication.Lifting.DensityCompiler

Recursive simulation of alternating protocols #

The simulator queries exactly the coordinates restored by each density step. Its interface asks only for local density steps and terminal full range, rather than an assumed decision-tree simulation. These local hypotheses can be proved from single-block discrepancy. Alternating ownership ensures that the next speaker has density σ and the next listener has density τ.

def Cslib.Communication.Lifting.TurnDense {n m : ℕ} (τ σ : ℝ) (turn : Bool) (F : Finset (Fin n)) (X Y : Finset (Fin n → Fin m)) :

Densities indexed by the next speaker: true means Alice.

def Cslib.Communication.Lifting.OutputFixed {n m : ℕ} (g : Fin m → Fin m → Bool) (F : Finset (Fin n)) (X Y : Finset (Fin n → Fin m)) (ρ : Fin n → Bool) :

Outside the free coordinates the rectangle realizes the already queried assignment.

theorem Cslib.Communication.Lifting.DensityStep.Valid.outputFixed {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} {send : (Fin n → Fin m) → Bool} {st : DensityStep n m} (h : st.Valid g τ σ F X Y send) {ρ : Fin n → Bool} (hf : OutputFixed g F X Y ρ) (a : Fin n → Bool) :
OutputFixed g (F \ st.queried) st.speaker (st.listener a) (st.queried.piecewise a ρ)

The rectangle after an Alice step realizes the extended partial assignment.

theorem Cslib.Communication.Lifting.exists_density_decisionTree {n m : ℕ} {O : Type u_1} (g : Fin m → Fin m → Bool) (τ σ : ℝ) (oa : DensityOracle g τ σ) (ob : DensityOracle (fun (y x : Fin m) => g x y) τ σ) (R : (Fin n → Bool) → O → Prop) (C Q : ℕ) (hm : 0 < m) (hτ : 0 < τ) (hbound : ∀ q ≤ n, (↑m / (2 * τ)) ^ q ≤ 8 ^ C → q ≤ Q) (p : Protocol (Fin n → Fin m) (Fin n → Fin m) O) (turn : Bool) (halt : Protocol.Alternates turn p) (F : Finset (Fin n)) (X Y : Finset (Fin n → Fin m)) (ρ : Fin n → Bool) (c q : ℕ) (trace : DensityTrace g τ σ Finset.univ Finset.univ Finset.univ F X Y c q) (hbudget : c + p.depth ≤ C) (hX : X.Nonempty) (hY : Y.Nonempty) (hd : TurnDense τ σ turn F X Y) (hf : OutputFixed g F X Y ρ) (hp : ∀ x ∈ X, ∀ y ∈ Y, R (fun (i : Fin n) => g (x i) (y i)) (p.run x y)) :
∃ (t : DecisionTree (Fin n) O), t.depth + q ≤ Q ∧ ∀ (z : Fin n → Bool), (∀ i ∉ F, z i = ρ i) → R z (t.eval z)

Recursive compilation from local density guarantees. Every input extending the current partial assignment obtains an output satisfying the outer relation.

theorem Cslib.Communication.Lifting.exists_simulating_decisionTree {n m : ℕ} {O : Type u_1} (g : Fin m → Fin m → Bool) (τ σ : ℝ) (oa : DensityOracle g τ σ) (ob : DensityOracle (fun (y x : Fin m) => g x y) τ σ) (hm : 0 < m) (hτ : 0 < τ) (hσ : 0 ≤ σ) (hτm : τ ≤ ↑m) (hσm : σ ≤ ↑m) (hbase : 1 ≤ ↑m / (2 * τ)) (R : (Fin n → Bool) → O → Prop) (p : Protocol (Fin n → Fin m) (Fin n → Fin m) O) (hp : ∀ (x y : Fin n → Fin m), R (fun (i : Fin n) => g (x i) (y i)) (p.run x y)) :
∃ (t : DecisionTree (Fin n) O), (∀ (z : Fin n → Bool), R z (t.eval z)) ∧ (↑m / (2 * τ)) ^ t.depth ≤ 8 ^ (2 * p.depth)

Every protocol admits a correct decision-tree simulation whose query cost satisfies the volume bound. The protocol is first made alternating, accounting for the factor two in its communication depth. The local density guarantees are the only gadget-specific hypotheses.