SSP main theorem (Prop. 7.2.1(a),(b) + optimality)
ProvedBertsekasDP.ssp_main_theoremProposition 7.2.1(a),(b) (the stochastic shortest path theorem). Consider the finite-state stochastic shortest path problem under Assumption 7.2.1: there is an integer such that, regardless of the policy used and the initial state, termination is reached within stages with positive probability,
Then there is a cost vector such that:
- Value iteration converges from every start: for any initial vector ,
- satisfies Bellman's equation and is its unique solution:
- is the optimal cost: every admissible policy has a well-defined infinite-horizon cost with , and some admissible stationary policy attains .
This is the base case of infinite-horizon dynamic programming, and the theorem that value iteration and -learning ultimately rest on: the Bellman operator has a unique fixed point which is the optimal cost, and it can be found by iterating from anywhere. The discounted theory of §7.3 is the special case where termination occurs with probability at each stage.
Formalization Note Uniqueness of the fixed point is asserted over all real-valued cost vectors, with no boundedness side condition. The existence of the limit defining for nonstationary policies is part of the claim, not an assumption. Assumption 7.2.1 is stated through the survival probability under admissible policies; the source notes one may always take .
import Mathlib import Definitions.Def_BertsekasSSPModel
namespace BertsekasDP
theorem ssp_main_theorem {n : ℕ} {C : Type} [Fintype C]
(M : BertsekasSSPModel n C)
(hA : ∃ m : ℕ, 0 < m ∧ ∀ π, BertsekasSSPAdmissible M π →
∀ i, BertsekasSSPSurvival M π m i < 1) :
∃ Jstar : Fin n → ℝ,
(∀ J₀ : Fin n → ℝ,
Filter.Tendsto (fun k => (BertsekasSSPBellmanOp M)^[k] J₀)
Filter.atTop (nhds Jstar)) ∧
BertsekasSSPBellmanOp M Jstar = Jstar ∧
(∀ J : Fin n → ℝ, BertsekasSSPBellmanOp M J = J → J = Jstar) ∧
(∀ π, BertsekasSSPAdmissible M π → ∀ i, ∃ Jπ : ℝ,
Filter.Tendsto (fun N => BertsekasSSPNCost M π N i)
Filter.atTop (nhds Jπ) ∧ Jstar i ≤ Jπ) ∧
(∃ μ : Fin n → C, (∀ i, μ i ∈ M.U i) ∧ ∀ i,
Filter.Tendsto (fun N => BertsekasSSPNCost M (fun _ => μ) N i)
Filter.atTop (nhds (Jstar i))) := by sorry
end BertsekasDPRead-back
What the Lean code literally says, in plain math · claude-fable-5
Let , a finite type, and a BertsekasSSPModel on states with controls in (so the transition rows satisfy for all and for ; there is no requirement that the rows sum to exactly ). Assume the hypothesis : there exists with such that for every policy sequence satisfying the admissibility condition for all , and for every state ,
where is the -step survival mass defined above (the probability of remaining in the state space for steps under ). The theorem then asserts the existence of a function (existence only, , not ) satisfying the conjunction of the following five clauses, where is the SSP Bellman operator and the -stage cost defined above:
- Value iteration converges from every start: for every , the sequence of -fold iterates converges to as , in the topology of the finite product space (pointwise convergence, which for finite coincides with uniform convergence).
- Fixed point: (equality of functions).
- Uniqueness of the fixed point: every with equals — quantified over all real-valued functions on the states, with no boundedness or other side condition.
- Lower bound over admissible policies, with convergence: for every policy sequence that is admissible ( for all ), and every state , there exists a real number such that as and . Note this clause asserts, for each admissible and each , the existence of the limit of the -stage costs, not merely a bound.
- A stationary policy attains : there exists a single stage policy with for all , such that for every state the -stage cost of the constant policy sequence converges to as .
If the state space is empty, hypothesis is satisfiable (e.g. vacuously), and all clauses are vacuous or trivially witnessed. The theorem's proof is not supplied in this file (the body is a placeholder).
Confirmed by the mission captain (proposal self-audit).