Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Property (d) — x↦Q(x,ξ)x\mapsto Q(x,\xi)x↦Q(x,ξ) is convex piecewise linear

Proved
NumStochOpt.Bounds.property_d_recourse_piecewise_linear_convex_in_x

by mikedeng1 · Sep 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

convexityp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1stochastic-programmingtwo-stage-recourse

Let WWW have complete recourse and let qqq be dual feasible (WTu≤qW^Tu\le qWTu≤q for some uuu). Fix ξ=(q,h,T)\xi=(q,h,T)ξ=(q,h,T). Then

x  ⟼  Q(x,ξ)=min⁡{qTy:Wy=h−Tx, y≥0}x\;\longmapsto\;Q(x,\xi)=\min\{q^Ty : Wy=h-Tx,\ y\ge0\}x⟼Q(x,ξ)=min{qTy:Wy=h−Tx, y≥0}

is a finite, convex, piecewise linear function of x∈Rn1x\in\mathbb R^{n_1}x∈Rn1​: there are finitely many affine functions g1,…,gKg_1,\dots,g_Kg1​,…,gK​ of xxx, K≥1K\ge1K≥1, with

Q(x,ξ)=max⁡1≤k≤Kgk(x)for all x.Q(x,\xi)=\max_{1\le k\le K} g_k(x)\qquad\text{for all } x .Q(x,ξ)=1≤k≤Kmax​gk​(x)for all x.

Convexity in xxx is what makes the first-stage problem (2.11) and its discretization (2.18) convex programs.

Formalization Note The book states (d) on K=K1∩K2K=K_1\cap K_2K=K1​∩K2​; under the standing complete-recourse assumption K2=Rn1K_2=\mathbb R^{n_1}K2​=Rn1​, and the statement is made on all of Rn1\mathbb R^{n_1}Rn1​, which contains KKK. "Convex piecewise linear" is rendered as a maximum of finitely many affine functions.

Preamble
import Mathlib
import Definitions.Def_NumStochOpt_Bounds_RecourseCost

open Matrix
Formal statement
namespace NumStochOpt.Bounds

/-- Property (d), p. 40: under complete recourse and dual feasibility of `q`, for every fixed
`ξ = (q, h, T)` the map `x ↦ Q(x, ξ)` is finite, convex and piecewise linear, i.e. the pointwise
maximum of finitely many affine functions of `x`. -/
theorem property_d_recourse_piecewise_linear_convex_in_x {ι κ ν : Type*} [Fintype ι] [Fintype κ]
    [Fintype ν] (W : Matrix ι κ ℝ) (hW : CompleteRecourse W) (q : κ → ℝ) (hq : DualFeasible W q)
    (h : ι → ℝ) (T : Matrix ι ν ℝ) :
    ∃ U : Finset ((ν → ℝ) →ᵃ[ℝ] ℝ), ∃ hU : U.Nonempty,
      ∀ x : ν → ℝ, recourseCost W q h T x = ((U.sup' hU fun g => g x : ℝ) : EReal) := by sorry

end NumStochOpt.Bounds
Source
P. Kall, A. Ruszczyński, K. Frauendorfer, "Approximation Techniques in Stochastic Programming", in Ermoliev & Wets (eds.), Numerical Techniques for Stochastic Optimization, Springer 1988, Ch. 2, p. 40, property (d) (standing assumptions pp. 39-40)
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 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