Documentation

CslibFrontier.Computability.LogSpaceDerandomization.ScheduledProductMean

Scheduled comparisons for correction--dense sample means #

The child induction bounds are root errors at the actual last budget of the slack schedule. The correction child may use a rate larger than a fixed multiple of the bin rate. We pay its rate mismatch explicitly. The right child is measured on its broad endpoint domain and restarts at the midpoint rate, so its source-release factor is paid by its own precision gain.

The application below takes the actual correction and dense atoms, derives their support caps from their gates, averages their concrete product on the retained source/endpoint slice, and bounds the resulting root error from the two child bounds. The children can share the entire environment; no independence of estimated values is used. The conditional mean using true atoms is identified by Matrix.expect_correctionAtom_mul_denseAtom on the separate product-seed model of that theorem. Here arbitrary seed maps also allow coupled induction comparisons.

This is the coarse-product part of [OpenAI2026LogSpace, Lemmas 7.3 and 7.6], using (7.9)--(7.12), revision 7ef5c0cc, printed pp. 34--41. The source has eighth moments; here the exponent is four, the initial scale margin is one quarter, and the scheduled margin is one eighth. This does not assemble copy/reward/detector tasks, fine products, raw paired differences, walks, noise sums, compression or the recursive estimator. Those remain obligations of issue #1721.

Main results #

References #

theorem Cslib.LogSpaceEstimation.coarse_cost_pow_four {a b u u' : ℝ} (ha : 0 < a) (hb : 0 < b) (hu : 0 < u) (hu' : 0 < u') {h : ℤ} (hh : 0 ≤ h) (hscale : Real.logb 2 (b / a) = ↑h) :
(binNormCost 4 ↑h * 2 ^ (Real.logb 2 (u' / u) / 4)) ^ 4 = b / a * (u' / u)

For a coarse bin, the fourth power of the norm cost is exactly the scale ratio times the source-release ratio. Neither nominal rate is replaced by an actual hit probability.

theorem Cslib.LogSpaceEstimation.scheduled_coarse_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 : ℤ) (hh : 0 ≤ 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) :
b / a * (u' / u) * 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 root-moment induction hypothesis at the scheduled budget pays the coarse scale and source costs. The output is an explicit parent-precision bound, not an assumed aggregate.

theorem Cslib.LogSpaceEstimation.special_correction_available {A a f u : ℝ} (M c i L : ℕ) (h : ℤ) (hc : 0 < c) (hA : 1 + ↑L ≤ A) (hi : 1 ≤ i) (ha : 0 < a) (ha1 : a ≤ 1) (hf : 0 < f) (hf1 : f ≤ 1) (hu : 0 < u) (hu1 : u ≤ 1) (haf : a ≤ 2 ^ L * f) (hscale : Real.logb 2 (f / a) = ↑h) (hactive : 0 < precision (16 * ↑c) A M i a u) :

The sparse -E term is available even when its stage rate is finer than the parent's endpoint rate. The admissibility bound a ≤ 2^L * f bounds that negative offset. A fixed rank reserve depending on L pays its entire cutoff; coarse offsets use activity directly. This is the special-correction availability step in the proof of Lemma 7.6.

theorem Matrix.scheduled_correctionAtom_denseAtom_mean_le {Ω : Type u_1} {V : Type u_2} {ι : Type u_3} {κ : Type u_4} {υ : Type u_5} [Fintype Ω] [Fintype V] [Fintype ι] [Fintype κ] [Fintype υ] {KF Kc KB : ℕ} {N u f b : ℝ} {I : ℝ → ℝ → ℝ} {τ Q hF ρF k hB ρB : ℝ → ℝ} {X : ι → V → Prop} {Z Zt : κ → V → Prop} {Y Yt : υ → V → Prop} [(t : ι) → (x : V) → Decidable (X t x)] [(t : κ) → (z : V) → Decidable (Z t z)] [(t : κ) → (z : V) → Decidable (Zt t z)] [(t : υ) → (y : V) → Decidable (Y t y)] [(t : υ) → (y : V) → Decidable (Yt t y)] (drawF : Ω → ι × κ) (drawB : Ω → υ) (G G' H H' : Ω → Matrix V V ℝ) (g g' : Ω → V → ℝ) (hN : 0 < N) (hu : 0 < u) (hf : 0 < f) (hQ0 : ∀ (v : ℝ), 0 ≤ Q v) (hk0 : ∀ (v : ℝ), 0 ≤ k v) (hρF0 : ∀ (r : ℝ), 0 ≤ ρF r) (hρF1 : ∀ (r : ℝ), ρF r ≤ 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hρB0 : ∀ (r : ℝ), 0 ≤ ρB r) (hρB1 : ∀ (r : ℝ), ρB r ≤ 1) (hg0 : ∀ (σ : Ω) (z : V), 0 ≤ g σ z) (hg'0 : ∀ (σ : Ω) (z : V), 0 ≤ g' σ z) (hg'1 : ∀ (σ : Ω) (z : V), g' σ z ≤ 1) {AF AB : ℝ} (hAF : 0 ≤ AF) (hAB : 0 ≤ AB) (hQbound : ∀ (σ : Ω) (x z : V), Q (G' σ x z / f) ≤ AF) (hkbound : ∀ (σ : Ω) (z y : V), k (H σ z y / b) ≤ AB) (hKc : 0 < Kc) (hIQ : ∀ (v r : ℝ), Q v ≠ 0 → ρF r ≠ 0 → I v r = 1) {gF : ℝ} (hgF : gF ≤ 1) (hτclose : ∀ (r : ℝ), gF ≤ r → τ r = 0) (hYt : ∀ (t : υ) (y : V), Yt t y → Y t y) (hKB : 0 < KB) {eB gB : ℝ} (heB : 0 ≤ eB) (hkzero : ∀ v ≤ eB, k v = 0) (hgB : gB ≤ eB) (hρBclose : ∀ (r : ℝ), gB ≤ r → ρB r = 0) {A a c₁ C πf : ℝ} (hA : 0 ≤ A) (hC : 0 ≤ C) (ha : 0 < a) (hab : a ≤ b) (hc₁ : 0 < c₁) (hbf : c₁ * b ≤ f) (huf : u ≤ f) (hπf : 0 < πf) (M d c i iF iB : ℕ) (hc : 0 < c) (offset : ℤ) (hoffset : 0 ≤ offset) (hiF : iF + 1 ≤ i) (hiB : iB + 1 ≤ i) (hscale : Real.logb 2 (b / a) = ↑offset) :
have F := fun (σ : Ω) => correctionAtom I τ KF Kc f (G σ) X Z Zt Q hF ρF (g σ) (drawF σ); have F' := fun (σ : Ω) => correctionAtom I τ KF Kc f (G' σ) X Z Zt Q hF ρF (g' σ) (drawF σ); have B := fun (σ : Ω) => denseAtom Y Yt k hB ρB KB b (H σ) (drawB σ); have B' := fun (σ : Ω) => denseAtom Y Yt k hB ρB KB b (H' σ) (drawB σ); let Xu := fun (σ : Ω) (x : V) => X (drawF σ).1 x; let Zf := fun (σ : Ω) (z : V) => Zt (drawF σ).2 z; let Ya := fun (σ : Ω) (y : V) => Yt (drawB σ) y; have payment := 2 ^ (-Cslib.LogSpaceEstimation.precision (16 * ↑c) A M i a u - A + ↑d / (16 * ↑c) + 1 / 16) * Cslib.LogSpaceEstimation.scaleMajorant offset; Cslib.rootDistPow 4 N u Xu Zf F F' ≤ (C * 2 ^ (-Cslib.LogSpaceEstimation.precision (16 * ↑c) A (Cslib.LogSpaceEstimation.lastBudget M d c offset) iF f u)) ^ 4 → Cslib.rootDistPow 4 N f Zf (fun (σ : Ω) (y : V) => Y (drawB σ) y) B B' ≤ (C * 2 ^ (-Cslib.LogSpaceEstimation.precision (16 * ↑c) A (Cslib.LogSpaceEstimation.lastBudget M d c offset) iB b f)) ^ 4 → (Cslib.rootDistPow 4 N u Xu Ya (fun (x : Ω) (x_1 y : V) => b / a * (f / πf) * Cslib.conditionalTableMean Xu Ya (fun (σ : Ω) (x y : V) => ∑ z : V with Zf σ z, F σ x z * B σ z y) x_1 y) fun (x : Ω) (x_1 y : V) => b / a * (f / πf) * Cslib.conditionalTableMean Xu Ya (fun (σ : Ω) (x y : V) => ∑ z : V with Zf σ z, F' σ x z * B' σ z y) x_1 y) ≤ 2048 * 16384 * (f / πf) * (2 * AB * ↑KB * (C * 2 ^ (-Real.logb 2 c₁ / 2) * payment) ^ 4 + 2 * AF * ↑Kc * (C * payment) ^ 4)

The actual coarse correction--dense conditional mean at the schedule's last budget. The only error hypotheses are the two earlier child root bounds. Atom gates discharge both support caps. The correction rate need only satisfy c₁ * b ≤ f; the right child restarts at rate f ≥ u. This does not identify arbitrary coupled seed maps with the independent true-mean model: use Matrix.expect_correctionAtom_mul_denseAtom for that separate identity.