Documentation

CslibFrontier.Computability.Communication.Lifting.DiscrepancyOracle

Local simulation guarantees from discrepancy #

The finite dangerous-values theorem supplies both fields of DensityOracle: a density-preserving step and a terminal preimage for every residual output. Uniform discrepancy is symmetric, so the same numerical assumptions provide the guarantees in both speaker orientations.

theorem Cslib.Communication.Lifting.densityOracle_of_discrepancy {n m : ℕ} [NeZero m] (g : Fin m → Fin m → Bool) {τ σ u q : ℝ} {r : ℕ} (hτ : 0 < τ) (hσ : 0 < σ) (hn : 2 ≤ n) (hr : 0 < r) (hgap : 16 * ↑n ^ 2 ≤ τ / σ) (hratio : ↑n ^ (2 * r) ≤ τ / σ) (hu : 1 ≤ u) (hsize : ↑(n * m) ≤ u ^ r) (hq : 0 < q) (hweight : ↑n * (↑(n + 1) * u * q) ≤ 1 / 2) (hdisc : 16384 * (↑m ^ 2 * ↑n ^ 2 / (σ * τ)) ^ 4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (q / (2 * ↑n)) ^ 4) :

Numerical density/counting conditions and a single-gadget discrepancy bound give the local step and full-range guarantees required by the recursive density simulator.

theorem Cslib.Communication.Lifting.densityOracles_of_discrepancy {n m : ℕ} [NeZero m] (g : Fin m → Fin m → Bool) {τ σ u q : ℝ} {r : ℕ} (hτ : 0 < τ) (hσ : 0 < σ) (hn : 2 ≤ n) (hr : 0 < r) (hgap : 16 * ↑n ^ 2 ≤ τ / σ) (hratio : ↑n ^ (2 * r) ≤ τ / σ) (hu : 1 ≤ u) (hsize : ↑(n * m) ≤ u ^ r) (hq : 0 < q) (hweight : ↑n * (↑(n + 1) * u * q) ≤ 1 / 2) (hdisc : 16384 * (↑m ^ 2 * ↑n ^ 2 / (σ * τ)) ^ 4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (q / (2 * ↑n)) ^ 4) :
DensityOracle g τ σ ∧ DensityOracle (fun (y x : Fin m) => g x y) τ σ

The same numerical assumptions give simulation guarantees with either player speaking. The swapped gadget has exactly the same uniform discrepancy.

theorem Cslib.Communication.Lifting.densityOracles_parameter {n m a k : ℕ} [NeZero m] {B : ℝ} (g : Fin m → Fin m → Bool) (hk : 1 ≤ k) (ha : a + 64 * k = 2048 * k ^ 2) (hB : 2 ≤ B) (hn : 2 ≤ n) (hnB : ↑n ≤ B) (hm : ↑m = B ^ (2048 * k ^ 2)) (hdisc : discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (B ^ (1024 * k))⁻¹) :
DensityOracle g (B ^ (a + 32 * k)) (B ^ a) ∧ DensityOracle (fun (y x : Fin m) => g x y) (B ^ (a + 32 * k)) (B ^ a)

The adjustable scalar certificate supplies both orientations of the density simulator.

theorem Cslib.Communication.Lifting.densityOracles_polynomial {n B : ℕ} [NeZero B] (g : Fin (B ^ 2048) → Fin (B ^ 2048) → Bool) (hB : 2 ≤ B) (hn : 2 ≤ n) (hnB : n ≤ B) (hdisc : discrepancy (Probability.PMF.uniformOfFintype (Fin (B ^ 2048) × Fin (B ^ 2048))) g ≤ (↑B ^ 1024)⁻¹) :
DensityOracle g (↑B ^ 2016) (↑B ^ 1984) ∧ DensityOracle (fun (y x : Fin (B ^ 2048)) => g x y) (↑B ^ 2016) (↑B ^ 1984)

A concrete polynomial-size alphabet supplies both speaker orientations. The gadget's uniform discrepancy is at most the inverse square root of the alphabet size; the exponent 2048 is a deliberately loose consequence of the elementary XOR estimate.