Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6 — on the event En\mathcal E_nEn​ the robust mean lies within ρsn2/n (1±Cϵ)−1/2\sqrt{\rho s_n^2/n}\,(1\pm C\epsilon)^{-1/2}ρsn2​/n​(1±Cϵ)−1/2 of the sample mean

Proved
GenEmpLik.Expansion.lemma_6

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

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

Let fff satisfy Assumption A, n≥1n\ge1n≥1, ρ>0\rho>0ρ>0, 0<ϵ<10<\epsilon<10<ϵ<1, and let C≥0C\ge0C≥0 with Cϵ<1C\epsilon<1Cϵ<1 be such that the sandwich (30) holds at ϵ\epsilonϵ: 2(1−Cϵ)hϵ(t)≤f(t+1)2(1-C\epsilon)h_\epsilon(t)\le f(t+1)2(1−Cϵ)hϵ​(t)≤f(t+1) for t≥−1t\ge-1t≥−1 and f(t+1)≤(1+Cϵ)t2f(t+1)\le(1+C\epsilon)t^2f(t+1)≤(1+Cϵ)t2 for ∣t∣≤ϵ|t|\le\epsilon∣t∣≤ϵ. Let z=(z1,…,zn)z=(z_1,\dots,z_n)z=(z1​,…,zn​) be a sample with empirical distribution P^n\widehat P_nPn​, mean zˉn=EP^n[Z]\bar z_n=E_{\widehat P_n}[Z]zˉn​=EPn​​[Z] and variance 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. If the event

En:max⁡i≤n∣zi−zˉn∣n≤ϵ sn1−Cϵρ\mathcal E_n:\quad \max_{i\le n}\frac{|z_i-\bar z_n|}{\sqrt n}\le\epsilon\, s_n\sqrt{\frac{1-C\epsilon}{\rho}}En​:i≤nmax​n​∣zi​−zˉn​∣​≤ϵsn​ρ1−Cϵ​​

holds, then

EP^n[Z]+ρnsn2 11+Cϵ  ≤  sup⁡P: Df(P∥P^n)≤ρ/nEP[Z]  ≤  EP^n[Z]+ρnsn2 11−Cϵ.E_{\widehat P_n}[Z]+\sqrt{\frac\rho n s_n^2}\,\frac{1}{\sqrt{1+C\epsilon}}\;\le\;\sup_{P:\,D_f(P\|\widehat P_n)\le\rho/n}E_P[Z]\;\le\;E_{\widehat P_n}[Z]+\sqrt{\frac\rho n s_n^2}\,\frac{1}{\sqrt{1-C\epsilon}} .EPn​​[Z]+nρ​sn2​​1+Cϵ​1​≤P:Df​(P∥Pn​)≤ρ/nsup​EP​[Z]≤EPn​​[Z]+nρ​sn2​​1−Cϵ​1​.

Since En\mathcal E_nEn​ holds eventually almost surely for a stationary ergodic sequence with finite variance, and ϵ\epsilonϵ can be taken arbitrarily small, this yields the variance expansion (Lemma 1).

Formalization Note The statement is deterministic: "on En\mathcal E_nEn​" is the event's inequality as a hypothesis on the sample vector. The paper's CCC is the constant of (30) and its ϵ\epsilonϵ is at most the ccc of (30); here the two inequalities of (30) at ϵ\epsilonϵ and CCC are hypotheses. The paper allows ϵ=0\epsilon=0ϵ=0, where hϵh_\epsilonhϵ​ is undefined; the statement takes ϵ>0\epsilon>0ϵ>0. The hypothesis Cϵ<1C\epsilon<1Cϵ<1 is implicit in the paper's 1−Cϵ\sqrt{1-C\epsilon}1−Cϵ​. Sample mean and variance are the published empMean, empVar; the robust mean is robustMean.

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

open VarianceRegularization.Expansion
Formal statement
namespace GenEmpLik.Expansion

/-- Lemma 6 (Duchi, Glynn & Namkoong, arXiv:1610.03425v3, p. 31), deterministic form. Let `C`
be a constant for which the two inequalities of (30) hold at `ε`, with `0 < ε < 1`, `0 ≤ C`,
`Cε < 1`. On the event `ℰ_n = {max_{i ≤ n} |zᵢ − z̄_n| / √n ≤ ε s_n √((1 − Cε)/ρ)}`,
`E_{P̂n}[Z] + √(ρ/n · s_n²) / √(1 + Cε) ≤ sup_{P : D_f(P‖P̂n) ≤ ρ/n} E_P[Z]
  ≤ E_{P̂n}[Z] + √(ρ/n · s_n²) / √(1 − Cε)`. -/
theorem lemma_6 (f : ℝ → EReal) (hA : AssumptionA f) {n : ℕ} (hn : 0 < n) {ρ ε C : ℝ}
    (hρ : 0 < ρ) (hε : 0 < ε) (hε1 : ε < 1) (hC : 0 ≤ C) (hCε : C * ε < 1)
    (hlow : ∀ t : ℝ, -1 ≤ t → ((2 * (1 - C * ε) * huber ε t : ℝ) : EReal) ≤ f (t + 1))
    (hup : ∀ t : ℝ, |t| ≤ ε → f (t + 1) ≤ (((1 + C * ε) * t ^ 2 : ℝ) : EReal))
    (z : Fin n → ℝ)
    (hE : (⨆ i, |z i - empMean z|) / Real.sqrt n ≤
      ε * Real.sqrt (empVar z) * Real.sqrt ((1 - C * ε) / ρ)) :
    empMean z + Real.sqrt (ρ / n * empVar z) * (1 / Real.sqrt (1 + C * ε)) ≤
        robustMean f ρ z ∧
      robustMean f ρ z ≤
        empMean z + Real.sqrt (ρ / n * empVar z) * (1 / Real.sqrt (1 - C * ε)) := by sorry

end GenEmpLik.Expansion
Source
Duchi, Glynn & Namkoong, Statistics of Robust Optimization: A Generalized Empirical Likelihood Approach, arXiv:1610.03425v3, p. 31, Lemma 6
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