Finite chains: reachability, communicating and closed classes, unichain; the matrices and cost vectors of stationary policies on a finite state space
DefinitionArapostathisAC_VanishingDiscount_Supplement_FiniteChainaverage-costfinite-markov-decision-processmarkov-chainp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1
For a square matrix indexed by a finite set, is reachable from if for some ; and communicate if each is reachable from the other; is essential (recurrent) if every state reachable from leads back to , i.e. its communicating class is closed, and transient otherwise. The number of closed communicating classes counts the distinct classes of essential states, and is unichain if there is exactly one.
On a Borel controlled Markov process with finite state space :
- for , and ;
- for , ;
- for a randomized decision rule , , and is identified with the rules with , a subset of with the product of weak topologies.
Formalization Note The Cesàro limit and the matrix inverse come from the published BlackwellDiscreteDP.NearOne.LimitMatrix; the theorems that use them also assert that the limit exists and that is invertible.
Definition code
import Mathlib
import Definitions.Def_BlackwellDiscreteDP_NearOne_LimitMatrix
import Definitions.Def_ArapostathisAC_CanonicalTriplet_CMP
import Definitions.Def_ArapostathisAC_VanishingDiscount_Supplement_BorelCriteria
open MeasureTheory ProbabilityTheory Filter Topology Matrix
open scoped ENNReal
namespace ArapostathisAC.VanishingDiscount.Supplement
open ArapostathisAC.CanonicalTriplet
section Chain
variable {n : Type*} [Fintype n] [DecidableEq n]
/-- State `j` is reachable from state `i` in the finite chain `P`: `P^m(i, j) > 0` for some
`m ≥ 0` (with `P⁰ = I`). -/
def Reaches (P : Matrix n n ℝ) (i j : n) : Prop :=
∃ m : ℕ, 0 < (P ^ m) i j
/-- States `i` and `j` communicate in `P`: each is reachable from the other. The communicating
classes of `P` are the classes of this equivalence relation. -/
def Communicates (P : Matrix n n ℝ) (i j : n) : Prop :=
Reaches P i j ∧ Reaches P j i
/-- State `i` is essential (recurrent) in the finite chain `P`: every state reachable from `i`
leads back to `i`, i.e. the communicating class of `i` is closed. A state that is not essential is
transient. -/
def IsEssential (P : Matrix n n ℝ) (i : n) : Prop :=
∀ j, Reaches P i j → Reaches P j i
/-- The number of closed communicating (recurrent, ergodic) classes of the finite chain `P`: the
number of distinct classes `{j : i ↔ j}` of essential states `i`. -/
noncomputable def numClosedClasses (P : Matrix n n ℝ) : ℕ := by
classical
exact ((Finset.univ.filter (IsEssential P)).image
(fun i => Finset.univ.filter (Communicates P i))).card
/-- The finite chain `P` is unichain: it has exactly one closed communicating class (plus,
possibly, transient states). -/
def IsUnichain (P : Matrix n n ℝ) : Prop :=
numClosedClasses P = 1
end Chain
variable {S A : Type*} [Fintype S] [MeasurableSpace S] [StandardBorelSpace S]
[TopologicalSpace A] [MeasurableSpace A] [BorelSpace A]
/-- The transition matrix `P(f)` of `f ∈ Π_SD` on a finite state space (p. 294):
`P(f)(i, j) = P(j | i, f(i))`. -/
noncomputable def sdMatrix (M : BorelCMP S A) (f : StationaryPolicy M) : Matrix S S ℝ :=
Matrix.of fun i j => (M.P (i, f.1 i) {j}).toReal
/-- The cost vector `c(f) = (c(i, f(i)))_{i ∈ S}` of `f ∈ Π_SD` (p. 294). -/
def sdCost (M : BorelCMP S A) (f : StationaryPolicy M) : S → ℝ :=
fun i => M.c (i, f.1 i)
/-- The transition matrix of `f ∈ Π_SR` on a finite state space:
`P(f)(i, j) = ∫ P(j | i, a) f(i)(da)`. -/
noncomputable def srMatrix (M : BorelCMP S A) (f : RandStationaryPolicy M) : Matrix S S ℝ :=
Matrix.of fun i j => ∫ a, (M.P (i, a) {j}).toReal ∂(f.rule i)
/-- The cost vector `c(f) = (∫ c(i, a) f(i)(da))_{i ∈ S}` of a randomized decision rule
`f : S → 𝒫(A)` (§4.2, p. 298), in `[0, ∞]`. -/
noncomputable def srCost (M : BorelCMP S A) (f : S → ProbabilityMeasure A) : S → ℝ≥0∞ :=
fun i => ∫⁻ a, ENNReal.ofReal (M.c (i, a)) ∂(f i : Measure A)
/-- The randomized decision rules `f : S → 𝒫(A)` with `f(i)(U(i)) = 1`, i.e. `Π_SR` on a finite
state space, as a subset of the product `∏_{i ∈ S} 𝒫(A)` (product of weak topologies). -/
def srRules (M : BorelCMP S A) : Set (S → ProbabilityMeasure A) :=
{f | ∀ i, (f i : Measure A) (M.U i)ᶜ = 0}
end ArapostathisAC.VanishingDiscount.Supplement
Source
Arapostathis, Borkar, Fernández-Gaucherand, Ghosh, Marcus, Discrete-time controlled Markov processes with average cost criterion: a survey, SIAM J. Control Optim. 31(2) (1993), pp. 293–294, §4.1 (P(f), c(f), P*(f), communicating classes); p. 298, §4.2 and Theorem 4.5 (Π_SR, c(·) on Π_SR, unichain)