Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Variance display after Eq. (4): Var(qt)=[1+(2L/p+2L2/p2)(1−ρp)]Var(D)+2z(1+2L/p)Cov(⋅)+z2Var(⋅)\mathrm{Var}(q_t) = [1 + (2L/p + 2L^2/p^2)(1-\rho^p)]\mathrm{Var}(D) + 2z(1+2L/p)\mathrm{Cov}(\cdot) + z^2\mathrm{Var}(\cdot)Var(qt​)=[1+(2L/p+2L2/p2)(1−ρp)]Var(D)+2z(1+2L/p)Cov(⋅)+z2Var(⋅)

Proved
ChenBullwhip.Centralized.order_variance

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

bullwhip-effectp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1supply-chain

Under the assumptions of Lemma 2.1 (steady-state AR(1) demand with i.i.d. symmetric errors of mean 000 and variance σ2\sigma^2σ2), for the retailer's order qtq_tqt​ with window p≥1p \ge 1p≥1, lead-time parameter LLL, safety factor zzz and constant CL,ρC_{L,\rho}CL,ρ​, and for every period ttt,

Var(qt)=[1+(2Lp+2L2p2)(1−ρp)]Var(D)+2z(1+2Lp)Cov(Dt−1,σ^etL)+z2 Var(σ^etL−σ^e,t−1L),\mathrm{Var}(q_t) = \left[1 + \left(\frac{2L}{p} + \frac{2L^2}{p^2}\right)(1-\rho^p)\right]\mathrm{Var}(D) + 2z\left(1 + \frac{2L}{p}\right)\mathrm{Cov}(D_{t-1}, \hat\sigma^L_{et}) + z^2\,\mathrm{Var}(\hat\sigma^L_{et} - \hat\sigma^L_{e,t-1}),Var(qt​)=[1+(p2L​+p22L2​)(1−ρp)]Var(D)+2z(1+p2L​)Cov(Dt−1​,σ^etL​)+z2Var(σ^etL​−σ^e,t−1L​),

where Var(D)=Var(Dt)\mathrm{Var}(D) = \mathrm{Var}(D_t)Var(D)=Var(Dt​) is the common variance of the demands.

This is the final equality of the display following Eq. (4). It is true as stated, but not through the printed intermediate line: expanding Var(qt)\mathrm{Var}(q_t)Var(qt​) from Eq. (4) also produces the cross terms Cov(Dt−1,σ^e,t−1L)\mathrm{Cov}(D_{t-1}, \hat\sigma^L_{e,t-1})Cov(Dt−1​,σ^e,t−1L​) and Cov(Dt−p−1,σ^etL)\mathrm{Cov}(D_{t-p-1}, \hat\sigma^L_{et})Cov(Dt−p−1​,σ^etL​), which lie outside the lags 1,…,p1, \dots, p1,…,p of Lemma 2.1. Like every covariance between a demand and the estimate σ^L\hat\sigma^Lσ^L, they vanish by the symmetry of the error distribution. Together with Lemma 2.1, the identity yields Theorem 2.2.

Formalization Note Var(D)\mathrm{Var}(D)Var(D) is written Var(Dt)\mathrm{Var}(D_t)Var(Dt​), for the same ttt as the order. Only the final equality of the display is formalized, because the printed first line drops cross terms.

Preamble
import Mathlib
import Definitions.Def_ChenBullwhip_Centralized_AR1Demand
import Definitions.Def_ChenBullwhip_Centralized_Policy
Formal statement
namespace ChenBullwhip.Centralized

theorem order_variance {Ω : Type*} [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω}
    [MeasureTheory.IsProbabilityMeasure P] (X : AR1Demand P) (C z : ℝ) (L p : ℕ) (hp : 1 ≤ p)
    (t : ℤ) :
    ProbabilityTheory.variance (X.order C z L p t) P
      = (1 + (2 * (L : ℝ) / p + 2 * (L : ℝ) ^ 2 / (p : ℝ) ^ 2) * (1 - X.rho ^ p))
            * ProbabilityTheory.variance (X.D t) P
        + 2 * z * (1 + 2 * (L : ℝ) / p)
            * ProbabilityTheory.covariance (X.D (t - 1)) (X.sigmaHat C p t) P
        + z ^ 2 * ProbabilityTheory.variance
            (fun ω => X.sigmaHat C p t ω - X.sigmaHat C p (t - 1) ω) P := by sorry

end ChenBullwhip.Centralized
Source
Chen, Drezner, Ryan and Simchi-Levi, Quantifying the Bullwhip Effect in a Simple Supply Chain, Management Science 46 (2000), p. 438, §2.2, the display following Eq. (4) (final equality)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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