Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4: C(αQ*)/C* ≤ ½(α + 1/α) for all α > 0

Proved
ZhengQR.Flatness.cost_flatter_than_eoq

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

eoqinventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1qr-policysensitivity-analysis

Consider the stochastic continuous-review (Q,r)(Q, r)(Q,r) inventory model with demand rate λ>0\lambda>0λ>0, leadtime L>0L>0L>0, fixed ordering cost K>0K>0K>0, holding and backorder cost rates h,p>0h, p>0h,p>0, and a nonnegative leadtime demand DDD with finite mean E(D)=λLE(D) = \lambda LE(D)=λL whose inventory cost rate G(y)=E[h(y−D)++p(D−y)+]G(y) = E[h(y-D)^+ + p(D-y)^+]G(y)=E[h(y−D)++p(D−y)+] has a unique minimizer. Let C(Q)=min⁡rc(Q,r)C(Q) = \min_r c(Q, r)C(Q)=minr​c(Q,r) be the average cost of the order quantity QQQ with the reorder point re-optimized for QQQ, let Q∗Q^*Q∗ be an optimal order quantity and C∗=C(Q∗)C^* = C(Q^*)C∗=C(Q∗). Then

C(αQ∗)C∗≤12(α+1α)∀α>0.\frac{C(\alpha Q^*)}{C^*} \le \frac{1}{2}\left(\alpha + \frac{1}{\alpha}\right) \qquad \forall \alpha>0.C∗C(αQ∗)​≤21​(α+α1​)∀α>0.

In the EOQ model the relative cost of a scaled order quantity equals 12(α+1/α)\frac12(\alpha + 1/\alpha)21​(α+1/α) exactly (Eq. (25)), a function that is already very flat around α=1\alpha = 1α=1; the theorem shows that the stochastic (Q,r)(Q,r)(Q,r) cost is even flatter, so a misestimated order quantity costs relatively less in the stochastic system than in the EOQ.

Formalization Note C(αQ∗)C(\alpha Q^*)C(αQ∗) is c(αQ∗,r(αQ∗))c(\alpha Q^*, r(\alpha Q^*))c(αQ∗,r(αQ∗)): the reorder point is chosen optimally for the scaled quantity, not held at r(Q∗)r(Q^*)r(Q∗). The theorem holds for every optimal Q∗Q^*Q∗; existence of one is part of the milestone for Eq. (8). C∗>0C^*>0C∗>0 is a consequence of the model, not a hypothesis.

Preamble
import Mathlib
import Definitions.Def_ZhengQR_Flatness_QRModel
Formal statement
namespace ZhengQR.Flatness

theorem cost_flatter_than_eoq (M : QRModel) (Qs : ℝ) (hQs : M.IsOptQty Qs)
    (α : ℝ) (hα : 0 < α) :
    M.C (α * Qs) / M.C Qs ≤ 1 / 2 * (α + 1 / α) := by sorry

end ZhengQR.Flatness
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 97, Theorem 4 (proof p. 98)
Read-back

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

Let MMM be any value of the type QRModel from the namespace ZhengQR.Flatness. That type comes from the imported module Definitions.Def_ZhengQR_Flatness_QRModel, which is not shown here. Its fields, and any conditions it places on them, cannot be read from this declaration. Two things attached to MMM appear in the statement:

  • a function CMC_MCM​ (written M.C). The statement applies it to real numbers and divides its values, with the result compared against a real number. So CMC_MCM​ takes a real argument and returns a real value. What it computes depends entirely on the definition of QRModel.
  • a predicate IsOptQty⁡M\operatorname{IsOptQty}_MIsOptQtyM​ (written M.IsOptQty) on real numbers. Its meaning also comes only from the unshown module. The name suggests "an optimal quantity", but that meaning cannot be checked here.

Statement. Take any model MMM, any real number Q∗Q^*Q∗ with IsOptQty⁡M(Q∗)\operatorname{IsOptQty}_M(Q^*)IsOptQtyM​(Q∗), and any real number α\alphaα with α>0\alpha > 0α>0. Then

CM(α Q∗)CM(Q∗)  ≤  12(α+1α).\frac{C_M(\alpha\, Q^*)}{C_M(Q^*)} \;\le\; \frac{1}{2}\left(\alpha + \frac{1}{\alpha}\right).CM​(Q∗)CM​(αQ∗)​≤21​(α+α1​).

The inequality is non-strict (≤\le≤). It holds for every α>0\alpha > 0α>0: values both above and below 111 are included. The hypotheses place no condition on Q∗Q^*Q∗ except IsOptQty⁡M(Q∗)\operatorname{IsOptQty}_M(Q^*)IsOptQtyM​(Q∗). In particular, nothing here requires Q∗>0Q^* > 0Q∗>0, requires CM(Q∗)≠0C_M(Q^*) \neq 0CM​(Q∗)=0, or fixes the sign of CMC_MCM​. The point αQ∗\alpha Q^*αQ∗ may lie anywhere CMC_MCM​ is defined, which is all of R\mathbb{R}R. Whether the model's own conditions rule any of these out depends on the unshown definitions.

Degenerate cases.

  • Zero denominator. If CM(Q∗)=0C_M(Q^*) = 0CM​(Q∗)=0, division by zero gives 000, so the left side is 000. The claim then reduces to 0≤12(α+1/α)0 \le \tfrac12(\alpha + 1/\alpha)0≤21​(α+1/α), which is true for every α>0\alpha > 0α>0 and says nothing about CMC_MCM​.
  • Sign of CMC_MCM​. If CM(Q∗)<0C_M(Q^*) < 0CM​(Q∗)<0, the ratio's sign and direction are reversed from the positive case. The statement makes no separate provision for this.
  • α=1\alpha = 1α=1. The right side equals 111. The claim is CM(Q∗)/CM(Q∗)≤1C_M(Q^*)/C_M(Q^*) \le 1CM​(Q∗)/CM​(Q∗)≤1, which is 1≤11 \le 11≤1 when CM(Q∗)≠0C_M(Q^*) \neq 0CM​(Q∗)=0 and 0≤10 \le 10≤1 otherwise.
  • Q∗=0Q^* = 0Q∗=0. If IsOptQty⁡M(0)\operatorname{IsOptQty}_M(0)IsOptQtyM​(0) is possible, then αQ∗=0\alpha Q^* = 0αQ∗=0 for every α\alphaα. The left side is CM(0)/CM(0)C_M(0)/C_M(0)CM​(0)/CM​(0), which is 111 or 000, and the claim holds trivially.
  • Invalid α\alphaα. Since α>0\alpha > 0α>0 is assumed, 1/α1/\alpha1/α is never a division by zero.
  • No valid Q∗Q^*Q∗. If no real number satisfies IsOptQty⁡M\operatorname{IsOptQty}_MIsOptQtyM​ for a given MMM, or if the type QRModel has no values, the statement is vacuously true for that MMM or for all MMM.
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