Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.Iteration

Iterated row compression #

This module iterates the concrete update of [OpenAI2026LogSpace, Section 8.2, (8.5)--(8.6)]. At group i, add the increment Δ i to the current row, then compress using capacities n i, K i and floor ρ i. The state contains the entire row and its common default, so two calculations need not select the same exception lists.

The stability bound is the update-only part of (8.7): an initial absolute perturbation δ is at most 28 ^ j * δ after j updates with the same increments. Restarting at any group gives the same assertion for a perturbation introduced there. The paper's final root functions are not formalized here. The optional conversion to a fifth power of a slack assumes the explicit scheduling fact 2 ^ j ≤ d + 1; no halving schedule is constructed in this module.

The accumulated row loss is at most six times the sum of the actual compression thresholds. Before the first overflow, each threshold is its floor, yielding the unweighted estimate 6 * ∑ i < j, ρ i in the first assertion of [OpenAI2026LogSpace, Lemma 8.2]. This does not assert the weighted preloss estimate (8.9), the small-floor estimates (8.8), stationary-reference preservation, or a machine-space bound.

Main definitions #

Main results #

References #

structure Cslib.RowCompression.State (ι : Type u_2) :
Type u_2

A compressed row represented by its full values and its common default. The finite exception list is intentionally not part of the mathematical state.

  • defaultValue : ℝ

    The first coordinate of the default entry; its second coordinate is zero.

  • row : ι → Fin 2 → ℝ

    The full row, including values at positions represented by the default.

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

Add an increment and apply the concrete compression update.

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

The state after j increment-and-compression groups, indexed starting at zero.

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

The row immediately after adding group j and before compressing it.

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

The actual threshold of compression group j, including the old default and the size rank.

noncomputable def Cslib.RowCompression.uncompressedRow {ι : Type u_1} (Δ : ℕ → ι → Fin 2 → ℝ) (w : ι → Fin 2 → ℝ) (j : ℕ) (y : ι) (ν : Fin 2) :

The initial row plus all increments before group j, with no compression.

@[simp]
theorem Cslib.RowCompression.iterate_zero {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} :
iterate s n K ρ Δ a 0 = a
theorem Cslib.RowCompression.iterate_succ {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) :
iterate s n K ρ Δ a (j + 1) = advance s (n j) (K j) (ρ j) (Δ j) (iterate s n K ρ Δ a j)
@[simp]
theorem Cslib.RowCompression.uncompressedRow_zero {ι : Type u_1} {Δ : ℕ → ι → Fin 2 → ℝ} {w : ι → Fin 2 → ℝ} :
theorem Cslib.RowCompression.uncompressedRow_succ {ι : Type u_1} {Δ : ℕ → ι → Fin 2 → ℝ} {w : ι → Fin 2 → ℝ} (j : ℕ) (y : ι) (ν : Fin 2) :
uncompressedRow Δ w (j + 1) y ν = uncompressedRow Δ w j y ν + Δ j y ν
theorem Cslib.RowCompression.stepThreshold_nonneg {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) :
0 ≤ stepThreshold s n K ρ Δ a j
theorem Cslib.RowCompression.floor_le_stepThreshold {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) :
ρ j ≤ stepThreshold s n K ρ Δ a j
theorem Cslib.RowCompression.abs_iterate_succ_sub_inputRow_le {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) (y : ι) (ν : Fin 2) :
|(iterate s n K ρ Δ a (j + 1)).row y ν - inputRow s n K ρ Δ a j y ν| ≤ 6 * stepThreshold s n K ρ Δ a j

The one-step compression loss, before any accumulation over the schedule.

theorem Cslib.RowCompression.advance_stability {ι : Type u_1} {s : Finset ι} {a b : State ι} {n K : ℕ} {ρ δ : ℝ} {Δ : ι → Fin 2 → ℝ} (hn : 0 < n) (hK : 0 < K) (hδ : 0 ≤ δ) (hz : |a.defaultValue - b.defaultValue| ≤ δ) (hw : ∀ y ∈ s, ∀ (ν : Fin 2), |a.row y ν - b.row y ν| ≤ δ) :
|(advance s n K ρ Δ a).defaultValue - (advance s n K ρ Δ b).defaultValue| ≤ 28 * δ ∧ ∀ y ∈ s, ∀ (ν : Fin 2), |(advance s n K ρ Δ a).row y ν - (advance s n K ρ Δ b).row y ν| ≤ 28 * δ

Addition of the same increment cancels in the one-step stability estimate.

theorem Cslib.RowCompression.iterate_stability {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a b : State ι} {δ : ℝ} (hδ : 0 ≤ δ) (hz : |a.defaultValue - b.defaultValue| ≤ δ) (hw : ∀ y ∈ s, ∀ (ν : Fin 2), |a.row y ν - b.row y ν| ≤ δ) (j : ℕ) (hn : ∀ i < j, 0 < n i) (hK : ∀ i < j, 0 < K i) :
|(iterate s n K ρ Δ a j).defaultValue - (iterate s n K ρ Δ b j).defaultValue| ≤ 28 ^ j * δ ∧ ∀ y ∈ s, ∀ (ν : Fin 2), |(iterate s n K ρ Δ a j).row y ν - (iterate s n K ρ Δ b j).row y ν| ≤ 28 ^ j * δ

An absolute perturbation of the full initial state grows by at most 28 ^ j through j compression groups with the same increments [OpenAI2026LogSpace, (8.7)].

theorem Cslib.RowCompression.iterate_add {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (i j : ℕ) :
iterate s n K ρ Δ a (i + j) = iterate s (fun (k : ℕ) => n (i + k)) (fun (k : ℕ) => K (i + k)) (fun (k : ℕ) => ρ (i + k)) (fun (k : ℕ) => Δ (i + k)) (iterate s n K ρ Δ a i) j

Restarting the indexed schedule preserves exactly the same states.

theorem Cslib.RowCompression.iterate_stability_from {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a b : State ι} (i j : ℕ) {δ : ℝ} (hδ : 0 ≤ δ) (hz : |(iterate s n K ρ Δ a i).defaultValue - (iterate s n K ρ Δ b i).defaultValue| ≤ δ) (hw : ∀ y ∈ s, ∀ (ν : Fin 2), |(iterate s n K ρ Δ a i).row y ν - (iterate s n K ρ Δ b i).row y ν| ≤ δ) (hn : ∀ k < j, 0 < n (i + k)) (hK : ∀ k < j, 0 < K (i + k)) :
|(iterate s n K ρ Δ a (i + j)).defaultValue - (iterate s n K ρ Δ b (i + j)).defaultValue| ≤ 28 ^ j * δ ∧ ∀ y ∈ s, ∀ (ν : Fin 2), |(iterate s n K ρ Δ a (i + j)).row y ν - (iterate s n K ρ Δ b (i + j)).row y ν| ≤ 28 ^ j * δ

A perturbation present after group i propagates through the next j updates with factor at most 28 ^ j, without requiring agreement of earlier states or exception lists.

theorem Cslib.RowCompression.propagation_le_slack_pow_five {j d : ℕ} (hjd : 2 ^ j ≤ d + 1) :
28 ^ j ≤ (↑d + 1) ^ 5

A schedule with 2 ^ j ≤ d + 1 turns the propagation factor into a polynomial in the slack. We enlarge 28 to 2 ^ 5, avoiding real exponents in this explicit coarse bound.

theorem Cslib.RowCompression.iterate_stability_of_pow_le {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a b : State ι} {δ : ℝ} (hδ : 0 ≤ δ) (hz : |a.defaultValue - b.defaultValue| ≤ δ) (hw : ∀ y ∈ s, ∀ (ν : Fin 2), |a.row y ν - b.row y ν| ≤ δ) (j d : ℕ) (hn : ∀ i < j, 0 < n i) (hK : ∀ i < j, 0 < K i) (hjd : 2 ^ j ≤ d + 1) :
|(iterate s n K ρ Δ a j).defaultValue - (iterate s n K ρ Δ b j).defaultValue| ≤ (↑d + 1) ^ 5 * δ ∧ ∀ y ∈ s, ∀ (ν : Fin 2), |(iterate s n K ρ Δ a j).row y ν - (iterate s n K ρ Δ b j).row y ν| ≤ (↑d + 1) ^ 5 * δ

The full state has polynomial perturbation growth under the explicit logarithmic group-count condition. The condition is a premise about the schedule, not a claimed construction of the paper's halving schedule.

theorem Cslib.RowCompression.iterate_defaultValue_monotone {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} :
Monotone fun (j : ℕ) => (iterate s n K ρ Δ a j).defaultValue

The default never decreases, independently of the increments or the capacities.

theorem Cslib.RowCompression.iterate_defaultValue_nonneg {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (ha : 0 ≤ a.defaultValue) (j : ℕ) :
0 ≤ (iterate s n K ρ Δ a j).defaultValue

The default is nonnegative when the initial default is.

theorem Cslib.RowCompression.abs_iterate_sub_uncompressed_le {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) (y : ι) (ν : Fin 2) :
|(iterate s n K ρ Δ a j).row y ν - uncompressedRow Δ a.row j y ν| ≤ 6 * ∑ i ∈ Finset.range j, stepThreshold s n K ρ Δ a i

The accumulated row loss is bounded by six times the sum of the actual thresholds. The increments cancel between the compressed and uncompressed calculations.

theorem Cslib.RowCompression.abs_iterate_sub_uncompressed_le_of_no_overflow {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) (hno : ∀ i < j, stepThreshold s n K ρ Δ a i ≤ ρ i) (y : ι) (ν : Fin 2) :
|(iterate s n K ρ Δ a j).row y ν - uncompressedRow Δ a.row j y ν| ≤ 6 * ∑ i ∈ Finset.range j, ρ i

Before the first overflow, the accumulated loss is at most six times the sum of floors [OpenAI2026LogSpace, Lemma 8.2, unweighted assertion]. The hypothesis says precisely that no earlier group's actual threshold exceeds its prescribed floor.

theorem Cslib.RowCompression.iterate_defaultValue_sub_le_three_mul_sum {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (ha : 0 ≤ a.defaultValue) (j : ℕ) :
(iterate s n K ρ Δ a j).defaultValue - a.defaultValue ≤ 3 * ∑ i ∈ Finset.range j, stepThreshold s n K ρ Δ a i

The default has an accumulated change bound of three times the threshold sum. This also controls the dummy positions, which receive no increments.

theorem Cslib.RowCompression.abs_iterate_defaultValue_sub_le_of_no_overflow {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (ha : 0 ≤ a.defaultValue) (j : ℕ) (hno : ∀ i < j, stepThreshold s n K ρ Δ a i ≤ ρ i) :
|(iterate s n K ρ Δ a j).defaultValue - a.defaultValue| ≤ 3 * ∑ i ∈ Finset.range j, ρ i

Before overflow, the default (and hence every dummy entry) has accumulated change at most three times the floor sum.