Lemma 4, p. 10 — Berry–Esseen: sup_t |Pr{√k/σ̂(y) (F̂_k(y) − E[I{Ŷ ≤ y}]) ≤ t} − Φ(t)| ≤ 33/(4σ̂³(y)k^{1/2})
ProvedCoVaRMC.Batching.lemma_4Let be i.i.d. with joint density , , , and let be the batch values, their empirical distribution function and . Let be the standard normal distribution function. For every with ,
This controls the across-batch error of (5) uniformly in and is what lets the proof of Theorem 3 pass from probabilities to the normal distribution function at a rate .
Formalization Note. Two departures from the page, both disclosed. (1) The hypothesis is added: the page divides by , and in Lean would make the bound false when . (2) Assumption 1, stated on the page, is not used by the Berry–Esseen argument and is omitted, which strengthens the lemma. The constant is the page's. The supremum over is written as "for every ". is the distribution function of gaussianReal 0 1.
import Mathlib import Definitions.Def_CoVaRMC_Batching_Setting open MeasureTheory ProbabilityTheory Filter Topology
namespace CoVaRMC.Batching
/-- Lemma 4, p. 10 (Berry–Esseen): for `σ̂(y) > 0`,
`sup_t |Pr{(√k / σ̂(y)) (F̂_k(y) - E[I{Ŷ ≤ y}]) ≤ t} - Φ(t)| ≤ (33/4) · 1 / (σ̂³(y) k^{1/2})`. -/
theorem lemma_4 (D : JointDensity) (α : ℝ) (hα : α ∈ Set.Ioo (0 : ℝ) 1)
{Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(S : ℕ × ℕ → Ω → ℝ × ℝ) (hSm : ∀ p, Measurable (S p)) (hSi : iIndepFun S P)
(hSl : ∀ p, P.map (S p) = D.law)
(k m : ℕ) (hk : 0 < k) (hm : 0 < m) (y : ℝ) (hσ : 0 < sigmaHat P S α m y) (t : ℝ) :
|(P {ω | √(k : ℝ) / sigmaHat P S α m y * (FkHat S α k m y ω - pHat P S α m y) ≤ t}).toReal
- cdf (gaussianReal 0 1) t|
≤ 33 / 4 * (1 / (sigmaHat P S α m y ^ 3 * √(k : ℝ))) := by sorry
end CoVaRMC.Batching
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.