BanditAlgorithm.bandit_asymptotically_optimal_ucb_regret_bound
Proved(Asymptotically optimal UCB, finite-time, GOAL) For any 1-subgaussian -armed bandit and any policy that is an instance of Algorithm 6 (index with ), the regret satisfies
The per-arm infimum inside the sum is encoded in the equivalent -family form: the bound holds at every family with for each suboptimal arm .
import Definitions.Def_banditRegret import Definitions.Def_asymptoticUcbPolicy import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.bandit_asymptotically_optimal_ucb_regret_bound {k : ℕ}
{ν : StochasticBandit k} (hν : IsSubgaussianBandit 1 ν)
{π : BanditPolicy k} (hπ : IsAsymptoticUCBPolicy π) (n : ℕ)
(ε : Fin k → ℝ)
(hε : ∀ i, 0 < banditGap ν i → ε i ∈ Set.Ioo 0 (banditGap ν i)) :
banditRegret ν π n ≤
∑ i ∈ Finset.univ.filter (fun i ↦ 0 < banditGap ν i),
banditGap ν i *
(1 + 5 / ε i ^ 2 +
2 * (Real.log (asymptoticUcbSchedule n) +
Real.sqrt (Real.pi * Real.log (asymptoticUcbSchedule n)) + 1) /
(banditGap ν i - ε i) ^ 2) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. A -armed bandit is a family of Borel probability measures on . Write (a Bochner integral, equal to by convention if the identity is not -integrable), (equal to when , by the real convention for suprema over an empty range), and . A history of length is a function , , of arm/reward pairs; is the number of rounds of playing arm and the corresponding empirical mean (with , so both are for unpulled arms). A policy is a family of Markov kernels from length- histories to distributions over arms. denotes the canonical probability measure on length- histories, defined recursively: is the point mass at the empty history, and is the law of the history obtained by sampling , then an arm , then a reward , and appending to . The expected regret is
again a Bochner integral ( by convention if the total reward is not integrable, in which case ). The schedule is with (so ), and the index of arm at a length- history is . The policy property assumed of reads: for every and every length- history there is an arm with , such that if some arm is unpulled in then is unpulled, and if all arms have been pulled then for every arm .
Assertion. For the given horizon and real family ,
the sum ranging over exactly the arms with strictly positive gap.
Hypotheses.
- is -sub-Gaussian: for every arm , the identity is -integrable, and for every the function is -integrable with .
- satisfies the index-policy property above (at every history, reachable or not).
- is arbitrary.
- is an arbitrary real family subject only to: for each arm with , (both inequalities strict).
Edge cases.
- For arms with , is completely unconstrained (it may be ); such arms do not occur in the sum.
- In the bound, the schedule is evaluated at the horizon itself, whereas the policy's index evaluates it at (history length) . For , and .
- For the policy property is unsatisfiable, so the statement holds vacuously there.
- carries the stated junk conventions (supremum definition of ; integral defaulting to ).
Confirmed by the mission captain (proposal self-audit).