Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weak duality and scenario-wise optimality conditions for (SP) — Lemma 21 / Theorem 26 of Pennanen–Perkkiö (2022)

Proved
ConvStochDual.Existence.pp13_weak_duality_optimality

by tianyipeng · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-dualitynonanticipativityoptimality-conditionsstochastic-programming

Consider the stochastic program and its dual from Pennanen–Perkkiö: fff is a convex normal integrand on Rn×Rm×Ω\mathbb R^n\times\mathbb R^m\times\OmegaRn×Rm×Ω, uˉ∈U\bar u\in\mathcal Uuˉ∈U, Ef(x,u)=E[f(x(ω),u(ω),ω)]Ef(x,u)=\mathbb E[f(x(\omega),u(\omega),\omega)]Ef(x,u)=E[f(x(ω),u(ω),ω)] (with the convention that the integral is +∞+\infty+∞ unless the positive part is integrable), and the dual objective is

(p,y)↦⟨uˉ,y⟩−Ef∗(p,y),(p,y)∈Xa⊥×Y,(p,y)\mapsto \langle \bar u,y\rangle-Ef^*(p,y),\qquad (p,y)\in\mathcal X_a^\perp\times\mathcal Y,(p,y)↦⟨uˉ,y⟩−Ef∗(p,y),(p,y)∈Xa⊥​×Y,

where f∗(⋅,⋅,ω)f^*(\cdot,\cdot,\omega)f∗(⋅,⋅,ω) is the pointwise convex conjugate of f(⋅,⋅,ω)f(\cdot,\cdot,\omega)f(⋅,⋅,ω) and Xa⊥⊆V\mathcal X_a^\perp\subseteq\mathcal VXa⊥​⊆V is the annihilator of the adapted strategies Xa\mathcal X_aXa​. Assume the standing assumptions of the paper (Fréchet spaces of random variables in separating duality, decomposable and solid, a filtration, a normal integrand fff). Let x∈L0x\in L^0x∈L0 be an adapted strategy, p∈Xa⊥p\in\mathcal X_a^\perpp∈Xa⊥​ and y∈Yy\in\mathcal Yy∈Y. Then:

  1. (weak duality) ⟨uˉ,y⟩−Ef∗(p,y)≤Ef(x,uˉ)\langle\bar u,y\rangle-Ef^*(p,y)\le Ef(x,\bar u)⟨uˉ,y⟩−Ef∗(p,y)≤Ef(x,uˉ);
  2. if Ef(x,uˉ)Ef(x,\bar u)Ef(x,uˉ) is finite and ⟨uˉ,y⟩−Ef∗(p,y)=Ef(x,uˉ)\langle\bar u,y\rangle-Ef^*(p,y)=Ef(x,\bar u)⟨uˉ,y⟩−Ef∗(p,y)=Ef(x,uˉ), then (p,y)∈∂f(x,uˉ)(p,y)\in\partial f(x,\bar u)(p,y)∈∂f(x,uˉ) almost surely, i.e. f(x(ω),uˉ(ω),ω)f(x(\omega),\bar u(\omega),\omega)f(x(ω),uˉ(ω),ω) is finite and
f(x′,u′,ω)≥f(x(ω),uˉ(ω),ω)+(x′−x(ω))⋅p(ω)+(u′−uˉ(ω))⋅y(ω)∀x′,u′;f(x',u',\omega)\ge f(x(\omega),\bar u(\omega),\omega)+(x'-x(\omega))\cdot p(\omega)+(u'-\bar u(\omega))\cdot y(\omega)\quad\forall x',u';f(x′,u′,ω)≥f(x(ω),uˉ(ω),ω)+(x′−x(ω))⋅p(ω)+(u′−uˉ(ω))⋅y(ω)∀x′,u′;
  1. if Ef(x,uˉ)<∞Ef(x,\bar u)<\inftyEf(x,uˉ)<∞ and (p,y)∈∂f(x,uˉ)(p,y)\in\partial f(x,\bar u)(p,y)∈∂f(x,uˉ) almost surely, then xxx solves (SP)(SP)(SP): Ef(x,uˉ)≤Ef(x′,uˉ)Ef(x,\bar u)\le Ef(x',\bar u)Ef(x,uˉ)≤Ef(x′,uˉ) for every adapted x′x'x′.

Item 1 is the inequality following Lemma 21 of the source (the duality gap between (SP)(SP)(SP) and (D)(D)(D) is nonnegative), and items 2–3 are the two directions of the equivalence in Theorem 26 of the source. Together with dual attainment and absence of a duality gap they give the scenario-wise optimality conditions of Corollary 27.

Formalization Note In item 3 the dual feasibility of (p,y)(p,y)(p,y) assumed in the source is not needed and is dropped; feasibility of xxx is expressed as Ef(x,uˉ)<∞Ef(x,\bar u)<\inftyEf(x,uˉ)<∞.

Preamble
import Mathlib
import Definitions.Def_ConvStochDual_Existence_Setting

open MeasureTheory
Formal statement
namespace ConvStochDual.Existence

variable {Ω X U : Type*} [MeasurableSpace Ω]
  [AddCommGroup X] [Module ℝ X] [UniformSpace X]
  [IsUniformAddGroup X] [ContinuousSMul ℝ X]
  [AddCommGroup U] [Module ℝ U] [UniformSpace U]
  [IsUniformAddGroup U] [ContinuousSMul ℝ U]
  {T n m : ℕ} {P : Measure Ω} [IsProbabilityMeasure P]
  {τ : Fin n → Fin (T + 1)}
  {𝔽 : Fin (T + 1) → MeasurableSpace Ω}
  {ιX : X →ₗ[ℝ] RV Ω P n} {ιU : U →ₗ[ℝ] RV Ω P m}
  {V : Submodule ℝ (RV Ω P n)} {Y : Submodule ℝ (RV Ω P m)}

/-- Pennanen–Perkkiö, Duality in convex stochastic optimization, arXiv:2205.02045v1,
p. 16, Lemma 21 (weak duality between (SP) and (D)) and p. 17, Theorem 26
(scenario-wise optimality conditions), in the setting of arXiv:2205.15825v1. -/
theorem pp13_weak_duality_optimality (s : Setting P τ 𝔽 ιX ιU V Y)
    (hS : Standing s) (x : RV Ω P n) (hx : Adapted τ 𝔽 P x)
    (p : V) (hp : p ∈ XaPerp s) (y : Y) :
    dualObj s p y ≤ Ef s x (ιU s.ubar) ∧
    (Ef s x (ιU s.ubar) ≠ ⊤ → Ef s x (ιU s.ubar) ≠ ⊥ →
      dualObj s p y = Ef s x (ιU s.ubar) →
      ∀ᵐ ω ∂P, IsSubgradAt (s.f ω) (x ω) (ιU s.ubar ω) (p.1 ω) (y.1 ω)) ∧
    (Ef s x (ιU s.ubar) < ⊤ →
      (∀ᵐ ω ∂P, IsSubgradAt (s.f ω) (x ω) (ιU s.ubar ω) (p.1 ω) (y.1 ω)) →
      ∀ x' : RV Ω P n, Adapted τ 𝔽 P x' → Ef s x (ιU s.ubar) ≤ Ef s x' (ιU s.ubar)) := by sorry

end ConvStochDual.Existence
Source
T. Pennanen and A.-P. Perkkiö, Duality in convex stochastic optimization, arXiv:2205.02045v1, p. 16 (display after Lemma 21 / Corollary 23: inf(SP) ≥ dual objective) and p. 17, Theorem 26 (1⇔2); cited as [13, Corollary 27] in the proof of Theorem 27 of arXiv:2205.15825v1, p. 20

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