JAO equation (35): in the reference two-state gadget the time spent in is at least
ProvedBanditAlgorithm.jao_two_state_reference_occupancy_boundsThroughout, the MDP is the collapsed two-state gadget of JAO Figure 3, presented by its defining equations rather than through an auxiliary definition: state is with reward , state is with reward , the return probability is for every action , and the escape probability is for every action other than the planted action , for which it is . The gadget has diameter . The reference MDP is the same gadget with no planting.
Statement. For , every horizon and every policy (in the reference gadget all actions have the same transition law, so the policy is irrelevant),
where is the number of rounds spent in — equivalently the total reward — and is the number of rounds in which action is played in state .
The first inequality is equation (35) of JAO (p. 1583), with . It is proved by conditioning on the step of the first transition out of , which is geometric with parameter : given , the chain is symmetric from then on and spends at least rounds in in expectation, and summing over and evaluating the two geometric series gives .
The second inequality is the immediate consequence JAO record just after (37): the counts partition the visits to , so their sum is , and the first inequality bounds its expectation. Both are stated together because they are the same computation, and the assembly needs both.
import Mathlib.Data.Real.Sqrt import Mathlib.Analysis.SpecialFunctions.Log.Basic import Definitions.Def_UCRL2ConfidenceSets open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.jao_two_state_reference_occupancy_bounds
{m : ℕ} (δ : ℝ) (hδ0 : 0 < δ) (hδ : δ ≤ 1 / 3)
(M₀ : FiniteMDP 2 m)
(hr0 : ∀ b, M₀.r 0 b = 0) (hr1 : ∀ b, M₀.r 1 b = 1)
(hP1 : ∀ b, (M₀.P 1 b 0 : ℝ) = δ) (hP0 : ∀ b, (M₀.P 0 b 1 : ℝ) = δ)
(T : ℕ) (π : MDPPolicy 2 m) :
(T : ℝ) / 2 - 1 / (2 * δ)
≤ ∫ h, mdpTrajectoryReward M₀ h ∂(mdpMeasure M₀ (mdpStateDirac 0) π T)
∧ ∑ b : Fin m,
(∫ h, (mdpVisitCount h T 0 b : ℝ) ∂(mdpMeasure M₀ (mdpStateDirac 0) π T))
≤ (T : ℝ) / 2 + 1 / (2 * δ) := by
sorry