Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3 — uniform law of large numbers for 1n∑i∥ζTDh(Wi)∥pρ/(ρ−1)I(∥Wi∥p≤c0)\frac1n\sum_i\|\zeta^T Dh(W_i)\|_p^{\rho/(\rho-1)}I(\|W_i\|_p\le c_0)n1​∑i​∥ζTDh(Wi​)∥pρ/(ρ−1)​I(∥Wi​∥p​≤c0​)

Proved
RWPI.Limit.lemma_3

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

p2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilitystatisticsuniform-law-of-large-numbers

Let W,W1,W2,…W, W_1, W_2, \dotsW,W1​,W2​,… be i.i.d. random vectors in Rm\mathbb R^mRm, let h:Rm×Rl→Rrh : \mathbb R^m \times \mathbb R^l \to \mathbb R^rh:Rm×Rl→Rr and θ∗∈Rl\theta_* \in \mathbb R^lθ∗​∈Rl with h(⋅,θ∗)h(\cdot, \theta_*)h(⋅,θ∗​) continuously differentiable, Dh=Dwh(⋅,θ∗)Dh = D_w h(\cdot, \theta_*)Dh=Dw​h(⋅,θ∗​), let ρ>1\rho > 1ρ>1, and let ppp be the exponent conjugate to q∈(1,∞]q \in (1, \infty]q∈(1,∞]. Then for any b>0b > 0b>0 and c0∈(0,∞)c_0 \in (0, \infty)c0​∈(0,∞),

1n∑i=1n∥ζTDh(Wi)∥pρ/(ρ−1)I(∥Wi∥p≤c0)  ⟶  E[∥ζTDh(W)∥pρ/(ρ−1)I(∥W∥p≤c0)]\frac1n \sum_{i=1}^n \big\|\zeta^T Dh(W_i)\big\|_p^{\rho/(\rho-1)} I\big(\|W_i\|_p \le c_0\big) \;\longrightarrow\; \mathbb E\Big[ \big\|\zeta^T Dh(W)\big\|_p^{\rho/(\rho-1)} I\big(\|W\|_p \le c_0\big) \Big]n1​i=1∑n​​ζTDh(Wi​)​pρ/(ρ−1)​I(∥Wi​∥p​≤c0​)⟶E[​ζTDh(W)​pρ/(ρ−1)​I(∥W∥p​≤c0​)]

uniformly over ∥ζ∥p≤b\|\zeta\|_p \le b∥ζ∥p​≤b, in probability, as n→∞n \to \inftyn→∞: for every ε>0\varepsilon > 0ε>0, the probability that some ζ\zetaζ with ∥ζ∥p≤b\|\zeta\|_p \le b∥ζ∥p​≤b has the two sides more than ε\varepsilonε apart tends to 000.

This uniform law of large numbers identifies the limit of the localized penalty in the proof of Theorem 3.

Formalization Note. The samples are W0,W1,…W_0, W_1, \dotsW0​,W1​,…, i.i.d. with the law of W0W_0W0​, and the nnn-th average uses W0,…,Wn−1W_0, \dots, W_{n-1}W0​,…,Wn−1​. The probability is the outer measure of the event, so no measurability is assumed. ∥Wi∥p\|W_i\|_p∥Wi​∥p​ is the ℓp\ell_pℓp​ norm on Rm\mathbb R^mRm, as printed. The page does not repeat the standing assumptions; ρ>1\rho > 1ρ>1 (needed for the exponent ρ/(ρ−1)\rho/(\rho-1)ρ/(ρ−1)), the continuous differentiability of h(⋅,θ∗)h(\cdot,\theta_*)h(⋅,θ∗​) (A3)), the conjugate exponents (A1)) and the i.i.d. sampling are stated explicitly.

Preamble
import Mathlib
import Definitions.Def_RWPI_Limit_rowNorm

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace RWPI.Limit

/-- Lemma 3 (Blanchet, Kang & Murthy, arXiv:1610.05627v4, App. A.3, p. 34): a uniform law of large
numbers. For i.i.d. `W_0, W_1, …` in `ℝ^m`, `ρ > 1`, `h(·, θ*)` continuously differentiable,
`b > 0` and `c₀ ∈ (0, ∞)`,
`(1/n) Σ_{i<n} ‖ζ^T Dh(W_i)‖_p^{ρ/(ρ−1)} I(‖W_i‖_p ≤ c₀) → E[‖ζ^T Dh(W)‖_p^{ρ/(ρ−1)} I(‖W‖_p ≤ c₀)]`
uniformly over `‖ζ‖_p ≤ b`, in probability. -/
theorem lemma_3 {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ]
    {m l r : ℕ} (W : ℕ → Ω → (Fin m → ℝ)) (hWmeas : ∀ i, Measurable (W i))
    (hindep : iIndepFun W μ) (hident : ∀ i, IdentDistrib (W i) (W 0) μ μ)
    (h : (Fin m → ℝ) → (Fin l → ℝ) → (Fin r → ℝ)) (θs : Fin l → ℝ)
    (ρ : ℝ) (hρ : 1 < ρ) (q p : ENNReal) (hq : 1 < q) (hpq : p.HolderConjugate q)
    (hC1 : ContDiff ℝ 1 fun x => h x θs)
    (b c₀ : ℝ) (hb : 0 < b) (hc₀ : 0 < c₀) :
    ∀ ε : ℝ, 0 < ε → Tendsto (fun n : ℕ => μ {ω | ∃ ζ : Fin r → ℝ, ‖WithLp.toLp p ζ‖ ≤ b ∧
      ε < |(1 / (n : ℝ)) * ∑ i : Fin n,
              (if ‖WithLp.toLp p (W i ω)‖ ≤ c₀
                then rowNorm p h θs ζ (W i ω) ^ (ρ / (ρ - 1)) else 0)
            - ∫ ω', (if ‖WithLp.toLp p (W 0 ω')‖ ≤ c₀
                then rowNorm p h θs ζ (W 0 ω') ^ (ρ / (ρ - 1)) else 0) ∂μ|}) atTop (𝓝 0) := by sorry

end RWPI.Limit
Source
Blanchet, Kang & Murthy, Robust Wasserstein Profile Inference and Applications to Machine Learning, arXiv:1610.05627v4, p. 34, App. A.3, Lemma 3 (proof pp. 34–35)
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