The optimistic bias has span at most the diameter
ProvedBanditAlgorithm.mdp_optimistic_bias_span_le_diameterLet be a finite MDP with reward function and diameter , and let be a family of sets of transition rows containing the true rows of and admitting an optimistic plan for . Then the bias of the optimistic plan committed to for has span at most the diameter:
An optimistic plan satisfies the average-reward Bellman inequality against every row allowed by , in particular against the true row of ; so its bias satisfies the Bellman inequality of itself, with the optimistic gain . The span of the bias of any such inequality is at most times the diameter of , and .
This is the step of the UCRL2 analysis that makes the diameter, rather than the horizon, the scale of the martingale increments and of the estimation error: it is where the optimistic plan is tied back to the true MDP.
Source: Jaksch, Ortner and Auer, Near-optimal Regret Bounds for Reinforcement Learning, JMLR 11 (2010), Section 4.3 (after Lemma 4 and Remark 8); Lattimore and Szepesvari, Bandit Algorithms (CUP 2020), Section 38.5.
import Definitions.Def_UCRL2Algorithm open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.mdp_optimistic_bias_span_le_diameter
{S A : ℕ} [NeZero A] (hS : 0 < S) (M : FiniteMDP S A)
(r : Fin S → Fin A → ℝ) (hMr : M.r = r) (hD : 1 ≤ mdpDiameter M)
(C : Fin S → Fin A → Set (Fin S → ℝ))
(hmem : ∀ s a, (fun s' ↦ ((M.P s a s' : ℝ))) ∈ C s a)
(hex : ∃ (ρ : ℝ) (v : Fin S → ℝ) (f : Fin S → Fin A) (q : Fin S → Fin S → ℝ),
IsOptimisticPlan r C ρ v f q)
(x y : Fin S) :
mdpOptimisticBias r C x - mdpOptimisticBias r C y ≤ mdpDiameter M := by
sorry