Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — for Q>0Q > 0Q>0, rrr is an optimal reorder point iff G(r)=G(r+Q)G(r) = G(r + Q)G(r)=G(r+Q)

Proved
ZhengQR.OrderQty.reorder_opt_iff

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1qr-policy

Let λ,L,K,h,p>0\lambda, L, K, h, p > 0λ,L,K,h,p>0, let the leadtime demand DDD have an admissible distribution μ\muμ (probability measure, integrable, mean λL\lambda LλL, nonnegative), and let G(y)=E[h(y−D)++p(D−y)+]G(y) = \mathbb{E}[h(y-D)^+ + p(D-y)^+]G(y)=E[h(y−D)++p(D−y)+] attain its minimum at a unique point y0y^0y0. Let c(Q,r)=(λK+∫rr+QG(y) dy)/Qc(Q, r) = (\lambda K + \int_r^{r+Q} G(y)\,dy)/Qc(Q,r)=(λK+∫rr+Q​G(y)dy)/Q be the average cost of Eq. (1).

Then for every Q>0Q > 0Q>0:

  1. the chosen reorder point r(Q)r(Q)r(Q) minimizes c(Q,⋅)c(Q, \cdot)c(Q,⋅) over R\mathbb{R}R, and
  2. for every r∈Rr \in \mathbb{R}r∈R,
r minimizes c(Q,⋅)  ⟺  G(r)=G(r+Q).r \text{ minimizes } c(Q, \cdot) \iff G(r) = G(r + Q).r minimizes c(Q,⋅)⟺G(r)=G(r+Q).

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 "r=r(Q)r = r(Q)r=r(Q)" for "rrr is an optimal reorder point for QQQ". Part 1 makes explicit the existence of an optimal reorder point, which the paper takes for granted when it writes "let r(Q)r(Q)r(Q) be an optimal rrr for QQQ fixed" (p. 90). The standing assumption that GGG has a unique minimizer (p. 90) is a hypothesis.

Preamble
import Mathlib
import Definitions.Def_ZhengQR_OrderQty_newsvendorCost
import Definitions.Def_ZhengQR_OrderQty_qrMachinery

open MeasureTheory Filter Topology
Formal statement
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
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 90, Lemma 2
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let λ,L,K,h,p\lambda, L, K, h, pλ,L,K,h,p be real numbers, all strictly positive. Let μ\muμ be a measure on R\mathbb{R}R that meets all four leadtime-demand conditions:

  • μ\muμ is a probability measure;
  • μ\muμ has a finite first moment, with mean λL\lambda LλL;
  • μ\muμ is concentrated on [0,∞)[0, \infty)[0,∞) almost everywhere.

Define the cost rate

G(y)=∫(h(y−x)++p(x−y)+) μ(dx).G(y) = \int \big( h(y-x)^+ + p(x-y)^+ \big)\,\mu(dx).G(y)=∫(h(y−x)++p(x−y)+)μ(dx).

Under these conditions the integrand is μ\muμ-integrable for every yyy, so GGG is a genuine expectation.

Hypotheses.

  • GGG has exactly one global minimizer, meaning exactly one yyy with G(y)≤G(z)G(y) \le G(z)G(y)≤G(z) for all zzz. This is an explicit extra hypothesis.
  • Q>0Q > 0Q>0.

Conclusions. Write c(Q,r)=(λK+∫rr+QG)/Qc(Q, r) = \big(\lambda K + \int_r^{r+Q} G\big)/Qc(Q,r)=(λK+∫rr+Q​G)/Q. Write r(Q)r(Q)r(Q) for the chosen global minimizer of r↦∫rr+QGr \mapsto \int_r^{r+Q} Gr↦∫rr+Q​G, or 000 if no minimizer exists.

  1. r(Q)r(Q)r(Q) minimizes c(Q,⋅)c(Q, \cdot)c(Q,⋅): c(Q,r(Q))≤c(Q,r′)c(Q, r(Q)) \le c(Q, r')c(Q,r(Q))≤c(Q,r′) for every real r′r'r′.
  2. For every real rrr,
(c(Q,r)≤c(Q,r′) for all r′)  ⟺  G(r)=G(r+Q).\big(c(Q, r) \le c(Q, r') \text{ for all } r'\big) \iff G(r) = G(r + Q).(c(Q,r)≤c(Q,r′) for all r′)⟺G(r)=G(r+Q).

Degenerate cases.

  • Because Q>0Q > 0Q>0, no division by zero occurs.
  • The hypotheses can all hold at once. For example, if μ\muμ is the point mass at λL\lambda LλL, then G(y)=h(y−λL)++p(λL−y)+G(y) = h(y - \lambda L)^+ + p(\lambda L - y)^+G(y)=h(y−λL)++p(λL−y)+, which has the single minimizer λL\lambda LλL.
  • The uniqueness hypothesis is not implied by the other hypotheses. It excludes any μ\muμ for which GGG is constant on an interval of minimizers.
  • LLL enters only through the mean condition. KKK enters only through ccc.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me