Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 (first inequality) — the EOQ quantity underestimates the optimal order quantity, Qd∗≤Q∗Q^*_d \le Q^*Qd∗​≤Q∗

Proved
ZhengQR.EOQHeuristic.eoqQty_le_optQty

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

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

In the stochastic (Q,r)(Q, r)(Q,r) model (as in Lemma 2, with K>0K > 0K>0), let Q∗Q^*Q∗ be an optimal order quantity of the stochastic model, i.e. Q∗>0Q^* > 0Q∗>0 and C(Q∗)≤C(Q)C(Q^*) \le C(Q)C(Q∗)≤C(Q) for every Q>0Q > 0Q>0, and let Qd∗=2λK(h+p)/(hp)Q^*_d = \sqrt{2\lambda K(h+p)/(hp)}Qd∗​=2λK(h+p)/(hp)​ be the EOQ order quantity. Then

Qd∗≤Q∗.Q^*_d \le Q^*.Qd∗​≤Q∗.

This is the first inequality of Theorem 2 of the paper, proved on p. 96 from Lemma 6 and Lemma 7: A(Qd∗)≤Ad(Qd∗)=λK=A(Q∗)A(Q^*_d) \le A_d(Q^*_d) = \lambda K = A(Q^*)A(Qd∗​)≤Ad​(Qd∗​)=λK=A(Q∗).

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 eoqQty_le_optQty {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) (Qs : ℝ)
    (hQs : IsOptQty (newsvendorCost μ h p) lam K Qs) :
    eoqQty lam K h p ≤ Qs := by sorry

end ZhengQR.EOQHeuristic
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 96, Theorem 2 (first inequality) and its proof
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 and μ\muμ a measure on R\mathbb{R}R. Assume the model hypotheses:

  • λ,L,h,p>0\lambda, L, h, p > 0λ,L,h,p>0;
  • μ\muμ is a probability measure with finite first moment and mean λL\lambda LλL;
  • μ\muμ is concentrated on x≥0x\ge0x≥0 almost everywhere;
  • G(y)=∫(h(y−x)++p(x−y)+) dμ(x)G(y) = \int \big(h(y-x)^+ + p(x-y)^+\big)\,d\mu(x)G(y)=∫(h(y−x)++p(x−y)+)dμ(x) has a unique global minimizer.

Assume also K>0K>0K>0. Let QsQ_sQs​ be a real number that is an optimal order quantity for GGG. This means Qs>0Q_s>0Qs​>0 and C(Qs)≤C(Q′)C(Q_s)\le C(Q')C(Qs​)≤C(Q′) for every Q′>0Q'>0Q′>0, where:

  • C(Q)=(λK+∫r(Q)r(Q)+QG)/QC(Q) = \big(\lambda K + \int_{r(Q)}^{r(Q)+Q} G\big)/QC(Q)=(λK+∫r(Q)r(Q)+Q​G)/Q;
  • r(Q)r(Q)r(Q) is a chosen minimizer over real rrr of (λK+∫rr+QG)/Q\big(\lambda K + \int_r^{r+Q} G\big)/Q(λK+∫rr+Q​G)/Q, or 000 if none exists.

Claim.

2λK(h+p)hp  ≤  Qs.\sqrt{\frac{2\lambda K(h+p)}{hp}} \;\le\; Q_s.hp2λK(h+p)​​≤Qs​.

Degenerate cases. The inequality is non-strict. The statement assumes QsQ_sQs​ is optimal and does not itself assert that an optimal quantity exists; if none existed, the statement would hold vacuously. With h,p,λ,K>0h,p,\lambda,K>0h,p,λ,K>0 the radicand is positive, so neither the division-by-zero nor the square-root fallback is triggered. The hypotheses can all hold, for example with μ\muμ the point mass at λL\lambda LλL.

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