Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RootMetric.Slices

Integrating conditional row moments #

The integrated row moment is exactly the sum of conditional endpoint moments weighted by actual joint retention densities. Thus a uniform conditional contraction passes to the row norm without a conditioning penalty, even when the slices have different sizes or are empty. The source mask, endpoint mask and errors may all be correlated.

This is the density-accounting step in [OpenAI2026LogSpace, Lemma 7.8, printed p. 42], at revision 7ef5c0cc (23 September 2026, not peer reviewed). The source uses exponent eight; these identities work for every natural exponent, including the fourth-moment route. The conditional contraction itself must be supplied by the sampler; this module does not construct the recursive estimator or prove that its samples vary every required coordinate.

Main results #

theorem Cslib.vertexNormPow_one_eq_sum_dens {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] :
(vertexNormPow p N u X fun (x : Ω) (x_1 : V) => 1) = (N * u)⁻¹ * ∑ x : V, ↑{σ : Ω | X σ x}.dens

The unit vertex moment counts actual source retention densities. No relation between retention and any other random data is needed, and empty sources contribute zero.

theorem Cslib.rowNormPow_mono_terminal {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) {Y' : Ω → V → Prop} [(σ : Ω) → (y : V) → Decidable (Y' σ y)] (hsub : ∀ (σ : Ω) (y : V), Y σ y → Y' σ y) (H : Ω → V → V → ℝ) :
rowNormPow p N u X Y H ≤ rowNormPow p N u X Y' H

Restricting the retained terminal set cannot increase an integrated row moment. This lets a child's bound on its own endpoint domain pay for a parent's narrower usage domain.

theorem Cslib.expect_filtered_sum_eq {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (H : Ω → V → V → ℝ) :
(Finset.univ.expect fun (σ : Ω) => ∑ x : V with X σ x, ∑ y : V with Y σ y, H σ x y) = ∑ x : V, ∑ y : V, Finset.univ.expect fun (σ : Ω) => if X σ x ∧ Y σ y then H σ x y else 0

Exchange the finite expectation with the source and endpoint sums, preserving their actual joint mask. The two masks and the table may depend on the same draw.

theorem Cslib.rowNormPow_eq_sum_dens_mul_expect {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (F : Ω → V → V → ℝ) :
rowNormPow p N u X Y F = (N * u)⁻¹ * ∑ x : V, ∑ y : V, ↑{σ : Ω | X σ x ∧ Y σ y}.dens * {σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |F σ x y| ^ p

Actual slice densities cancel the conditional averaging denominators, including empty slices. No independence or uniform retention probability is needed.

theorem Cslib.rowNormPow_le_of_conditional_expect_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) (F E : Ω → V → V → ℝ) (c : ℝ) (h : ∀ (x y : V), ({σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |E σ x y| ^ p) ≤ c * {σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |F σ x y| ^ p) :
rowNormPow p N u X Y E ≤ c * rowNormPow p N u X Y F

Conditional estimates with the same factor on every retained pair give the same factor in the integrated row norm. The input slice moments may differ arbitrarily.

theorem Cslib.rowNormPow_le_sum_conditional_budgets {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) (E : Ω → V → V → ℝ) (b : V → V → ℝ) (h : ∀ (x y : V), ({σ : Ω | X σ x ∧ Y σ y}.expect fun (σ : Ω) => |E σ x y| ^ p) ≤ b x y) :
rowNormPow p N u X Y E ≤ (N * u)⁻¹ * ∑ x : V, ∑ y : V, ↑{σ : Ω | X σ x ∧ Y σ y}.dens * b x y

Slice-specific budgets are integrated with their actual densities, rather than a maximum budget or a reciprocal minimum-density penalty.