Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6 — AAA is increasing and convex, Q∗Q^*Q∗ exists uniquely, Q=Q∗  ⟺  A(Q)=λKQ = Q^* \iff A(Q) = \lambda KQ=Q∗⟺A(Q)=λK, comparative statics in KKK

Proved
ZhengQR.EOQHeuristic.aFun_props

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

convexityinventoryp2o-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 HHH be as in Eq. (6) and

A(Q)=Q H(Q)−∫0QH(y) dy.(9)A(Q) = Q\,H(Q) - \int_0^Q H(y)\,dy. \qquad (9)A(Q)=QH(Q)−∫0Q​H(y)dy.(9)

Then:

  1. AAA is strictly increasing on [0,∞)[0, \infty)[0,∞);
  2. AAA is convex on [0,∞)[0, \infty)[0,∞);
  3. there is exactly one optimal order quantity Q∗>0Q^* > 0Q∗>0;
  4. for every Q>0Q > 0Q>0, QQQ is the optimal order quantity if and only if
A(Q)=λK;(10)A(Q) = \lambda K; \qquad (10)A(Q)=λK;(10)
  1. for 0<K<K′0 < K < K'0<K<K′, the optimal order quantities Q∗(K)Q^*(K)Q∗(K), Q∗(K′)Q^*(K')Q∗(K′) satisfy Q∗(K)<Q∗(K′)Q^*(K) < Q^*(K')Q∗(K)<Q∗(K′), and the optimal reorder points satisfy r∗(K′)<r∗(K)r^*(K') < r^*(K)r∗(K′)<r∗(K), where r∗=r(Q∗)r^* = r(Q^*)r∗=r(Q∗).

Geometrically, A(Q)A(Q)A(Q) is the area between the horizontal chord at height H(Q)H(Q)H(Q) and the graph of GGG over the optimal cycle, and the optimal order quantity is where that area equals λK\lambda KλK.

Formalization Note The paper states "Q∗Q^*Q∗ is increasing and r∗r^*r∗ (the optimal reorder point) is decreasing in KKK"; both are read as strict (the proof combines the strict monotonicity of AAA with Lemma 3 part 3). "The optimal order quantity" is read as existence and uniqueness (item 3), which the paper presupposes when it names Q∗Q^*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 aFun_props {lam L K h p : ℝ} {μ : Measure ℝ} (hM : IsQRModel lam L h p μ) (hK : 0 < K) :
    StrictMonoOn (aFun (newsvendorCost μ h p) lam K) (Set.Ici 0) ∧
    ConvexOn ℝ (Set.Ici 0) (aFun (newsvendorCost μ h p) lam K) ∧
    (∃! Q : ℝ, IsOptQty (newsvendorCost μ h p) lam K Q) ∧
    (∀ Q : ℝ, 0 < Q → (IsOptQty (newsvendorCost μ h p) lam K Q ↔ aFun (newsvendorCost μ h p) lam K Q = lam * K)) ∧
    (∀ K' : ℝ, K < K' → ∀ Q Q' : ℝ,
      IsOptQty (newsvendorCost μ h p) lam K Q → IsOptQty (newsvendorCost μ h p) lam K' Q' →
        Q < Q' ∧ reorderPt (newsvendorCost μ h p) lam K' Q' < reorderPt (newsvendorCost μ h p) lam K Q) := by sorry

end ZhengQR.EOQHeuristic
Source
Zheng, On Properties of Stochastic Inventory Systems, Management Science 38(1), 1992, p. 92, Lemma 6 and Eqs. (9)–(10)
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 y0y^0y0.

Assume also K>0K > 0K>0.

Notation, for a fixed-cost parameter κ\kappaκ:

  • rκ(Q)r_\kappa(Q)rκ​(Q) is a chosen minimizer over real rrr of cκ(Q,r)=(λκ+∫rr+QG)/Qc_\kappa(Q,r) = \big(\lambda\kappa + \int_r^{r+Q} G\big)/Qcκ​(Q,r)=(λκ+∫rr+Q​G)/Q, or 000 if none exists.
  • Hκ(Q)=G(rκ(Q))H_\kappa(Q) = G(r_\kappa(Q))Hκ​(Q)=G(rκ​(Q)) for Q>0Q>0Q>0, and Hκ(Q)=G(y0)H_\kappa(Q) = G(y^0)Hκ​(Q)=G(y0) for Q≤0Q\le0Q≤0.
  • Cκ(Q)=cκ(Q,rκ(Q))C_\kappa(Q) = c_\kappa(Q, r_\kappa(Q))Cκ​(Q)=cκ​(Q,rκ​(Q)).
  • Aκ(Q)=Q Hκ(Q)−∫0QHκ(y) dyA_\kappa(Q) = Q\,H_\kappa(Q) - \int_0^Q H_\kappa(y)\,dyAκ​(Q)=QHκ​(Q)−∫0Q​Hκ​(y)dy.
  • "QQQ is κ\kappaκ-optimal" means Q>0Q>0Q>0 and Cκ(Q)≤Cκ(Q′)C_\kappa(Q)\le C_\kappa(Q')Cκ​(Q)≤Cκ​(Q′) for all Q′>0Q'>0Q′>0.

Claim. All five of the following hold:

  1. AKA_KAK​ is strictly increasing on [0,∞)[0,\infty)[0,∞).
  2. AKA_KAK​ is convex on [0,∞)[0,\infty)[0,∞).
  3. There is exactly one real QQQ that is KKK-optimal.
  4. For every Q>0Q>0Q>0: QQQ is KKK-optimal   ⟺  AK(Q)=λK\iff A_K(Q) = \lambda K⟺AK​(Q)=λK.
  5. Comparative statics in KKK: for every K′>KK' > KK′>K and all reals Q,Q′Q, Q'Q,Q′, if QQQ is KKK-optimal and Q′Q'Q′ is K′K'K′-optimal, then
Q<Q′andrK′(Q′)<rK(Q).Q < Q' \quad\text{and}\quad r_{K'}(Q') < r_K(Q).Q<Q′andrK′​(Q′)<rK​(Q).

Degenerate cases.

  • AK(0)=0A_K(0) = 0AK​(0)=0.
  • Item 5 imposes no positivity hypothesis on K′K'K′ beyond K′>K>0K' > K > 0K′>K>0.
  • Item 5 is an implication, so it does not by itself assert that a K′K'K′-optimal quantity exists.
  • Items 1 and 2 include the point Q=0Q=0Q=0, where HKH_KHK​ takes the value G(y0)G(y^0)G(y0).

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