Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 5, eq. (51) — the optimal γ turns the sum of squares into Varq[v−μ]\mathrm{Var}^q[v-\mu]Varq[v−μ]

Proved
RobustDP.ChiSquare.eq51_gamma_elimination

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

chi-squarep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1robust-optimization

Let S\mathcal SS be a finite set, q∈M(S)q\in\mathcal M(\mathcal S)q∈M(S) with q(s)>0q(s)>0q(s)>0 for every sss, t≥0t\ge 0t≥0 and v,μ:S→Rv,\mu:\mathcal S\to\mathbb Rv,μ:S→R. Then

max⁡γ∈R{Eq[v−μ]−t∑sq(s)(v(s)−μ(s)−γ)2}=Eq[v−μ]−t Varq[v−μ],\max_{\gamma\in\mathbb R}\Big\{\mathbf E^q[v-\mu]-\sqrt{t\sum_{s}q(s)\big(v(s)-\mu(s)-\gamma\big)^2}\Big\} =\mathbf E^q[v-\mu]-\sqrt{t\,\mathbf{Var}^q[v-\mu]},γ∈Rmax​{Eq[v−μ]−ts∑​q(s)(v(s)−μ(s)−γ)2​}=Eq[v−μ]−tVarq[v−μ]​,

and the maximum is attained at γ=Eq[v−μ]\gamma=\mathbf E^q[v-\mu]γ=Eq[v−μ].

Together with (50), this identifies the Lagrangian dual of (49) with the mean–standard-deviation problem (48).

Formalization Note The maximum is Mathlib's IsGreatest of the image of R\mathbb RR; the right-hand side is the dual objective gq,t,v(μ)g_{q,t,v}(\mu)gq,t,v​(μ) of the definitions item. As in (50), γ\gammaγ ranges over all of R\mathbb RR.

Preamble
import Mathlib
import Definitions.Def_RobustDP_ChiSquare_Moments
import Definitions.Def_RobustDP_ChiSquare_ChiSqSet
Formal statement
namespace RobustDP.ChiSquare

/-- Proof of Lemma 5, eq. (51) (Iyengar, TR-2002-07, p. 18): maximizing
`E^q[v − μ] − √(t ∑ q(s)(v(s) − μ(s) − γ)²)` over `γ ∈ ℝ` gives `E^q[v − μ] − √(t Var^q[v − μ])`,
attained at `γ = E^q[v − μ]`. -/
theorem eq51_gamma_elimination {S : Type*} [Fintype S] (q : S → ℝ)
    (hq : q ∈ stdSimplex ℝ S) (hq_pos : ∀ s, 0 < q s) (t : ℝ) (ht : 0 ≤ t) (v μ : S → ℝ) :
    IsGreatest ((fun γ : ℝ => expect q (v - μ) - Real.sqrt (t * ∑ s, q s * (v s - μ s - γ) ^ 2)) ''
        Set.univ)
      (dualObj q t v μ) ∧
    expect q (v - μ) - Real.sqrt (t * ∑ s, q s * (v s - μ s - expect q (v - μ)) ^ 2) =
      dualObj q t v μ := by sorry

end RobustDP.ChiSquare
Source
Iyengar, Robust dynamic programming, CORC Tech Report TR-2002-07 (rev. May 4, 2004), p. 18, proof of Lemma 5, eq. (51)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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