Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.PreloadedIteration

Restarting compression from an already-added group input #

At a first overflow in group j, the available error estimate concerns the raw input after adding group j, not the preceding raw prefix. Start the local calculation from the actual inputRow and use zero as its first increment. The local calculation agrees exactly with the original calculation after every positive number of updates.

The corresponding local error sequence repeats the overflow group's error at indices zero and one. Its adjacent-prefix propagation budget is at most four times the usual weighted tail sum. Only errors from group j onward occur in this bound. These are exact indexing and finite-sum identities; they require no overflow event, row bounds, or probabilistic hypotheses.

Main definitions #

Main results #

def Cslib.RowCompression.preloadedIncrement {ι : Type u_1} (Δ : ℕ → ι → Fin 2 → ℝ) (j : ℕ) :
ℕ → ι → Fin 2 → ℝ

Restart at group j after its increment has already been added. The first local increment is zero; later local increments are the actual subsequent increments.

@[simp]
theorem Cslib.RowCompression.preloadedIncrement_zero {ι : Type u_1} (Δ : ℕ → ι → Fin 2 → ℝ) (j : ℕ) :
@[simp]
theorem Cslib.RowCompression.preloadedIncrement_succ {ι : Type u_1} (Δ : ℕ → ι → Fin 2 → ℝ) (j i : ℕ) :
preloadedIncrement Δ j (i + 1) = Δ (j + i + 1)

Both local prefixes zero and one use the already-added group j input. Later local prefixes use the errors of the subsequent groups.

@[simp]
theorem Cslib.RowCompression.preloadedError_zero (ε : ℕ → ℝ) (j : ℕ) :
preloadedError ε j 0 = ε j
@[simp]
theorem Cslib.RowCompression.preloadedError_succ (ε : ℕ → ℝ) (j i : ℕ) :
preloadedError ε j (i + 1) = ε (j + i)
theorem Cslib.RowCompression.iterate_preloadedIncrement {ι : Type u_1} {s : Finset ι} {n K : ℕ → ℕ} {ρ : ℕ → ℝ} {Δ : ℕ → ι → Fin 2 → ℝ} {a : State ι} (j : ℕ) {r : ℕ} (hr : 0 < r) :
iterate s (fun (i : ℕ) => n (j + i)) (fun (i : ℕ) => K (j + i)) (fun (i : ℕ) => ρ (j + i)) (preloadedIncrement Δ j) { defaultValue := (iterate s n K ρ Δ a j).defaultValue, row := inputRow s n K ρ Δ a j } r = iterate s n K ρ Δ a (j + r)

A restart from the already-added input gives exactly the original compressed state after any positive number of updates. Group j is compressed once, with no duplicated increment.

theorem Cslib.RowCompression.uncompressedRow_preloadedIncrement {ι : Type u_1} {Δ : ℕ → ι → Fin 2 → ℝ} {raw₀ : ι → Fin 2 → ℝ} (j : ℕ) {r : ℕ} (hr : 0 < r) :
uncompressedRow (preloadedIncrement Δ j) (uncompressedRow Δ raw₀ (j + 1)) r = uncompressedRow Δ raw₀ (j + r)

Raw prefixes after the preloaded restart agree with the original raw prefixes. At local index zero the initial row is already global raw prefix j + 1.

theorem Cslib.RowCompression.prefixErrorBudget_preloadedError_le {ε : ℕ → ℝ} (j : ℕ) {r : ℕ} (hr : 0 < r) (hε : ∀ i ∈ Finset.Ico j (j + r), 0 ≤ ε i) :
prefixErrorBudget (preloadedError ε j) r ≤ 4 * ∑ i ∈ Finset.Ico j (j + r), 28 ^ (j + r - i) * ε i

The adjacent-prefix budget for a preloaded restart is at most four times the original weighted tail budget. The estimate does not require any error bound before group j.