Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — Algorithm OPT determines an optimal (r∗,Q∗)(r^*,Q^*)(r∗,Q∗) policy

Proved
FedergruenZhengRQ.OPT.algorithmOPT_optimal

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

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

Let κ>0\kappa>0κ>0 and let G:Z→RG:\mathbb Z\to\mathbb RG:Z→R be such that −G-G−G is unimodal and lim⁡∣y∣→∞G(y)=∞\lim_{|y|\to\infty}G(y)=\inftylim∣y∣→∞​G(y)=∞, and let C(r,Q)=[κ+∑y=r+1r+QG(y)]/QC(r,Q)=\big[\kappa+\sum_{y=r+1}^{r+Q}G(y)\big]/QC(r,Q)=[κ+∑y=r+1r+Q​G(y)]/Q be the long-run average cost (1) of the (r,Q)(r,Q)(r,Q) policy. Let y1y_1y1​ be any integer minimizing GGG. Run Step 1 of Algorithm OPT from y1y_1y1​. Then the algorithm stops after finitely many passes, and its output (r,Q)(r,Q)(r,Q) satisfies Q≥1Q\ge1Q≥1 and

C(r,Q)  ≤  C(r′,Q′)for every integer r′ and every integer Q′≥1.C(r,Q)\;\le\;C(r',Q')\qquad\text{for every integer } r' \text{ and every integer } Q'\ge1 .C(r,Q)≤C(r′,Q′)for every integer r′ and every integer Q′≥1.

Precisely: there is NNN such that for every budget n≥Nn\ge Nn≥N the run with nnn passes returns an output, and that output is a jointly optimal (r,Q)(r,Q)(r,Q) policy.

This is the paper's main result: an exact and very cheap procedure for the optimal reorder point and order quantity in every continuous-review model whose cost has the form (1).

Formalization Note. Only the first sentence of Theorem 1 is formalized; the operation count (13, resp. 11, times the work to evaluate Pr∗+Q∗P_{r^*+Q^*}Pr∗+Q∗​) is not. Step 0 (a linear scan from 000 for the minimizer, under the paper's assumption y1>0y_1>0y1​>0) is replaced by "y1y_1y1​ is a given global minimizer of GGG", the paper's own setup in §2 and its p. 812 remark that Step 0 may be replaced by a bisection search; Step 0 under unimodality alone can stop at a non-minimizer on a plateau. "The optimal (r∗,Q∗)(r^*,Q^*)(r∗,Q∗)" is read as "an optimal": minimizers need not be unique. Optimality is over all integer r′r'r′ and all Q′≥1Q'\ge1Q′≥1 (C(r,0)C(r,0)C(r,0) is undefined on the page and 000 in Lean). Coercivity is necessary: for constant GGG the loop never stops.


Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.

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

theorem algorithmOPT_optimal (κ : ℝ) (hκ : 0 < κ) (G : ℤ → ℝ) (hG : NegUnimodal G)
    (hco : Coercive G) (y₁ : ℤ) (hy₁ : ∀ t, G y₁ ≤ G t) :
    ∃ N : ℕ, ∀ n ≥ N, ∃ r : ℤ, ∃ Q : ℕ, optRun κ G y₁ n = some (r, Q) ∧ 1 ≤ Q ∧
      ∀ r' : ℤ, ∀ Q' : ℕ, 1 ≤ Q' → cost κ G r Q ≤ cost κ G r' 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), Theorem 1 (p. 812); Algorithm OPT (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