Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3, p. 13 — for decreasing convex h ≢ +∞ with h = +∞ on (−∞, 0), λ ↦ h*(−λ) is lsc, decreasing, convex, +∞ on λ < 0, h* ≢ +∞

Proved
ShortWDRODual.Legendre.lemma_3

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

convex-analysislegendre-transformp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let h:R→R∪{+∞}h:\mathbb R\to\mathbb R\cup\{+\infty\}h:R→R∪{+∞} be a monotonically decreasing convex function with h(ρ)=+∞h(\rho)=+\inftyh(ρ)=+∞ for ρ<0\rho<0ρ<0 and h≢+∞h\not\equiv+\inftyh≡+∞. Let h∗(λ)=sup⁡ρ∈R{λρ−h(ρ)}h^*(\lambda)=\sup_{\rho\in\mathbb R}\{\lambda\rho-h(\rho)\}h∗(λ)=supρ∈R​{λρ−h(ρ)} be its Legendre transform. Then the function

λ⟼h∗(−λ)=sup⁡ρ∈R{−λρ−h(ρ)}\lambda\longmapsto h^*(-\lambda)=\sup_{\rho\in\mathbb R}\{-\lambda\rho-h(\rho)\}λ⟼h∗(−λ)=ρ∈Rsup​{−λρ−h(ρ)}

is lower semi-continuous, monotonically decreasing and convex on R\mathbb RR, satisfies h∗(−λ)=+∞h^*(-\lambda)=+\inftyh∗(−λ)=+∞ for λ<0\lambda<0λ<0, and h∗≢+∞h^*\not\equiv+\inftyh∗≡+∞.

This is the one-dimensional convex-analysis fact used in the proof of Theorem 1, applied to h=−Lh=-\mathcal Lh=−L.

Formalization Note The paper calls the function fff; it is renamed hhh to avoid a clash with the loss. Values are in EReal with h≠−∞h\ne-\inftyh=−∞; convexity is the inequality h((1−t)a+tb)≤(1−t)h(a)+t h(b)h((1-t)a+tb)\le(1-t)h(a)+t\,h(b)h((1−t)a+tb)≤(1−t)h(a)+th(b) for t∈[0,1]t\in[0,1]t∈[0,1] with real weights, where Mathlib's 0⋅∞=00\cdot\infty=00⋅∞=0 is the intended convention for a weight 000.

Preamble
import Mathlib
import Definitions.Def_ShortWDRODual_Legendre_Setting
Formal statement
namespace ShortWDRODual.Legendre

theorem lemma_3 (h : ℝ → EReal)
    (h_nbot : ∀ ρ, h ρ ≠ ⊥)
    (h_anti : Antitone h)
    (h_conv : ∀ a b t : ℝ, 0 ≤ t → t ≤ 1 →
      h ((1 - t) * a + t * b) ≤ ((1 - t : ℝ) : EReal) * h a + ((t : ℝ) : EReal) * h b)
    (h_neg : ∀ ρ : ℝ, ρ < 0 → h ρ = ⊤)
    (h_proper : ∃ ρ : ℝ, h ρ ≠ ⊤) :
    LowerSemicontinuous (fun lam : ℝ => legendre h (-lam)) ∧
    Antitone (fun lam : ℝ => legendre h (-lam)) ∧
    (∀ a b t : ℝ, 0 ≤ t → t ≤ 1 →
      legendre h (-((1 - t) * a + t * b)) ≤
        ((1 - t : ℝ) : EReal) * legendre h (-a) + ((t : ℝ) : EReal) * legendre h (-b)) ∧
    (∀ lam : ℝ, lam < 0 → legendre h (-lam) = ⊤) ∧
    (∃ lam : ℝ, legendre h lam ≠ ⊤) := by sorry

end ShortWDRODual.Legendre
Source
Zhang, Yang & Gao, A Short and General Duality Proof for Wasserstein Distributionally Robust Optimization, arXiv:2205.00362v4, Lemma 3, p. 13 (PDF p. 13); proof in EC.1, p. ec1 (PDF 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