Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — the f-divergence robust mean equals EP^n[Z]+ρsn2/n+o(n−1/2)E_{\widehat P_n}[Z]+\sqrt{\rho s_n^2/n}+o(n^{-1/2})EPn​​[Z]+ρsn2​/n​+o(n−1/2) almost surely

Proved
GenEmpLik.Expansion.lemma_1

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

empirical-likelihoodergodic-theoryf-divergencep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1variance-expansion

Let Z1,Z2,…Z_1,Z_2,\dotsZ1​,Z2​,… be a strictly stationary ergodic sequence of real random variables with E[Z12]<∞E[Z_1^2]<\inftyE[Z12​]<∞, and let fff satisfy Assumption A. Fix ρ≥0\rho\ge0ρ≥0. For each nnn let P^n\widehat P_nPn​ be the empirical distribution of Z1,…,ZnZ_1,\dots,Z_nZ1​,…,Zn​ and sn2=EP^n[Z2]−EP^n[Z]2s_n^2=E_{\widehat P_n}[Z^2]-E_{\widehat P_n}[Z]^2sn2​=EPn​​[Z2]−EPn​​[Z]2 the sample variance. Then

∣sup⁡P: Df(P∥P^n)≤ρ/nEP[Z]−EP^n[Z]−ρnsn2∣≤ϵnnwithϵn→a.s.0.\Big|\sup_{P:\,D_f(P\|\widehat P_n)\le\rho/n}E_P[Z]-E_{\widehat P_n}[Z]-\sqrt{\frac\rho n s_n^2}\Big|\le\frac{\epsilon_n}{\sqrt n} \qquad\text{with}\qquad \epsilon_n\xrightarrow{\text{a.s.}}0 .​P:Df​(P∥Pn​)≤ρ/nsup​EP​[Z]−EPn​​[Z]−nρ​sn2​​​≤n​ϵn​​withϵn​a.s.​0.

Equivalently, almost surely

n ∣sup⁡P: Df(P∥P^n)≤ρ/nEP[Z]−EP^n[Z]−ρnsn2∣⟶0(n→∞).\sqrt n\,\Big|\sup_{P:\,D_f(P\|\widehat P_n)\le\rho/n}E_P[Z]-E_{\widehat P_n}[Z]-\sqrt{\frac\rho n s_n^2}\Big|\longrightarrow0\qquad(n\to\infty).n​​P:Df​(P∥Pn​)≤ρ/nsup​EP​[Z]−EPn​​[Z]−nρ​sn2​​​⟶0(n→∞).

The robust mean is therefore the sample mean plus a variance penalty, up to an error of smaller order than n−1/2n^{-1/2}n−1/2. Combined with the central limit theorem this gives the asymptotically exact χ12\chi^2_1χ12​ coverage of generalized empirical likelihood intervals for a mean.

Formalization Note The supremum is over P≪P^nP\ll\widehat P_nP≪Pn​ (robustMean); mean and variance are the published empMean and empVar. Stationarity and ergodicity is IsStationaryErgodic (the law of the path is invariant and ergodic for the shift). The paper's ϵn→0\epsilon_n\to0ϵn​→0 a.s. is stated as the almost sure convergence of n\sqrt nn​ times the left-hand side, which is the same statement (take ϵn\epsilon_nϵn​ equal to that quantity). Lean's Z 0 is the paper's Z1Z_1Z1​, and the first nnn observations are Z 0, …, Z (n-1).

Preamble
import Mathlib
import Definitions.Def_GenEmpLik_Expansion_AssumptionA
import Definitions.Def_GenEmpLik_Expansion_robustMean
import Definitions.Def_GenEmpLik_Expansion_IsStationaryErgodic
import Definitions.Def_VarianceRegularization_Expansion_empMean
import Definitions.Def_VarianceRegularization_Expansion_empVar

open MeasureTheory ProbabilityTheory Filter Topology VarianceRegularization.Expansion
Formal statement
namespace GenEmpLik.Expansion

/-- Lemma 1 (Duchi, Glynn & Namkoong, arXiv:1610.03425v3, p. 7, (8)). Let `Z 0, Z 1, …` (the
paper's `Z₁, Z₂, …`) be a strictly stationary ergodic sequence of real random variables with
`E[Z₁²] < ∞`, and let Assumption A hold. With `P̂_n` the empirical distribution of the first `n`
observations and `s_n² = E_{P̂n}[Z²] − E_{P̂n}[Z]²`,
`| sup_{P : D_f(P‖P̂n) ≤ ρ/n} E_P[Z] − E_{P̂n}[Z] − √(ρ/n · s_n²) | ≤ ε_n / √n` with `ε_n → 0`
almost surely; equivalently, `√n` times the left-hand side tends to `0` almost surely. -/
theorem lemma_1 {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω} [IsProbabilityMeasure P]
    (f : ℝ → EReal) (hA : AssumptionA f) {ρ : ℝ} (hρ : 0 ≤ ρ)
    (Z : ℕ → Ω → ℝ) (hZ : IsStationaryErgodic Z P)
    (hmom : Integrable (fun ω => Z 0 ω ^ 2) P) :
    ∀ᵐ ω ∂P, Tendsto (fun n : ℕ => Real.sqrt n *
      |robustMean f ρ (fun i : Fin n => Z i ω) - empMean (fun i : Fin n => Z i ω) -
        Real.sqrt (ρ / n * empVar (fun i : Fin n => Z i ω))|) atTop (𝓝 0) := by sorry

end GenEmpLik.Expansion
Source
Duchi, Glynn & Namkoong, Statistics of Robust Optimization: A Generalized Empirical Likelihood Approach, arXiv:1610.03425v3, p. 7, Lemma 1, (8)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me