Expectation preserves K-convexity (Lemma 4.2.1(c))
ProvedBertsekasDP.kconvex_expectationLemma 4.2.1(c). Let be -convex and let be a random variable taking finitely many values, with probabilities summing to . Then the expectation
is again -convex, with the same constant .
This is the step that carries -convexity across a stage of the inventory recursion: after the ordering decision, the stock is reduced by a random demand, and the resulting expected cost-to-go must remain -convex for the argument to continue by induction. That the constant does not grow is what keeps the eventual structure tied to the single fixed ordering cost.
Formalization Note The disturbance is finitely supported, so the expectation is a finite weighted sum and the source's integrability proviso is automatic. Individual weights may be zero; the hypothesis that they sum to makes the statement vacuous over an empty outcome type.
import Mathlib import Definitions.Def_BertsekasKConvex
namespace BertsekasDP
theorem kconvex_expectation {Ω : Type} [Fintype Ω] (K : ℝ) (g : ℝ → ℝ)
(p : Ω → ℝ) (hp : ∀ ω, 0 ≤ p ω) (hsum : ∑ ω, p ω = 1) (w : Ω → ℝ)
(hg : BertsekasKConvex K g) :
BertsekasKConvex K (fun y => ∑ ω, p ω * g (y - w ω)) := by sorry
end BertsekasDPRead-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a finite type (an implicit argument; may be empty), a real number, , , and . Assume: for every ; ; and satisfies the bundle's -convexity property (for all , , : ). The conclusion is that the function
satisfies the bundle's property with the same constant . There is no hypothesis stated here (though, as noted in the definition's read-back, -convexity of itself forces whenever -independent instantiation is applied to ). Edge case: if is empty, the hypothesis reads and is unsatisfiable, so the theorem is vacuously true for empty . The "expectation" is a finite weighted sum with weights ; no probability-theoretic structure beyond nonnegativity and summing to is involved, and the weights are not required to be positive (individual may be ).
Confirmed by the mission captain (proposal self-audit).