Documentation

CslibFrontier.Computability.LogSpaceDerandomization.EstimatorSchedule

Slack cutoffs and telescoping for additive estimation #

This is the integer logarithmic-rate-grid specialization of [OpenAI2026LogSpace, Sections 7.4–7.5, (7.11)–(7.12), printed pp. 38–40], revision 7ef5c0cc. For an integer scale offset h and a positive integer cutoff coefficient c, the cutoff is exactly c * (1 + |h|); no ceiling is needed. A prefix through slack d includes differences at budgets 1 through M - max d cutoff. This includes empty groups and wholly omitted bins. The same endpoint function is used at both budgets before taking a difference.

The schedule strictly decreases recursive budgets. Its mean differences telescope, including zero-budget boundary terms. With precision constant 16 * c, the existing fourth-moment scale compensation leaves a summable 2 ^ (-|h|/8) majorant for actual last-budget child errors. The source uses eighth moments and has margin 3/8; our initial margin is 1/4. The available-bin estimate does not require activity or positive last budget.

This is the available-scale part of Lemma 7.6, rather than the full mean-prefix theorem. It does not bound the true contributions of wholly omitted bins, assemble the child norm comparisons for actual hierarchy tasks, or choose the conditional walks and sum their noise (Lemmas 7.7–7.8). Those and the recursive estimator remain separate obligations.

Main definitions #

Main results #

References #

Integer-grid form of the scale-dependent ceiling cutoff.

Last included child budget after all layers of slack at least d.

theorem Cslib.LogSpaceEstimation.le_lastBudget_iff {M d c m : ℕ} {h : ℤ} (hm : 0 < m) :
m ≤ lastBudget M d c h ↔ m + d ≤ M ∧ m + scaleCutoff c h ≤ M

Both the prefix slack and the scale cutoff constrain each included positive budget.

A scale with cutoff at least the parent budget has no layers in any prefix.

theorem Cslib.LogSpaceEstimation.lastBudget_antitone (M c : ℕ) (h : ℤ) :
Antitone fun (d : ℕ) => lastBudget M d c h

Increasing the required slack can only shorten the prefix.

theorem Cslib.LogSpaceEstimation.lastBudget_lt {M d c : ℕ} {h : ℤ} (hM : 0 < M) (hc : 0 < c) :
lastBudget M d c h < M

Every included child, including both budgets of each difference, is strictly earlier.

theorem Cslib.LogSpaceEstimation.budget_loss_le (M d c : ℕ) (h : ℤ) :
M - lastBudget M d c h ≤ d + scaleCutoff c h

The loss at the last budget is bounded even when that budget is zero.

theorem Cslib.LogSpaceEstimation.sum_lastBudget_differences {A : Type u_1} [AddCommGroup A] (T : ℕ → A) (M d c : ℕ) (h : ℤ) :
∑ m ∈ Finset.range (lastBudget M d c h), (T (m + 1) - T m) = T (lastBudget M d c h) - T 0

The paired differences telescope at each actual endpoint. The zero-budget value is explicit: clients may discard it only after proving that their budget-zero sample is zero.

A dyadic slack group consists of exactly the new difference layers between the prefixes through 2*d and d. An index m denotes the paired child budgets m+1 and m.

theorem Cslib.LogSpaceEstimation.mem_slackGroup_iff {M d c m : ℕ} {h : ℤ} :
m ∈ slackGroup M d c h ↔ m + 1 + scaleCutoff c h ≤ M ∧ d ≤ M - (m + 1) ∧ M - (m + 1) < 2 * d

Membership agrees with the source's interval d ≤ M-(m+1) < 2*d and scale cutoff.

theorem Cslib.LogSpaceEstimation.sum_slackGroup_differences {A : Type u_1} [AddCommGroup A] (T : ℕ → A) (M d c : ℕ) (h : ℤ) :
∑ m ∈ slackGroup M d c h, (T (m + 1) - T m) = T (lastBudget M d c h) - T (lastBudget M (2 * d) c h)

One complete group's exact endpoint contribution is a difference of its last-budget samples. This includes empty groups, which contribute zero.

theorem Cslib.LogSpaceEstimation.sum_rowSliceMean_differences {Ω : Type u_1} {V : Type u_2} [Fintype Ω] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (T : ℕ → Ω → V → V → ℝ) (M d c : ℕ) (h : ℤ) (x y : V) :
∑ m ∈ Finset.range (lastBudget M d c h), rowSliceMean X Y (fun (σ : Ω) (x y : V) => T (m + 1) σ x y - T m σ x y) x y = rowSliceMean X Y (T (lastBudget M d c h)) x y - rowSliceMean X Y (T 0) x y

Conditional means telescope on each endpoint's actual retained-pair slice. Contributions at both budgets are already grouped at that same endpoint; there is no pathwise subtraction or independence assumption. Empty slices and a zero last budget are included.

theorem Cslib.LogSpaceEstimation.coarse_scale_available {A a a' u : ℝ} (M c i : ℕ) (h : ℤ) (hc : 0 < c) (hA : 1 ≤ A) (hi : 1 ≤ i) (hh : 0 ≤ h) (ha : 0 < a) (ha1 : a ≤ 1) (ha' : 0 < a') (ha'1 : a' ≤ 1) (hu : 0 < u) (hu1 : u ≤ 1) (hscale : Real.logb 2 (a' / a) = ↑h) (hactive : 0 < precision (16 * ↑c) A M i a u) :

Positive precision forces every coarse bin to be available, with explicit constants. This is the coarse-bin exclusion step of Lemma 7.6: omitted bins must instead be fine. The full omitted-bin error estimate still needs their true-mass bound.

Nonnegative geometric majorant for both directions of the logarithmic scale grid.

theorem Cslib.LogSpaceEstimation.scheduled_child_cost_le_of_rate_le {A a a' b c₁ u u' : ℝ} (hA : 0 ≤ A) (M d c i i' : ℕ) (hc : 0 < c) (h : ℤ) (hi : i' + 1 ≤ i) (ha : 0 < a) (hb : 0 < b) (hc₁ : 0 < c₁) (hba' : c₁ * b ≤ a') (hu : 0 < u) (huu' : u ≤ u') (hscale : Real.logb 2 (b / a) = ↑h) :
binNormCost 4 ↑h * 2 ^ (Real.logb 2 (u' / u) / 4) * 2 ^ (-precision (16 * ↑c) A (lastBudget M d c h) i' a' u') ≤ 2 ^ (-Real.logb 2 c₁ / 2) * (2 ^ (-precision (16 * ↑c) A M i a u - A + ↑d / (16 * ↑c) + 1 / 16) * scaleMajorant h)

The scheduled child may use any endpoint rate at least c₁ times the bin rate. The fixed penalty is independent of scale, budget and source rate.

theorem Cslib.LogSpaceEstimation.scheduled_child_cost_le {A a a' u u' : ℝ} (hA : 0 ≤ A) (M d c i i' : ℕ) (hc : 0 < c) (h : ℤ) (hi : i' + 1 ≤ i) (ha : 0 < a) (ha' : 0 < a') (hu : 0 < u) (huu' : u ≤ u') (hscale : Real.logb 2 (a' / a) = ↑h) :
binNormCost 4 ↑h * 2 ^ (Real.logb 2 (u' / u) / 4) * 2 ^ (-precision (16 * ↑c) A (lastBudget M d c h) i' a' u') ≤ 2 ^ (-precision (16 * ↑c) A M i a u - A + ↑d / (16 * ↑c) + 1 / 16) * scaleMajorant h

The actual last child budget leaves at least one eighth of scale decay in fourth-moment norm. K = 16*c is explicit; the source may be retained or broadened.

theorem Cslib.LogSpaceEstimation.scheduled_binNormCost_error_le {A a a' b c₁ u u' C E : ℝ} (hA : 0 ≤ A) (hC : 0 ≤ C) (M d c i i' : ℕ) (hc : 0 < c) (h : ℤ) (hi : i' + 1 ≤ i) (ha : 0 < a) (hb : 0 < b) (hc₁ : 0 < c₁) (hba' : c₁ * b ≤ a') (hu : 0 < u) (huu' : u ≤ u') (hscale : Real.logb 2 (b / a) = ↑h) (hE : E ≤ (C * 2 ^ (-precision (16 * ↑c) A (lastBudget M d c h) i' a' u')) ^ 4) :
(binNormCost 4 ↑h * 2 ^ (Real.logb 2 (u' / u) / 4)) ^ 4 * E ≤ (C * 2 ^ (-Real.logb 2 c₁ / 2) * (2 ^ (-precision (16 * ↑c) A M i a u - A + ↑d / (16 * ↑c) + 1 / 16) * scaleMajorant h)) ^ 4

A child fourth-moment bound at the scheduled last budget pays the fourth power of the combined scale and source-release norm cost, in either scale direction.

The scale budget is summable on the full two-sided integer grid, independently of the finite set of bins present in a hierarchy.

The two-sided scale sum has an explicit finite value. The zero scale is counted once.

theorem Cslib.LogSpaceEstimation.sum_le_mul_tsum_scaleMajorant (s : Finset ℤ) {f : ℤ → ℝ} {C : ℝ} (hC : 0 ≤ C) (hf : ∀ h ∈ s, f h ≤ C * scaleMajorant h) :
∑ h ∈ s, f h ≤ C * ∑' (h : ℤ), scaleMajorant h

A finite sum whose terms are at most C times the scale majorant is at most C times the majorant's total.

theorem Cslib.LogSpaceEstimation.sum_scheduled_child_cost_le {A a u : ℝ} (hA : 0 ≤ A) (M d c i : ℕ) (hc : 0 < c) (s : Finset ℤ) (a' u' : ℤ → ℝ) (i' : ℤ → ℕ) (ha : 0 < a) (hu : 0 < u) (hi : ∀ h ∈ s, i' h + 1 ≤ i) (ha' : ∀ h ∈ s, 0 < a' h) (huu' : ∀ h ∈ s, u ≤ u' h) (hscale : ∀ h ∈ s, Real.logb 2 (a' h / a) = ↑h) :
∑ h ∈ s, binNormCost 4 ↑h * 2 ^ (Real.logb 2 (u' h / u) / 4) * 2 ^ (-precision (16 * ↑c) A (lastBudget M d c h) (i' h) (a' h) (u' h)) ≤ 2 ^ (-precision (16 * ↑c) A M i a u - A + ↑d / (16 * ↑c) + 1 / 16) * ∑' (h : ℤ), scaleMajorant h

Finite actual scale sets have a uniform total child-error budget. This is the scalar payment used after the task-specific norm comparisons and Minkowski, without a factor counting available scales. The rates and dependency ranks may vary with the scale.