Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 8.1.1 — for E[D] < c the shortfall process has a stationary law, that of V = supₙ Σ(Dₖ − c)

Proved
ServiceParts.Shortfall.stationary_shortfall_exists

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

capacityinventoryp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1random-walkstationary-distribution

In the capacity-limited system of Section 8.1, with i.i.d. nonnegative demands D1,D2,…D_1, D_2, \dotsD1​,D2​,… and E[D]<cE[D] < cE[D]<c, let VnV_nVn​ be the shortfall process started from V0=0V_0 = 0V0​=0 and let

V=sup⁡n≥0∑k=1n(Dk−c).V = \sup_{n \ge 0} \sum_{k=1}^{n} (D_k - c).V=n≥0sup​k=1∑n​(Dk​−c).

Then:

  1. VVV is finite with probability one;
  2. for every real vvv,
lim⁡n→∞P{Vn>v}=P{V>v};\lim_{n \to \infty} P\{V_n > v\} = P\{V > v\};n→∞lim​P{Vn​>v}=P{V>v};
  1. the law of VVV is stationary for the recursion (8.1): if DDD is a demand independent of VVV, then [V+D−c]+[V + D - c]^+[V+D−c]+ has the same law as VVV, that is, for every real vvv,
P{V>v}=∫P{[x+D−c]+>v} PV(dx).P\{V > v\} = \int P\{[x + D - c]^+ > v\}\, P_V(dx).P{V>v}=∫P{[x+D−c]+>v}PV​(dx).

This is the book's statement "a stationary distribution exists for the shortfall process. Let VVV represent this random variable": it identifies the stationary shortfall with the maximum of the random walk with increments Dk−cD_k - cDk​−c, which is the object Theorem 11 describes.

Formalization Note The stationary law is pinned to the limit law of VnV_nVn​ started from V0=0V_0 = 0V0​=0 (the initial condition of p. 185), and item 3 states its stationarity through the law μD\mu_DμD​ of D1D_1D1​: P{V>v}=∫μD{d:[V(ω)+d−c]+>v} P(dω)P\{V > v\} = \int \mu_D\{d : [V(\omega) + d - c]^+ > v\}\, P(d\omega)P{V>v}=∫μD​{d:[V(ω)+d−c]+>v}P(dω).

Preamble
import Mathlib
import Definitions.Def_ServiceParts_Shortfall_ShortfallModel

open MeasureTheory ProbabilityTheory Filter Topology
open scoped ENNReal
Formal statement
namespace ServiceParts.Shortfall

/-- Section 8.1.1, p. 184 (and Section 8.1.2, p. 185, `V_0 = 0`). Since `E[D] < c` and the demands
are i.i.d., the shortfall process has a stationary distribution, the law of
`V = sup_{n ≥ 0} ∑_{k=1}^{n} (D_k − c)`:
1. `V` is finite almost surely;
2. for every `v`, `P{V_n > v} → P{V > v}` as `n → ∞`, where `V_n` is the shortfall process
   started from `V_0 = 0`;
3. the law of `V` is stationary for (8.1): if `D` is a demand independent of `V`, then
   `[V + D − c]^+` has the law of `V`. -/
theorem stationary_shortfall_exists {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω}
    [IsProbabilityMeasure P] (M : ShortfallModel Ω P) :
    P {ω | M.walkMax ω = ⊤} = 0 ∧
    (∀ v : ℝ, Tendsto (fun n : ℕ => P {ω | v < M.shortfall n ω}) atTop
        (𝓝 (P {ω | v < M.stationaryShortfall ω}))) ∧
    (∀ v : ℝ, P {ω | v < M.stationaryShortfall ω} =
        ∫⁻ ω, (P.map (M.demand 1))
          {d : ℝ | v < max (M.stationaryShortfall ω + d - M.capacity) 0} ∂P) := by sorry

end ServiceParts.Shortfall
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, p. 184, Section 8.1.1 (existence of the stationary shortfall); p. 185 (V_0 = 0)
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