Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2 — {y1,…,yQ}\{y_1,\dots,y_Q\}{y1​,…,yQ​} is contiguous and holds the QQQ smallest values of GGG

Proved
FedergruenZhengRQ.OPT.window_contiguous_smallest

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

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

Let G:Z→RG:\mathbb Z\to\mathbb RG:Z→R be such that −G-G−G is unimodal, let y1y_1y1​ be a global minimizer of GGG over the integers, and let y1,y2,…y_1,y_2,\dotsy1​,y2​,… and the windows [L(Q),R(Q)][L(Q),R(Q)][L(Q),R(Q)] be generated as in §2 (extend left when G(L(Q)−1)≤G(R(Q)+1)G(L(Q)-1)\le G(R(Q)+1)G(L(Q)−1)≤G(R(Q)+1), otherwise right). Then for every Q≥1Q\ge1Q≥1:

  1. {y1,…,yQ}={L(Q),L(Q)+1,…,R(Q)}\{y_1,\dots,y_Q\}=\{L(Q),L(Q)+1,\dots,R(Q)\}{y1​,…,yQ​}={L(Q),L(Q)+1,…,R(Q)} and R(Q)−L(Q)+1=QR(Q)-L(Q)+1=QR(Q)−L(Q)+1=Q; so the yiy_iyi​ are distinct and contiguous, and L(Q)L(Q)L(Q), R(Q)R(Q)R(Q) are their minimum and maximum;
  2. every chosen value is at most every unchosen one: G(yi)≤G(t)G(y_i)\le G(t)G(yi​)≤G(t) for all 1≤i≤Q1\le i\le Q1≤i≤Q and every integer t∉[L(Q),R(Q)]t\notin[L(Q),R(Q)]t∈/[L(Q),R(Q)];
  3. the chosen values have the least sum among all QQQ-element sets of integers:
∑i=1QG(yi)  ≤  ∑t∈TG(t)for every T⊂Z with ∣T∣=Q.\sum_{i=1}^{Q}G(y_i)\;\le\;\sum_{t\in T}G(t)\qquad\text{for every } T\subset\mathbb Z \text{ with } |T|=Q.i=1∑Q​G(yi​)≤t∈T∑​G(t)for every T⊂Z with ∣T∣=Q.

This is the observation that drives Lemma 1: the optimal reorder point for a given QQQ places the window of the sum in (1) on these QQQ points.

Formalization Note. Under ties, "their G(⋅)G(\cdot)G(⋅) values constitute the QQQ smallest ones" is formalized by items 2 and 3 (every chosen value is ≤\le≤ every unchosen value, and the least-sum property used by Lemma 1). Item 1 holds for every GGG; the hypotheses are only needed for items 2 and 3. The paper defines L(Q),R(Q)L(Q),R(Q)L(Q),R(Q) as min⁡\minmin and max⁡\maxmax of {y1,…,yQ}\{y_1,\dots,y_Q\}{y1​,…,yQ​}; the formalization defines them by the window recursion and item 1 shows they agree.

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

theorem window_contiguous_smallest (G : ℤ → ℝ) (hG : NegUnimodal G) (y₁ : ℤ)
    (hy₁ : ∀ t, G y₁ ≤ G t) (Q : ℕ) (hQ : 1 ≤ Q) :
    (Finset.Icc 1 Q).image (y G y₁) = Finset.Icc (L G y₁ Q) (R G y₁ Q) ∧
    R G y₁ Q - L G y₁ Q + 1 = (Q : ℤ) ∧
    (∀ i ∈ Finset.Icc 1 Q, ∀ t : ℤ, t ∉ Finset.Icc (L G y₁ Q) (R G y₁ Q) → G (y G y₁ i) ≤ G t) ∧
    (∀ T : Finset ℤ, T.card = Q → ∑ i ∈ Finset.Icc 1 Q, G (y G y₁ i) ≤ ∑ t ∈ T, G t) := 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), §2, sentence after the definition of y_{Q+1} (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