Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5 — a state-dependent base-stock policy with level y∗(n,sn)−1y^*(n,s_n)-1y∗(n,sn​)−1 is optimal on a finite horizon

Proved
ServiceParts.UnitDecomp.theorem5_base_stock_optimal

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

base-stockinventorymarkov-decision-processp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Consider the single-location system S\mathcal SS over a horizon of NNN periods, with an exogenous finite-state Markov chain sns_nsn​ governing demand, lead time m−1m-1m−1 (m≥1m\ge1m≥1), holding cost hhh, backorder cost bbb with 0<h<b0<h<b0<h<b, and discount factor α∈(0,1]\alpha\in(0,1]α∈(0,1]. Let y∗(n,s)y^*(n,s)y∗(n,s) be the critical distance of the single-unit single-customer subsystem, and call a policy for S\mathcal SS base-stock with levels y∗−1y^*-1y∗−1 if in every period 1≤n≤N1\le n\le N1≤n≤N, in every Markov state sss with y∗(n,s)<∞y^*(n,s)<\inftyy∗(n,s)<∞ and every configuration, it releases the lowest-indexed units at the supplier in the number needed to raise the inventory position to

y∗(n,s)−1,y^*(n,s) - 1,y∗(n,s)−1,

and releases nothing if the inventory position is already at least that level. Then

  1. a base-stock policy with levels y∗−1y^*-1y∗−1 exists (it orders a finite quantity in every period), and
  2. every base-stock policy with levels y∗−1y^*-1y∗−1 is optimal: from every Markov state sss and every starting configuration x1x_1x1​, its expected discounted cost over periods 1,…,N1,\dots,N1,…,N equals the optimal cost V1S(s,x1)V^{\mathcal S}_1(s,x_1)V1S​(s,x1​) over all policies.

That is, a state-dependent order-up-to (base-stock) policy is optimal for the whole system on a finite horizon, and its levels are read off the single-unit problem.

Formalization Note In a period where y∗(n,s)=∞y^*(n,s)=\inftyy∗(n,s)=∞ (releasing is optimal for every customer distance, which happens in the last m−1m-1m−1 periods when an order cannot arrive before the horizon ends), the book's level ∞\infty∞ is not an order quantity; the statement leaves the policy free there, and every choice is then optimal. The book's "the optimal policy" is read as "an optimal policy": ties make other policies optimal as well. Optimality is against all policies for S\mathcal SS, not only monotone or base-stock ones.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_UnitDecomp_Model
import Definitions.Def_ServiceParts_UnitDecomp_Subsystem
import Definitions.Def_ServiceParts_UnitDecomp_System
Formal statement
namespace ServiceParts.UnitDecomp

theorem theorem5_base_stock_optimal {σ : Type} [Fintype σ] (M : Model σ) (N : ℕ) :
    (∃ π : SPolicy σ, ∀ n : ℕ, 1 ≤ n → n ≤ N → ∀ (s : σ) (x : SysState),
      M.criticalDistance N n s ≠ ⊤ →
        π.act n s x = M.baseStockRelease (((M.criticalDistance N n s).toNat : ℤ) - 1) x) ∧
    ∀ π : SPolicy σ,
      (∀ n : ℕ, 1 ≤ n → n ≤ N → ∀ (s : σ) (x : SysState),
        M.criticalDistance N n s ≠ ⊤ →
          π.act n s x = M.baseStockRelease (((M.criticalDistance N n s).toNat : ℤ) - 1) x) →
      ∀ (s : σ) (a : ℕ → ℕ) (v₀ : ℕ),
        M.sysCost N π 1 s (M.initState a v₀) = M.sysOpt N 1 s (M.initState a v₀) := by sorry

end ServiceParts.UnitDecomp
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, p. 29, Theorem 5
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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