UCRL2 regret bound on the good event
ProvedBanditAlgorithm.mdp_ucrl2_good_event_regret_boundThere is a universal constant with the following property. Fix positive numbers of states , actions , and rounds , a confidence level , and a known reward function . There is a policy, depending on these known quantities but not on the transition matrix, such that for every communicating MDP with reward function , diameter , and every initial state distribution, there is an event of trajectories with
This is the form in which the analysis of UCRL2 (Lattimore--Szepesvari, Section 38.6) actually delivers Theorem 38.6: the event is the event that the true transition rows lie in every confidence ball built along the trajectory, its complement is controlled by a concentration argument, and the regret bound on is a deterministic consequence of optimism. Separating the two makes the probabilistic and the deterministic halves of the proof independent.
Formalization Note The regret bound on is stated with a strict inequality, matching the source, so that the bad event of Theorem 38.6 is contained in .
import Definitions.Def_FiniteMDPLearning open MeasureTheory ProbabilityTheory ENNReal
theorem BanditAlgorithm.mdp_ucrl2_good_event_regret_bound :
∃ C : ℝ, 0 < C ∧
∀ S A n : ℕ, 0 < S → 0 < A → 0 < n →
∀ δ : ℝ, δ ∈ Set.Ioo (0 : ℝ) 1 →
∀ r : Fin S → Fin A → ℝ, (∀ s a, r s a ∈ Set.Icc (0 : ℝ) 1) →
∃ π : MDPPolicy S A,
∀ M : FiniteMDP S A, M.r = r → M.IsCommunicating →
1 ≤ mdpDiameter M →
∀ μ0 : MDPStateDistribution S,
∃ G : Set (MDPTrajectory S A n),
mdpMeasure M μ0 π n Gᶜ ≤ ENNReal.ofReal δ ∧
∀ h ∈ G, mdpRegret M n h <
C * mdpDiameter M * S *
Real.sqrt (A * n * Real.log (n * S * A / δ)) := by
sorry