Theorem 2 — optimality of order-up-to policies in the n-period Karlin–Scarf recursion
ProvedServiceParts.BaseStock.order_up_to_optimalIn the model of Section 2.1 with lead time one period, consider the -period recursion
Then:
- for every horizon an order-up-to policy is optimal: either there is a real level such that
attains the minimum for every inventory position , or ordering nothing attains the minimum for every (the level ); 2. there is such that for every the level is a real number.
This is Theorem 2 of the book in the form its proof establishes: an induction over a finite horizon with lead time .
Formalization Note The book states Theorem 2 for "the optimal policy" with lead time and a real level , but proves it for the finite-horizon recursion with ; the passage is left as an unproved conjecture on p. 21. The book also claims a real level for every , starting from a base case "left to the reader". Under its assumption that base case fails when (e.g. , , ): the two-period problem then never orders. The statement is therefore corrected to allow the level , and part 2 records the finiteness that the assumption does guarantee for all long enough horizons. Optimality is against all orders .
import Mathlib import Definitions.Def_ServiceParts_BaseStock_Model import Definitions.Def_ServiceParts_BaseStock_Recursion open MeasureTheory Set Filter Topology
namespace ServiceParts.BaseStock
/-- Theorem 2, p. 18, in the n-period form of its proof (lead time τ = 1), corrected at the
base case: (i) for every horizon n ≥ 2 an order-up-to rule is optimal at every inventory
position — either with a real level s, u*(y) = max{0, s − y}, or with level −∞ (never order);
(ii) there is N ≥ 2 such that for every n ≥ N the level can be taken real. -/
theorem order_up_to_optimal (M : Model) :
(∀ n : ℕ, 2 ≤ n →
(∃ s : ℝ, M.IsOrderUpToOptimal n s) ∨ (∀ y : ℝ, M.IsOptimalOrder n y 0)) ∧
∃ N : ℕ, 2 ≤ N ∧ ∀ n : ℕ, N ≤ n → ∃ s : ℝ, M.IsOrderUpToOptimal n s := by sorry
end ServiceParts.BaseStock
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.