Documentation

CslibFrontier.Computability.Communication.Lifting.SimulationTrace

Finite density simulation traces #

A trace executes actual density steps on the two sources, swapping the gadget when Bob speaks. The trace records the total number of queried coordinates and transmitted steps. Each transition restricts the sources and removes its queries from the free coordinates. The volume theorem multiplies the one-step guarantees; safety hypotheses are needed to construct steps, rather than being hidden in the volume conclusion. This module does not yet construct a decision tree.

inductive Cslib.Communication.Lifting.DensityTrace {n m : ℕ} (g : Fin m → Fin m → Bool) (τ σ : ℝ) :
Finset (Fin n) → Finset (Fin n → Fin m) → Finset (Fin n → Fin m) → Finset (Fin n) → Finset (Fin n → Fin m) → Finset (Fin n → Fin m) → ℕ → ℕ → Prop

An executed finite trace of density-preserving steps, with the actual query answers supplied. The two natural-number indices count steps and total queried coordinates.

theorem Cslib.Communication.Lifting.DensityTrace.volume {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X Y X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F X Y F' X' Y' c q) (hτ : 0 ≤ τ) :
↑X.card * ↑Y.card ≤ 8 ^ c * (2 * τ) ^ q * ↑X'.card * ↑Y'.card

The source-size loss of a trace is at most eight per step and 2τ per query.

theorem Cslib.Communication.Lifting.DensityTrace.card_free {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X Y X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F X Y F' X' Y' c q) :
F'.card + q = F.card

Queries in a trace are fresh: their total number is precisely the loss of free coordinates.

theorem Cslib.Communication.Lifting.DensityTrace.subsets {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X Y X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F X Y F' X' Y' c q) :
X' ⊆ X ∧ Y' ⊆ Y

Every executed step only removes source elements.

theorem Cslib.Communication.Lifting.DensityTrace.nonempty {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X Y X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F X Y F' X' Y' c q) (hX : X.Nonempty) (hY : Y.Nonempty) :

Nonempty starting sources remain nonempty along an executed trace.

theorem Cslib.Communication.Lifting.DensityTrace.full_volume {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F Finset.univ Finset.univ F' X' Y' c q) (hτ : 0 ≤ τ) :
↑m ^ (2 * n) ≤ 8 ^ c * (2 * τ) ^ q * ↑X'.card * ↑Y'.card

A full starting rectangle gives the exact initial volume budget used in amortization.

theorem Cslib.Communication.Lifting.DensityTrace.fixed_partition {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X Y X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F X Y F' X' Y' c q) :
∃ (AX : Finset (Fin n)) (AY : Finset (Fin n)), AX ⊆ F ∧ AY ⊆ F ∧ Disjoint AX AY ∧ AX.card + AY.card = q ∧ (∀ x ∈ X', ∀ x' ∈ X', ∀ i ∈ AX, x i = x' i) ∧ ∀ y ∈ Y', ∀ y' ∈ Y', ∀ i ∈ AY, y i = y' i

All queried coordinates can be assigned disjointly to the player whose source was fixed. This derives the fixed-coordinate hypotheses needed for volume amortization from the trace.

theorem Cslib.Communication.Lifting.DensityTrace.query_bound {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F F' : Finset (Fin n)} {X' Y' : Finset (Fin n → Fin m)} {c q : ℕ} (h : DensityTrace g τ σ F Finset.univ Finset.univ F' X' Y' c q) (hm : 0 < m) (hτ : 0 < τ) :
(↑m / (2 * τ)) ^ q ≤ 8 ^ c

The query exponent is bounded by the number of executed steps, with no separate endpoint fixedness or budget assumption: both are derived from the actual trace.

theorem Cslib.Communication.Lifting.DensityTrace.append {n m : ℕ} {g : Fin m → Fin m → Bool} {τ σ : ℝ} {F₀ F₁ F₂ : Finset (Fin n)} {X₀ Y₀ X₁ Y₁ X₂ Y₂ : Finset (Fin n → Fin m)} {c₁ q₁ c₂ q₂ : ℕ} (h₁ : DensityTrace g τ σ F₀ X₀ Y₀ F₁ X₁ Y₁ c₁ q₁) (h₂ : DensityTrace g τ σ F₁ X₁ Y₁ F₂ X₂ Y₂ c₂ q₂) :
DensityTrace g τ σ F₀ X₀ Y₀ F₂ X₂ Y₂ (c₁ + c₂) (q₁ + q₂)

Concatenate actual density traces, adding their step and query counts.