Chapter 3, Corollary 10 -- simple-recourse specialization of Theorem 9
DisprovedStochasticProg.Recourse.cor10_simple_recourse_kktChapter 3, Corollary 10. Suppose a simple-recourse problem has a finite optimal value. Then is optimal if and only if there exist , with , and with
such that
where are the left- and right-hand limits of the distribution function of .
This is Theorem 9 specialised to simple recourse () using the explicit closed form of given by Eq. (1.10).
Formalization Note. The book states (1.10) directly ("has the following simple form") rather
than deriving it here from the second-stage LP, so the corollary's hypothesis hsubdiff records
that closed form for the abstract as a hypothesis, exactly as the book's own derivation relies
on it as a given fact rather than re-proving it from primitives.
Moderator's note. The book's standing assumption for §3.1c–e (p. 112: "assuming it is not −∞") is stated explicitly: no second-stage problem is unbounded below (Q(x, ξ_k) ≠ −∞ for every x and scenario k; for the abstract Q of Corollary 10, Q x ≠ −∞). Without it "finite on K₂" and the KKT characterisation can fail.
Retired. Retired because Q, F⁻, F⁺ were free variables constrained only by the closed form (1.10), which holds vacuously for a non-convex Q and F⁻ > F⁺ (accepted disproof); replaced by StochasticProg.Recourse.cor10_simple_recourse_kkt_v2, where they are computed from the instance and the law of h.
import Mathlib import Definitions.Def_StochasticProg_Recourse_SimpleRecourse
namespace StochasticProg.Recourse
variable {n1 m1 m2 : ℕ}
/-- Chapter 3, Corollary 10 (p. 116): the specialization of Theorem 9 to simple
recourse, using the explicit subdifferential form `∂Q_i(x) = {πT_i· | -q⁺_i +
q_iF⁻_i(T_i·x) ≤ π ≤ -q⁺_i + q_iF⁺_i(T_i·x)}` of Eq. (1.10), where `F⁻_i, F⁺_i` are
the left- and right-hand limits of the distribution function of `h_i` (p. 114); the
book states (1.10) directly rather than deriving it from the second-stage LP, so
`hsubdiff` records that same closed form here as a hypothesis rather than as a
derived fact. `Q` (the aggregate simple-recourse value, Eq. (1.9)) is left abstract,
constrained only by `hsubdiff` and by the subgradient inequality it packages,
exactly as the book leaves it in this corollary. -/
theorem cor10_simple_recourse_kkt (inst : SimpleRecourseInstance n1 m1 m2)
(Fminus Fplus : Fin m2 → ℝ → ℝ) (Q : (Fin n1 → ℝ) → EReal) (hQ : ∀ x, Q x ≠ ⊥)
(hsubdiff : ∀ x : Fin n1 → ℝ,
{η : Fin n1 → ℝ | ∀ y : Fin n1 → ℝ,
Q x + ((dotProduct η (y - x) : ℝ) : EReal) ≤ Q y} =
{η | ∃ pi : Fin m2 → ℝ,
(∀ i, -(inst.qplus i) + inst.qsum i * Fminus i (Matrix.mulVec inst.T x i) ≤ pi i ∧
pi i ≤ -(inst.qplus i) + inst.qsum i * Fplus i (Matrix.mulVec inst.T x i)) ∧
η = fun j => ∑ i, pi i * inst.T i j})
(hfin : ∃ z0 : ℝ,
sInf ((fun x => ((dotProduct inst.c x : ℝ) : EReal) + Q x) '' inst.K1) = (z0 : EReal))
(xstar : Fin n1 → ℝ) (hx : xstar ∈ inst.K1) :
(((dotProduct inst.c xstar : ℝ) : EReal) + Q xstar =
sInf ((fun x => ((dotProduct inst.c x : ℝ) : EReal) + Q x) '' inst.K1)) ↔
∃ (lam : Fin m1 → ℝ) (mu : Fin n1 → ℝ) (pi : Fin m2 → ℝ),
(∀ j, 0 ≤ mu j) ∧ dotProduct mu xstar = 0 ∧
(∀ i, -(inst.qplus i) + inst.qsum i * Fminus i (Matrix.mulVec inst.T xstar i) ≤ pi i ∧
pi i ≤ -(inst.qplus i) + inst.qsum i * Fplus i (Matrix.mulVec inst.T xstar i)) ∧
(fun j => -inst.c j + Matrix.mulVec (Matrix.transpose inst.A) lam j + mu j -
∑ i, pi i * inst.T i j) = 0 := by sorry
end StochasticProg.Recourse
Read-back
What the Lean code literally says, in plain math · claude-fable-5-1
Fix natural numbers and let inst be a simple recourse instance of dimensions , a structure from the bundle's definitions file whose fields are used here as follows: a cost vector , a matrix with rows and columns, a feasible set , a technology matrix with rows and columns, and two vectors (fields named qplus and qsum). Whatever other fields or axioms the structure carries are not used in this statement, and nothing here ties to (for instance, is not asserted to be or anything else).
The statement also takes as data:
- two families of real functions for , with no hypotheses whatsoever (they are not required to be monotone, bounded in , one-sided limits of anything, or related to each other);
- a function (extended reals), with the hypothesis that for every (the value is allowed);
- a hypothesis
hsubdiffasserting, for every , the equality of two subsets of :
where, writing for the -th coordinate of the matrix–vector product,
On the left-hand side the real inner product is coerced into the extended reals and added to with extended-real addition, and the inequality is in . Note that if the left set consists of those for which for all (i.e. either all of or empty, depending on alone), while the right set is independent of ; the hypothesis demands these coincide anyway. The right-hand side is applied to the box ; if some the box, and hence the set, is empty;
- a hypothesis
hfinthat the infimum
(taken in the extended reals over the image of ; it would be if were empty) equals some real number , i.e. is finite;
- a point with .
Under these hypotheses the theorem asserts the following equivalence:
- for every ;
- (a single real equation; it is not stated that , so this is complementarity only if nonnegativity of comes from elsewhere);
- for every : , i.e.
- the vector identity in
i.e. for every : .
The left side of the equivalence is an equality in between the objective value at (extended-real sum of the real number and , so it equals exactly when ) and the infimum ; since is real by hfin, the left side can only hold when is finite. The multiplier is completely unconstrained in sign, and no constraint of the form appears anywhere; enters only through the stationarity identity in item 4. Nothing asserts that attains the infimum other than the left side of the biconditional itself, and nothing asserts convexity of or of beyond what hsubdiff implicitly encodes.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.