Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 7, p. 15 — Wasserstein ER-DRO with radius ζ_n(α, x) of (10) certifies P{g(ẑ^DRO_n(x); x) ≤ v̂^DRO_n(x)} ≥ 1 − α

Proved
ResidualsDRO.Wass.theorem_7

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

covariatesdistributionally-robust-optimizationfinite-sample-guaranteep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1wasserstein

Finite sample certificate guarantee. On a probability space (Ω,P)(\Omega,\mathbb P)(Ω,P), let the training covariates x1,…,xnx^1,\dots,x^nx1,…,xn (n≥1n\ge1n≥1) and the regression estimate f^n\hat f_nf^​n​ be random, and let the errors ε1,…,εn\varepsilon^1,\dots,\varepsilon^nε1,…,εn be i.i.d. with law PεP_\varepsilonPε​ on Rdy\mathbb R^{d_y}Rdy​ (dy≥1d_y\ge1dy​≥1), with responses yi=f∗(xi)+εiy^i=f^*(x^i)+\varepsilon^iyi=f∗(xi)+εi. Let:

  1. Y⊆Rdy\mathcal Y\subseteq\mathbb R^{d_y}Y⊆Rdy​ be nonempty, closed and convex, with orthogonal projection projY\mathrm{proj}_{\mathcal Y}projY​, containing every f∗(x)+εif^*(x)+\varepsilon^if∗(x)+εi and the support of PY∣X=xP_{Y\mid X=x}PY∣X=x​ (the law of f∗(x)+εf^*(x)+\varepsilonf∗(x)+ε);
  2. Z⊆Rdz\mathcal Z\subseteq\mathbb R^{d_z}Z⊆Rdz​ be nonempty and compact, and c:Rdz×Rdy→Rc:\mathbb R^{d_z}\times\mathbb R^{d_y}\to\mathbb Rc:Rdz​×Rdy​→R with c(z,⋅)c(z,\cdot)c(z,⋅) measurable and E∣c(z,f∗(x)+ε)∣<∞\mathbb E|c(z,f^*(x)+\varepsilon)|<\inftyE∣c(z,f∗(x)+ε)∣<∞ for z∈Zz\in\mathcal Zz∈Z; g(z;x)=E[c(z,f∗(x)+ε)]g(z;x)=\mathbb E[c(z,f^*(x)+\varepsilon)]g(z;x)=E[c(z,f∗(x)+ε)];
  3. 1≤p<a1\le p<a1≤p<a with Assumption 1, Assumption 2 at the covariate xxx with constants κp,n(⋅,x)\kappa_{p,n}(\cdot,x)κp,n​(⋅,x), p≠dy/2p\ne d_y/2p=dy​/2, and c1,c2>0c_1,c_2>0c1​,c2​>0 constants for which the bound of Lemma 2 holds at nnn and xxx;
  4. α∈(0,1)\alpha\in(0,1)α∈(0,1), and z^nDRO(x)∈Z\hat z^{DRO}_n(x)\in\mathcal Zz^nDRO​(x)∈Z an optimal solution of the ER-DRO problem (8) whose ambiguity set is the ppp-Wasserstein ball {Q∈P(Y):dW,p(Q,P^nER(x))≤ζn(α,x)}\{Q\in\mathcal P(\mathcal Y): d_{W,p}(Q,\hat P^{ER}_n(x))\le\zeta_n(\alpha,x)\}{Q∈P(Y):dW,p​(Q,P^nER​(x))≤ζn​(α,x)} with the radius ζn(α,x)\zeta_n(\alpha,x)ζn​(α,x) of (10), and v^nDRO(x)\hat v^{DRO}_n(x)v^nDRO​(x) its optimal value.

Then

P{g(z^nDRO(x);x)≤v^nDRO(x)}≥1−α.\mathbb P\big\{g(\hat z^{DRO}_n(x);x)\le\hat v^{DRO}_n(x)\big\}\ge1-\alpha .P{g(z^nDRO​(x);x)≤v^nDRO​(x)}≥1−α.

The optimal value of the residuals-based DRO problem is, with probability at least 1−α1-\alpha1−α, an upper bound on the out-of-sample cost of its own solution, although the ambiguity set is centred at projected residual scenarios built from an estimated regression function rather than at samples from the conditional distribution.

Formalization Note The conclusion is stated in failure form, P{g(z^nDRO(x);x)>v^nDRO(x)}≤α\mathbb P\{g(\hat z^{DRO}_n(x);x)>\hat v^{DRO}_n(x)\}\le\alphaP{g(z^nDRO​(x);x)>v^nDRO​(x)}≤α, with P\mathbb PP applied as an outer measure (for a measurable event this is the paper's statement). The paper's "for a.e. xxx" is handled pointwise: Assumption 2 and Lemma 2's bound are assumed at the given xxx. v^nDRO(x)\hat v^{DRO}_n(x)v^nDRO​(x) is an extended real and the worst case counts the distributions in the ball under which c(z,⋅)c(z,\cdot)c(z,⋅) is integrable. Correction: the paper prints log⁡(c1α−1)\log(c_1\alpha^{-1})log(c1​α−1) in κp,n(2)(α)\kappa^{(2)}_{p,n}(\alpha)κp,n(2)​(α); the derivation it states (setting Lemma 2's right-hand side to α/2\alpha/2α/2) gives log⁡(2c1α−1)\log(2c_1\alpha^{-1})log(2c1​α−1), used here; with the printed formula the paper's proof yields only 3α/23\alpha/23α/2. Lemma 2 is the paper's quotation of Fournier and Guillin (2015, Theorem 2), which is stated there for WppW_p^pWpp​; its conclusion enters as a hypothesis on (c1,c2)(c_1,c_2)(c1​,c2​) exactly as the paper writes it.

Preamble
import Mathlib
import Definitions.Def_WassersteinDRO_Duality_worstCaseRisk
import Definitions.Def_ResidualsDRO_Wass_Setting
import Definitions.Def_ResidualsDRO_Wass_Radius

open MeasureTheory ProbabilityTheory
Formal statement
namespace ResidualsDRO.Wass

/-- Theorem 7 (Finite sample certificate guarantee), p. 15. On a probability space `(Ω, P)`,
let the training covariates `xⁱ` and the regression estimate `f̂_n` be random, the errors
`ε¹, …, εⁿ` (`n ≥ 1`) i.i.d. with law `P_ε`, `yⁱ = f*(xⁱ) + εⁱ`; `𝒴 ⊆ ℝ^{d_y}` (`d_y ≥ 1`)
nonempty, closed and convex with orthogonal projection `proj`, containing `f*(x) + εⁱ` and the
support of `P_{Y|X=x}`; `𝒵` nonempty and compact; `c(z, ·)` measurable with
`E|c(z, f*(x) + ε)| < ∞` for `z ∈ 𝒵`. Let Assumptions 1 and 2 hold at the covariate `x`,
`p ≠ d_y/2`, and let `c₁, c₂ > 0` be constants for which Lemma 2 holds at `n` and `x`.
For `α ∈ (0, 1)`, let `ẑ^DRO_n(x)` be an optimal solution of the ER-DRO problem (8) with the
Wasserstein ball of (corrected) radius `ζ_n(α, x)` of (10) around `P̂^ER_n(x)`. Then
`P{g(ẑ^DRO_n(x); x) > v̂^DRO_n(x)} ≤ α`, i.e. `P{g(ẑ^DRO_n(x); x) ≤ v̂^DRO_n(x)} ≥ 1 - α`. -/
theorem theorem_7 {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] {dx dy dz 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 ω ∈ 𝒴)
    (hsupp : condLaw Pε fstar x 𝒴ᶜ = 0)
    (κ : ℝ → ℝ) (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₂)
    (𝒵 : Set (EuclideanSpace ℝ (Fin dz))) (h𝒵c : IsCompact 𝒵) (h𝒵n : 𝒵.Nonempty)
    (c : EuclideanSpace ℝ (Fin dz) → EuclideanSpace ℝ (Fin dy) → ℝ)
    (hc_meas : ∀ z, Measurable (c z))
    (hc_int : ∀ z ∈ 𝒵, Integrable (fun e => c z (fstar x + e)) Pε)
    (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1)
    (zhat : Ω → EuclideanSpace ℝ (Fin dz))
    (hopt : ∀ ω, zhat ω ∈ 𝒵 ∧ ∀ z ∈ 𝒵,
      WassersteinDRO.Duality.worstCaseRisk (radius κ c₁ c₂ a p dy n α) p 𝒴
          (erEmpirical proj fstar (fhat ω) (fun i => xs i ω) (fun i => eps i ω) x) (c (zhat ω)) ≤
        WassersteinDRO.Duality.worstCaseRisk (radius κ c₁ c₂ a p dy n α) p 𝒴
          (erEmpirical proj fstar (fhat ω) (fun i => xs i ω) (fun i => eps i ω) x) (c z)) :
    P {ω | ¬ ((trueObjective Pε fstar c x (zhat ω) : EReal) ≤
        erDROValue 𝒵 c (radius κ c₁ c₂ a p dy n α) p 𝒴
          (erEmpirical proj fstar (fhat ω) (fun i => xs i ω) (fun i => eps i ω) 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, Theorem 7 (with (8), p. 9, and (10), p. 15)
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