Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 7, display 3, p. 15 — P{d_{W,p}(P̂^ER_n(x), P_{Y|X=x}) > ζ_n(α, x)} ≤ α

Proved
ResidualsDRO.Wass.theorem_7_display_3

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

distributionally-robust-optimizationoptimal-transportp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1wasserstein

Assume the setting of Theorem 7: on a probability space (Ω,P)(\Omega,\mathbb P)(Ω,P) the training covariates xix^ixi and the regression estimate f^n\hat f_nf^​n​ are random, the errors ε1,…,εn\varepsilon^1,\dots,\varepsilon^nε1,…,εn (n≥1n\ge1n≥1) are i.i.d. with law PεP_\varepsilonPε​, yi=f∗(xi)+εiy^i=f^*(x^i)+\varepsilon^iyi=f∗(xi)+εi; Y⊆Rdy\mathcal Y\subseteq\mathbb R^{d_y}Y⊆Rdy​ (dy≥1d_y\ge1dy​≥1) is nonempty, closed and convex with orthogonal projection projY\mathrm{proj}_{\mathcal Y}projY​ and contains f∗(x)+εif^*(x)+\varepsilon^if∗(x)+εi; Assumptions 1 and 2 hold at the covariate xxx with 1≤p1\le p1≤p; p≠dy/2p\ne d_y/2p=dy​/2; and c1,c2>0c_1,c_2>0c1​,c2​>0 are constants for which the bound of Lemma 2 holds at nnn and xxx. Then for every α∈(0,1)\alpha\in(0,1)α∈(0,1),

P{dW,p(P^nER(x),PY∣X=x)>ζn(α,x)}≤α,\mathbb P\big\{d_{W,p}(\hat P^{ER}_n(x),P_{Y\mid X=x})>\zeta_n(\alpha,x)\big\}\le\alpha,P{dW,p​(P^nER​(x),PY∣X=x​)>ζn​(α,x)}≤α,

with ζn(α,x)\zeta_n(\alpha,x)ζn​(α,x) the radius (10) (second term built from log⁡(2c1α−1)\log(2c_1\alpha^{-1})log(2c1​α−1)).

The conditional distribution of YYY given X=xX=xX=x lies in the Wasserstein ball of radius ζn(α,x)\zeta_n(\alpha,x)ζn​(α,x) around the estimated empirical distribution with probability at least 1−α1-\alpha1−α; Theorem 7 follows from this.

Formalization Note The paper's "for a.e. xxx" is handled pointwise; probabilities are outer measures; the radius uses the corrected κp,n(2)(α)\kappa^{(2)}_{p,n}(\alpha)κp,n(2)​(α) (the paper prints log⁡(c1α−1)\log(c_1\alpha^{-1})log(c1​α−1)).

Preamble
import Mathlib
import Definitions.Def_WassersteinDRO_Duality_wassersteinDistance
import Definitions.Def_ResidualsDRO_Wass_Setting
import Definitions.Def_ResidualsDRO_Wass_Radius

open MeasureTheory ProbabilityTheory
Formal statement
namespace ResidualsDRO.Wass

/-- Proof of Theorem 7, display 3, p. 15. Setting of Theorem 7: on a probability space
`(Ω, P)`, random training covariates `xⁱ`, i.i.d. errors `εⁱ ∼ P_ε` (`n ≥ 1`), responses
`yⁱ = f*(xⁱ) + εⁱ`, a random regression estimate `f̂_n`; `𝒴 ⊆ ℝ^{d_y}` nonempty, closed, convex
with orthogonal projection `proj`, containing `f*(x) + εⁱ`; Assumptions 1 and 2 at the
covariate `x`; `p ≠ d_y/2`; constants `c₁, c₂ > 0` for which Lemma 2 holds at `n` and `x`. Then
for `α ∈ (0, 1)`, with the (corrected) radius `ζ_n(α, x)` of (10),
`P{d_{W,p}(P̂^ER_n(x), P_{Y|X=x}) > ζ_n(α, x)} ≤ α`. -/
theorem theorem_7_display_3 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {dx dy n : ℕ} (hdy : 1 ≤ dy) (hn : 1 ≤ n)
    (p a : ℝ) (hp : 1 ≤ p) (hpdy : p ≠ (dy : ℝ) / 2)
    (𝒴 : 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ε]
    (hA1 : Assumption1 Pε p a)
    (fstar : EuclideanSpace ℝ (Fin dx) → EuclideanSpace ℝ (Fin dy))
    (fhat : Ω → EuclideanSpace ℝ (Fin dx) → EuclideanSpace ℝ (Fin dy))
    (xs : Fin n → Ω → EuclideanSpace ℝ (Fin dx))
    (eps : Fin n → Ω → EuclideanSpace ℝ (Fin dy)) (heps_meas : ∀ i, Measurable (eps i))
    (heps_indep : iIndepFun eps P) (heps_law : ∀ i, P.map (eps i) = Pε)
    (x : EuclideanSpace ℝ (Fin dx)) (hY : ∀ i ω, fstar x + eps i ω ∈ 𝒴)
    (κ : ℝ → ℝ) (hA2 : Assumption2 P fstar fhat xs p x κ)
    (c₁ c₂ : ℝ) (hc₁ : 0 < c₁) (hc₂ : 0 < c₂) (hL2 : Lemma2Bound P Pε fstar eps x dy p a c₁ c₂)
    (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) :
    P {ω | ENNReal.ofReal (radius κ c₁ c₂ a p dy n α) <
        WassersteinDRO.Duality.wassersteinDistance p
          (erEmpirical proj fstar (fhat ω) (fun i => xs i ω) (fun i => eps i ω) x)
          (condLaw Pε fstar x)} ≤
      ENNReal.ofReal α := by sorry

end ResidualsDRO.Wass
Source
Kannan, Bayraksan & Luedtke, Residuals-based distributionally robust optimization with covariate information, Math. Program. (2023), accepted manuscript, p. 15, proof of Theorem 7, third display
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