Proposition 3.1 — under F.1 or F.2 the DP algorithm yields J*_N = T^N(J_0); under F.2 N-stage ε-optimal policies exist
ProvedBertsekasShreve.FiniteHorizon.dp_algorithm_optimal_costdp-algorithmdynamic-programmingfinite-horizonp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1
Let be a model of Section 2.1 (Monotonicity Assumption in force), with for all , and a positive integer. Write and .
- (a) Let Assumption F.1 hold and assume that for all , and . Then
- (b) Let Assumption F.2 hold and assume that for all and . Then , and for every there exists an -stage -optimal policy, i.e. a such that
This is the basic justification of the dynamic programming algorithm in the abstract setting: the optimal cost over all policies, an infimum over sequences of decision rules, is obtained by successive one-step minimizations. The book's Counterexamples 1–4 show that neither the continuity assumption nor the finiteness assumptions can be dropped.
Formalization Note is an infimum over policies and is the -fold iterate of , so the identity has content. Both parts are stated as one conjunction with their own hypotheses.
Preamble
import Mathlib import Definitions.Def_BertsekasShreve_FiniteHorizon_Model import Definitions.Def_BertsekasShreve_FiniteHorizon_Problem import Definitions.Def_BertsekasShreve_FiniteHorizon_Assumptions
Formal statement
namespace BertsekasShreve.FiniteHorizon
open Model
/-- Proposition 3.1 (Bertsekas & Shreve 1996, pp. 40–41). Let `J₀ ∈ F` satisfy
`J₀(x) > −∞` for all `x` (eq. (4) of Chapter 2) and let `N` be a positive integer.
(a) Under F.1, if `J_{k,π}(x) < ∞` for all `x ∈ S`, `π ∈ Π`, `k = 1, …, N`, then
`J*_N = T^N(J₀)`.
(b) Under F.2, if `J*_k(x) > −∞` for all `x ∈ S`, `k = 1, …, N`, then `J*_N = T^N(J₀)` and
for every `ε > 0` there is `π_ε ∈ Π` with `J*_N ≤ J_{N,π_ε} ≤ J*_N + ε`. -/
theorem dp_algorithm_optimal_cost {S C : Type*} (m : Model S C) (J₀ : S → EReal)
(hJ₀ : ∀ x, J₀ x ≠ ⊥) (N : ℕ) (hN : 1 ≤ N) :
(m.AssumptionF1 →
(∀ x (π : m.Policy) (k : ℕ), 1 ≤ k → k ≤ N → m.costN J₀ k π x < ⊤) →
m.optCostN J₀ N = m.T^[N] J₀) ∧
(m.AssumptionF2 →
(∀ x (k : ℕ), 1 ≤ k → k ≤ N → m.optCostN J₀ k x ≠ ⊥) →
m.optCostN J₀ N = m.T^[N] J₀ ∧
∀ ε : ℝ, 0 < ε → ∃ π : m.Policy,
m.optCostN J₀ N ≤ m.costN J₀ N π ∧
m.costN J₀ N π ≤ fun x => m.optCostN J₀ N x + (ε : EReal)) := by sorry
end BertsekasShreve.FiniteHorizon
Source
Bertsekas & Shreve, Stochastic Optimal Control: The Discrete-Time Case, Athena Scientific 1996, pp. 40–41, Proposition 3.1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.