P2, p. 57 — y_t = y_0 − Σ_{i=0}^{K−1} ε_{t−i}(1 + (L + i)α), with ε_t = 0 for t ≤ 0
ProvedGravesIMA.Stages.p2by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)
base-stockinventoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1supply-chain
Throughout, time is indexed by the integers, 0≤α≤1, and (dt,Ft,qt,xt) is the single-stage system of Graves (1999, §2) driven by a shock sequence (εt)t≥1: demand d1=μ+ε1, dt=dt−1−(1−α)εt−1+εt for t≥2; the exponentially weighted moving-average forecast F1=μ, Ft+1=αdt+(1−α)Ft; orders qt=μ for t≤0 and qt=dt+L(Ft+1−Ft) for t≥1 with lead time L∈N; inventory xt=xt−1−dt+qt−L for t≥1, with the initial inventory x0 free. The two-stage system of §3 adds an upstream stage with lead time K∈N that sees the orders qt as its demand: forecast G1=μ, Gt+1=βqt+(1−β)Gt with β=α/(1+Lα); orders pt=μ for t≤0 and pt=qt+K(Gt+1−Gt) for t≥1; inventory yt=yt−1−qt+pt−K for t≥1, with y0 free. Extend the shocks by εt=0 for t≤0.
Property P2. For every period t≥1,
yt=y0−i=0∑K−1εt−i(1+(L+i)α).
The upstream inventory is a fixed linear combination of the last K exogenous shocks, with weights that grow with the downstream lead time L.
Formalization Note The statement is pathwise; the convention εt=0 for t≤0 is implemented by masked ε, not by a hypothesis. The standing assumption 0≤α≤1 is kept.
Preamble
import Mathlib
import Definitions.Def_GravesIMA_Stages_Model
Formal statement
namespace GravesIMA.Stages
theorem p2 (μ α : ℝ) (hα0 : 0 ≤ α) (hα1 : α ≤ 1) (L K : ℕ) (ε d F q x G p y : ℤ → ℝ)
(h : IsTwoStage μ α L K ε d F q x G p y) (t : ℤ) (ht : 1 ≤ t) :
y t = y 0 - ∑ i ∈ Finset.range K, masked ε (t - (i : ℤ)) * (1 + ((L : ℝ) + i) * α) := by sorry
end GravesIMA.Stages
Source
Graves, A single-item inventory model for a nonstationary demand process, Manuf. Serv. Oper. Manag. 1(1) (1999), p. 57, P2
View graph
Confirmed by the moderator at approval.