Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4 — if Sˉ<Sn\bar{S} < S_nSˉ<Sn​ (and sn≤sˉs_n \le \bar ssn​≤sˉ), the rule (sn,S‾)(s_n, \underline{S})(sn​,S​) in period 1 does at least as well

Proved
VeinottWagnerSS.Bounds.lemma4_SLow_rule

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

dynamic-programminginventoryp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1ss-policy

Consider the nnn-period inventory model with n≥2n \ge 2n≥2 under the standing assumptions (0≤α≤10 \le \alpha \le 10≤α≤1, K≥0K \ge 0K≥0, φ\varphiφ with finite mean, GαG_\alphaGα​ convex on Z\mathbb ZZ with Gα(y)→∞G_\alpha(y) \to \inftyGα​(y)→∞ as ∣y∣→∞|y| \to \infty∣y∣→∞). Let YnY^nYn be an optimal policy which in period 1 uses the (sn,Sn)(s_n, S_n)(sn​,Sn​) rule, with sn≤Sns_n \le S_nsn​≤Sn​ and sn≤sˉs_n \le \bar ssn​≤sˉ. If

Sˉ<Sn,\bar{S} < S_n,Sˉ<Sn​,

then there is an admissible policy Y′Y'Y′ that uses the (sn,S‾)(s_n, \underline{S})(sn​,S​) rule in period 1 and satisfies

fn(x∣Y′)≤fn(x∣Yn)for all integers x.f_n(x \mid Y') \le f_n(x \mid Y^n) \qquad \text{for all integers } x.fn​(x∣Y′)≤fn​(x∣Yn)for all integers x.

Together with Lemma 3 this lets one move an optimal first-period rule into the box sn≤sˉs_n \le \bar ssn​≤sˉ, Sn≤SˉS_n \le \bar SSn​≤Sˉ without losing optimality.

Formalization Note The hypothesis sn≤sˉs_n \le \bar ssn​≤sˉ is not in the printed statement of Lemma 4. The paper's proof opens with "By lemma 3 we may assume that sn≤sˉs_n \le \bar ssn​≤sˉ", and without it the conclusion can fail: (sn,S‾)(s_n, \underline S)(sn​,S​) is an (s,S)(s, S)(s,S) rule only when sn≤S‾s_n \le \underline Ssn​≤S​. For example, with K=0K = 0K=0 and Gα(y)=max⁡(0,−y,y−5)G_\alpha(y) = \max(0, -y, y - 5)Gα​(y)=max(0,−y,y−5) one has sˉ=S‾=Sˉ=0\bar s = \underline S = \bar S = 0sˉ=S​=Sˉ=0, and the policy ordering up to 333 whenever the stock is below 333 in every period is optimal with (sn,Sn)=(3,3)(s_n, S_n) = (3, 3)(sn​,Sn​)=(3,3), while (3,0)(3, 0)(3,0) is not a rule. The statement is therefore the lemma as its proof establishes it.

Preamble
import Mathlib
import Definitions.Def_VeinottWagnerSS_Bounds_Model
import Definitions.Def_VeinottWagnerSS_Bounds_CriticalNumbers

open scoped ENNReal
Formal statement
namespace VeinottWagnerSS.Bounds

/-- Lemma 4, p. 548, in the form its proof establishes. Let `Y` (the paper's `Yⁿ`) be an optimal
policy for the `n`-period model (`n ≥ 2`) that uses the `(s_n, S_n)` rule in period 1, with
`s_n ≤ s̄` (the reduction "by lemma 3 we may assume that `s_n ≤ s̄`" of the paper's proof; without
it `(s_n, S̲)` need not be an `(s, S)` rule). If `S̄ < S_n`, then there is an admissible policy
`Y'` that uses the `(s_n, S̲)` rule in period 1 and satisfies `f_n(x | Y') ≤ f_n(x | Y)` for all
`x`. -/
theorem lemma4_SLow_rule (G : ℤ → ℝ) (K α : ℝ) (hα₀ : 0 ≤ α) (hα₁ : α ≤ 1) (hK : 0 ≤ K)
    (hconv : ∀ y : ℤ, G (y + 1) - G y ≤ G (y + 2) - G (y + 1))
    (hG_top : Filter.Tendsto G Filter.atTop Filter.atTop)
    (hG_bot : Filter.Tendsto G Filter.atBot Filter.atTop)
    (φ : PMF ℕ) (hμ : ∑' k : ℕ, (k : ℝ≥0∞) * φ k ≠ ⊤)
    (n : ℕ) (hn : 2 ≤ n)
    (Y : Policy) (sn Sn : ℤ) (hY : IsOptimal φ G K α n Y) (hsS : sn ≤ Sn)
    (hrule : UsesRule Y 0 sn Sn) (hs : sn ≤ sHigh G K α) (hlt : SHigh G K α < Sn) :
    ∃ Y' : Policy, Admissible Y' ∧ UsesRule Y' 0 sn (SLow G) ∧
      ∀ x : ℤ, cost φ G K α n x Y' ≤ cost φ G K α n x Y := by sorry

end VeinottWagnerSS.Bounds
Source
Veinott & Wagner, Computing Optimal (s, S) Inventory Policies, Management Sci. 11 (1965), pp. 548-549, Appendix §2, Lemma 4 (with the assumption s_n ≤ s̄ made at the start of its proof)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

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