(3.8), p. 9 — for f ≥ 0 the random-horizon discounted expectation (3.1) equals Σⱼ (Kʲ(θ)f̃(θ))(x)
ProvedLyapDiffMC.RandomHorizon.eq_3_8Throughout, is a measurable state space, a family of Markov transition kernels on indexed by an open interval , measurable, and measurable. The non-negative kernel restricted to is , its powers are (), (possibly an infinite measure), , and .
Fix and , and let be the expectation for the chain with transition kernel started at . Let ( if never leaves ). If , then
On the terminal term is absent. All quantities lie in .
This identifies the path expectation (3.1) with the series . The rest of the mission uses that series as , so this result links the mission's to the chain.
Formalization Note The path law is the published MarkovChainKernel (BanditAlgorithm.markovChainKernel). The right-hand side is with computed in .
Differences from the source:
- encoding: E^θ_x, expectation of the chain driven by P(θ) started at x → lintegral against BanditAlgorithm.markovChainKernel (P θ) x; reason: the published path law of the time-homogeneous chain with kernel P(θ) and X₀ = x
- encoding: T = inf{n ≥ 0 : Xₙ ∈ Cᶜ}, with T = ∞ when Cᶜ is never hit; the terminal term exp(Σ_{k<T} g)f(X_T) → exitTime in ℕ∞ (⊤ if the path never leaves C); the terminal term is absent on {T = ⊤}; reason: the infinite-horizon reading of p. 3 (C^c = ∅ gives T = ∞ and no terminal reward)
- encoding: non-negative real terms and their sums → ENNReal.ofReal of each term, sums and expectations in ℝ≥0∞; reason: every term is non-negative since f ≥ 0; same values in [0, ∞]
- encoding: Σⱼ (Kʲ(θ)f̃(θ))(x) → ∫⁻ f̃(θ, y) G(θ, x, dy) with G(θ, x, ·) = Measure.sum of Kʲ(θ, x, ·); reason: the integral against a sum of measures is the sum of the integrals
- encoding: θ ∈ Λ with P(θ) a Markov kernel, f, g, C measurability left implicit → any real θ, P θ Markov for every θ ∈ ℝ (Setting), Measurable f, g, MeasurableSet C; reason: the identity holds for every Markov kernel P(θ), so θ ∈ Λ needs no binder; measurability is needed for the expectations and kernel integrals to be defined
import Mathlib import Definitions.Def_MarkovChainKernel import Definitions.Def_LyapDiffMC_RandomHorizon_Model open MeasureTheory ProbabilityTheory open scoped ENNReal
namespace LyapDiffMC.RandomHorizon
open Classical in
/-- (3.8), p. 9. For non-negative `f`, the random-horizon discounted expectation (3.1) under the
chain with kernel `P(θ)` started at `x ∈ C` splits into the reward collected strictly before the
exit time `T` and the reward collected at time `T` (when `T < ∞`), and this equals
`Σⱼ (Kʲ(θ) f̃(θ))(x) = ∫ f̃(θ, y) G(θ, x, dy)`. -/
theorem eq_3_8 {S : Type*} [MeasurableSpace S] (M : Setting S) (θ : ℝ)
(hf : ∀ y, 0 ≤ M.f y) (x : S) (hx : x ∈ M.C) :
∫⁻ ω, pathReward M ω ∂(BanditAlgorithm.markovChainKernel (M.P θ) x)
= (∑' j : ℕ, ∫⁻ ω, (if (j : ℕ∞) < exitTime M ω then discReward M ω j else 0)
∂(BanditAlgorithm.markovChainKernel (M.P θ) x))
+ (∑' j : ℕ, ∫⁻ ω,
(if (j : ℕ∞) ≤ exitTime M ω ∧ ω j ∉ M.C then discReward M ω j else 0)
∂(BanditAlgorithm.markovChainKernel (M.P θ) x)) ∧
(∑' j : ℕ, ∫⁻ ω, (if (j : ℕ∞) < exitTime M ω then discReward M ω j else 0)
∂(BanditAlgorithm.markovChainKernel (M.P θ) x))
+ (∑' j : ℕ, ∫⁻ ω,
(if (j : ℕ∞) ≤ exitTime M ω ∧ ω j ∉ M.C then discReward M ω j else 0)
∂(BanditAlgorithm.markovChainKernel (M.P θ) x))
= ∫⁻ y, ftildeE M θ y ∂(greenMeasure M θ x) := by sorry
end LyapDiffMC.RandomHorizon
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.