Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (A3) — the service constraints guarantee no backlog at stage 1

Proved
GravesWillems.Serial.no_stage_one_backlog

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

base-stockinventoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1serial-systemsupply-chain

Consider the NNN-stage serial base-stock system with lead times Ti∈NT_i \in \mathbb{N}Ti​∈N and real base stocks BiB_iBi​, and let D:N→RD : \mathbb{N} \to \mathbb{R}D:N→R be a demand bound for the demand path ddd, i.e.

d(a,a+s]≤D(s)for every a∈Z, s∈N.d(a, a + s] \le D(s) \qquad \text{for every } a \in \mathbb{Z},\ s \in \mathbb{N}.d(a,a+s]≤D(s)for every a∈Z, s∈N.

If the base stocks satisfy the constraints (A3),

B1+B2+⋯+Bi≥D(T1+T2+⋯+Ti),i=1,…,N,B_1 + B_2 + \dots + B_i \ge D(T_1 + T_2 + \dots + T_i), \qquad i = 1, \dots, N,B1​+B2​+⋯+Bi​≥D(T1​+T2​+⋯+Ti​),i=1,…,N,

then stage 111 never has a backlog: Q1(t)=0Q_1(t) = 0Q1​(t)=0 for every period ttt.

This is why 100% service to the external customer can be imposed through the linear constraints (A3), and why E[Q1]E[Q_1]E[Q1​] drops out of the objective of P∗\mathbf P^*P∗.

Formalization Note Only the sufficiency direction is stated. The page adds that, when the demand bounds can be realized, (A3) is also necessary; that direction is not part of this item.

Preamble
import Mathlib
import Definitions.Def_GravesWillems_Serial_backlog
import Definitions.Def_GravesWillems_Serial_programP
Formal statement
namespace GravesWillems.Serial

/-- Eq. (A3) of Graves–Willems 2000 (Appendix, p. 81), sufficiency: if the demand path never
exceeds the demand bound, `d(a, a + s] ≤ D(s)` for every time `a` and every number of periods `s`,
and the base stocks satisfy the constraints (A3), then stage 1 never has a backlog:
`Q₁(t) = 0` for all `t`. -/
theorem no_stage_one_backlog (N : ℕ) (T : ℕ → ℕ) (D : ℕ → ℝ) (B : ℕ → ℝ) (d : ℤ → ℝ)
    (hdD : ∀ (a : ℤ) (s : ℕ), windowDemand d a (a + (s : ℤ)) ≤ D s)
    (hB : ServiceConstraints N T D B) (t : ℤ) :
    backlog N T B d 1 t = 0 := by sorry

end GravesWillems.Serial
Source
Graves and Willems, Optimizing Strategic Safety Stock Placement in Supply Chains, Manufacturing & Service Operations Management 2(1), 2000, p. 81, Appendix, Eq. (A3)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setup. The statement takes:

  • any N∈NN\in\mathbb NN∈N;
  • any lead times T:N→NT:\mathbb N\to\mathbb NT:N→N;
  • any function D:N→RD:\mathbb N\to\mathbb RD:N→R;
  • any real base stocks B:N→RB:\mathbb N\to\mathbb RB:N→R;
  • any real demand path d:Z→Rd:\mathbb Z\to\mathbb Rd:Z→R.

Here d(a,b]=∑a<τ≤bd(τ)d(a,b]=\sum_{a<\tau\le b}d(\tau)d(a,b]=∑a<τ≤b​d(τ), and QiQ_iQi​ is the backlog defined by

Qi(t)=max⁡(0, d(t−Ti,t]+Qi+1(t−Ti)−Bi)(i≤N),Qi≡0(i>N).Q_i(t)=\max\bigl(0,\ d(t-T_i,t]+Q_{i+1}(t-T_i)-B_i\bigr)\quad (i\le N),\qquad Q_i\equiv0\quad(i>N).Qi​(t)=max(0, d(t−Ti​,t]+Qi+1​(t−Ti​)−Bi​)(i≤N),Qi​≡0(i>N).

Hypotheses.

  1. Demand bound: for every a∈Za\in\mathbb Za∈Z and every s∈Ns\in\mathbb Ns∈N, d(a,a+s]≤D(s)d(a,a+s]\le D(s)d(a,a+s]≤D(s). Taking s=0s=0s=0, this forces D(0)≥0D(0)\ge0D(0)≥0.
  2. Service constraints: D(∑m=1iTm)≤∑m=1iBmD\bigl(\sum_{m=1}^iT_m\bigr)\le\sum_{m=1}^iB_mD(∑m=1i​Tm​)≤∑m=1i​Bm​ for every i∈{1,…,N}i\in\{1,\dots,N\}i∈{1,…,N}.

Nonnegativity of BBB is not assumed.

Claim. For every t∈Zt\in\mathbb Zt∈Z,

Q1(t)=0.Q_1(t)=0.Q1​(t)=0.

Degenerate cases.

  • N=0N=0N=0: Q1≡0Q_1\equiv0Q1​≡0 by definition, so the conclusion holds with no use of the hypotheses.
  • Zero lead times: if some Tm=0T_m=0Tm​=0, the corresponding windows are empty.
  • Unused values: T0T_0T0​ and B0B_0B0​ play no role.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

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