Eq. (A2) — closed max-form of the backlog
ProvedGravesWillems.Serial.backlog_closed_formLet be the backlog of the -stage serial base-stock system defined by the recursion (A1), with lead times , arbitrary real base stocks and an arbitrary real demand path . Then for every stage and every period ,
That is, the backlog at stage is the largest excess of demand over a window reaching back through the lead times of stages over the base stocks held at those stages. This closed form is what makes the expected backlogs tractable as functions of the base stocks.
Formalization Note The inner maximum is Finset.sup' over the nonempty range ; no hypothesis on the signs of or is needed.
import Mathlib import Definitions.Def_GravesWillems_Serial_backlog
namespace GravesWillems.Serial
/-- Eq. (A2) of Graves–Willems 2000 (Appendix, p. 81): the backlog defined by the recursion (A1)
has the closed max-form
`Qᵢ(t) = max[0, max_{i ≤ j ≤ N} (d(t − Tᵢ − ⋯ − T_j, t] − Bᵢ − ⋯ − B_j)]` for `i = 1, …, N`. -/
theorem backlog_closed_form (N : ℕ) (T : ℕ → ℕ) (B : ℕ → ℝ) (d : ℤ → ℝ) (i : ℕ)
(hi : i ∈ Finset.Icc 1 N) (t : ℤ) :
backlog N T B d i t =
max 0 ((Finset.Icc i N).sup' (Finset.nonempty_Icc.mpr (Finset.mem_Icc.mp hi).2)
(fun j => windowDemand d (t - ((∑ m ∈ Finset.Icc i j, T m : ℕ) : ℤ)) t
- ∑ m ∈ Finset.Icc i j, B m)) := by sorry
end GravesWillems.Serial
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setup. The statement quantifies over:
- any ;
- any lead times ;
- any real base stocks ;
- any real demand path ;
- any stage with ;
- any time .
Here , which is when . The backlog is defined by the recursion
Claim. The backlog equals the closed form
The inner maximum is over a nonempty finite set, because .
Degenerate cases.
- : no satisfies , so the statement is vacuous.
- : the claim says .
- Zero lead times: windows of zero total lead time contribute demand .
- Signs: there are no sign restrictions on or .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.