Span of the bias is at most gain diameter
ProvedBanditAlgorithm.mdp_span_le_gain_mul_diameterLet be a finite MDP of finite diameter and let satisfy the Bellman optimality inequality
with bounded and . Then for all states ,
This is Lemma 38.3 of Lattimore and Szepesvári, whose proof is left to their Exercise 38.13, in the sharp form specialised to rewards in . Since a solution of the Bellman optimality equation has , it gives , which is how the lemma is used: in Step 2 of the proof of Theorem 38.6 the boundary term of each phase of UCRL2 is bounded by the span of the optimistic value function, hence by the diameter, and the phase count multiplies it.
The proof is the per-policy inequality evaluated at a policy minimising the travel time from to — the minimum is attained because there are finitely many memoryless deterministic policies — followed by the observation that this minimum is one of the terms of the maximum defining . The finiteness of the diameter is what makes the travel time of the minimising policy finite, and hence the argument applicable.
import Definitions.Def_FiniteMDPLearning import Mathlib.Probability.Kernel.Composition.IntegralCompProd open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.mdp_span_le_gain_mul_diameter {S A : ℕ} (M : FiniteMDP S A)
(ρ : ℝ) (hρ : 0 ≤ ρ) (v : Fin S → ℝ) (lo hi : ℝ) (hv : ∀ s, v s ∈ Set.Icc lo hi)
(hbell : ∀ s a, M.r s a + ∑ s', (M.P s a s' : ℝ) * v s' ≤ ρ + v s)
(hD : mdpDiameterENN M ≠ ⊤) (s s' : Fin S) :
v s - v s' ≤ ρ * mdpDiameter M := by
sorry