Policy evaluation (Prop. 7.2.1(c))
ProvedBertsekasDP.ssp_policy_evaluationProposition 7.2.1(c) (policy evaluation). Under Assumption 7.2.1, let be any admissible stationary policy. Then its cost vector is the unique solution of the linear system
the iteration converges to from every initial vector, and is the limit of the -stage costs of :
This is the single-policy case of the main theorem, and the computational workhorse of policy iteration: evaluating a policy is solving one linear system of equations, or equivalently iterating a contraction. That the same vector is both the fixed point and the limit of finite-horizon costs is what makes the two views of "the cost of " interchangeable.
Formalization Note Uniqueness is asserted among all real-valued vectors. Under Assumption 7.2.1 the operator is a contraction after stages rather than after one, which is where the finiteness of the policy space enters the proof.
import Mathlib import Definitions.Def_BertsekasSSPModel
namespace BertsekasDP
theorem ssp_policy_evaluation {n : ℕ} {C : Type} [Fintype C]
(M : BertsekasSSPModel n C)
(hA : ∃ m : ℕ, 0 < m ∧ ∀ π, BertsekasSSPAdmissible M π →
∀ i, BertsekasSSPSurvival M π m i < 1)
(μ : Fin n → C) (hμ : ∀ i, μ i ∈ M.U i) :
∃ Jμ : Fin n → ℝ,
BertsekasSSPPolicyOp M μ Jμ = Jμ ∧
(∀ J : Fin n → ℝ, BertsekasSSPPolicyOp M μ J = J → J = Jμ) ∧
(∀ J₀ : Fin n → ℝ,
Filter.Tendsto (fun k => (BertsekasSSPPolicyOp M μ)^[k] J₀)
Filter.atTop (nhds Jμ)) ∧
(∀ i, Filter.Tendsto (fun N => BertsekasSSPNCost M (fun _ => μ) N i)
Filter.atTop (nhds (Jμ i))) := by sorry
end BertsekasDPRead-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a BertsekasSSPModel on states with finite control type , and assume the same hypothesis as in ssp_main_theorem: there is an such that every admissible policy sequence (meaning for all ) has -step survival mass at every state . Let be a stage policy with for every . The theorem asserts the existence of a function such that all four of the following hold, where is the policy operator :
- (as functions);
- every with equals (uniqueness of the fixed point among all real-valued functions);
- for every starting function , the iterates converge to as (in the product/pointwise topology on , equivalently uniform since is finite);
- for every state , the -stage cost of the constant policy sequence converges to as .
No connection between and any optimal value function is asserted. The proof is a placeholder.
Confirmed by the mission captain (proposal self-audit).