Eq. (8) — is an optimal order quantity iff
ProvedZhengQR.EOQHeuristic.optQty_iffinventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1qr-policy
In the stochastic model (as in Lemma 2, with ), let and . For every ,
Here "optimal" means for every . The paper derives (8) as the first-order condition , "the necessary and sufficient condition for optimality".
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 optQty_iff {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) (Q : ℝ) (hQ : 0 < Q) :
IsOptQty (newsvendorCost μ h p) lam K Q ↔ hFun (newsvendorCost μ h p) lam K Q = optCost (newsvendorCost μ h p) lam K Q := by sorry
end ZhengQR.EOQHeuristic
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 92, Eq. (8)
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 , and fix a real .
Notation.
- is a chosen minimizer over real of , or if none exists.
- for (and for ).
- .
- " is optimal" means and for all .
Claim.
Degenerate cases. is excluded by hypothesis. The statement does not assert that an optimal exists. 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.