Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.SentinelIteration

Removing sentinels through an actual compression schedule #

The modified calculation starts from sentinelState marked L a and uses increments sentinelFirst marked 0 (Δ i). Thus only marked first-channel increments are removed; second increments are unchanged. If the actual modified input ranks and thresholds are bounded by R, and 3R plus the total absolute first-channel variation is below every marked initial first coordinate, the two actual calculations remain coupled at every prefix.

Their defaults agree, the modified full row is the sentinel replacement of the original row, and both original marked coordinates follow their actual uncompressed prefixes. The latter fact derives the large-input condition needed at the next step. After every positive prefix, the padded first ranks also agree and are at most R.

This supplies the removal induction in [OpenAI2026LogSpace, Lemma 8.3]. It assumes explicit ceilings only for the modified calculation; no bound on original compressed inputs or desired final output is assumed. Deriving the ceilings and variation hypothesis from clipped errors, upper saturation of row functions, the heavy-count case, and full post-overflow stability remain separate. No implementation for finding or storing the analytical sentinels is asserted.

Main definitions #

Main results #

References #

noncomputable def Cslib.RowCompression.sentinelState {ι : Type u_1} (marked : Finset ι) (L : ℝ) (a : State ι) :

Replace marked first entries in a state, retaining its actual common default.

theorem Cslib.RowCompression.sentinelFirst_add {ι : Type u_1} (marked : Finset ι) (L : ℝ) (w Δ : ι → Fin 2 → ℝ) :
sentinelFirst marked L (w + Δ) = sentinelFirst marked L w + sentinelFirst marked 0 Δ

Clearing marked first increments makes addition commute exactly with sentinel replacement.

theorem Cslib.RowCompression.iterate_sentinelState_of_sum_abs_lt {ι : Type u_1} {s marked : Finset ι} {n : ℕ → ℕ} {K : ℕ} {ρ : ℕ → ℝ} {R L : ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (m : ℕ) (hmarked : marked ⊆ s) (hK : 0 < K) (hL : 3 * R < L) (hvar : ∀ y ∈ marked, 3 * R + ∑ i ∈ Finset.range m, |Δ i y 0| < a.row y 0) :
have Δ' := fun (i : ℕ) => sentinelFirst marked 0 (Δ i); have b := sentinelState marked L a; (∀ i < m, firstRank s K (iterate s n (fun (x : ℕ) => K) ρ Δ' b i).defaultValue (inputRow s n (fun (x : ℕ) => K) ρ Δ' b i) ≤ R) → (∀ i < m, stepThreshold s n (fun (x : ℕ) => K) ρ Δ' b i ≤ R) → ∀ j ≤ m, have original := iterate s n (fun (x : ℕ) => K) ρ Δ a j; have modified := iterate s n (fun (x : ℕ) => K) ρ Δ' b j; modified = sentinelState marked L original ∧ (∀ y ∈ marked, original.row y = uncompressedRow Δ a.row j y) ∧ (0 < j → firstRank s K original.defaultValue original.row = firstRank s K modified.defaultValue modified.row ∧ firstRank s K modified.defaultValue modified.row ≤ R)

Actual multi-step sentinel removal. Only the modified run's input ranks and thresholds are assumed bounded. Total raw first-channel variation proves that original marked inputs stay in the compression identity region. Both original marked channels follow their raw prefixes.

The result also identifies the actual padded ranks after every positive prefix and bounds them by R. No equality or regularity law for final row outputs is assumed.