Lemma 5 — is convex on
ProvedZhengQR.EOQHeuristic.optCost_convexconvexityinventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1qr-policy
In the stochastic model (as in Lemma 2, with ), the average cost with the reorder point chosen optimally,
is a convex function of the order quantity on .
Convexity of makes the first-order condition (8) necessary and sufficient for the optimal order quantity.
Preamble
import Mathlib import Definitions.Def_ZhengQR_EOQHeuristic_qrCost import Definitions.Def_ZhengQR_EOQHeuristic_costCurves import Definitions.Def_ZhengQR_EOQHeuristic_stochasticModel open MeasureTheory Filter Topology
Formal statement
namespace ZhengQR.EOQHeuristic
theorem optCost_convex {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) :
ConvexOn ℝ (Set.Ioi 0) (optCost (newsvendorCost μ h p) lam K) := by sorry
end ZhengQR.EOQHeuristic
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 91, Lemma 5
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be real numbers and a measure on . Assume the model hypotheses:
- ;
- is a probability measure with finite first moment and mean ;
- is concentrated on almost everywhere;
- has a unique global minimizer.
Assume also .
Notation.
- .
- is a chosen minimizer of over , or if none exists.
- .
Claim. is convex on the open interval .
Degenerate cases. , where by the division-by-zero convention, is outside the domain and is not constrained. Negative are also outside the domain. The hypotheses can all hold, for example with the point mass at .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.