Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.Preloss

Weighted loss before a compression overflow #

The preloss estimate of [OpenAI2026LogSpace, Lemma 8.2, (8.9)] bounds the error introduced by compression in terms of the errors of the uncompressed prefixes. At an endpoint with true first coordinate d ≥ η > 0, a compression change is possible only when the current entry is small. If the preceding compression loss is at most the current floor ρ and 8 * ρ ≤ η, the raw prefix is then at most half of d. Its clipped relative error is bounded below by η / (2 * (1 + η)). Combining this with the local change bound 6 * ρ charges the change to the raw prefix error, with the explicit constant 12 * (1 + η) / η.

The main theorem applies this argument to the actual recursion Cslib.RowCompression.iterate. It assumes that each earlier threshold is at most its floor and that 6 * ∑ k < i, ρ k ≤ ρ i. These hypotheses are weaker than the corresponding small-floor conditions in (8.8). A corollary discharges both numerical hypotheses for the concrete scaled dyadic floors constructed in Cslib.RowCompression.dyadicFloor. The clipped error is (8.3), with channel indices 0, 1 and group indices starting at zero, so group i uses the uncompressed prefix at i + 1. The argument is independent of the moment exponent.

This module proves the weighted preloss assertion of Lemma 8.2. It does not assert preservation of row functions by the stationary reference, stability after overflow, or a machine-space bound.

Main definitions #

Main results #

References #

noncomputable def Cslib.RowCompression.clippedError (d v : ℝ) (w : Fin 2 → ℝ) :

The clipped endpoint error of [OpenAI2026LogSpace, (8.3)]. The first true coordinate is nonnegative in applications; the second coordinate is measured by absolute error.

@[simp]
theorem Cslib.RowCompression.clippedError_self (d v : ℝ) (w : Fin 2 → ℝ) (hd : w 0 = d) (hv : w 1 = v) :
clippedError d v w = 0
theorem Cslib.RowCompression.abs_update_sub_le_mul_clippedError {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η d v : ℝ} {w : ι → Fin 2 → ℝ} {raw : Fin 2 → ℝ} (hη : 0 < η) (hd : η ≤ d) (hno : threshold s n ρ z w ≤ ρ) (hsmall : 8 * ρ ≤ η) {y : ι} (hprev : |w y 0 - raw 0| ≤ ρ) (ν : Fin 2) :
|update s n K ρ z w y ν - w y ν| ≤ 12 * (1 + η) / η * ρ * clippedError d v raw

Before overflow, a change at a genuinely large target can be charged to the raw prefix's clipped error. raw is the uncompressed prefix; w also includes preceding compression loss. Only the first coordinate of that preceding loss is needed.

theorem Cslib.RowCompression.abs_iterate_sub_uncompressed_le_weighted {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {η d v : ℝ} (hη : 0 < η) (hd : η ≤ d) (j : ℕ) (hno : ∀ i < j, stepThreshold s n K ρ Δ a i ≤ ρ i) (hsmall : ∀ i < j, 8 * ρ i ≤ η) (hprior : ∀ i < j, 6 * ∑ k ∈ Finset.range i, ρ k ≤ ρ i) (y : ι) (ν : Fin 2) :
|(iterate s n K ρ Δ a j).row y ν - uncompressedRow Δ a.row j y ν| ≤ 12 * (1 + η) / η * ∑ i ∈ Finset.range j, ρ i * clippedError d v (uncompressedRow Δ a.row (i + 1) y)

The weighted preloss estimate [OpenAI2026LogSpace, Lemma 8.2, (8.9)] for actual iterates. The right-hand errors use raw prefixes, not compressed rows. No target upper bound is needed.

theorem Cslib.RowCompression.abs_iterate_sub_uncompressed_le_weighted_dyadic {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {η d v : ℝ} (hη : 0 < η) (hd : η ≤ d) (m j : ℕ) (hj : j ≤ m) (hno : ∀ i < j, stepThreshold s n K (dyadicFloor η m) Δ a i ≤ dyadicFloor η m i) (y : ι) (ν : Fin 2) :
|(iterate s n K (dyadicFloor η m) Δ a j).row y ν - uncompressedRow Δ a.row j y ν| ≤ 12 * (1 + η) / η * ∑ i ∈ Finset.range j, dyadicFloor η m i * clippedError d v (uncompressedRow Δ a.row (i + 1) y)

Weighted preloss for the concrete dyadic floors. The numerical small-floor hypotheses are proved by the schedule; only the absence of overflow before the selected prefix remains assumed. The parameter choice against the later estimator's noise/capacity constants is separate.