Documentation

CslibFrontier.Computability.LogSpaceDerandomization.ScheduledFineProductMean

Scheduled fine-product means #

Actual nested terminal masks on a product seed space are changed before taking powers. The actual density ratio stays in the sample coefficient; comparable nominal rates pay the resulting cubic scale cost using the two child induction bounds at the schedule's last budget. Factors may depend jointly on both seed coordinates.

This is the fine-product portion of [OpenAI2026LogSpace, Lemmas 7.3 and 7.6], printed pp. 36--41, revision 7ef5c0cc. We use fourth rather than eighth moments and restrict scale offsets to integers. This does not assemble the full estimator or establish native RL = L.

Main results #

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

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

theorem Cslib.LogSpaceEstimation.scheduled_fine_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 : h < 0) (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) ^ 3 * (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 fine scale and source costs. The output is an explicit parent-precision bound, not an assumed aggregate.

theorem Cslib.LogSpaceEstimation.scheduled_fineProductMean_le {V : Type u_1} [Fintype V] {Γ : Type u_2} {Υ : Type u_3} [Fintype Γ] [Fintype Υ] {Kf Kr Kc : ℕ} {N u a b f πa πb πf Ca cb CF CB : ℝ} (X : Γ → V → Prop) (Ya Yb : Υ → V → Prop) (Z : Γ × Υ → V → Prop) [(γ : Γ) → (x : V) → Decidable (X γ x)] [(τ : Υ) → (y : V) → Decidable (Ya τ y)] [(τ : Υ) → (y : V) → Decidable (Yb τ y)] [(σ : Γ × Υ) → (z : V) → Decidable (Z σ z)] (hN : 0 < N) (hu : 0 < u) (hb : 0 < b) (hba : b ≤ a) (hCa : 0 ≤ Ca) (hcb : 0 < cb) (hupper : πa ≤ Ca * a) (hlower : cb * b ≤ πb) (hYaπ : ∀ (y : V), ↑{τ : Υ | Ya τ y}.dens = πa) (hYbπ : ∀ (y : V), ↑{τ : Υ | Yb τ y}.dens = πb) (hsub : ∀ (τ : Υ) (y : V), Yb τ y → Ya τ y) (hCF : 0 ≤ CF) (hCB : 0 ≤ CB) {F F' B B' : Γ × Υ → V → V → ℝ} (hF : ∀ (σ : Γ × Υ) (x z : V), 0 ≤ F σ x z) (hF' : ∀ (σ : Γ × Υ) (x z : V), 0 ≤ F' σ x z) (hB : ∀ (σ : Γ × Υ) (z y : V), 0 ≤ B σ z y) (hB' : ∀ (σ : Γ × Υ) (z y : V), 0 ≤ B' σ z y) (hFbound : ∀ (σ : Γ × Υ) (x z : V), F σ x z ≤ CF) (hF'bound : ∀ (σ : Γ × Υ) (x z : V), F' σ x z ≤ CF) (hBbound : ∀ (σ : Γ × Υ) (z y : V), B σ z y ≤ CB) (hB'bound : ∀ (σ : Γ × Υ) (z y : V), B' σ z y ≤ CB) (hleft : ∀ (σ : Γ × Υ) (x : V), X σ.1 x → {z ∈ {z : V | Z σ z} | F σ x z ≠ 0}.card ≤ Kf) (hleft' : ∀ (σ : Γ × Υ) (x : V), X σ.1 x → {z ∈ {z : V | Z σ z} | F' σ x z ≠ 0}.card ≤ Kf) (hrow : ∀ (σ : Γ × Υ) (z : V), Z σ z → {y ∈ {y : V | Yb σ.2 y} | B σ z y ≠ 0}.card ≤ Kr) (hcol : ∀ (σ : Γ × Υ) (z : V), Z σ z → {x ∈ {x : V | X σ.1 x} | F' σ x z ≠ 0}.card ≤ Kc) (hBsupport : ∀ (σ : Γ × Υ) (z y : V), ¬Yb σ.2 y → B σ z y = 0) (hB'support : ∀ (σ : Γ × Υ) (z y : V), ¬Yb σ.2 y → B' σ z y = 0) {A C c₁ : ℝ} (hA : 0 ≤ A) (hC : 0 ≤ C) (hc₁ : 0 < c₁) (hbf : c₁ * b ≤ f) (huf : u ≤ f) (M d c i iF iB : ℕ) (hc : 0 < c) (offset : ℤ) (hoffset : offset < 0) (hiF : iF + 1 ≤ i) (hiB : iB + 1 ≤ i) (hscale : Real.logb 2 (b / a) = ↑offset) (hleftError : rootDistPow 4 N u (fun (σ : Γ × Υ) (x : V) => X σ.1 x) Z F F' ≤ (C * 2 ^ (-precision (16 * ↑c) A (lastBudget M d c offset) iF f u)) ^ 4) (hrightError : rootDistPow 4 N f Z (fun (σ : Γ × Υ) (y : V) => Yb σ.2 y) B B' ≤ (C * 2 ^ (-precision (16 * ↑c) A (lastBudget M d c offset) iB b f)) ^ 4) :
have payment := 2 ^ (-precision (16 * ↑c) A M i a u - A + ↑d / (16 * ↑c) + 1 / 16) * scaleMajorant offset; have E := fun (σ : Γ × Υ) (x y : V) => ∑ z : V with Z σ z, F σ x z * B σ z y - ∑ z : V with Z σ z, F' σ x z * B' σ z y; (rowNormPow 4 N u (fun (σ : Γ × Υ) (x : V) => X σ.1 x) (fun (σ : Γ × Υ) (y : V) => Ya σ.2 y) fun (x : Γ × Υ) (x_1 y : V) => conditionalTableMean (fun (σ : Γ × Υ) (x : V) => X σ.1 x) (fun (σ : Γ × Υ) (y : V) => Ya σ.2 y) (fun (σ : Γ × Υ) (x y : V) => b / a * (f / πf) * (πa / πb) * E σ x y) x_1 y) ≤ (f / πf) ^ 4 * (Ca / cb) * ((4 * (↑Kf * CF * CB) ^ ((4 - 1) / 4)) ^ 4 * (2 ^ (2 * (4 - 1)) * 4 ^ 4) * (CB * ↑Kr * (C * 2 ^ (-Real.logb 2 c₁ / 2) * payment) ^ 4 + CF * ↑Kc * (C * payment) ^ 4))

The actual fine-product conditional mean error, paid by the two earlier child root-moment bounds. The correction child's endpoint rate may only dominate a constant multiple of the bin rate. The sample retains the actual importance ratio πa / πb and midpoint normalization.

theorem Matrix.scheduled_fine_correctionAtom_denseAtom_mean_le {Γ : Type u_1} {Υ : Type u_2} {V : Type u_3} {ι : Type u_4} {κ : Type u_5} {υ : Type u_6} [Fintype Γ] [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 → ℝ) (Ya : Υ → V → Prop) [(t : Υ) → (y : V) → Decidable (Ya t y)] (hN : 0 < N) (hu : 0 < u) (hb : 0 < b) {a πa πb πf Ca cb AF AB : ℝ} (hba : b ≤ a) (hCa : 0 ≤ Ca) (hcb : 0 < cb) (hupper : πa ≤ Ca * a) (hlower : cb * b ≤ πb) (hYaπ : ∀ (y : V), ↑{t : Υ | Ya t y}.dens = πa) (hYbπ : ∀ (y : V), ↑{t : Υ | Yt (drawB t) y}.dens = πb) (hsub : ∀ (t : Υ) (y : V), Yt (drawB t) y → Ya t y) (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) (hg1 : ∀ (σ : Γ × Υ) (z : V), g σ z ≤ 1) (hg'0 : ∀ (σ : Γ × Υ) (z : V), 0 ≤ g' σ z) (hg'1 : ∀ (σ : Γ × Υ) (z : V), g' σ z ≤ 1) (hAF : 0 ≤ AF) (hAB : 0 ≤ AB) (hQbound : ∀ (v : ℝ), Q v ≤ AF) (hkbound : ∀ (v : ℝ), k v ≤ AB) (hKF : 0 < KF) (hKc : 0 < Kc) (hKB : 0 < KB) (hIQ : ∀ (v r : ℝ), Q v ≠ 0 → ρF r ≠ 0 → I v r = 1) {gF : ℝ} (hgF : gF ≤ 1) (hτclose : ∀ (r : ℝ), gF ≤ r → τ r = 0) (hZt : ∀ (t : κ) (z : V), Zt t z → Z t z) (hYt : ∀ (t : υ) (y : V), Yt t y → Y t y) {eF rF eB rB : ℝ} (heF : 0 ≤ eF) (hQzero : ∀ v ≤ eF, Q v = 0) (hrF : rF ≤ eF) (hρFclose : ∀ (r : ℝ), rF ≤ r → ρF r = 0) (heB : 0 ≤ eB) (hkzero : ∀ v ≤ eB, k v = 0) (hrB : rB ≤ eB) (hρBclose : ∀ (r : ℝ), rB ≤ r → ρB r = 0) {A C c₁ : ℝ} (hA : 0 ≤ A) (hC : 0 ≤ C) (hc₁ : 0 < c₁) (hbf : c₁ * b ≤ f) (huf : u ≤ f) (M d c i iF iB : ℕ) (hc : 0 < c) (offset : ℤ) (hoffset : offset < 0) (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 σ.1); have F' := fun (σ : Γ × Υ) => correctionAtom I τ KF Kc f (G' σ) X Z Zt Q hF ρF (g' σ) (drawF σ.1); have B := fun (σ : Γ × Υ) => denseAtom Y Yt k hB ρB KB b (H σ) (drawB σ.2); have B' := fun (σ : Γ × Υ) => denseAtom Y Yt k hB ρB KB b (H' σ) (drawB σ.2); let Xu := fun (γ : Γ) (x : V) => X (drawF γ).1 x; let Zf := fun (σ : Γ × Υ) (z : V) => Zt (drawF σ.1).2 z; 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 (fun (σ : Γ × Υ) (x : V) => Xu σ.1 x) 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 σ.2) y) B B' ≤ (C * 2 ^ (-Cslib.LogSpaceEstimation.precision (16 * ↑c) A (Cslib.LogSpaceEstimation.lastBudget M d c offset) iB b f)) ^ 4 → (Cslib.rowNormPow 4 N u (fun (σ : Γ × Υ) (x : V) => Xu σ.1 x) (fun (σ : Γ × Υ) (y : V) => Ya σ.2 y) fun (x : Γ × Υ) (x_1 y : V) => Cslib.conditionalTableMean (fun (σ : Γ × Υ) (x : V) => Xu σ.1 x) (fun (σ : Γ × Υ) (y : V) => Ya σ.2 y) (fun (σ : Γ × Υ) (x y : V) => b / a * (f / πf) * (πa / πb) * (∑ z : V with Zf σ z, F σ x z * B σ z y - ∑ z : V with Zf σ z, F' σ x z * B' σ z y)) x_1 y) ≤ (f / πf) ^ 4 * (Ca / cb) * ((4 * (↑KF * (2 * AF) * (2 * AB)) ^ ((4 - 1) / 4)) ^ 4 * (2 ^ (2 * (4 - 1)) * 4 ^ 4) * (2 * AB * ↑KB * (C * 2 ^ (-Real.logb 2 c₁ / 2) * payment) ^ 4 + 2 * AF * ↑Kc * (C * payment) ^ 4))

The scheduled fine comparison for actual correction and dense atoms. All row and incoming caps follow from the actual gates. The two raw estimates and multipliers may share both seeds. The broad endpoint mask and the actual fine hit density are kept distinct from nominal rates.