UCRL2 almost surely plays the action its policy prescribes
ProvedBanditAlgorithm.mdp_ucrl2_action_realisation_aeFix states, actions, a horizon , a confidence level , a known reward function , a finite MDP and an initial state distribution. Under the law of the trajectory produced by interconnecting with the UCRL2 policy, almost every trajectory satisfies, at every round ,
where is the greedy action map of the optimistic plan for the confidence balls formed from the transitions observed strictly before the start of the phase current at time , those balls being read off the whole trajectory .
The statement is what makes the deterministic regret analysis applicable to the realised trajectory. Its two ingredients are that the selection kernels of the policy are Dirac kernels at that action map, so the action of a round is determined by the history, and that the counts the policy computes from the prefix of rounds together with the currently observed state agree with the counts computed from the full trajectory, which is the bookkeeping identity that the transition out of round is visible exactly when round is recorded.
import Definitions.Def_UCRL2Algorithm open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.mdp_ucrl2_action_realisation_ae
(S A n : ℕ) [NeZero A] (δ : ℝ) (r : Fin S → Fin A → ℝ)
(M : FiniteMDP S A) (μ0 : MDPStateDistribution S) :
mdpMeasure M μ0 (ucrl2Policy n δ r) n
{h : MDPTrajectory S A n | ∀ t : Fin n,
(h t).2 = mdpOptimisticActionMap r
(fun x a ↦ mdpConfidenceSet h (mdpPhaseStart h t.val + 1) n δ x a)
(h t).1}ᶜ
= 0 := by
sorry