Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PolynomialAtomRows

Polynomial atom rows under stationary compression #

The preparation, auxiliary score, and broad witness are concrete two-variable polynomial functions from CslibFrontier.Computability.LogSpaceDerandomization.PolynomialAtomCutoffs. This file proves their strict retained-support bound, zero default output, preservation along the constructed stationary reference, and a weighted fourth-root comparison with truth. PolynomialAtomRow is a closed choice of those three functions; no scalar regularity or support law is assumed.

The common sufficient margin is 0 < η ≤ θ / 10000, where θ is the atom's support scale and η is the compression scale. The comparison constant depends only on the chosen function, θ, and η; it is independent of the row, finite retained set, rank, schedule, and error envelope. The rank includes the actual compressed default. Only the true row uses zero padding. The bridges to Matrix.atomPrep and Matrix.auxScore use their existing zero-padded ranks.

These results instantiate the scalar laws in the stationary-reference portion of [OpenAI2026LogSpace, Lemma 8.2] for the three pre-incoming row functions of Section 5.5. They belong to the fourth-moment adaptation in cslib-frontier issue #1721; the pinned paper uses eighth roots. Normalized main atoms, incoming-gate assembly, enumeration, post-overflow stability, and a machine-space certificate remain separate.

Main results #

References #

The three concrete pre-incoming row functions with polynomial fourth-root regularity.

def Cslib.PolynomialAtomRow.eval {R : Type u_1} [Field R] [LinearOrder R] (kind : PolynomialAtomRow) (θ v r : R) :
R

Evaluate the chosen concrete function, using rational arithmetic for rational arguments.

The closed entry-zero threshold of the chosen function.

def Cslib.PolynomialAtomRow.gateThreshold {R : Type u_1} [Field R] (kind : PolynomialAtomRow) (θ : R) :
R

The closed rank-zero threshold of the chosen function.

theorem Cslib.PolynomialAtomRow.eval_nonneg (kind : PolynomialAtomRow) (θ v r : ℝ) :
0 ≤ kind.eval θ v r
theorem Cslib.PolynomialAtomRow.eval_le_one (kind : PolynomialAtomRow) (θ v r : ℝ) :
kind.eval θ v r ≤ 1
theorem Cslib.PolynomialAtomRow.scale_lt_gateThreshold (kind : PolynomialAtomRow) {θ η : ℝ} (hθ : 0 < θ) (hη : η ≤ θ / 10000) :
η < kind.gateThreshold θ
theorem Cslib.PolynomialAtomRow.eval_eq_zero_of_entry_le (kind : PolynomialAtomRow) {θ v r : ℝ} (hθ : 0 < θ) (hv : v ≤ kind.entryThreshold θ) :
kind.eval θ v r = 0
theorem Cslib.PolynomialAtomRow.eval_eq_zero_of_rank_ge (kind : PolynomialAtomRow) {θ v r : ℝ} (hθ : 0 < θ) (hr : kind.gateThreshold θ ≤ r) :
kind.eval θ v r = 0
theorem Cslib.PolynomialAtomRow.eval_eq_of_rank_le (kind : PolynomialAtomRow) {θ η v r r' : ℝ} (hθ : 0 < θ) (hη : η ≤ θ / 10000) (hr : r ≤ η) (hr' : r' ≤ η) :
kind.eval θ v r = kind.eval θ v r'

All three actual rank factors are constant throughout the common flat region.

theorem Cslib.PolynomialAtomRow.exists_abs_eval_root_sub_le (kind : PolynomialAtomRow) (θ : ℝ) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ (v r v' r' : ℝ), |kind.eval θ v r ^ 4⁻¹ - kind.eval θ v' r' ^ 4⁻¹| ≤ C * (|v - v'| + |r - r'|)
theorem Cslib.PolynomialAtomRow.eval_firstRank_zero (kind : PolynomialAtomRow) {ι : Type u_1} {s : Finset ι} {K : ℕ} {w : ι → Fin 2 → ℝ} (θ v : ℝ) :
kind.eval θ v (RowCompression.firstRank s K 0 w) = kind.eval θ v (Finset.kthLargest K s fun (y : ι) => w y 0)

Zero padding in the compression rank agrees with the existing atom rank, including when K exceeds the retained cardinality or the raw first coordinates are negative.

theorem Cslib.PolynomialAtomRow.eval_default_eq_zero (kind : PolynomialAtomRow) {θ : ℝ} {ι : Type u_1} {s : Finset ι} {K : ℕ} {z : ℝ} {w : ι → Fin 2 → ℝ} (hθ : 0 < θ) :
kind.eval θ z (RowCompression.firstRank s K z w) = 0

The actual default entry always has zero output, with no sign restriction on the default.

theorem Cslib.PolynomialAtomRow.card_filter_eval_ne_zero_lt (kind : PolynomialAtomRow) {θ : ℝ} {ι : Type u_1} {s : Finset ι} {K : ℕ} {z : ℝ} {w : ι → Fin 2 → ℝ} (hθ : 0 < θ) (hK : 0 < K) :
{y ∈ s | kind.eval θ (w y 0) (RowCompression.firstRank s K z w) ≠ 0}.card < K

Fewer than K retained endpoints have nonzero output for the actual padded rank.

theorem Cslib.PolynomialAtomRow.stationaryContinuation_eval_eq (kind : PolynomialAtomRow) {θ η : ℝ} {ι : Type u_1} {s : Finset ι} {K : ℕ} {n : ℕ → ℕ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : RowCompression.State ι} {truth : ι → Fin 2 → ℝ} (hθ : 0 < θ) (hmargin : η ≤ θ / 10000) (hK : 0 < K) (m j r : ℕ) (hr : j + r ≤ m) (hno : ∀ i < j, RowCompression.stepThreshold s n (fun (x : ℕ) => K) (RowCompression.dyadicFloor η m) Δ a i ≤ RowCompression.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) (y : ι) (hy : y ∈ s) :
have b := RowCompression.stationaryState s n (fun (x : ℕ) => K) (RowCompression.dyadicFloor η m) Δ a truth j; have c := RowCompression.stationaryContinuation s n K (RowCompression.dyadicFloor η m) Δ a truth j r; kind.eval θ (c.row y 0) (RowCompression.firstRank s K c.defaultValue c.row) = kind.eval θ (b.row y 0) (RowCompression.firstRank s K b.defaultValue b.row)

The constructed stationary reference preserves each actual polynomial row output through the remaining compression schedule. Scalar support, gate, flatness, and margin laws are proved.

theorem Cslib.PolynomialAtomRow.exists_stationaryContinuation_root_bound (kind : PolynomialAtomRow) {θ η : ℝ} (hθ : 0 < θ) (hη : 0 < η) (hmargin : η ≤ θ / 10000) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ {ι : Type u_2} (s : Finset ι) (n : ℕ → ℕ) (Δ : ℕ → ι → Fin 2 → ℝ) (a : RowCompression.State ι) (truth : ι → Fin 2 → ℝ) (K : ℕ), 0 < K → 0 ≤ a.defaultValue → a.defaultValue ≤ η / 2 → ∀ (m j r : ℕ), j + r ≤ m → (∀ i < j, RowCompression.stepThreshold s n (fun (x : ℕ) => K) (RowCompression.dyadicFloor η m) Δ a i ≤ RowCompression.dyadicFloor η m i) → (∀ y ∈ s, 0 ≤ truth y 0) → (∀ y ∈ s, |truth y 1| ≤ η / 2) → (∀ (i : ℕ), j ≤ i → i < m → K ≤ n i) → ∀ (ε : ℕ → ℝ), (∀ i < j, 0 ≤ ε i) → (∀ i < j, ∀ y ∈ s, η / 2 ≤ truth y 0 → RowCompression.clippedError (truth y 0) (truth y 1) (RowCompression.uncompressedRow Δ a.row (i + 1) y) ≤ ε i) → ∀ y ∈ s, have c := RowCompression.stationaryContinuation s n K (RowCompression.dyadicFloor η m) Δ a truth j r; |kind.eval θ (c.row y 0) (RowCompression.firstRank s K c.defaultValue c.row) ^ 4⁻¹ - kind.eval θ (truth y 0) (RowCompression.firstRank s K 0 truth) ^ 4⁻¹| ≤ C * ∑ i ∈ Finset.range j, RowCompression.dyadicFloor η m i * ε i

A constant depending only on the concrete row function and its two scales bounds the continued reference's fourth-root error by actual prefix-error envelopes. No Lipschitz or support law is assumed; low-target endpoints need no relative-error hypothesis.

theorem Matrix.atomPrep_polynomial_eq {V : Type u_1} (θ : ℝ) (K : ℕ) (a : ℝ) (G : Matrix V V ℝ) (T : Finset V) (x y : V) :

The existing preparatory expression is the concrete polynomial preparation row.

theorem Matrix.auxScore_polynomial_eq {V : Type u_1} (θ : ℝ) (K : ℕ) (a : ℝ) (G : Matrix V V ℝ) (T : Finset V) (x y : V) :
auxScore (Cslib.polynomialAuxCutoff4 θ) K a G T x y = Cslib.PolynomialAtomRow.auxiliary.eval θ (G x y / a) (Finset.kthLargest K T fun (z : V) => G x z / a)

The existing auxiliary-score expression is the concrete polynomial auxiliary row.