Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, p. 55 — q_t = G_t + ζ_t, q_t = F_t + (1+Lα)ε_t, hence G_t = F_t

Proved
GravesIMA.Stages.upstream_forecast_eq

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

forecastinginventoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1supply-chain

Throughout, time is indexed by the integers, 0≤α≤10\le\alpha\le10≤α≤1, and (dt,Ft,qt,xt)(d_t, F_t, q_t, x_t)(dt​,Ft​,qt​,xt​) is the single-stage system of Graves (1999, §2) driven by a shock sequence (εt)t≥1(\varepsilon_t)_{t\ge1}(εt​)t≥1​: demand d1=μ+ε1d_1=\mu+\varepsilon_1d1​=μ+ε1​, dt=dt−1−(1−α)εt−1+εtd_t=d_{t-1}-(1-\alpha)\varepsilon_{t-1}+\varepsilon_tdt​=dt−1​−(1−α)εt−1​+εt​ for t≥2t\ge2t≥2; the exponentially weighted moving-average forecast F1=μF_1=\muF1​=μ, Ft+1=αdt+(1−α)FtF_{t+1}=\alpha d_t+(1-\alpha)F_tFt+1​=αdt​+(1−α)Ft​; orders qt=μq_t=\muqt​=μ for t≤0t\le0t≤0 and qt=dt+L(Ft+1−Ft)q_t=d_t+L(F_{t+1}-F_t)qt​=dt​+L(Ft+1​−Ft​) for t≥1t\ge1t≥1 with lead time L∈NL\in\mathbb NL∈N; inventory xt=xt−1−dt+qt−Lx_t=x_{t-1}-d_t+q_{t-L}xt​=xt−1​−dt​+qt−L​ for t≥1t\ge1t≥1, with the initial inventory x0x_0x0​ free. The two-stage system of §3 adds an upstream stage with lead time K∈NK\in\mathbb NK∈N that sees the orders qtq_tqt​ as its demand: forecast G1=μG_1=\muG1​=μ, Gt+1=βqt+(1−β)GtG_{t+1}=\beta q_t+(1-\beta)G_tGt+1​=βqt​+(1−β)Gt​ with β=α/(1+Lα)\beta=\alpha/(1+L\alpha)β=α/(1+Lα); orders pt=μp_t=\mupt​=μ for t≤0t\le0t≤0 and pt=qt+K(Gt+1−Gt)p_t=q_t+K(G_{t+1}-G_t)pt​=qt​+K(Gt+1​−Gt​) for t≥1t\ge1t≥1; inventory yt=yt−1−qt+pt−Ky_t=y_{t-1}-q_t+p_{t-K}yt​=yt−1​−qt​+pt−K​ for t≥1t\ge1t≥1, with y0y_0y0​ free.

Then for every period t≥1t\ge1t≥1,

qt=Gt+(1+Lα)εt,qt=Ft+(1+Lα)εt,Gt=Ft.q_t=G_t+(1+L\alpha)\varepsilon_t,\qquad q_t=F_t+(1+L\alpha)\varepsilon_t,\qquad G_t=F_t .qt​=Gt​+(1+Lα)εt​,qt​=Ft​+(1+Lα)εt​,Gt​=Ft​.

The upstream forecast coincides with the downstream forecast, and its error on the upstream demand is the shock ζt=(1+Lα)εt\zeta_t=(1+L\alpha)\varepsilon_tζt​=(1+Lα)εt​. Together with (10), this shows that the upstream stage is itself a single stage of the form of §2, with parameter β\betaβ, lead time KKK and shocks ζt\zeta_tζt​, which is how property P1 is applied to it in the proof of P2.

Formalization Note The statement is pathwise and holds for every real shock sequence; the two-stage system is the predicate IsTwoStage. The standing assumption 0≤α≤10\le\alpha\le10≤α≤1 is kept as a hypothesis; α≥0\alpha\ge0α≥0 guarantees 1+Lα≠01+L\alpha\neq01+Lα=0.

Preamble
import Mathlib
import Definitions.Def_GravesIMA_Stages_Model
Formal statement
namespace GravesIMA.Stages

theorem upstream_forecast_eq (μ α : ℝ) (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) :
    q t = G t + (1 + (L : ℝ) * α) * ε t ∧ q t = F t + (1 + (L : ℝ) * α) * ε t ∧ G t = F t := 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. 55, §3, Order Amplification, the two unnumbered displays after (11)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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