Borel-model criteria in : path law, discounted and average costs and values, -optimality, , Assumptions 2.2–2.3, and
DefinitionArapostathisAC_VanishingDiscount_Supplement_BorelCriteriaaverage-costcontrolled-markov-processdiscounted-costp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1
This file extends the published Borel controlled Markov process (state and action spaces Borel, strict, compact-valued with measurable graph , on , admissible history-dependent randomized policies ) by the cost criteria of §2.2–§2.3 for possibly unbounded costs.
- For an initial law and , is the law of the trajectory given by (2.1)–(2.3).
- The -stage cost , the discounted cost and the average cost (also ), all in .
- The values , and ; is -discount optimal if for all , average optimal if for all ; is -optimal if for every initial distribution , and optimal if it is -optimal for every (p. 287).
- The discounted dynamic programming map (2.5)–(2.6): for ,
- Assumption 2.2 (weak continuity): is continuous on for every . Assumption 2.3: is upper semicontinuous (for every and open , for near ) and (lower semicontinuous and bounded below on ).
- Markov randomized policies (decision rules with ) and stationary randomized policies , as admissible policies.
Formalization Note Costs are lintegrals in , so may be , as the paper allows for unbounded costs. The integral of an extended-real function is in ; for bounded below it is the usual value in . Topological assumptions refer to topologies on supplied by the theorems that use them.
Definition code
import Mathlib
import Definitions.Def_ArapostathisAC_CanonicalTriplet_CMP
open MeasureTheory ProbabilityTheory Filter Topology
open scoped ENNReal
namespace ArapostathisAC.VanishingDiscount.Supplement
open ArapostathisAC.CanonicalTriplet
variable {S A : Type*} [MeasurableSpace S] [StandardBorelSpace S]
[TopologicalSpace A] [MeasurableSpace A] [BorelSpace A]
/-- The kernel giving the law of `(x₀, a₀)` from `x₀`: `x₀` is kept and `a₀ ∼ π₀(· | x₀)`. -/
noncomputable def initKernel {M : BorelCMP S A} (π : Policy M) : Kernel S (S × A) :=
Kernel.deterministic id measurable_id ×ₖ
(π.rule 0).comap (fun x : S => ((fun j : Fin 0 => j.elim0 : Fin 0 → S × A), x))
(measurable_const.prodMk measurable_id)
/-- The probability measure `𝒫^π_μ` (p. 285, (2.1)–(2.3)) on trajectories
`ω = ((x₀, a₀), (x₁, a₁), …)` for an initial law `μ` of `X₀`. -/
noncomputable def pathLaw (M : BorelCMP S A) (π : Policy M) (μ : Measure S) :
Measure (ℕ → S × A) :=
Kernel.trajMeasure (X := fun _ => S × A) (initKernel π ∘ₘ μ) (stepKernel M π)
/-- The `N`-stage cost `J_N(μ, π) = E^π_μ ∑_{t<N} c(X_t, A_t)` (p. 286), in `[0, ∞]`. -/
noncomputable def costNμ (M : BorelCMP S A) (π : Policy M) (N : ℕ) (μ : Measure S) : ℝ≥0∞ :=
∫⁻ ω, ∑ t ∈ Finset.range N, ENNReal.ofReal (M.c (ω t)) ∂(pathLaw M π μ)
/-- The `N`-stage cost from the state `x`, `J_N(x, π)`, in `[0, ∞]`. -/
noncomputable def costN (M : BorelCMP S A) (π : Policy M) (N : ℕ) (x : S) : ℝ≥0∞ :=
∫⁻ ω, ∑ t ∈ Finset.range N, ENNReal.ofReal (M.c (ω t)) ∂(pathMeasure M π x)
/-- The discounted cost `J_β(x, π) = E^π_x ∑_{t ≥ 0} β^t c(X_t, A_t)` (p. 286), in `[0, ∞]`. -/
noncomputable def discCost (M : BorelCMP S A) (π : Policy M) (β : ℝ) (x : S) : ℝ≥0∞ :=
∫⁻ ω, ∑' t, ENNReal.ofReal (β ^ t * M.c (ω t)) ∂(pathMeasure M π x)
/-- The discounted value function `J*_β(x) = inf_{π ∈ Π} J_β(x, π)` (p. 287), in `[0, ∞]`. -/
noncomputable def discValue (M : BorelCMP S A) (β : ℝ) (x : S) : ℝ≥0∞ :=
⨅ π : Policy M, discCost M π β x
/-- `f ∈ Π_SD` is `β`-discount optimal: `J_β(x, f) = J*_β(x)` for every `x ∈ S`. -/
def IsDiscOptimal (M : BorelCMP S A) (β : ℝ) (f : StationaryPolicy M) : Prop :=
∀ x, discCost M f.toPolicy β x = discValue M β x
/-- The average cost `J(x, π) = limsup_{N→∞} (1/N) J_N(x, π)` (p. 286), in `[0, ∞]`. -/
noncomputable def avgCost (M : BorelCMP S A) (π : Policy M) (x : S) : ℝ≥0∞ :=
limsup (fun N : ℕ => (N : ℝ≥0∞)⁻¹ * costN M π N x) atTop
/-- The average cost from an initial law, `J(μ, π) = limsup_{N→∞} (1/N) J_N(μ, π)`. -/
noncomputable def avgCostμ (M : BorelCMP S A) (π : Policy M) (μ : Measure S) : ℝ≥0∞ :=
limsup (fun N : ℕ => (N : ℝ≥0∞)⁻¹ * costNμ M π N μ) atTop
/-- The optimal average cost `J*(x) = inf_{π ∈ Π} J(x, π)` (p. 287). -/
noncomputable def optAvg (M : BorelCMP S A) (x : S) : ℝ≥0∞ :=
⨅ π : Policy M, avgCost M π x
/-- The optimal average cost from an initial law, `J*(μ) = inf_{π ∈ Π} J(μ, π)` (p. 287). -/
noncomputable def optAvgμ (M : BorelCMP S A) (μ : Measure S) : ℝ≥0∞ :=
⨅ π : Policy M, avgCostμ M π μ
/-- `f ∈ Π_SD` is average optimal: `J(x, f) = J*(x)` for every `x ∈ S`. -/
def IsAvgOptimal (M : BorelCMP S A) (f : StationaryPolicy M) : Prop :=
∀ x, avgCost M f.toPolicy x = optAvg M x
/-- `π` is (AC) `ε`-optimal (p. 287): `J(μ, π) ≤ J*(μ) + ε` for every initial distribution
`μ ∈ 𝒫(S)`. -/
def IsAvgEpsOptimal (M : BorelCMP S A) (ε : ℝ) (π : Policy M) : Prop :=
∀ μ : Measure S, IsProbabilityMeasure μ → avgCostμ M π μ ≤ optAvgμ M μ + ENNReal.ofReal ε
/-- `π` is (AC) optimal (p. 287): it is `ε`-optimal for every `ε > 0`. -/
def IsAvgOptimalμ (M : BorelCMP S A) (π : Policy M) : Prop :=
∀ ε : ℝ, 0 < ε → IsAvgEpsOptimal M ε π
/-- The integral of an extended-real function: `∫ v dμ = ∫ v⁺ dμ − ∫ v⁻ dμ` in `EReal`. It is
the usual integral whenever one of the two parts is finite; in particular, for `v` bounded below
and `μ` finite it is a well-defined element of `(-∞, +∞]`. -/
noncomputable def extIntegral {X : Type*} [MeasurableSpace X] (μ : Measure X) (v : X → EReal) :
EReal :=
((∫⁻ x, (v x).toENNReal ∂μ : ℝ≥0∞) : EReal) - ((∫⁻ x, (-v x).toENNReal ∂μ : ℝ≥0∞) : EReal)
/-- The discounted dynamic programming map (2.5)–(2.6) (p. 289), `T_β(v) = T(βv)`:
`T_β(v)(x) = inf_{a ∈ U(x)} {c(x, a) + β ∫ v(y) P(dy | x, a)}`, for `v : S → [-∞, +∞]`, computed
in `EReal`. -/
noncomputable def discBellman (M : BorelCMP S A) (β : ℝ) (v : S → EReal) (x : S) : EReal :=
⨅ a ∈ M.U x, ((M.c (x, a) : EReal) + (β : EReal) * extIntegral (M.P (x, a)) v)
/-- The multifunction `U` is upper semicontinuous (Appendix, p. 336): for every `x` and every
open `G ⊇ U(x)` there is a neighbourhood `N` of `x` with `U(x') ⊆ G` for all `x' ∈ N`. -/
def UpperSemicontinuousMulti {V W : Type*} [TopologicalSpace V] [TopologicalSpace W]
(U : V → Set W) : Prop :=
∀ x, ∀ G : Set W, IsOpen G → U x ⊆ G → ∀ᶠ x' in 𝓝 x, U x' ⊆ G
/-- The graph `K = {(x, a) : a ∈ U(x)}` of the admissible action sets. -/
def graphK (M : BorelCMP S A) : Set (S × A) := {p | p.2 ∈ M.U p.1}
/-- Assumption 2.2 (p. 288): `P(· | x, a)` is weakly continuous in `(x, a)`: for every
`v ∈ C_b(S)`, `(x, a) ↦ ∫ v(y) P(dy | x, a)` is continuous on `K`. -/
def Assumption22 [TopologicalSpace S] (M : BorelCMP S A) : Prop :=
∀ v : S → ℝ, Continuous v → (∃ C, ∀ y, |v y| ≤ C) →
ContinuousOn (fun p : S × A => ∫ y, v y ∂(M.P p)) (graphK M)
/-- Assumption 2.3 (p. 288): (i) the multifunction `U` is upper semicontinuous; (ii)
`c ∈ 𝓛(K)`, i.e. `c` is lower semicontinuous on `K` and bounded below on `K`. -/
def Assumption23 [TopologicalSpace S] (M : BorelCMP S A) : Prop :=
UpperSemicontinuousMulti M.U ∧ LowerSemicontinuousOn M.c (graphK M) ∧
BddBelow (M.c '' graphK M)
/-- A Markov randomized policy `π = {f_t} ∈ Π_M` (p. 285): randomized decision rules
`f_t : S → 𝒫(A)` (stochastic kernels) with `f_t(x)(U(x)) = 1`. -/
structure MarkovPolicy (M : BorelCMP S A) where
/-- the decision rule `f_t` at epoch `t` -/
rule : ℕ → Kernel S A
[isMarkov : ∀ t, IsMarkovKernel (rule t)]
/-- admissibility: `f_t(x)(U(x)ᶜ) = 0` -/
adm : ∀ t x, rule t x (M.U x)ᶜ = 0
attribute [instance] MarkovPolicy.isMarkov
/-- A Markov randomized policy as an admissible policy: the action at epoch `t` is drawn from
`f_t(x_t)`, whatever the past. -/
noncomputable def MarkovPolicy.toPolicy {M : BorelCMP S A} (π : MarkovPolicy M) : Policy M where
rule t := (π.rule t).comap Prod.snd measurable_snd
adm t hist := π.adm t hist.2
/-- A stationary randomized policy `f ∈ Π_SR` (p. 286): one randomized decision rule
`f : S → 𝒫(A)` with `f(x)(U(x)) = 1`, used at every epoch. -/
structure RandStationaryPolicy (M : BorelCMP S A) where
/-- the randomized decision rule -/
rule : Kernel S A
[isMarkov : IsMarkovKernel rule]
/-- admissibility: `f(x)(U(x)ᶜ) = 0` -/
adm : ∀ x, rule x (M.U x)ᶜ = 0
attribute [instance] RandStationaryPolicy.isMarkov
/-- A stationary randomized policy as an admissible policy. -/
noncomputable def RandStationaryPolicy.toPolicy {M : BorelCMP S A}
(f : RandStationaryPolicy M) : Policy M where
rule _ := f.rule.comap Prod.snd measurable_snd
adm _ hist := f.adm hist.2
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. 285–289, §2.2–§2.4, (2.1)–(2.6), Assumptions 2.2–2.3; p. 336, Appendix (upper semicontinuity)