Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Var[(1+L/m)Dt−1−(L/m)Dt−m−1]=(1+(2L/m+2L2/m2)(1−ρm))Var[D]\mathrm{Var}\big[(1 + L/m)D_{t-1} - (L/m)D_{t-m-1}\big] = \big(1 + (2L/m + 2L^2/m^2)(1 - \rho^m)\big)\mathrm{Var}[D]Var[(1+L/m)Dt−1​−(L/m)Dt−m−1​]=(1+(2L/m+2L2/m2)(1−ρm))Var[D]

Proved
SupplyChainTheory.bullwhip_demand_part_variance

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

bullwhip-effectoperations-researchprobabilitysupply-chaintime-series

For the stationary AR(1) demand and m≥1m \ge 1m≥1, the variance of the demand part of the order is

Var[(1+Lm)Dt−1−LmDt−m−1]  =  (1+(2Lm+2L2m2)(1−ρm))Var[Dt].\mathrm{Var}\Big[\Big(1 + \frac{L}{m}\Big)D_{t-1} - \frac{L}{m}D_{t-m-1}\Big] \;=\; \Big(1 + \Big(\frac{2L}{m} + \frac{2L^2}{m^2}\Big)(1 - \rho^m)\Big)\mathrm{Var}[D_t].Var[(1+mL​)Dt−1​−mL​Dt−m−1​]=(1+(m2L​+m22L2​)(1−ρm))Var[Dt​].

It follows from Var[aX+bY]=a2Var[X]+b2Var[Y]+2ab Cov[X,Y]\mathrm{Var}[aX + bY] = a^2\mathrm{Var}[X] + b^2\mathrm{Var}[Y] + 2ab\,\mathrm{Cov}[X, Y]Var[aX+bY]=a2Var[X]+b2Var[Y]+2abCov[X,Y] (Eq. 13.10) with Cov[Dt−1,Dt−m−1]=ρmVar[D]\mathrm{Cov}[D_{t-1}, D_{t-m-1}] = \rho^m\mathrm{Var}[D]Cov[Dt−1​,Dt−m−1​]=ρmVar[D] (Eq. 13.4), since (1+L/m)2+(L/m)2=1+2L/m+2L2/m2(1 + L/m)^2 + (L/m)^2 = 1 + 2L/m + 2L^2/m^2(1+L/m)2+(L/m)2=1+2L/m+2L2/m2. Together with the vanishing of the cross term it gives Var[Qt]=(⋯ )Var[D]+zα2Var[σ^etL−σ^e,t−1L]\mathrm{Var}[Q_t] = (\cdots)\mathrm{Var}[D] + z_\alpha^2\mathrm{Var}[\hat\sigma^L_{et} - \hat\sigma^L_{e,t-1}]Var[Qt​]=(⋯)Var[D]+zα2​Var[σ^etL​−σ^e,t−1L​], from which Theorem 13.2 is read off.

Preamble
import Definitions.Def_SupplyChainTheory_bullwhip
Formal statement
namespace SupplyChainTheory

theorem bullwhip_demand_part_variance {Ω : Type*} [MeasurableSpace Ω]
    {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] (X : AR1Demand P)
    (L m : ℕ) (hm : 0 < m) (t : ℤ) :
    ProbabilityTheory.variance
        (fun ω => (1 + (L : ℝ) / m) * X.D (t - 1) ω - ((L : ℝ) / m) * X.D (t - m - 1) ω) P
      = (1 + (2 * (L : ℝ) / m + 2 * (L : ℝ) ^ 2 / (m : ℝ) ^ 2) * (1 - X.rho ^ m))
          * ProbabilityTheory.variance (X.D t) P := by sorry

end SupplyChainTheory
Source
Lawrence V. Snyder and Zuo-Jun Max Shen, Fundamentals of Supply Chain Theory, 2nd ed., Wiley 2019, DOI 10.1002/9781119584445, p. 545, Sect. 13.2.2, the display computing Var[Qt] from (13.10) and (13.4)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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