Lemma 2 — for , is an optimal reorder point iff
ProvedZhengQR.OrderQty.reorder_opt_iffLet , let the leadtime demand have an admissible distribution (probability measure, integrable, mean , nonnegative), and let attain its minimum at a unique point . Let be the average cost of Eq. (1).
Then for every :
- the chosen reorder point minimizes over , and
- for every ,
The optimal reorder point for a given order quantity is the one at which the inventory costs at the start and at the end of a replenishment cycle are equal. This first-order condition is the basis for all the comparisons in the paper.
Formalization Note The paper writes "" for " is an optimal reorder point for ". Part 1 makes explicit the existence of an optimal reorder point, which the paper takes for granted when it writes "let be an optimal for fixed" (p. 90). The standing assumption that has a unique minimizer (p. 90) is a hypothesis.
import Mathlib import Definitions.Def_ZhengQR_OrderQty_newsvendorCost import Definitions.Def_ZhengQR_OrderQty_qrMachinery open MeasureTheory Filter Topology
namespace ZhengQR.OrderQty
/-- Lemma 2 (Zheng 1992, p. 90): for any `Q > 0`, an optimal reorder point `r(Q)` exists (the
chosen one, `optReorder`, minimizes `c(Q, ·)`), and `r` minimizes `c(Q, ·)` iff
`G(r) = G(r + Q)`. -/
theorem reorder_opt_iff
{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) :
IsOptReorder (newsvendorCost h p μ) lam K Q (optReorder (newsvendorCost h p μ) Q) ∧
∀ r : ℝ, IsOptReorder (newsvendorCost h p μ) lam K Q r ↔
newsvendorCost h p μ r = newsvendorCost h p μ (r + Q) := by sorry
end ZhengQR.OrderQty
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be real numbers, all strictly positive. Let be a measure on that meets all four leadtime-demand conditions:
- is a probability measure;
- has a finite first moment, with mean ;
- is concentrated on almost everywhere.
Define the cost rate
Under these conditions the integrand is -integrable for every , so is a genuine expectation.
Hypotheses.
- has exactly one global minimizer, meaning exactly one with for all . This is an explicit extra hypothesis.
- .
Conclusions. Write . Write for the chosen global minimizer of , or if no minimizer exists.
- minimizes : for every real .
- For every real ,
Degenerate cases.
- Because , no division by zero occurs.
- The hypotheses can all hold at once. For example, if is the point mass at , then , which has the single minimizer .
- The uniqueness hypothesis is not implied by the other hypotheses. It excludes any for which is constant on an interval of minimizers.
- enters only through the mean condition. enters only through .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.