Eq. (7) — and
ProvedZhengQR.OrderQty.integral_H_eqinventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1qr-policy
Under the standing assumptions of the model (; the leadtime demand distribution is a probability measure, integrable, with mean and nonnegative support; has a unique minimizer ), let be the optimal reorder point for , for with , and .
Then for every ,
This expresses the optimal cost for a given order quantity through the single-variable function , which reduces the two-dimensional optimization over to a one-dimensional one over .
Preamble
import Mathlib import Definitions.Def_ZhengQR_OrderQty_newsvendorCost import Definitions.Def_ZhengQR_OrderQty_qrMachinery open MeasureTheory Filter Topology
Formal statement
namespace ZhengQR.OrderQty
/-- Eq. (7) (Zheng 1992, p. 91): for `Q > 0`, `∫_{r(Q)}^{r(Q)+Q} G = ∫_0^Q H`, and hence
`C(Q) = (λK + ∫_0^Q H(y) dy) / Q`. -/
theorem integral_H_eq
{lam L K h p : ℝ} {μ : Measure ℝ}
(hlam : 0 < lam) (hL : 0 < L) (hK : 0 < K) (hh : 0 < h) (hp : 0 < p)
(hμ : IsLeadtimeDemand lam L μ)
(hG : ∃! y : ℝ, IsMinimizer (newsvendorCost h p μ) y)
{Q : ℝ} (hQ : 0 < Q) :
(∫ y in optReorder (newsvendorCost h p μ) Q..optReorder (newsvendorCost h p μ) Q + Q,
newsvendorCost h p μ y) =
(∫ y in (0 : ℝ)..Q, Hfun (newsvendorCost h p μ) y) ∧
optCost (newsvendorCost h p μ) lam K Q =
(lam * K + ∫ y in (0 : ℝ)..Q, Hfun (newsvendorCost h p μ) y) / Q := by sorry
end ZhengQR.OrderQty
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 91, Eq. (7)
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let . Let be a probability measure on with finite mean that is almost surely nonnegative. Let
Hypotheses.
- has exactly one global minimizer.
- .
Notation.
- is the chosen global minimizer of , or if none exists.
- is the chosen global minimizer of , or if none exists.
- for , and for .
- , where .
Conclusions.
and
Degenerate cases.
- Because , the interval is correctly oriented and there is no division by zero.
- The statement does not separately assert that is integrable on . If it were not, the right-hand integral would be defined as , and the statement would then assert that the left-hand integral also equals .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.