Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RootMetric.Conditioning

Conditioning an integrated moment on one retained start #

An integrated error bound controls the conditional moment at any specified retained vertex. The cost is exactly N * u / π, where π is the actual density of environments retaining that vertex and u is the nominal rate in vertexNormPow. The nominal and actual rates need not agree. No independence of the retention mask and the error is assumed.

These are the moment and Markov steps of [OpenAI2026LogSpace, Lemma 12.2], equations final-conditional and final-tail, at revision 7ef5c0cc (23 September 2026, unrefereed). The source uses eighth moments; the statements here allow every natural exponent, including the fourth moments of the library's estimator route. They apply to an error array supplied by the caller; they do not construct the recursive estimator or prove its global moment bound.

Main results #

References #

theorem Cslib.expect_retained_vertex_pow_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] (hNu : 0 < N * u) (v : Ω → V → ℝ) (z : V) (hz : {σ : Ω | X σ z}.Nonempty) :
({σ : Ω | X σ z}.expect fun (σ : Ω) => |v σ z| ^ p) ≤ N * u / ↑{σ : Ω | X σ z}.dens * vertexNormPow p N u X v

Keeping one nonnegative summand converts the integrated norm into a conditional moment. The conditioning event must be nonempty; its actual density appears in the denominator.

theorem Cslib.retained_vertex_tail_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] (hNu : 0 < N * u) (v : Ω → V → ℝ) (z : V) (hz : {σ : Ω | X σ z}.Nonempty) {η : ℝ} (hη : 0 < η) :
↑{σ ∈ {σ : Ω | X σ z} | η < |v σ z|}.card / ↑{σ : Ω | X σ z}.card ≤ N * u / ↑{σ : Ω | X σ z}.dens * vertexNormPow p N u X v / η ^ p

Markov's bound for the fraction of retained environments whose error exceeds η. The ratio of cardinalities is the uniform conditional probability, not the unconditional density of the bad event.