Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 8.1.2 — for E[D] < c the steady-state law Ļ€ = lim P{Vā‚™ = i} exists and solves Ļ€š’« = Ļ€, Σπᵢ = 1, πᵢ ≄ 0

Proved
ServiceParts.Shortfall.discrete_stationary_distribution

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

capacityinventorymarkov-chainp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1stationary-distribution

In the discrete-demand shortfall model with E[D]<cE[D] < cE[D]<c, let VnV_nVn​ be the shortfall chain started from V0=0V_0 = 0V0​=0 and let P=[pij]\mathcal P = [p_{ij}]P=[pij​] be its transition matrix. Then the limits

Ļ€i=lim⁔nā†’āˆžP{Vn=i},i=0,1,2,…\pi_i = \lim_{n \to \infty} P\{V_n = i\}, \qquad i = 0, 1, 2, \dotsĻ€i​=nā†’āˆžlim​P{Vn​=i},i=0,1,2,…

exist, and π\piπ solves

Ļ€P=Ļ€,āˆ‘iĻ€i=1,Ļ€i≄0,\pi \mathcal P = \pi, \qquad \sum_i \pi_i = 1, \qquad \pi_i \ge 0,Ļ€P=Ļ€,iāˆ‘ā€‹Ļ€i​=1,Ļ€i​≄0,

that is, āˆ‘iĻ€ipij=Ļ€j\sum_i \pi_i p_{ij} = \pi_jāˆ‘i​πi​pij​=Ļ€j​ for every state jjj.

This is the steady-state distribution of the shortfall in the discrete case, from which Table 8.1 and Figures 8.3–8.8 are computed.

Formalization Note The book writes "a steady state distribution exists ... Let the stationary distribution that V=iV = iV=i be denoted by Ļ€i\pi_iĻ€i​"; the statement pins Ļ€i\pi_iĻ€i​ to the limit of P{Vn=i}P\{V_n = i\}P{Vn​=i} from V0=0V_0 = 0V0​=0. The series are stated with HasSum, so convergence is part of the claim.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_Shortfall_DiscreteShortfallModel

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace ServiceParts.Shortfall

/-- Section 8.1.2, p. 186. Since `E[D] < c`, the shortfall chain started from `V_0 = 0` has a
steady-state distribution `Ļ€_i = lim_{n → āˆž} P{V_n = i}`, and `Ļ€` solves
`Ļ€š’« = Ļ€`, `āˆ‘ Ļ€_i = 1`, `Ļ€_i ≄ 0`, where `š’« = [p_{ij}]` is the transition matrix of p. 185. -/
theorem discrete_stationary_distribution {Ī© : Type*} [MeasurableSpace Ī©] {P : Measure Ī©}
    [IsProbabilityMeasure P] (M : DiscreteShortfallModel Ī© P) :
    ∃ Ļ€ : ā„• → ā„,
      (āˆ€ i, Tendsto (fun n : ā„• => (P {ω | M.shortfall n ω = i}).toReal) atTop (š“ (Ļ€ i))) ∧
      (āˆ€ j, HasSum (fun i => Ļ€ i * M.transProb i j) (Ļ€ j)) ∧
      HasSum Ļ€ 1 ∧
      (āˆ€ i, 0 ≤ Ļ€ i) := by sorry

end ServiceParts.Shortfall
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, p. 186, Section 8.1.2 (stationary equations)
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