Theorem 16 (corrected) — S̃_ijt ≤ S*_ijt, and S*_ijt ≤ S̃_ijt + M_jt when T^r = T^e + 1 or t < T^e + T_i0
ProvedServiceParts.RealTime.theorem16_correctedFix an item with a finite set of bases. For every base and every period let be the largest optimal solution of the constrained newsvendor problem , and for put
Let be the cumulative supply of an optimal solution of . Then for every base and every :
- ;
- if or , then
These bounds confine the optimal cumulative stock levels of the model with expedited shipments to a finite window, which the book uses to write as a linear program.
Formalization Note This corrects the book's Theorem 16, which asserts the upper bound for every with no proviso. As printed it is false. When , an expedited unit shipped in the last period arrives in period and cannot be shipped later. It may still be worth sending to cover demand in a later period, which pushes above ; the item theorem16_counterexample gives an instance. The book's exchange argument delays the last arriving unit by one period. That argument is valid when the violating period precedes . It is also valid when , where a last-period expedited unit can be replaced by a regular one arriving one period later.
import Mathlib import Definitions.Def_ServiceParts_RealTime_Model import Definitions.Def_ServiceParts_RealTime_ESAM open MeasureTheory
namespace ServiceParts.RealTime
/-- Theorem 16, p. 244, corrected. Let `Ŝ_{ijk}` be the largest optimal solution of
`CN_{ijk}` for `k ∈ [T^e_{ij}, …, T^r_{ij} + T_{i0}]` and
`M_{jt} = max_{k∈[T^e_{ij},…,t]} {Ŝ_{ijk} - S̃_{ijk}}` (10.43). In every optimal solution of
`ESAM_i`, for every base `j` and `t ∈ [T^e_{ij}, …, T^r_{ij} + T_{i0}]`,
`S̃_{ijt} ≤ S*_{ijt}`, and `S*_{ijt} ≤ S̃_{ijt} + M_{jt}` (10.44) provided
`T^r_{ij} = T^e_{ij} + 1` or `t < T^e_{ij} + T_{i0}`. (The upper bound as printed, without
this proviso, is false: see `theorem16_counterexample`.) -/
theorem theorem16_corrected {J : Type*} [Fintype J] {Ω : Type*} [MeasurableSpace Ω]
{P : Measure Ω} [IsProbabilityMeasure P] (M : ItemModel J Ω P) (Shat : J → ℕ → ℤ)
(hShat : ∀ j k, M.Te j ≤ k → k ≤ M.Tr j + M.T0 → M.IsLargestCNSolution j k (Shat j k))
(yr ye : J → ℕ → ℕ) (hy : IsESAMOptimal M yr ye) (j : J) (t : ℕ)
(ht₁ : M.Te j ≤ t) (ht₂ : t ≤ M.Tr j + M.T0) :
M.baseSupply j t ≤ esamStock M yr ye j t ∧
(M.Tr j = M.Te j + 1 ∨ t < M.Te j + M.T0 →
esamStock M yr ye j t ≤ M.baseSupply j t +
(Finset.Icc (M.Te j) t).sup' ⟨M.Te j, Finset.left_mem_Icc.mpr ht₁⟩
(fun k => Shat j k - M.baseSupply j k)) := by sorry
end ServiceParts.RealTime
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.