Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Eq. (10) — keeping one scenario uuu costs ∑i=1Npic(ωi,ωu)\sum_{i=1}^N p_i c(\omega_i,\omega_u)∑i=1N​pi​c(ωi​,ωu​)

Proved
ScenarioReduction.ForwardSelection.forward_first_step

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

p2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1scenario-reductionstochastic-programming

Let ω1,…,ωN\omega_1,\dots,\omega_Nω1​,…,ωN​ be scenarios with probabilities pi>0p_i>0pi​>0, ∑ipi=1\sum_ip_i=1∑i​pi​=1, and let ccc be the cost (3). Deleting all scenarios but uuu, i.e. J={1,…,N}∖{u}J=\{1,\dots,N\}\setminus\{u\}J={1,…,N}∖{u}, has reduction cost

D{1,…,N}∖{u}=∑i=1Npi c(ωi,ωu),D_{\{1,\dots,N\}\setminus\{u\}}=\sum_{i=1}^Np_i\,c(\omega_i,\omega_u),D{1,…,N}∖{u}​=i=1∑N​pi​c(ωi​,ωu​),

and consequently the values of problem (8) for #J=N−1\#J=N-1#J=N−1 are exactly the values of problem (10):

{DJ:#J=N−1}={∑i=1Npi c(ωi,ωu):u∈{1,…,N}},\bigl\{D_J:\#J=N-1\bigr\}=\Bigl\{\sum_{i=1}^Np_i\,c(\omega_i,\omega_u):u\in\{1,\dots,N\}\Bigr\},{DJ​:#J=N−1}={i=1∑N​pi​c(ωi​,ωu​):u∈{1,…,N}},

so that (8) with #J=N−1\#J=N-1#J=N−1 takes the form min⁡u∈{1,…,N}∑i=1Npic(ωi,ωu)\min_{u\in\{1,\dots,N\}}\sum_{i=1}^Np_ic(\omega_i,\omega_u)minu∈{1,…,N}​∑i=1N​pi​c(ωi​,ωu​).

This is the first step of forward selection: the first kept scenario minimizes the expected cost to all scenarios.

Formalization Note The sum runs over all iii, including i=ui=ui=u, as printed; the term i=ui=ui=u vanishes because c(ω,ω)=0c(\omega,\omega)=0c(ω,ω)=0 for the cost (3).

Preamble
import Mathlib
import Definitions.Def_ScenarioReduction_ForwardSelection_fmCost
import Definitions.Def_ScenarioReduction_ForwardSelection_reductionCost
Formal statement
namespace ScenarioReduction.ForwardSelection

/-- Eq. (10), Heitsch–Römisch 2003, p. 191. Keeping a single scenario `u` (deleting
`J = {1..N} ∖ {u}`) costs `D_J = ∑_{i=1}^N pᵢ c(ωᵢ, ω_u)`, and the values of problem (8) with
`#J = N − 1` are exactly the values `∑ᵢ pᵢ c(ωᵢ, ω_u)`, `u = 1..N`, of problem (10). -/
theorem forward_first_step {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    [FiniteDimensional ℝ E] {N : ℕ} (h : ℝ → ℝ) (hh : IsGrowthFunction h) (ω₀ : E)
    (ω : Fin N → E) (p : Fin N → ℝ) (hp : ∀ i, 0 < p i) (hsum : ∑ i, p i = 1) :
    (∀ u : Fin N, reductionCost (scenCost h ω₀ ω) p (Finset.univ.erase u)
        (compl_erase_nonempty _ _) = ∑ i, p i * scenCost h ω₀ ω i u) ∧
    {x : ℝ | ∃ J : Finset (Fin N), ∃ hJ : Jᶜ.Nonempty, J.card = N - 1 ∧
        x = reductionCost (scenCost h ω₀ ω) p J hJ} =
      Set.range (fun u : Fin N => ∑ i, p i * scenCost h ω₀ ω i u) := by sorry

end ScenarioReduction.ForwardSelection
Source
Heitsch, Römisch, Scenario Reduction Algorithms in Stochastic Programming, Comput. Optim. Appl. 24 (2003), p. 191, eq. (10)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting and hypotheses.

  • EEE is a finite-dimensional real normed vector space.
  • h:R→Rh:\mathbb R\to\mathbb Rh:R→R is continuous and nondecreasing on [0,∞)[0,\infty)[0,∞), with h(0)=0h(0)=0h(0)=0 and h≥0h\ge0h≥0 there.
  • ω0∈E\omega_0\in Eω0​∈E, N∈NN\in\mathbb NN∈N, and ω0′,…,ωN−1′∈E\omega'_0,\dots,\omega'_{N-1}\in Eω0′​,…,ωN−1′​∈E are indexed by [N]={0,…,N−1}[N]=\{0,\dots,N-1\}[N]={0,…,N−1}.
  • pi>0p_i>0pi​>0 for all iii, and ∑ipi=1\sum_ip_i=1∑i​pi​=1.

Definitions.

Cij=max⁡{1,h(∥ωi′−ω0∥),h(∥ωj′−ω0∥)} ∥ωi′−ωj′∥,C_{ij}=\max\{1,h(\|\omega'_i-\omega_0\|),h(\|\omega'_j-\omega_0\|)\}\,\|\omega'_i-\omega'_j\|,Cij​=max{1,h(∥ωi′​−ω0​∥),h(∥ωj′​−ω0​∥)}∥ωi′​−ωj′​∥,

and, for JJJ with nonempty complement,

DJ=∑i∈Jpimin⁡j∉JCij.D_J=\sum_{i\in J}p_i\min_{j\notin J}C_{ij}.DJ​=i∈J∑​pi​j∈/Jmin​Cij​.

Claim (a). For every u∈[N]u\in[N]u∈[N],

D[N]∖{u}=∑i∈[N]pi Ciu.D_{[N]\setminus\{u\}}=\sum_{i\in[N]}p_i\,C_{iu}.D[N]∖{u}​=i∈[N]∑​pi​Ciu​.

The right-hand sum includes the term i=ui=ui=u, which is puCuu=0p_uC_{uu}=0pu​Cuu​=0.

Claim (b). Two sets of reals are equal:

{DJ: J⊆[N], [N]∖J≠∅, ∣J∣=N−1}={∑ipiCiu: u∈[N]}.\{D_J:\ J\subseteq[N],\ [N]\setminus J\neq\varnothing,\ |J|=N-1\} =\Bigl\{\textstyle\sum_{i}p_iC_{iu}:\ u\in[N]\Bigr\}.{DJ​: J⊆[N], [N]∖J=∅, ∣J∣=N−1}={∑i​pi​Ciu​: u∈[N]}.

Degenerate cases.

  • The hypotheses force N≥1N\ge1N≥1, so N−1N-1N−1 is ordinary subtraction.
  • For N=1N=1N=1: the only admissible JJJ is ∅\varnothing∅ with D∅=0D_\varnothing=0D∅​=0, and the right-hand set is {p0C00}={0}\{p_0C_{00}\}=\{0\}{p0​C00​}={0}.
  • If all scenarios coincide, every value in both sets is 000.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me