Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.FalseOverflow

Charging a first overflow to errors at light targets #

At the first group whose compression threshold exceeds its floor, sufficiently many real entries exceed that floor: the preceding default is too small to cause the overflow. If fewer than half as many true endpoints are heavy, at least half the overflowing entries are light. At each light endpoint, a large input and small preceding compression loss force a large raw-prefix error.

This module proves the deterministic counting and charging assertion of [OpenAI2026LogSpace, Section 8.4, (8.12)]. For a floor 0 < ρ ≤ 1, a true first coordinate in [0, ρ / 4], a zero true second coordinate, and preloss at most ρ / 100, an input of size greater than ρ has clipped error at least ρ / 2. Thus a false-type overflow satisfies 1 ≤ 2 ^ (p + 1) / (n * ρ ^ p) * ∑ y, error y ^ p, for every natural moment exponent p.

The final theorem applies this to the actual iterated compression with the explicit dyadic floors and zero initial default. It derives the previous-default and preloss bounds from the absence of earlier overflow. The error is taken from the uncompressed prefix at j + 1, not from the compressed row. The first-overflow index is also proved unique.

This is the pointwise false-overflow charge. Conditional rarity of true heavy counts, stability after overflow, and the integrated compression theorem remain separate obligations.

Main results #

References #

def Cslib.RowCompression.IsFirstOverflow {ι : Type u_1} (s : Finset ι) (n K : ℕ → ℕ) (ρ : ℕ → ℝ) (Δ : ℕ → ι → Fin 2 → ℝ) (a : State ι) (j : ℕ) :

Group j is the first whose actual threshold exceeds its prescribed floor.

theorem Cslib.RowCompression.IsFirstOverflow.unique {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {j k : ℕ} (hj : IsFirstOverflow s n K ρ Δ a j) (hk : IsFirstOverflow s n K ρ Δ a k) :
j = k

A run cannot have two different first-overflow groups.

theorem Cslib.RowCompression.half_floor_le_clippedError {ρ d v : ℝ} {w raw : Fin 2 → ℝ} (hρ : 0 < ρ) (hρ1 : ρ ≤ 1) (hd : 0 ≤ d) (hdρ : d ≤ ρ / 4) (hv : v = 0) (hprev : ∀ (ν : Fin 2), |w ν - raw ν| ≤ ρ / 100) (hsize : ρ < entrySize w) :
ρ / 2 ≤ clippedError d v raw

A light true target cannot produce a large compression input without a large raw error. Both input channels may have either sign.

theorem Cslib.RowCompression.le_card_large_of_overflow {ι : Type u_1} {s : Finset ι} {n : ℕ} {ρ z : ℝ} {w : ι → Fin 2 → ℝ} (hn : 0 < n) (hρ : 0 ≤ ρ) (hz : z ≤ ρ) (hover : ρ < threshold s n ρ z w) :
n ≤ {y ∈ s | ρ < entrySize (w y)}.card

If the old default is below the floor, an overflow needs at least n real large entries.

theorem Cslib.RowCompression.one_le_sum_clippedError_pow_of_overflow {ι : Type u_1} {s : Finset ι} {n : ℕ} {ρ z : ℝ} {w raw truth : ι → Fin 2 → ℝ} (hn : 0 < n) (hρ : 0 < ρ) (hρ1 : ρ ≤ 1) (hz : z ≤ ρ) (hover : ρ < threshold s n ρ z w) (hfirst : ∀ y ∈ s, 0 ≤ truth y 0) (hsecond : ∀ y ∈ s, truth y 0 ≤ ρ / 4 → truth y 1 = 0) (hprev : ∀ y ∈ s, ∀ (ν : Fin 2), |w y ν - raw y ν| ≤ ρ / 100) (hheavy : 2 * {y ∈ s | ρ / 4 < truth y 0}.card < n) (p : ℕ) :
1 ≤ 2 ^ (p + 1) / (↑n * ρ ^ p) * ∑ y ∈ s, clippedError (truth y 0) (truth y 1) (raw y) ^ p

The moment sum pays for an overflow unless at least half its capacity is truly heavy. The constant is explicit, and the bound allows arbitrary dependence between entries.

theorem Cslib.RowCompression.one_le_sum_clippedError_pow_of_firstOverflow_dyadic {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} {η : ℝ} (hη : 0 < η) (hη1 : η ≤ 1) (ha : a.defaultValue = 0) (m j : ℕ) (hj : j < m) (hn : 0 < n j) (hover : IsFirstOverflow s n K (dyadicFloor η m) Δ a j) (hfirst : ∀ y ∈ s, 0 ≤ truth y 0) (hsecond : ∀ y ∈ s, truth y 0 ≤ dyadicFloor η m j / 4 → truth y 1 = 0) (hheavy : 2 * {y ∈ s | dyadicFloor η m j / 4 < truth y 0}.card < n j) (p : ℕ) :
1 ≤ 2 ^ (p + 1) / (↑(n j) * dyadicFloor η m j ^ p) * ∑ y ∈ s, clippedError (truth y 0) (truth y 1) (uncompressedRow Δ a.row (j + 1) y) ^ p

The false-overflow charge for the actual dyadic compression run. Earlier non-overflow and the explicit floor separation imply all default and preloss hypotheses of the local charge.

theorem Cslib.RowCompression.le_of_noOverflow_of_firstOverflow {ι : Type u_1} (s : Finset ι) (n K : ℕ → ℕ) (ρ : ℕ → ℝ) (Δ : ℕ → ι → Fin 2 → ℝ) (a : State ι) (m : ℕ) (heavy : ℕ → Prop) (ε : ℕ → ℝ) {εfinal E An At Cf Ct : ℝ} (hρ : ∀ (i : ℕ), 0 ≤ ρ i) (hε : ∀ i < m, 0 ≤ ε i) (hεfinal : 0 ≤ εfinal) (hAt : 0 ≤ At) (hCf : 0 ≤ Cf) (hCt : 0 ≤ Ct) (hfalse : ¬∃ j < m, IsFirstOverflow s n K ρ Δ a j ∧ ¬heavy j) (hno : (∀ i < m, stepThreshold s n K ρ Δ a i ≤ ρ i) → E ≤ An * ∑ i ∈ Finset.range m, ρ i * ε i + Cf * εfinal) (hover : ∀ j < m, IsFirstOverflow s n K ρ Δ a j → E ≤ At * ∑ i ∈ Finset.range j, ρ i * ε i + Ct * ∑ i ∈ Finset.Ico j m, 28 ^ (m - i) * ε i) :
E ≤ (max An At * ∑ i ∈ Finset.range m, ρ i * ε i + max Cf Ct * if ∀ i < m, stepThreshold s n K ρ Δ a i ≤ ρ i then εfinal else 0) + max Cf Ct * ∑ j ∈ Finset.range m, if IsFirstOverflow s n K ρ Δ a j ∧ heavy j then ∑ i ∈ Finset.Ico j m, 28 ^ (m - i) * ε i else 0

Combining the overflow cases. Suppose an error E is at most An times the prefix budget plus Cf εfinal when no group overflows its floor, and at most At times the prefix budget before j plus Ct times the tail budget from j when j < m is the first overflow. If no first overflow is light, E is bounded by the combined budget with coefficients max An At and max Cf Ct: the prefix budget, the final error when nothing overflows, and the tail budgets of heavy first overflows.