Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3, p. 13 — d_{W,p}(P̂^ER_n(x), P_{Y|X=x}) ≤ (1/n Σ‖ε̃ⁱ_n(x)‖^p)^{1/p} + d_{W,p}(P*_n(x), P_{Y|X=x})

Proved
ResidualsDRO.Wass.lemma_3

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

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

Let p≥1p\ge1p≥1, n≥1n\ge1n≥1, Y⊆Rdy\mathcal Y\subseteq\mathbb R^{d_y}Y⊆Rdy​ nonempty, closed and convex with orthogonal projection projY\mathrm{proj}_{\mathcal Y}projY​, and PεP_\varepsilonPε​ a probability distribution on Rdy\mathbb R^{d_y}Rdy​. Fix covariates xix^ixi, errors εi\varepsilon^iεi (responses yi=f∗(xi)+εiy^i=f^*(x^i)+\varepsilon^iyi=f∗(xi)+εi), a regression estimate f^n\hat f_nf^​n​ and a covariate xxx with f∗(x)+εi∈Yf^*(x)+\varepsilon^i\in\mathcal Yf∗(x)+εi∈Y for all i∈[n]i\in[n]i∈[n]. Then

dW,p(P^nER(x),PY∣X=x)≤(1n∑i=1n∥ε~ni(x)∥p)1/p+dW,p(Pn∗(x),PY∣X=x),d_{W,p}\big(\hat P^{ER}_n(x),P_{Y\mid X=x}\big)\le\Big(\frac1n\sum_{i=1}^n\|\tilde\varepsilon^i_n(x)\|^p\Big)^{1/p}+d_{W,p}\big(P^*_n(x),P_{Y\mid X=x}\big),dW,p​(P^nER​(x),PY∣X=x​)≤(n1​i=1∑n​∥ε~ni​(x)∥p)1/p+dW,p​(Pn∗​(x),PY∣X=x​),

where Pn∗(x)P^*_n(x)Pn∗​(x) and P^nER(x)\hat P^{ER}_n(x)P^nER​(x) are the true and the estimated empirical distributions and PY∣X=xP_{Y\mid X=x}PY∣X=x​ is the law of f∗(x)+εf^*(x)+\varepsilonf∗(x)+ε.

The Wasserstein distance from the estimated empirical distribution to the conditional distribution is at most the power mean of the errors ε~ni(x)\tilde\varepsilon^i_n(x)ε~ni​(x) plus the sampling error of the true empirical distribution. It splits the analysis of Theorem 7 into a regression part and a concentration part.

Formalization Note Distances are in [0,+∞][0,+\infty][0,+∞] (the published wassersteinDistance), so no moment condition on PεP_\varepsilonPε​ is needed; the power mean is embedded by ENNReal.ofReal.

Preamble
import Mathlib
import Definitions.Def_WassersteinDRO_Duality_wassersteinDistance
import Definitions.Def_ResidualsDRO_Wass_Setting

open MeasureTheory
Formal statement
namespace ResidualsDRO.Wass

/-- Lemma 3, p. 13. Let `p ≥ 1`, `n ≥ 1`, `𝒴 ⊆ ℝ^{d_y}` nonempty, closed and convex with
orthogonal projection `proj`, `P_ε` a probability distribution of the errors, and fix a data
realization `(xⁱ, εⁱ)_{i ∈ [n]}` (`yⁱ = f*(xⁱ) + εⁱ`), a regression estimate `f̂_n` and a
covariate `x` with `f*(x) + εⁱ ∈ 𝒴` for all `i`. Then
`d_{W,p}(P̂^ER_n(x), P_{Y|X=x}) ≤ ((1/n) Σᵢ ‖ε̃ⁱ_n(x)‖^p)^{1/p} + d_{W,p}(P*_n(x), P_{Y|X=x})`
(in `[0, +∞]`). -/
theorem lemma_3 {dx dy n : ℕ} (hn : 1 ≤ n) (p : ℝ) (hp : 1 ≤ p)
    (𝒴 : Set (EuclideanSpace ℝ (Fin dy)))
    (h𝒴c : IsClosed 𝒴) (h𝒴v : Convex ℝ 𝒴) (h𝒴n : 𝒴.Nonempty)
    (proj : EuclideanSpace ℝ (Fin dy) → EuclideanSpace ℝ (Fin dy))
    (hproj : IsNearestPointProj 𝒴 proj)
    (Pε : Measure (EuclideanSpace ℝ (Fin dy))) [IsProbabilityMeasure Pε]
    (fstar fhat : EuclideanSpace ℝ (Fin dx) → EuclideanSpace ℝ (Fin dy))
    (xs : Fin n → EuclideanSpace ℝ (Fin dx)) (eps : Fin n → EuclideanSpace ℝ (Fin dy))
    (x : EuclideanSpace ℝ (Fin dx)) (hY : ∀ i, fstar x + eps i ∈ 𝒴) :
    WassersteinDRO.Duality.wassersteinDistance p (erEmpirical proj fstar fhat xs eps x)
        (condLaw Pε fstar x) ≤
      ENNReal.ofReal (powerMean p (fun i => ‖epsTilde fstar fhat xs eps x i‖)) +
        WassersteinDRO.Duality.wassersteinDistance p (trueEmpirical fstar eps x)
          (condLaw Pε fstar x) := by sorry

end ResidualsDRO.Wass
Source
Kannan, Bayraksan & Luedtke, Residuals-based distributionally robust optimization with covariate information, Math. Program. (2023), accepted manuscript, p. 13, Lemma 3
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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