Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.Stationary

The stationary reference constructed from actual preloss #

At the input of zero-based group j, the stationary reference in [OpenAI2026LogSpace, Lemma 8.2] has the current default and row truth + loss, where loss is the actual compressed prefix minus its uncompressed counterpart. stationaryState constructs this state from iterate; stationaryContinuation runs the remaining capacities and floors from their original indices, with no further increments.

For the explicit scaled dyadic floors, absence of overflow in groups i < j ≤ m bounds this loss by η / 100. Consequently a true row with nonnegative first coordinates and second coordinates of magnitude at most η / 2 produces a reference with first coordinates at least -η and second coordinates of magnitude at most η. The stationary preservation theorem then applies to the actual remaining schedule. Its entry-support, rank-gate, and flat-region hypotheses are scalar properties of the row output, not an assumed preservation conclusion.

Under explicit scalar support, flatness and root-Lipschitz laws, weighted preloss also controls the reference's discrepancy from the true zero-padded output. A lower clipping at η removes the influence of targets below η / 2, while rank stability controls the sensitive targets. This comparison allows any exponent satisfying the stated scalar law; instantiating those laws for all of the paper's row functions remains a separate obligation.

The zero-based prefix loss here is the paper's L_{j-1} before its group j. The floors are the explicitly documented margin-scaled witness from RowCompression.Floors. This module does not assert a post-overflow comparison with the incremented calculation or a machine-space bound.

Main definitions #

Main results #

References #

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

The reference at a prefix has the current default and the true row plus the compression loss already accumulated by the actual calculation.

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

Continue the constructed reference with the actual capacities and floors starting at group j, a fixed positive rank in applications, and no further increments.

theorem Cslib.RowCompression.stationaryState_row_sub {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} (j : ℕ) (y : ι) (ν : Fin 2) :
(stationaryState s n K ρ Δ a truth j).row y ν - truth y ν = (iterate s n K ρ Δ a j).row y ν - uncompressedRow Δ a.row j y ν

The reference's discrepancy from truth is exactly the actual compression loss.

theorem Cslib.RowCompression.abs_stationaryState_row_sub_le_dyadic {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} {η : ℝ} (hη : 0 ≤ η) (m j : ℕ) (hj : j ≤ m) (hno : ∀ i < j, stepThreshold s n K (dyadicFloor η m) Δ a i ≤ dyadicFloor η m i) (y : ι) (ν : Fin 2) :
|(stationaryState s n K (dyadicFloor η m) Δ a truth j).row y ν - truth y ν| ≤ η / 100

The constructed reference differs from truth by at most η / 100 before overflow. The numerical bound comes from the actual dyadic schedule, not an assumed error budget.

theorem Cslib.RowCompression.stationaryState_bounds_dyadic {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} {η : ℝ} (hη : 0 ≤ η) (m j : ℕ) (hj : j ≤ m) (hno : ∀ i < j, stepThreshold s n K (dyadicFloor η m) Δ a i ≤ dyadicFloor η m i) (hfirst : ∀ y ∈ s, 0 ≤ truth y 0) (hsecond : ∀ y ∈ s, |truth y 1| ≤ η / 2) :
(∀ y ∈ s, -η ≤ (stationaryState s n K (dyadicFloor η m) Δ a truth j).row y 0) ∧ ∀ y ∈ s, |(stationaryState s n K (dyadicFloor η m) Δ a truth j).row y 1| ≤ η

The true-row bounds and the proved preloss bound imply the shape needed by stationary compression preservation. The reference row itself need not be nonnegative.

theorem Cslib.RowCompression.stationaryState_defaultValue_le_dyadic {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} {η : ℝ} (hη : 0 ≤ η) (ha : 0 ≤ a.defaultValue) (haη : a.defaultValue ≤ η / 2) (m j : ℕ) (hj : j ≤ m) (hno : ∀ i < j, stepThreshold s n K (dyadicFloor η m) Δ a i ≤ dyadicFloor η m i) :
(stationaryState s n K (dyadicFloor η m) Δ a truth j).defaultValue ≤ η

A small initial default remains below the flat-rank threshold before overflow. This is useful when comparing the padded reference rank to the true row's zero-padded rank.

theorem Cslib.RowCompression.stationaryContinuation_output_eq_dyadic {ι : Type u_1} {s : Finset ι} {n : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} {η : ℝ} {K : ℕ} {H : ℝ → ℝ → ℝ → ℝ} {g e : ℝ} (hK : 0 < K) (m j r : ℕ) (hr : j + r ≤ m) (hno : ∀ i < j, stepThreshold s n (fun (x : ℕ) => K) (dyadicFloor η m) Δ a i ≤ dyadicFloor η m i) (hfirst : ∀ y ∈ s, 0 ≤ truth y 0) (hsecond : ∀ y ∈ s, |truth y 1| ≤ η / 2) (hn : ∀ (i : ℕ), j ≤ i → i < m → K ≤ n i) (hηg : η < g) (hge : 3 * g < e) (hentry : ∀ (x v q : ℝ), x ≤ e → H x v q = 0) (hgate : ∀ (x v q : ℝ), g ≤ q → H x v q = 0) (hflat : ∀ (x v q q' : ℝ), q ∈ Set.Icc 0 η → q' ∈ Set.Icc 0 η → H x v q = H x v q') (y : ι) (hy : y ∈ s) :
have b := stationaryState s n (fun (x : ℕ) => K) (dyadicFloor η m) Δ a truth j; have c := stationaryContinuation s n K (dyadicFloor η m) Δ a truth j r; H (c.row y 0) (c.row y 1) (firstRank s K c.defaultValue c.row) = H (b.row y 0) (b.row y 1) (firstRank s K b.defaultValue b.row)

The stationary reference constructed from actual preloss preserves its output through any initial segment of the remaining schedule. Only earlier groups must avoid overflow.

Weighted discrepancy from the true output #

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

Weighted preloss applies at the smaller sensitivity threshold η / 2 while using the same floors scaled by η. Their explicit size also proves this stronger local margin.

theorem Cslib.RowCompression.abs_stationaryState_root_sub_le_weighted_dyadic {ι : Type u_1} {s : Finset ι} {n : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} {truth : ι → Fin 2 → ℝ} {η : ℝ} {K : ℕ} {H : ℝ → ℝ → ℝ → ℝ} {p C : ℝ} {ε : ℕ → ℝ} (hη : 0 < η) (hK : 0 < K) (hC : 0 ≤ C) (ha : 0 ≤ a.defaultValue) (haη : a.defaultValue ≤ η / 2) (m j : ℕ) (hj : j ≤ m) (hno : ∀ i < j, stepThreshold s n (fun (x : ℕ) => K) (dyadicFloor η m) Δ a i ≤ dyadicFloor η m i) (hε : ∀ i < j, 0 ≤ ε i) (herr : ∀ i < j, ∀ y ∈ s, η / 2 ≤ truth y 0 → clippedError (truth y 0) (truth y 1) (uncompressedRow Δ a.row (i + 1) y) ≤ ε i) (hentry : ∀ (x v q : ℝ), x ≤ η → H x v q = 0) (hflat : ∀ (x v q q' : ℝ), q ∈ Set.Icc 0 η → q' ∈ Set.Icc 0 η → H x v q = H x v q') (hroot : ∀ (x v q x' v' q' : ℝ), η ≤ x → η ≤ x' → η ≤ q → η ≤ q' → |H x v q ^ p - H x' v' q' ^ p| ≤ C * (|x - x'| + |v - v'| + |q - q'|)) (y : ι) (hy : y ∈ s) :
have b := stationaryState s n (fun (x : ℕ) => K) (dyadicFloor η m) Δ a truth j; |H (b.row y 0) (b.row y 1) (firstRank s K b.defaultValue b.row) ^ p - H (truth y 0) (truth y 1) (firstRank s K 0 truth) ^ p| ≤ 3 * C * (12 * (1 + η / 2) / (η / 2) * ∑ i ∈ Finset.range j, dyadicFloor η m i * ε i)

A weighted discrepancy bound between the constructed stationary reference and truth.

ε i bounds the clipped errors of the actual uncompressed prefix at endpoints with true first coordinate at least η / 2. The scalar root output is assumed Lipschitz on the clipped first-coordinate and rank region; this is a regularity hypothesis about H, independent of the compression calculation. Targets below η / 2 remain below entry support by the proved uniform loss bound. Their possibly larger relative errors therefore do not enter the weighted rank comparison.

This theorem supplies the comparison at the start of the stationary calculation. Combined with stationaryContinuation_output_eq_dyadic, it gives the same bound after its remaining updates. Verifying these scalar laws for particular row functions is a separate obligation.