Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.SentinelRelative

Deriving sentinel comparison bounds from clipped prefix errors #

Suppose fewer than K true first entries exceed L₀, and the actual raw prefixes have small clipped errors. Replace first entries above 16 * (L₀ + 1) by that common sentinel and clear only their later first increments. The modified calculation has bounded actual input ranks and thresholds, and the original marked entries remain in the compression identity region.

The ceilings and the total-variation hypothesis of Cslib.RowCompression.iterate_sentinelState_of_sum_abs_lt are derived here, rather than assumed. The comparison reference has the true row plus the same small initial loss and no increments. The finite error budget is the exact 28-weighted sum supplied by absolute update stability. No upper bound on the largest true entry, original compressed input, or final output error is assumed.

For a first-overflow application, start the local calculation from the already-added input of that group, use a zero first local increment, and then use the subsequent actual increments. Both the initial and first local prefix errors then concern the overflow group's raw input. This does not require an error estimate for the preceding global prefix.

This supplies the small-heavy-set sentinel comparison in the proof of [OpenAI2026LogSpace, Section 8.3, Lemma 8.3]. The concrete output comparison, including upper saturation and the branch with at least K large true entries, is supplied by CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.SaturatedRoot, specialized to polynomial outputs in CslibFrontier.Computability.LogSpaceDerandomization.PolynomialAtomRows.Relative. Sentinels are analytical devices, not objects stored by the compression algorithm.

Main definitions #

Main results #

References #

theorem Cslib.RowCompression.abs_increment_le_of_clippedError_le {ι : Type u_1} {Δ : ℕ → ι → Fin 2 → ℝ} {raw₀ : ι → Fin 2 → ℝ} {truth : Fin 2 → ℝ} {ε ε' : ℝ} {i : ℕ} {y : ι} (hd : 0 ≤ truth 0) (hε : ε < 1) (hε' : ε' < 1) (hbefore : clippedError (truth 0) (truth 1) (uncompressedRow Δ raw₀ i y) ≤ ε) (hafter : clippedError (truth 0) (truth 1) (uncompressedRow Δ raw₀ (i + 1) y) ≤ ε') :
|Δ i y 0| ≤ (1 + truth 0) * (ε + ε') ∧ |Δ i y 1| ≤ ε + ε'

Adjacent small clipped-prefix errors control the actual increment in both channels.

The finite 28-weighted error budget for an initial raw prefix and subsequent prefixes.

theorem Cslib.RowCompression.prefixErrorBudget_nonneg {ε : ℕ → ℝ} {m : ℕ} (hε : ∀ i ≤ m, 0 ≤ ε i) :

A nonnegative prefix envelope gives a nonnegative propagation budget.

theorem Cslib.RowCompression.prefixErrorBudget_mono {ε : ℕ → ℝ} {j m : ℕ} (hε : ∀ i ≤ m, 0 ≤ ε i) (hj : j ≤ m) :

Extending a nonnegative prefix envelope can only increase its propagated budget.

theorem Cslib.RowCompression.sum_add_le_prefixErrorBudget {ε : ℕ → ℝ} {m : ℕ} (hε : ∀ i ≤ m, 0 ≤ ε i) :
ε 0 + ∑ i ∈ Finset.range m, (ε i + ε (i + 1)) ≤ prefixErrorBudget ε m

The propagation budget controls initial error plus total adjacent-prefix variation.

theorem Cslib.RowCompression.le_prefixErrorBudget {ε : ℕ → ℝ} {m i : ℕ} (hε : ∀ i ≤ m, 0 ≤ ε i) (hi : i ≤ m) :

Every individual prefix error is bounded by the propagated budget.

theorem Cslib.RowCompression.prefixErrorBudget_add_le {ε : ℕ → ℝ} {m i : ℕ} (hε : ∀ k ≤ m, 0 ≤ ε k) (hi : i < m) :
prefixErrorBudget ε i + (ε i + ε (i + 1)) ≤ prefixErrorBudget ε m

The budget before an update plus its adjacent-prefix error is controlled by the final budget.

theorem Cslib.RowCompression.iterate_sentinelState_stability_of_clippedError_le {ι : Type u_1} {s : Finset ι} {n : ℕ → ℕ} {K : ℕ} {ρ : ℕ → ℝ} {L z : ℝ} {truth raw₀ loss : ι → Fin 2 → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {ε : ℕ → ℝ} (m : ℕ) (hL : 0 ≤ L) (hK : 0 < K) (hn : ∀ i < m, 0 < n i) (hfirst : ∀ y ∈ s, 0 ≤ truth y 0) (hε : ∀ i ≤ m, 0 ≤ ε i) (hεlt : ∀ i ≤ m, ε i < 1) (herr : ∀ i ≤ m, ∀ y ∈ s, clippedError (truth y 0) (truth y 1) (uncompressedRow Δ raw₀ i y) ≤ ε i) :
have marked := {y ∈ s | L < truth y 0}; have a := { defaultValue := z, row := raw₀ + loss }; have b := { defaultValue := z, row := truth + loss }; have Δ' := fun (i : ℕ) => sentinelFirst marked 0 (Δ i); have A := iterate s n (fun (x : ℕ) => K) ρ Δ' (sentinelState marked L a); have B := iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) (sentinelState marked L b); (∀ i < m, ∀ y ∈ s, ∀ (ν : Fin 2), |Δ' i y ν| ≤ (1 + L) * (ε i + ε (i + 1))) ∧ ∀ j ≤ m, |(A j).defaultValue - (B j).defaultValue| ≤ (1 + L) * prefixErrorBudget ε j ∧ ∀ y ∈ s, ∀ (ν : Fin 2), |(A j).row y ν - (B j).row y ν| ≤ (1 + L) * prefixErrorBudget ε j

Quantitative comparison after a common sentinel replacement. Actual clipped prefix errors control the modified increments, both defaults, and all retained coordinates. The reference has the true row plus the same initial loss and zero increments. No count or threshold ceiling is required here.

theorem Cslib.RowCompression.iterate_sentinelState_of_clippedError_le {ι : Type u_1} {s : Finset ι} {n : ℕ → ℕ} {K : ℕ} {ρ : ℕ → ℝ} {η L₀ z : ℝ} {truth raw₀ loss : ι → Fin 2 → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {ε : ℕ → ℝ} (m : ℕ) (hη : 0 ≤ η) (hL₀ : η ≤ L₀) (hzη : z ≤ η) (hK : 0 < K) (hKn : ∀ i < m, K ≤ n i) (hρ : ∀ i < m, ρ i ≤ η) (hfirst : ∀ y ∈ s, 0 ≤ truth y 0) (hsecond : ∀ y ∈ s, |truth y 1| ≤ η / 2) (hloss : ∀ y ∈ s, ∀ (ν : Fin 2), |loss y ν| ≤ η / 2) (hcount : {y ∈ s | L₀ < truth y 0}.card < K) (hε : ∀ i ≤ m, 0 ≤ ε i) (herr : ∀ i ≤ m, ∀ y ∈ s, clippedError (truth y 0) (truth y 1) (uncompressedRow Δ raw₀ i y) ≤ ε i) (hsmall : (1 + 16 * (L₀ + 1)) * (28 ^ m * ε 0 + ∑ i ∈ Finset.range m, 28 ^ (m - i) * (ε i + ε (i + 1))) ≤ 1 / 8) :
have L := 16 * (L₀ + 1); have R := 2 * L₀ + 1; have marked := {y ∈ s | L < truth y 0}; have a := { defaultValue := z, row := raw₀ + loss }; have original := iterate s n (fun (x : ℕ) => K) ρ Δ a; have modified := iterate s n (fun (x : ℕ) => K) ρ (fun (i : ℕ) => sentinelFirst marked 0 (Δ i)) (sentinelState marked L a); ∀ j ≤ m, modified j = sentinelState marked L (original j) ∧ (∀ y ∈ marked, (original j).row y = uncompressedRow Δ a.row j y) ∧ (0 < j → firstRank s K (original j).defaultValue (original j).row = firstRank s K (modified j).defaultValue (modified j).row ∧ firstRank s K (modified j).defaultValue (modified j).row ≤ R)

Sentinel coupling from actual clipped-prefix budgets. The threshold and variation conditions of the removal induction follow from the true heavy-count branch and the weighted prefix budget. loss is the common initial preloss; it is not a final-error hypothesis.

Only marked first increments are cleared. Both original marked channels follow their actual raw prefixes, and all positive-prefix padded ranks agree exactly.