Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — localisation: P(sup⁡∥ζ∥p≥b{−ζTHn−Mn(ζ)}>0)≤ε\mathbb P(\sup_{\|\zeta\|_p\ge b}\{-\zeta^T H_n - M_n(\zeta)\} > 0) \le \varepsilonP(sup∥ζ∥p​≥b​{−ζTHn​−Mn​(ζ)}>0)≤ε for n≥n0n \ge n_0n≥n0​

Proved
RWPI.Limit.lemma_2

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

optimal-transportp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilitystatistics

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. Assume:

  1. (A1) ρ≥1\rho \ge 1ρ≥1, q∈(1,∞]q \in (1, \infty]q∈(1,∞] and ppp is the conjugate exponent, 1/p+1/q=11/p + 1/q = 11/p+1/q=1;
  2. (A2) E[h(W,θ∗)]=0\mathbb E[h(W, \theta_*)] = \mathbf 0E[h(W,θ∗​)]=0 and E∥h(W,θ∗)∥22<∞\mathbb E\|h(W, \theta_*)\|_2^2 < \inftyE∥h(W,θ∗​)∥22​<∞;
  3. (A3) h(⋅,θ∗)h(\cdot, \theta_*)h(⋅,θ∗​) is continuously differentiable, with derivative Dh=Dwh(⋅,θ∗)Dh = D_w h(\cdot, \theta_*)Dh=Dw​h(⋅,θ∗​);
  4. (A4) for every ζ∈Rr\zeta \in \mathbb R^rζ∈Rr with ζ≠0\zeta \ne 0ζ=0, P(∥ζTDwh(W,θ∗)∥p>0)>0\mathbb P(\|\zeta^T D_w h(W, \theta_*)\|_p > 0) > 0P(∥ζTDw​h(W,θ∗​)∥p​>0)>0.

Let HnH_nHn​ and MnM_nMn​ be the quantities of (31)–(32) computed from W1,…,WnW_1, \dots, W_nW1​,…,Wn​. Then for every ε>0\varepsilon > 0ε>0 there exist n0>0n_0 > 0n0​>0 and b∈(0,∞)b \in (0, \infty)b∈(0,∞) such that, for all n≥n0n \ge n_0n≥n0​,

P(sup⁡∥ζ∥p≥b{−ζTHn−Mn(ζ)}>0)≤ε.\mathbb P\Big( \sup_{\|\zeta\|_p \ge b} \big\{ -\zeta^T H_n - M_n(\zeta) \big\} > 0 \Big) \le \varepsilon .P(∥ζ∥p​≥bsup​{−ζTHn​−Mn​(ζ)}>0)≤ε.

Since the supremum over all ζ\zetaζ is at least 000 (take ζ=0\zeta = 0ζ=0), the lemma shows that with high probability the representation (31) of nρ/2Rn(θ∗)n^{\rho/2}R_n(\theta_*)nρ/2Rn​(θ∗​) is determined by a fixed compact set of multipliers ζ\zetaζ; this localisation is what makes the continuous-mapping argument of Theorem 3 possible.

Formalization Note. The samples are W0,W1,…W_0, W_1, \dotsW0​,W1​,… (indexed from 000), independent and identically distributed with the law of W0W_0W0​, and the event "the supremum is positive" is written as "some ζ\zetaζ with ∥ζ∥p≥b\|\zeta\|_p \ge b∥ζ∥p​≥b has a positive value". The probability is the outer measure of that event, so no measurability is assumed. The page lists A2)–A4); A1) and the i.i.d. sampling are the paper's standing setting and are stated explicitly. The paper allows q≥1q \ge 1q≥1 in A1) but works with q∈(1,∞]q \in (1,\infty]q∈(1,∞] in (17) and in the proof (p. 33, "Recall that q>1q > 1q>1"); the latter is used.

Preamble
import Mathlib
import Definitions.Def_RWPI_Limit_dualRep
import Definitions.Def_RWPI_Limit_rowNorm

open MeasureTheory ProbabilityTheory
Formal statement
namespace RWPI.Limit

/-- Lemma 2 (Blanchet, Kang & Murthy, arXiv:1610.05627v4, App. A.3, p. 32): localisation of the
dual representation (31). `W_0, W_1, …` are i.i.d. random vectors in `ℝ^m`; `H_n`, `M_n` are
evaluated at the first `n` samples. Under A1) (with `q ∈ (1, ∞]`, `1/p + 1/q = 1`, `ρ ≥ 1`) and
A2)–A4), for every `ε > 0` there are `n₀ > 0` and `b ∈ (0, ∞)` with
`P( sup_{‖ζ‖_p ≥ b} { −ζ^T H_n − M_n(ζ) } > 0 ) ≤ ε` for all `n ≥ n₀`. -/
theorem lemma_2 {Ω : 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)
    -- A2)
    (hint : Integrable (fun ω => h (W 0 ω) θs) μ) (hmean : ∫ ω, h (W 0 ω) θs ∂μ = 0)
    (hL2 : MemLp (fun ω => h (W 0 ω) θs) 2 μ)
    -- A3)
    (hC1 : ContDiff ℝ 1 fun x => h x θs)
    -- A4)
    (hA4 : ∀ ζ : Fin r → ℝ, ζ ≠ 0 → 0 < μ {ω | 0 < rowNorm p h θs ζ (W 0 ω)}) :
    ∀ ε : ℝ, 0 < ε → ∃ n₀ : ℕ, 0 < n₀ ∧ ∃ b : ℝ, 0 < b ∧ ∀ n : ℕ, n₀ ≤ n →
      μ {ω | ∃ ζ : Fin r → ℝ, b ≤ ‖WithLp.toLp p ζ‖ ∧
        (0 : EReal) < (((-(ζ ⬝ᵥ Hn h θs (fun i : Fin n => W i ω))) : ℝ) : EReal)
          - Mn q ρ h θs (fun i : Fin n => W i ω) ζ} ≤ ENNReal.ofReal ε := by sorry

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