Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3 — strong duality: Rn(θ)=sup⁡λ{−1n∑isup⁡u{λTh(u,θ)−c(u,Wi)}}R_n(\theta) = \sup_\lambda\{-\frac1n\sum_i \sup_u\{\lambda^T h(u,\theta) - c(u, W_i)\}\}Rn​(θ)=supλ​{−n1​∑i​supu​{λTh(u,θ)−c(u,Wi​)}}

Proved
RWPI.Limit.proposition_3

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

dualityoptimal-transportp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1problem-of-moments

Let W1,…,Wn∈RmW_1, \dots, W_n \in \mathbb R^mW1​,…,Wn​∈Rm (n≥1n \ge 1n≥1) be distinct sample points with empirical distribution Pn\mathbb P_nPn​. Let c:Rm×Rm→[0,∞)c : \mathbb R^m \times \mathbb R^m \to [0, \infty)c:Rm×Rm→[0,∞) be a lower semicontinuous cost with c(u,u)=0c(u, u) = 0c(u,u)=0 for all uuu. 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 be such that h(⋅,θ)h(\cdot, \theta)h(⋅,θ) is Borel measurable and 0\mathbf 00 lies in the interior of the convex hull of {h(u,θ):u∈Rm}\{h(u, \theta) : u \in \mathbb R^m\}{h(u,θ):u∈Rm}. Then the RWP function Rn(θ)=inf⁡{Dc(P,Pn):EP[h(W,θ)]=0}R_n(\theta) = \inf\{D_c(P, \mathbb P_n) : \mathbb E_P[h(W, \theta)] = \mathbf 0\}Rn​(θ)=inf{Dc​(P,Pn​):EP​[h(W,θ)]=0} satisfies

Rn(θ)=sup⁡λ∈Rr{−1n∑i=1nsup⁡u∈Rm{λTh(u,θ)−c(u,Wi)}}.R_n(\theta) = \sup_{\lambda \in \mathbb R^r} \Big\{ -\frac1n \sum_{i=1}^n \sup_{u \in \mathbb R^m} \big\{ \lambda^T h(u, \theta) - c(u, W_i) \big\} \Big\} .Rn​(θ)=λ∈Rrsup​{−n1​i=1∑n​u∈Rmsup​{λTh(u,θ)−c(u,Wi​)}}.

This is strong duality for the problem of moments that defines RnR_nRn​: it turns an infimum over probability measures into a finite-dimensional supremum over the multiplier λ\lambdaλ, and it is the starting point of the asymptotic analysis of the RWP function (Eq. (31) and Theorem 3).

Formalization Note. Both sides are compared in the extended reals: an inner supremum may be +∞+\infty+∞, which makes the corresponding term −∞-\infty−∞. The paper states the result for a [0,∞][0,\infty][0,∞]-valued cost with Ω={c<∞}\Omega = \{c < \infty\}Ω={c<∞} Borel and non-empty; here the cost is finite everywhere, so Ω=Rm×Rm\Omega = \mathbb R^m \times \mathbb R^mΩ=Rm×Rm. This is the setting of §3 (the cost (17)), and it is needed: for a cost that is infinite on part of the space, the interior condition on {h(u,θ):u∈Rm}\{h(u,\theta) : u \in \mathbb R^m\}{h(u,θ):u∈Rm} does not imply the Slater condition that the proof in App. B uses.

Preamble
import Mathlib
import Definitions.Def_RWPI_Limit_rwp
import Definitions.Def_WassersteinDRO_Regularization_empiricalDistribution

open MeasureTheory
Formal statement
namespace RWPI.Limit

/-- Proposition 3 (Blanchet, Kang & Murthy, arXiv:1610.05627v4, p. 13; proof App. B, pp. 46–47):
strong duality for the RWP function. For distinct sample points `w_1, …, w_n` (§3.1 standing
assumption), a lower semicontinuous cost `c` with `c(u, u) = 0` (§2.1) that is finite everywhere
(so `Ω = {c < ∞} = ℝ^m × ℝ^m`, Borel and non-empty), a Borel measurable `h(·, θ)` and
`0 ∈ int conv {h(u, θ) : u ∈ ℝ^m}`,
`R_n(θ) = sup_λ { −(1/n) Σ_i sup_u { λ^T h(u, θ) − c(u, W_i) } }`, in `EReal`. -/
theorem proposition_3 {m l r n : ℕ} (hn : 0 < n) (w : Fin n → (Fin m → ℝ))
    (hw : Function.Injective w)
    (c : (Fin m → ℝ) → (Fin m → ℝ) → ENNReal)
    (hc_lsc : LowerSemicontinuous (Function.uncurry c))
    (hc_diag : ∀ u, c u u = 0) (hc_fin : ∀ u v, c u v ≠ ⊤)
    (h : (Fin m → ℝ) → (Fin l → ℝ) → (Fin r → ℝ)) (θ : Fin l → ℝ)
    (hmeas : Measurable fun u => h u θ)
    (hint : (0 : Fin r → ℝ) ∈ interior (convexHull ℝ (Set.range fun u => h u θ))) :
    (rwp c h θ (WassersteinDRO.Regularization.empiricalDistribution w) : EReal) =
      ⨆ lam : Fin r → ℝ, -(((1 / (n : ℝ) : ℝ) : EReal) *
        ∑ i, ⨆ u : Fin m → ℝ, (((lam ⬝ᵥ h u θ : ℝ) : EReal) - (c u (w i) : EReal))) := by sorry

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