Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.Reference

Stationary reference rows under compression #

This module proves the stationary-output assertion of [OpenAI2026LogSpace, Lemma 8.2]. The first coordinates of a reference row are at least -η, and the absolute values of its second coordinates are at most η. Compression has floor at most η and capacity n ≥ K. Write q for the K-th first-coordinate rank padded by the old default. The actual threshold, new default and new padded rank are at most max η q. If η < q, the padded rank is preserved exactly; otherwise both old and new ranks remain in [0,η]. The row bounds are preserved too.

A row output H(first, second, rank) is preserved when it is zero below an entry threshold e, zero above a gate-closing rank g, and independent of rank within [0,η], where η < g and 3 * g < e. When the gate is open, entries above e are unchanged and entries below e cannot enter the support. The theorem also iterates the concrete updates with no increments, allowing arbitrary floors at most η and capacities at least the fixed rank K.

This is output preservation, not equality of whole rows: defaults and small entries may move. No root-discrepancy bound, comparison with a perturbed reference, or post-overflow error estimate is asserted. The arithmetic rank includes zero padding; for the source's nonnegative defaults it agrees with padding by arbitrarily many copies of the default.

Main definitions #

Main results #

References #

noncomputable def Cslib.RowCompression.firstRank {ι : Type u_1} (s : Finset ι) (K : ℕ) (z : ℝ) (w : ι → Fin 2 → ℝ) :

The first-coordinate rank, padded by the old default as well as zero. For a nonnegative default this is the rank obtained by adjoining arbitrarily many copies of (z,0).

theorem Cslib.RowCompression.firstRank_nonneg {ι : Type u_1} {s : Finset ι} {K : ℕ} {z : ℝ} {w : ι → Fin 2 → ℝ} :
0 ≤ firstRank s K z w
theorem Cslib.RowCompression.default_le_firstRank {ι : Type u_1} {s : Finset ι} {K : ℕ} {z : ℝ} {w : ι → Fin 2 → ℝ} :
z ≤ firstRank s K z w
theorem Cslib.RowCompression.kthLargest_le_firstRank {ι : Type u_1} {s : Finset ι} {K : ℕ} {z : ℝ} {w : ι → Fin 2 → ℝ} :
(Finset.kthLargest K s fun (y : ι) => w y 0) ≤ firstRank s K z w
theorem Cslib.RowCompression.reference_threshold_le {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η : ℝ} {w : ι → Fin 2 → ℝ} (hη : 0 ≤ η) (hρ : ρ ≤ η) (hK : 0 < K) (hKn : K ≤ n) (hfirst : ∀ y ∈ s, -η ≤ w y 0) (hsecond : ∀ y ∈ s, |w y 1| ≤ η) :
threshold s n ρ z w ≤ max η (firstRank s K z w)

With small negative first coordinates and small second coordinates, size ranks cannot exceed the first-coordinate rank or η, whichever is larger.

theorem Cslib.RowCompression.reference_newDefault_le {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η : ℝ} {w : ι → Fin 2 → ℝ} (hη : 0 ≤ η) (hρ : ρ ≤ η) (hK : 0 < K) (hKn : K ≤ n) (hfirst : ∀ y ∈ s, -η ≤ w y 0) (hsecond : ∀ y ∈ s, |w y 1| ≤ η) :
newDefault s n K ρ z w ≤ max η (firstRank s K z w)

The new default is at most the larger of η and the old padded rank.

theorem Cslib.RowCompression.reference_update_bounds {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η : ℝ} {w : ι → Fin 2 → ℝ} (hη : 0 ≤ η) {y : ι} (hfirst : -η ≤ w y 0) (hsecond : |w y 1| ≤ η) :
-η ≤ update s n K ρ z w y 0 ∧ |update s n K ρ z w y 1| ≤ η

Moving coordinates toward a nonnegative first-coordinate default and zero second coordinate preserves the reference row's small negative and second-coordinate bounds.

theorem Cslib.RowCompression.firstRank_update_le_of_le {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z R : ℝ} {w : ι → Fin 2 → ℝ} (hK : 0 < K) (hR : 0 ≤ R) (hq : firstRank s K z w ≤ R) (hu : threshold s n ρ z w ≤ R) :
firstRank s K (newDefault s n K ρ z w) (update s n K ρ z w) ≤ R

The updated padded first rank remains below a common input rank and threshold ceiling. No lower bound on raw first entries or upper bound on second entries is needed.

theorem Cslib.RowCompression.reference_firstRank_le {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η : ℝ} {w : ι → Fin 2 → ℝ} (hη : 0 ≤ η) (hρ : ρ ≤ η) (hK : 0 < K) (hKn : K ≤ n) (hfirst : ∀ y ∈ s, -η ≤ w y 0) (hsecond : ∀ y ∈ s, |w y 1| ≤ η) :
firstRank s K (newDefault s n K ρ z w) (update s n K ρ z w) ≤ max η (firstRank s K z w)

The new padded rank is at most the larger of η and the old padded rank.

theorem Cslib.RowCompression.reference_firstRank_eq {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η : ℝ} {w : ι → Fin 2 → ℝ} (hη : 0 ≤ η) (hρ : ρ ≤ η) (hK : 0 < K) (hKn : K ≤ n) (hfirst : ∀ y ∈ s, -η ≤ w y 0) (hsecond : ∀ y ∈ s, |w y 1| ≤ η) (hq : η < firstRank s K z w) :
firstRank s K (newDefault s n K ρ z w) (update s n K ρ z w) = firstRank s K z w

Above the flat rank region, the padded rank is preserved exactly. If the new default does not already equal the old rank, all old rank witnesses lie in the identity region.

theorem Cslib.RowCompression.reference_update_output_eq {ι : Type u_1} {s : Finset ι} {n K : ℕ} {ρ z η : ℝ} {w : ι → Fin 2 → ℝ} {H : ℝ → ℝ → ℝ → ℝ} {g e : ℝ} (hη : 0 ≤ η) (hρ : ρ ≤ η) (hK : 0 < K) (hKn : K ≤ n) (hfirst : ∀ y ∈ s, -η ≤ w y 0) (hsecond : ∀ y ∈ s, |w y 1| ≤ η) (hηg : η < g) (hge : 3 * g < e) (hentry : ∀ (x v r : ℝ), x ≤ e → H x v r = 0) (hgate : ∀ (x v r : ℝ), g ≤ r → H x v r = 0) (hflat : ∀ (x v q r : ℝ), q ∈ Set.Icc 0 η → r ∈ Set.Icc 0 η → H x v q = H x v r) (y : ι) (_hy : y ∈ s) :
H (update s n K ρ z w y 0) (update s n K ρ z w y 1) (firstRank s K (newDefault s n K ρ z w) (update s n K ρ z w)) = H (w y 0) (w y 1) (firstRank s K z w)

Compression preserves any row output with a separated entry support and rank gate, and with no rank sensitivity in [0,η]. These are the structural hypotheses used in the stationary-reference part of [OpenAI2026LogSpace, Lemma 8.2].

theorem Cslib.RowCompression.reference_iterate_bounds {ι : Type u_1} {s : Finset ι} {K : ℕ} {η : ℝ} {n : ℕ → ℕ} {ρ : ℕ → ℝ} {a : State ι} (hη : 0 ≤ η) (hfirst : ∀ y ∈ s, -η ≤ a.row y 0) (hsecond : ∀ y ∈ s, |a.row y 1| ≤ η) (j : ℕ) :
(∀ y ∈ s, -η ≤ (iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) a j).row y 0) ∧ ∀ y ∈ s, |(iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) a j).row y 1| ≤ η

Zero-increment compression preserves the reference row's coordinate bounds at every stage. This uses only movement toward the nonnegative default, not rank preservation.

theorem Cslib.RowCompression.reference_iterate_output_eq {ι : Type u_1} {s : Finset ι} {K : ℕ} {η : ℝ} {n : ℕ → ℕ} {ρ : ℕ → ℝ} {a : State ι} {H : ℝ → ℝ → ℝ → ℝ} {g e : ℝ} (hη : 0 ≤ η) (hK : 0 < K) (hfirst : ∀ y ∈ s, -η ≤ a.row y 0) (hsecond : ∀ y ∈ s, |a.row y 1| ≤ η) (hηg : η < g) (hge : 3 * g < e) (hentry : ∀ (x v r : ℝ), x ≤ e → H x v r = 0) (hgate : ∀ (x v r : ℝ), g ≤ r → H x v r = 0) (hflat : ∀ (x v q r : ℝ), q ∈ Set.Icc 0 η → r ∈ Set.Icc 0 η → H x v q = H x v r) (j : ℕ) (hn : ∀ i < j, K ≤ n i) (hρ : ∀ i < j, ρ i ≤ η) (y : ι) (hy : y ∈ s) :
H ((iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) a j).row y 0) ((iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) a j).row y 1) (firstRank s K (iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) a j).defaultValue (iterate s n (fun (x : ℕ) => K) ρ (fun (x : ℕ) => 0) a j).row) = H (a.row y 0) (a.row y 1) (firstRank s K a.defaultValue a.row)

Stationary reference outputs survive any finite zero-increment compression schedule whose floors are at most η and whose capacities are at least the fixed rank K. Neither the row entries, the defaults, nor the chosen exception lists need remain fixed.