Optimality of the DP algorithm (Prop. 1.3.1)
ProvedBertsekasDP.dp_algorithm_optimalityProposition 1.3.1 (optimality of the dynamic programming algorithm). Consider the basic problem with horizon , system , finite nonempty constraint sets , finitely supported disturbances, and additive cost. Let be produced by the backward DP recursion ,
and call a policy admissible when for every stage and state. Then for every initial state ,
and the minimum is attained: some admissible policy achieves exactly , and no admissible policy does better.
This is the theorem that licenses solving a multi-stage optimization one stage at a time. Every later result in this series is stated over the same model: the lookahead and rollout bounds of Chapter 6 compare a suboptimal policy's cost against this recursion, and the infinite-horizon theory of Chapter 7 studies the limit of iterating it.
Formalization Note The conclusion is phrased as a least element (IsLeast) of the set of achievable costs, which packages both halves — attainment and the lower bound — in one statement. Admissibility is required at every stage index, though only stages enter the cost. Policies are deterministic feedback maps of the current stage and state; this is the class over which the source states the result.
import Mathlib import Definitions.Def_BertsekasDPModel
namespace BertsekasDP
theorem dp_algorithm_optimality {S C W : Type} [Fintype W]
(M : BertsekasDPModel S C W) (x₀ : S) :
IsLeast {c : ℝ | ∃ π : ℕ → S → C, (∀ k x, π k x ∈ M.U k x) ∧
c = BertsekasDPPolicyCost M π M.N x₀}
(BertsekasDPValue M M.N x₀) := by sorry
end BertsekasDPRead-back
What the Lean code literally says, in plain math · claude-fable-5
For arbitrary types and a finite type , for every model of type BertsekasDPModel S C W (a bundle, read back above, with horizon , dynamics , stage costs , terminal cost , nonempty finite control sets for all , and weights that are nonnegative and sum over to whenever ), and for every initial state (so is nonempty in any instance of this theorem), the statement asserts that the number — where is BertsekasDPValue applied to , i.e. the recursion , , evaluated with stages-to-go counter equal to the model's own horizon — is the least element (in the sense of IsLeast) of the set
where is BertsekasDPPolicyCost applied to and , i.e. the recursion , with and , evaluated at stages-to-go and state .
Being the least element means two conjoined claims: (i) membership — there exists a policy , admissible in the strong sense that for every (including stage indices , which never occur in the cost recursion) and every state (not only states reachable from ), whose cost is exactly ; and (ii) lower bound — for every real of the form with admissible in that same sense, . The policies quantified over are Markov feedback maps from (stage, state) to a single control; the set contains no costs of history-dependent or randomized policies, and no non-admissible policies. If both and every equal , and the claim reduces to being the least (indeed only) element of — provided an everywhere-admissible exists, which it does since each is nonempty. The theorem's proof body is sorry, i.e. the statement is asserted without proof in this file.
Confirmed by the mission captain (proposal self-audit).