Eq. (14), p. 783 — the expected cost of a fixed policy is the value of a linear program
ProvedRobustMDP.FiniteHorizon.expectedCost_lpFix an initial state , a controller policy and transition matrices whose rows are probability vectors. Let (, otherwise). Then the expected total cost of (2) is the optimal value of the linear program
with , and the maximum is attained.
The linear program links the probabilistic definition (2) of the cost to the backward recursions: letting the matrices vary over nature's admissible set turns (14) into problem (16).
Formalization Note The cost is the forward-distribution expectation of (2). The terminal condition is implicit on the page (the paper writes for here). Since , the objective is written . The maximum is stated with IsGreatest.
import Mathlib import Definitions.Def_RobustMDP_FiniteHorizon_Model import Definitions.Def_RobustMDP_FiniteHorizon_expectedCost
namespace RobustMDP.FiniteHorizon
/-- The linear program (14), p. 783. For a given controller policy `π` and a given collection of
time-varying transition matrices `P = (P_t^a)` (every row a probability vector), the expected
total cost `C_N(π, P)` of (2) is the optimal value of
`max qᵀ v_0` over `v_0, …, v_{N-1}` subject to
`v_t(i) ≤ c_t(i, 𝐚_t(i)) + ∑_j P_t^{𝐚_t(i)}(i, j) v_{t+1}(j)` for all `i`, `t ∈ T`, with
`v_N = c_N` and `q = e_{i₀}` (so `qᵀ v_0 = v_0(i₀)`). -/
theorem expectedCost_lp {n N : ℕ} {A : Type} (M : Model n N A) (i₀ : Fin n)
(π : ControlPolicy n N A) (P : Fin N → A → Fin n → Fin n → ℝ)
(hP : ∀ t a i, P t a i ∈ stdSimplex ℝ (Fin n)) :
IsGreatest
{x : ℝ | ∃ v : Fin (N + 1) → Fin n → ℝ,
v (Fin.last N) = M.terminalCost ∧
(∀ t : Fin N, ∀ i, v t.castSucc i ≤
M.cost t i (π t i) + ∑ j, P t (π t i) i j * v t.succ j) ∧
x = v 0 i₀}
(M.expectedCost i₀ π P) := by sorry
end RobustMDP.FiniteHorizon
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Hypotheses. The statement fixes:
- a model with states, stages and any action type , with stage costs and terminal cost ;
- an initial state ;
- a control policy ;
- a real array whose every row lies in the standard simplex.
is not required to take its rows from 's row sets .
Conclusion. The expected cost is the greatest element of the set of numbers , taken over all sequences with and
Here is defined as
where is the point mass at and
"Greatest element" means two things: is attained by some feasible sequence, and it is at least every feasible .
Degenerate cases.
- : the set is and the cost is .
- : no exists, so the statement has no instances.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.