Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 1 — G(r(Q))≤max⁡(G(r),G(r+Q))G(r(Q)) \le \max(G(r), G(r + Q))G(r(Q))≤max(G(r),G(r+Q)) for all Q>0Q > 0Q>0 and all rrr

Proved
ZhengQR.EOQHeuristic.reorderPt_cost_le_max

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

inventoryp2o-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 r(Q)r(Q)r(Q) be the optimal reorder point for the order quantity QQQ. Then for every Q>0Q > 0Q>0 and every r∈Rr \in \mathbb{R}r∈R,

G(r(Q))≤max⁡(G(r), G(r+Q)).G(r(Q)) \le \max\big(G(r),\, G(r + Q)\big).G(r(Q))≤max(G(r),G(r+Q)).

The value G(r(Q))G(r(Q))G(r(Q)) is thus the smallest possible maximum of the inventory cost rate over the endpoints of a cycle of length QQQ; it is used to compare the stochastic and the EOQ model in Lemma 7.

Preamble
import Mathlib
import Definitions.Def_ZhengQR_EOQHeuristic_qrCost
import Definitions.Def_ZhengQR_EOQHeuristic_stochasticModel
open MeasureTheory Filter Topology
Formal statement
namespace ZhengQR.EOQHeuristic

theorem reorderPt_cost_le_max {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) :
    ∀ Q : ℝ, 0 < Q → ∀ r : ℝ,
      newsvendorCost μ h p (reorderPt (newsvendorCost μ h p) lam K Q) ≤ max (newsvendorCost μ h p r) (newsvendorCost μ h p (r + Q)) := by sorry

end ZhengQR.EOQHeuristic
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 91, Corollary 1
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 \ge 0x≥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.

For QQQ real, r(Q)r(Q)r(Q) is a chosen real minimizing r↦(λK+∫rr+QG(y) dy)/Qr \mapsto \big(\lambda K + \int_r^{r+Q} G(y)\,dy\big)/Qr↦(λK+∫rr+Q​G(y)dy)/Q over all of R\mathbb{R}R. It is defined to be 000 if no minimizer exists.

Claim. For every Q>0Q > 0Q>0 and every real rrr:

G(r(Q))  ≤  max⁡(G(r), G(r+Q)).G\big(r(Q)\big) \;\le\; \max\big(G(r),\, G(r+Q)\big).G(r(Q))≤max(G(r),G(r+Q)).

Degenerate cases. Q≤0Q \le 0Q≤0 is excluded. The inequality is non-strict. It holds for every real rrr, with no restriction on rrr. 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