Bias differences are bounded by the expected travel time
ProvedBanditAlgorithm.mdp_value_diff_le_travel_timeLet satisfy the Bellman optimality inequality
with bounded, and let be a memoryless deterministic policy whose expected travel time from to is finite. Then
the expectation on the right being exactly the travel time of Lattimore and Szepesvári, Definition 38.1 (their diameter is the maximin of this quantity over pairs of states and policies).
This is the displayed inequality of L&S Exercise 38.13, and taking the minimum over and the maximum over pairs of states turns it into Lemma 38.3, , the estimate that bounds the boundary term of every phase of UCRL2 by the diameter. Note that only the reward bound of the MDP structure is used, so the factor is rather than .
The proof accumulates the Bellman inequality along the trajectory, stopped at the hitting time of . Writing for the indicator that none of the first states is , the quantity
is non-increasing: the summand contributed by a round is unchanged once the target has been reached, and before that the Bellman inequality applies. Hence for every . Bounding the two pieces of from below by and and letting gives the claim, the first term vanishing because the series converges.
import Definitions.Def_FiniteMDPLearning import Mathlib.Probability.Kernel.Composition.IntegralCompProd open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.mdp_value_diff_le_travel_time {S A : ℕ} (M : FiniteMDP S A)
(f : Fin S → Fin A) (src tgt : Fin S) (ρ : ℝ) (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)
(hfin : mdpTravelTime M f src tgt ≠ ⊤) :
v tgt - v src ≤ ρ * (mdpTravelTime M f src tgt).toReal := by
sorry