JAO equation (35) for a two-class MDP: from any initial state the reference reward and the total plays of the plantable pairs are at most
OpenBanditAlgorithm.jao_two_class_reference_occupancy_boundsThe two-class planted gadget. The MDP is given by its defining equations rather than through an auxiliary definition. The data are a class map , an escape map , a return map and a navigation map , and satisfies: the reward is the class, ; from a class- state every action goes to the class- state with probability and to the class- state otherwise; from a class- state every action goes to the class- state with probability and stays at otherwise. Every row is supported on two distinct states whose masses sum to , so the transition function is pinned down completely. The reference MDP is the same shape with . For and this is JAO Figure 3 with ; for it is the composite of Figure 4, its class- states being the .
The whole of JAO Section 6 is run at this level of generality, on the composite MDP itself rather than on the collapsed two-state MDP they pass to on p. 1583. That reduction is not available as an inequality between regrets: the simulating policy would have to be produced before the planting is chosen, and it sees neither which copy the composite is in nor which of the actions was played. Working with the class in place of the state avoids it, and no step of the argument is lost.
Throughout, the initial state is arbitrary and of either class.
Statement. For , every horizon , every policy and every initial state , in the reference MDP
where is any injection of plantable pairs into the class- state-action pairs.
This is equation (35) of JAO (p. 1583) with , in the direction the assembly needs. In the reference MDP all actions have the same transition law, so the policy is irrelevant and the class process is the two-state chain with both crossing probabilities equal to : writing for the probability that round has class , the recursion solves to . Summing the geometric remainder gives from either class, which is the first bound.
The second is the consequence JAO record just after (37). The pairs are distinct and all lie at class- states, so the counts are supported on disjoint events and their sum is at most the number of rounds spent in class , whose expectation is . Injectivity of is exactly what makes the counts disjoint, and it is why the plantable pairs may be spread over many states without the bound degrading — this is the point at which the composite MDP behaves like a -armed bandit rather than an -armed one.
import Mathlib.Data.Real.Sqrt import Mathlib.Analysis.SpecialFunctions.Log.Basic import Definitions.Def_UCRL2ConfidenceSets open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.jao_two_class_reference_occupancy_bounds {S A m : ℕ}
(δ : ℝ) (hδ0 : 0 < δ) (hδ : δ ≤ 1 / 3)
(ρ : Fin S → ℝ) (up down : Fin S → Fin S) (nav : Fin S → Fin A → Fin S)
(arm : Fin m → Fin S × Fin A) (harm : Function.Injective arm)
(harm0 : ∀ i, ρ (arm i).1 = 0) (M₀ : FiniteMDP S A)
(hrM₀ : ∀ s b, M₀.r s b = ρ s)
(hrow0M₀ : ∀ s b, ρ s = 0 →
ρ (up s) = 1 ∧ ρ (nav s b) = 0 ∧ up s ≠ nav s b ∧
(M₀.P s b (up s) : ℝ) = δ ∧
(M₀.P s b (nav s b) : ℝ) = 1 - δ)
(hrow1M₀ : ∀ s b, ρ s = 1 →
ρ (down s) = 0 ∧ down s ≠ s ∧
(M₀.P s b (down s) : ℝ) = δ ∧ (M₀.P s b s : ℝ) = 1 - δ)
(T : ℕ) (π : MDPPolicy S A) (s₀ : Fin S) :
(∫ h, mdpTrajectoryReward M₀ h ∂(mdpMeasure M₀ (mdpStateDirac s₀) π T))
≤ (T : ℝ) / 2 + 1 / (2 * δ)
∧ ∑ i : Fin m,
(∫ h, (mdpVisitCount h T (arm i).1 (arm i).2 : ℝ)
∂(mdpMeasure M₀ (mdpStateDirac s₀) π T))
≤ (T : ℝ) / 2 + 1 / (2 * δ) := by
sorry