Proposition 2 — per-step dynamic regret of SWUCRL2-CW
ProvedNonstatRL.PerStep.proposition2_per_step_regretConsider an episode of the paper's nonstationary finite MDP algorithm. Each state has a nonempty finite allowed action set, , , and widening . At the episode start, the local reward and transition estimation-error events hold. The EVI output satisfies its optimistic and near-optimality contract. A transition model with diameter at most has every allowed row in the widened episode-start transition confidence region. For any round after that start and before the horizon on which the policy chooses ,
This is the explicit per-round engine of the paper's regret analysis. Formalization Note The printed free pair in the last radius is read as , as in the proof. The end of the episode is unnecessary once the policy-action relation is given. Time indices in Lean are zero-based, so the displayed one-based is represented by . The events are assumed only at the episode start, where they are used.
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib import Definitions.Def_NonstatRL_PerStep_EVIOutput open BanditAlgorithm ENNReal
namespace NonstatRL.PerStep
theorem proposition2_per_step_regret {S A : ℕ} (hS : 1 < S)
(M : ℕ → FiniteMDP S A) (As : Fin S → Finset (Fin A))
(hAs : ∀ s, (As s).Nonempty) (T : ℕ)
(δ : ℝ) (hδ : 0 < δ ∧ δ < 1) (η : ℝ) (hη : 0 ≤ η)
(W : ℕ) (st : ℕ → Fin S) (ac : ℕ → Fin A) (R : ℕ → ℝ)
(τm t : ℕ) (ht : τm ≤ t ∧ t < T)
(heR : EventR M As T δ st ac R (τm - W) τm)
(heP : EventP M As T δ st ac (τm - W) τm)
(πt : Fin S → Fin A) (rt : Fin S → Fin A → ℝ)
(pt : Fin S → Fin A → Fin S → ℝ) (ρt : ℝ) (γt : Fin S → ℝ)
(hevi : IsEVIOutput As T δ η W τm st ac R πt rt pt ρt γt)
(D : ℝ) (Mw : FiniteMDP S A)
(hw : ∀ s a, a ∈ As s →
(fun s' => (Mw.P s a s' : ℝ)) ∈
Hp As T δ st ac (τm - W) τm η s a)
(hdiam : NonstatRL.Oracle.diameter Mw As ≤ ENNReal.ofReal D)
(hact : ac t = πt (st t)) :
NonstatRL.Oracle.optGain (M t) As - (M t).r (st t) (ac t) ≤
(∑ s' : Fin S, ((M t).P (st t) (ac t) s' : ℝ) * γt s') -
γt (st t) + 1 / Real.sqrt (τm + 1) +
(2 * varR M As (τm - W) t +
4 * D * (varP M As (τm - W) t + η)) +
(2 * radR As T δ
(countPlus st ac (τm - W) τm (st t) (ac t)) +
4 * D * radP As T δ
(countPlus st ac (τm - W) τm (st t) (ac t))) := by sorry
end NonstatRL.PerStep
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.