Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 5, eq. (49) — the change of variables y=p−qy=p-qy=p−q

Proved
RobustDP.ChiSquare.eq49_change_of_variables

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) a probability measure with q(s)>0q(s)>0q(s)>0 for every sss, t∈Rt\in\mathbb Rt∈R, and v:S→Rv:\mathcal S\to\mathbb Rv:S→R. Let P\mathcal PP be the χ² set (46). Then:

  1. a vector ppp lies in P\mathcal PP if and only if y=p−qy=p-qy=p−q satisfies
∑sy(s)2q(s)≤t,∑sy(s)=0,y≥−q;\sum_{s}\frac{y(s)^2}{q(s)}\le t,\qquad \sum_s y(s)=0,\qquad y\ge -q;s∑​q(s)y(s)2​≤t,s∑​y(s)=0,y≥−q;
  1. for every real number VVV, VVV is the minimum of Ep[v]\mathbf E^p[v]Ep[v] over p∈Pp\in\mathcal Pp∈P if and only if V−Eq[v]V-\mathbf E^q[v]V−Eq[v] is the minimum of
∑sy(s) v(s)subject to∑sy(s)2q(s)≤t,  ∑sy(s)=0,  y≥−q.\sum_s y(s)\,v(s)\quad\text{subject to}\quad \sum_s\frac{y(s)^2}{q(s)}\le t,\ \ \sum_s y(s)=0,\ \ y\ge -q .s∑​y(s)v(s)subject tos∑​q(s)y(s)2​≤t,  s∑​y(s)=0,  y≥−q.

In words, the value of the worst-case problem (47) is Eq[v]\mathbf E^q[v]Eq[v] plus the value of problem (49). This is the first step of the proof of Lemma 5: it moves the centre of the ball to the origin, so that the constraints become a centred ellipsoid and two linear constraints.

Formalization Note "Minimum" is Mathlib's IsLeast of the image set; the statement says nothing about existence, which is part of Lemma 5 itself.

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. (49) (Iyengar, TR-2002-07, p. 18): with `y = p − q`, `p ∈ P` iff
`∑ y²/q ≤ t`, `∑ y = 0` and `y ≥ −q`; hence the minimum of (47) is `E^q[v]` plus the minimum
of `∑ y(s) v(s)` over those `y`. -/
theorem eq49_change_of_variables {S : Type*} [Fintype S] (q : S → ℝ)
    (hq : q ∈ stdSimplex ℝ S) (hq_pos : ∀ s, 0 < q s) (t : ℝ) (v : S → ℝ) :
    (∀ p : S → ℝ, p ∈ chiSqSet q t ↔
      ((∑ s, (p s - q s) ^ 2 / q s ≤ t) ∧ (∑ s, (p s - q s) = 0) ∧ ∀ s, -q s ≤ p s - q s)) ∧
    ∀ val : ℝ,
      IsLeast ((fun p => expect p v) '' chiSqSet q t) val ↔
        IsLeast ((fun y : S → ℝ => ∑ s, y s * v s) ''
            {y : S → ℝ | (∑ s, y s ^ 2 / q s ≤ t) ∧ (∑ s, y s = 0) ∧ ∀ s, -q s ≤ y s})
          (val - expect q 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. (49)
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