Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 5 — a pointwise compact class with integrable envelope is Glivenko–Cantelli

Proved
GenEmpLik.Consistency.example_5

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

empirical-processesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1uniform-law-of-large-numbers

Let ξ1,ξ2,…\xi_1,\xi_2,\dotsξ1​,ξ2​,… be i.i.d. random elements of Ξ\XiΞ with law P0P_0P0​. Let X⊂Rd\mathcal X\subset\mathbb R^dX⊂Rd be compact, let ℓ(x;⋅)\ell(x;\cdot)ℓ(x;⋅) be measurable for each x∈Xx\in\mathcal Xx∈X, and let x↦ℓ(x;ξ)x\mapsto\ell(x;\xi)x↦ℓ(x;ξ) be continuous on X\mathcal XX for P0P_0P0​-almost all ξ∈Ξ\xi\in\Xiξ∈Ξ. If there is a measurable envelope Z:Ξ→R+Z:\Xi\to\mathbb R_+Z:Ξ→R+​ with

∣ℓ(x;ξ)∣≤Z(ξ)for all x∈X, ξ∈Ξ,EP0[Z]<∞,|\ell(x;\xi)|\le Z(\xi)\quad\text{for all }x\in\mathcal X,\ \xi\in\Xi,\qquad E_{P_0}[Z]<\infty,∣ℓ(x;ξ)∣≤Z(ξ)for all x∈X, ξ∈Ξ,EP0​​[Z]<∞,

then H={ℓ(x;⋅):x∈X}\mathcal H=\{\ell(x;\cdot):x\in\mathcal X\}H={ℓ(x;⋅):x∈X} is Glivenko–Cantelli.

This is the standard sufficient condition (van der Vaart, Asymptotic Statistics, Example 19.8) by which the Glivenko–Cantelli hypothesis of Theorem 7 is verified for continuous losses on a compact decision set; Corollary 1 uses it in exactly this way.

Formalization Note Samples are 0-based and P0P_0P0​ is the law of ξ0\xi_0ξ0​; "Glivenko–Cantelli" is the definition of this mission (integrable class, supremum in [0,∞][0,\infty][0,∞], convergence ∀ᵐ). The continuity is assumed for P0P_0P0​-almost every ξ\xiξ, as printed.

Preamble
import Mathlib
import Definitions.Def_GenEmpLik_Consistency_IsGlivenkoCantelli

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace GenEmpLik.Consistency

/-- Example 5 (arXiv:1610.03425v3, p. 16; van der Vaart 1998, Example 19.8). Let `ξ₀, ξ₁, …`
be i.i.d. with law `P₀`, let `X` be compact, let `ℓ(·; ξ)` be continuous on `X` for
`P₀`-almost every `ξ`, and let `ℓ(x; ·)` be measurable for each `x ∈ X`. If there is a measurable envelope
`Z : Ξ → ℝ₊` with `|ℓ(x; ξ)| ≤ Z(ξ)` for all `x ∈ X`, `ξ ∈ Ξ` and `E_{P₀}[Z] < ∞`, then
`{ℓ(x; ·) : x ∈ X}` is Glivenko–Cantelli. -/
theorem example_5 {Ω Ξ : Type*} [MeasurableSpace Ω] [MeasurableSpace Ξ]
    {μ : Measure Ω} [IsProbabilityMeasure μ] {d : ℕ}
    (ξ : ℕ → Ω → Ξ) (hξm : ∀ i, Measurable (ξ i)) (hξind : iIndepFun ξ μ)
    (hξid : ∀ i, IdentDistrib (ξ i) (ξ 0) μ μ)
    (X : Set (EuclideanSpace ℝ (Fin d))) (hX : IsCompact X)
    (ℓ : EuclideanSpace ℝ (Fin d) → Ξ → ℝ) (hℓm : ∀ x ∈ X, Measurable (ℓ x))
    (hcont : ∀ᵐ s ∂(μ.map (ξ 0)), ContinuousOn (fun x => ℓ x s) X)
    (Z : Ξ → ℝ) (hZm : Measurable Z) (hZ0 : ∀ s, 0 ≤ Z s)
    (hZ : ∀ x ∈ X, ∀ s, |ℓ x s| ≤ Z s) (hZint : Integrable Z (μ.map (ξ 0))) :
    IsGlivenkoCantelli μ ξ ((fun x => ℓ x) '' X) := by sorry

end GenEmpLik.Consistency
Source
Duchi, Glynn & Namkoong, Statistics of Robust Optimization: A Generalized Empirical Likelihood Approach, arXiv:1610.03425v3, p. 16, Example 5 (quoting van der Vaart 1998, Example 19.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