Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2 — the smallest qqq with C∗(q)≤G(yq+1)C^*(q)\le G(y_{q+1})C∗(q)≤G(yq+1​) is an optimal order size

Proved
FedergruenZhengRQ.OPT.lemma2_optimal_order_size

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventory-theoryp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1reorder-point-policies

Let κ>0\kappa>0κ>0, let −G-G−G be unimodal on the integers with lim⁡∣y∣→∞G(y)=∞\lim_{|y|\to\infty}G(y)=\inftylim∣y∣→∞​G(y)=∞, let y1y_1y1​ be a global minimizer of GGG, and let yQy_QyQ​ and C∗(Q)=[κ+∑i=1QG(yi)]/QC^*(Q)=\big[\kappa+\sum_{i=1}^{Q}G(y_i)\big]/QC∗(Q)=[κ+∑i=1Q​G(yi​)]/Q be as in §2. Then

  1. some integer q≥1q\ge1q≥1 satisfies C∗(q)≤G(yq+1)C^*(q)\le G(y_{q+1})C∗(q)≤G(yq+1​); and
  2. if q≥1q\ge1q≥1 satisfies C∗(q)≤G(yq+1)C^*(q)\le G(y_{q+1})C∗(q)≤G(yq+1​) while every q′q'q′ with 1≤q′<q1\le q'<q1≤q′<q satisfies G(yq′+1)<C∗(q′)G(y_{q'+1})<C^*(q')G(yq′+1​)<C∗(q′) (that is, qqq is the smallest integer with the property), then qqq is an optimal order size:
C∗(q)  ≤  C∗(Q)for every integer Q≥1.C^*(q)\;\le\;C^*(Q)\qquad\text{for every integer } Q\ge1 .C∗(q)≤C∗(Q)for every integer Q≥1.

Combined with Lemma 1 this reduces the joint optimization over (r,Q)(r,Q)(r,Q) to scanning Q=1,2,…Q=1,2,\dotsQ=1,2,… until the first qqq with C∗(q)≤G(yq+1)C^*(q)\le G(y_{q+1})C∗(q)≤G(yq+1​).

Formalization Note. The paper's "Q∗Q^*Q∗" is the optimal order size, a minimizer of C∗(⋅)C^*(\cdot)C∗(⋅) over Q≥1Q\ge1Q≥1, which need not be unique; the lemma is stated as existence of the smallest qqq with the property plus its optimality. Existence (item 1) is not stated on the page; it follows from coercivity, which is the paper's standing assumption and is needed: for constant GGG no qqq has the property. The proof printed on p. 811 writes "C(Q)−C(Q∗)=[∑i=Q∗+1QG(yi)−(Q−Q∗)C∗(Q)]/QC(Q)-C(Q^*)=[\sum_{i=Q^*+1}^{Q}G(y_i)-(Q-Q^*)C^*(Q)]/QC(Q)−C(Q∗)=[∑i=Q∗+1Q​G(yi​)−(Q−Q∗)C∗(Q)]/Q"; the correct identity has C∗(Q)−C∗(Q∗)C^*(Q)-C^*(Q^*)C∗(Q)−C∗(Q∗) on the left and C∗(Q∗)C^*(Q^*)C∗(Q∗) inside the bracket. This affects only the proof.

Preamble
import Mathlib
import Definitions.Def_FedergruenZhengRQ_OPT_Model
Formal statement
namespace FedergruenZhengRQ.OPT

theorem lemma2_optimal_order_size (κ : ℝ) (hκ : 0 < κ) (G : ℤ → ℝ)
    (hG : NegUnimodal G) (hco : Coercive G) (y₁ : ℤ) (hy₁ : ∀ t, G y₁ ≤ G t) :
    (∃ q : ℕ, 1 ≤ q ∧ Cstar κ G y₁ q ≤ G (y G y₁ (q + 1))) ∧
    ∀ q : ℕ, 1 ≤ q → Cstar κ G y₁ q ≤ G (y G y₁ (q + 1)) →
      (∀ q' : ℕ, 1 ≤ q' → q' < q → G (y G y₁ (q' + 1)) < Cstar κ G y₁ q') →
      ∀ Q : ℕ, 1 ≤ Q → Cstar κ G y₁ q ≤ Cstar κ G y₁ Q := by sorry

end FedergruenZhengRQ.OPT
Source
Federgruen and Zheng, An Efficient Algorithm for Computing an Optimal (r, Q) Policy in Continuous Review Stochastic Inventory Systems, Oper. Res. 40(4) (1992), Lemma 2 (p. 811)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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