Chapter V, Theorem 1 (corrected (4b)) — the optimal inventory policy keeps a constant stock level
ProvedBellmanDP.Inventory.constant_stock_level_optimalLet be the unit ordering and penalty costs, the discount factor, and a demand density: for , , . Consider the optimal inventory equation
It has exactly one solution among measurable functions bounded on , and:
- If , the equation
has exactly one root , and for every the minimum is attained at when and at when : the optimal stock level is . 2. If , the minimum is attained at for every : never order.
This is the chapter's main result: with proportional costs the optimal policy is described by one number, computed from the demand distribution alone.
Formalization Note The book prints (4b) as "for , ", which would order a negative amount; the proof (p. 163, "the minimum occurs at ") and Theorem 4's rule (7) give , which is what is stated. For example, with the level violates the constraint . The equation is encoded with an infimum and attainment of the minimum is asserted at the stated order level. Uniqueness is in the class the proof names ("uniformly bounded functions over ", p. 164), restricted to measurable functions.
import Mathlib import Definitions.Def_BellmanDP_Inventory_Model open MeasureTheory Filter Topology
namespace BellmanDP.Inventory
/-- Bellman, *Dynamic Programming*, Ch. V, § 5, Theorem 1, pp. 159-160, with (4b) corrected to
`y = x`. Let `k, p > 0`, `0 < a < 1` and let `φ` be a demand density (positive on `(0, ∞)`,
total mass 1, finite mean). Equation (5.1), `f(x) = Min_{y ≥ x} T(y, x, f)`, has exactly one
solution among measurable functions bounded on `[0, ∞)`, and:
* if `ap > k`, the equation `k = ap ∫_y^∞ φ + ak ∫_0^y φ` has exactly one root `x̄ ≥ 0`, and
for every `x ≥ 0` the minimum is attained at `y = x̄` when `x ≤ x̄` and at `y = x` when
`x ≥ x̄` (order up to `x̄`);
* if `ap ≤ k`, the minimum is attained at `y = x` for every `x ≥ 0` (never order). -/
theorem constant_stock_level_optimal (k p a : ℝ) (φ : ℝ → ℝ)
(hk : 0 < k) (hp : 0 < p) (hφ : DemandDensity φ) (ha0 : 0 < a) (ha1 : a < 1) :
(k < a * p →
∃ xbar : ℝ, 0 ≤ xbar ∧ StockLevelRoot k p a φ xbar ∧
(∀ y : ℝ, 0 ≤ y → StockLevelRoot k p a φ y → y = xbar) ∧
∃ f : ℝ → ℝ, BoundedClass f ∧ SolvesInf (invT k p a φ) f ∧
(∀ g : ℝ → ℝ, BoundedClass g → SolvesInf (invT k p a φ) g →
Set.EqOn g f (Set.Ici 0)) ∧
∀ x : ℝ, 0 ≤ x →
IsLeast (invT k p a φ f x '' Set.Ici x) (invT k p a φ f x (max x xbar))) ∧
(a * p ≤ k →
∃ f : ℝ → ℝ, BoundedClass f ∧ SolvesInf (invT k p a φ) f ∧
(∀ g : ℝ → ℝ, BoundedClass g → SolvesInf (invT k p a φ) g →
Set.EqOn g f (Set.Ici 0)) ∧
∀ x : ℝ, 0 ≤ x → IsLeast (invT k p a φ f x '' Set.Ici x) (invT k p a φ f x x)) := by sorry
end BellmanDP.Inventory
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.