Theorem 6.3.1 — the multichain average cost optimality equation for the Blackwell optimal policy
ProvedSennottDP.AvgFinite.thm_6_3_1_acoeLet be an MDC with a finite state space . Let and be as in Proposition 6.2.3, i.e. is a stationary policy that is discount optimal for every . Let be the positive recurrent classes of the chain induced by , choose distinguished states , and let , , , , and be as defined in Section 6.3. Then for all :
- ;
- ;
- ;
- the average cost optimality equation holds:
- if is a stationary policy realizing the minimum in (6.6) and the Markov chain induced by is positive recurrent at , then (6.6) is an equality at and .
No unichain assumption is made; Example 6.3.2 shows that the inequality in (6.6) can be strict.
Formalization Note The objects of §6.3 are constructed from in Def_SennottDP_AvgFinite_ACOE; the choice of distinguished states is a hypothesis IsDistinguishedSet on a finite set Z (one state per positive recurrent class), over which the theorem is universally quantified. is in ℝ≥0∞, and part 1 is a limit in ℝ≥0∞; , and the equation (6.6) are real valued, using toReal of quantities that are finite for a finite state space. is the filter 𝓝[<] 1. "Realizing the minimum" means attains the minimum in (6.6) at every state .
import Mathlib import Definitions.Def_SennottDP_AvgFinite_ACOE
namespace SennottDP.AvgFinite
open scoped ENNReal NNReal Topology
open Filter
/-- Theorem 6.3.1 (Sennott, pp. 101–102). Let `S` be finite, let `f` and `α₀ ∈ (0,1)` be as in
Proposition 6.2.3 (`f` is `α` discount optimal for every `α ∈ (α₀,1)`), and let `Z` contain one
distinguished state `z_k` from each positive recurrent class `R_k` of the chain induced by `f`.
With `W_α`, `w_α` as defined on p. 101, for every `i ∈ S`:
(i) `J(i) = lim_{α→1⁻} (1−α)W_α(i)`;
(ii) `lim_{α→1⁻} w_α(i) =: w(i) = ∑_k p_k(i)[c_{i|k}(f) − J_k m_{i|k}(f)]`;
(iii) `lim_{n→∞} E_f[w(X_n) | X_0 = i]/n = 0`;
(iv) the average cost optimality equation
`J(i) + w(i) = C(i,f) + ∑_j P_{ij}(f) w(j) ≥ min_a {C(i,a) + ∑_j P_{ij}(a) w(j)}` (6.6) holds;
(v) if `e` is a stationary policy realizing the minimum in (6.6) and the chain induced by `e` is
positive recurrent at `i`, then (6.6) is an equality at `i` and `J_e(i) = J(i)`. -/
theorem thm_6_3_1_acoe {S : Type*} {Act : Type*} [Fintype S] (M : MDC S Act)
(f : StationaryPolicy M) (α₀ : ℝ) (hα₀ : α₀ ∈ Set.Ioo (0 : ℝ) 1)
(hf : ∀ α ∈ Set.Ioo α₀ 1, IsDiscountOptimal f.toPolicy α)
(Z : Finset S) (hZ : IsDistinguishedSet (inducedChain M f) Z) (i : S) :
let w : S → ℝ := relValue M f Z
let rhs : S → Act → ℝ := fun j a => (M.C j a : ℝ) + ∑ k, (M.P j a k).toReal * w k
let minRhs : S → ℝ := fun j => (M.A j).inf' (M.A_nonempty j) (rhs j)
-- (i)
Tendsto (fun α : ℝ => ENNReal.ofReal (1 - α) * Wdisc M f Z α i) (𝓝[<] 1)
(𝓝 (avgValue M i)) ∧
-- (ii)
Tendsto (fun α : ℝ => wdisc M f Z α i) (𝓝[<] 1) (𝓝 (w i)) ∧
-- (iii)
Tendsto (fun n : ℕ => (∑ j, (nStep (inducedChain M f) n i j).toReal * w j) / (n : ℝ))
atTop (𝓝 0) ∧
-- (iv)
((avgValue M i).toReal + w i = rhs i (f.f i) ∧ rhs i (f.f i) ≥ minRhs i) ∧
-- (v)
(∀ e : StationaryPolicy M, (∀ j, rhs j (e.f j) = minRhs j) →
PositiveRecurrent (inducedChain M e) i →
(avgValue M i).toReal + w i = minRhs i ∧ avgCost e.toPolicy i = avgValue M i) := by sorry
end SennottDP.AvgFinite
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.