Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.MomentSchedule

Dyadic mean, preloss and false-event moment payments #

The floor has base 1/1024 and capacities dominate 2^(64*dyadicSlack). These elementary finite-sum estimates absorb factor-28 propagation and growing mean envelopes without a row-width or horizon factor. The capacity comparison bounds numerical denominators only; it supplies no monotonicity of compression outputs or events.

theorem Cslib.RowCompression.mean_schedule_term {η M ε : ℝ} (hη : 0 < η) (hM : 0 ≤ M) (d : ℕ) :
(2 + 256 * M / (η * (1 / 1024) ^ d)) / 2 ^ (64 * d) * (ε * 128 ^ d) ^ 4 ≤ (2 + 256 * M / η) * ε ^ 4 * ((1 / 64) ^ d) ^ 4

Capacity exponent 64 absorbs the inverse floor and fourth powers of mean growth with slope seven, leaving at least fourth powers of 1/64 decay.

theorem Cslib.RowCompression.mean_tail_growth {ε : ℝ} (hε : 0 ≤ ε) (m j : ℕ) (hj : j < m) (e : ℕ → ℝ) (he : ∀ (i : ℕ), j ≤ i → i < m → e i ≤ ε * 2 ^ dyadicSlack m i) :
∑ i ∈ Finset.Ico j m, 28 ^ (m - i) * e i ≤ ε * 128 ^ dyadicSlack m j

A slope-one prefix mean envelope pays for the actual factor-28 tail propagation. This deliberately coarse estimate has no horizon or row-width factor.

theorem Cslib.RowCompression.mean_schedule_budget {η M ε : ℝ} (hη : 0 < η) (hM : 0 ≤ M) (m j : ℕ) :
(2 + 256 * M / dyadicFloor η m j) / 2 ^ (64 * dyadicSlack m j) * (ε * 128 ^ dyadicSlack m j) ^ 4 ≤ (2 + 256 * M / η) * ε ^ 4 * ((1 / 64) ^ dyadicSlack m j) ^ 4

The concrete floor/capacity/mean schedule supplies a summable fourth-moment budget, with no convergence premise or configurable floor framework.

theorem Cslib.RowCompression.false_schedule_identity (η ε : ℝ) (d : ℕ) :
(ε * 2 ^ d) ^ 4 / (2 ^ (64 * d) * (η * (1 / 1024) ^ d) ^ 4) = ε ^ 4 / η ^ 4 * (1 / 1048576) ^ d

The actual false-first-overflow charge is summable with slope-one prefix budgets.

theorem Cslib.RowCompression.false_schedule_sum {η ε R K : ℝ} (hη : 0 < η) (hK : 0 ≤ K) (m : ℕ) :
∑ i ∈ Finset.range m, 64 * K * R ^ 4 / (2 ^ (64 * dyadicSlack m i) * dyadicFloor η m i ^ 4) * (ε * 2 ^ dyadicSlack m i) ^ 4 ≤ 64 * K * R ^ 4 / η ^ 4 * ε ^ 4 / 63
theorem Cslib.RowCompression.pre_schedule_sum {η ε : ℝ} (hη : 0 ≤ η) (hε : 0 ≤ ε) (m : ℕ) :
∑ i ∈ Finset.range m, dyadicFloor η m i * (ε * 2 ^ dyadicSlack m i) ≤ η * ε / 511

The weighted preloss budget has no horizon factor.

theorem Cslib.RowCompression.false_schedule_sum_capacity {η ε R K : ℝ} (hη : 0 < η) (hK : 0 ≤ K) (m : ℕ) (n : ℕ → ℕ) (hn : ∀ i < m, 2 ^ (64 * dyadicSlack m i) ≤ n i) :
∑ i ∈ Finset.range m, 64 * K * R ^ 4 / (↑(n i) * dyadicFloor η m i ^ 4) * (ε * 2 ^ dyadicSlack m i) ^ 4 ≤ 64 * K * R ^ 4 / η ^ 4 * ε ^ 4 / 63

A larger actual capacity lowers the numerical false-event charge. No comparison between outputs of different compression schedules is used.