JAO Lemma 13 for a two-class MDP: change of measure for the number of plays of the planted pair
OpenBanditAlgorithm.jao_two_class_planted_plays_change_of_measureThe 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 ,
This is equation (37) of JAO (p. 1584), obtained from their Lemma 13 applied to , a function of the observed state-action history with values in .
Proof. A divergence decomposition followed by Pinsker's inequality. The planted and reference MDPs differ in exactly one row of the transition function, namely , so the relative entropy between the two trajectory laws under a common policy and a common initial distribution is times the relative entropy of the two rows. Both rows are two-point distributions on — this is why the gadget is set up with two-point rows — with masses and , so that relative entropy is the Bernoulli one , and gives . Pinsker then converts this into a bound on the difference of expectations of any -valued function, applied to .
JAO note that the observation in an MDP is the next state rather than the reward, which is harmless because the reward is a deterministic function of the state; the same remark applies here with the class in place of the state.
import Mathlib.Data.Real.Sqrt import Mathlib.Analysis.SpecialFunctions.Log.Basic import Definitions.Def_UCRL2ConfidenceSets open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.jao_two_class_planted_plays_change_of_measure {S A : ℕ}
(δ ε : ℝ) (hδ0 : 0 < δ) (hδ : δ ≤ 1 / 3) (hε0 : 0 < ε) (hεδ : ε ≤ δ)
(ρ : Fin S → ℝ) (up down : Fin S → Fin S) (nav : Fin S → Fin A → Fin S)
(sStar : Fin S) (bStar : Fin A) (M M₀ : FiniteMDP S A)
(hstar : ρ sStar = 0)
(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) : ℝ) = δ + (if (s, b) = (sStar, bStar) then ε else 0) ∧
(M.P s b (nav s b) : ℝ) = 1 - δ - (if (s, b) = (sStar, bStar) then ε else 0))
(hrow1M : ∀ s b, ρ s = 1 →
ρ (down s) = 0 ∧ down s ≠ s ∧
(M.P s b (down s) : ℝ) = δ ∧ (M.P s b s : ℝ) = 1 - δ)
(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, (mdpVisitCount h T sStar bStar : ℝ) ∂(mdpMeasure M (mdpStateDirac s₀) π T))
≤ (∫ h, (mdpVisitCount h T sStar bStar : ℝ) ∂(mdpMeasure M₀ (mdpStateDirac s₀) π T))
+ (T : ℝ) / 2 * (ε / Real.sqrt δ)
* Real.sqrt
(2 * ∫ h, (mdpVisitCount h T sStar bStar : ℝ)
∂(mdpMeasure M₀ (mdpStateDirac s₀) π T)) := by
sorry