BanditAlgorithm.bandit_ucb_minimax_regret_bound
Provedbanditsregretucb
(UCB distribution-free bound) If , the regret of UCB (Algorithm 3) on any environment is bounded by
Preamble
import Definitions.Def_banditRegret import Definitions.Def_ucbPolicy open MeasureTheory ProbabilityTheory
Formal statement
theorem BanditAlgorithm.bandit_ucb_minimax_regret_bound {k : ℕ} (hk : 0 < k)
{ν : StochasticBandit k} (hν : IsSubgaussianBandit 1 ν) {n : ℕ} (hn : 0 < n)
{π : BanditPolicy k} (hπ : IsUCBPolicy (1 / (n : ℝ) ^ 2) π) :
banditRegret ν π n ≤
8 * Real.sqrt (n * k * Real.log n) + 3 * ∑ i, banditGap ν i := by
sorry
Source
L&S Theorem 7.2, p.108
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Notation (all unfolded from the imported definitions). Fix arms with distributions (probability measures on ), means , optimal mean , gaps . For a history of (arm, reward) pairs, is the pull count of arm and its empirical mean ( when unpulled). The index with parameter is with junk conventions , of a nonpositive , of a negative (unpulled arms have index ). is the history measure generated by interacting with , and is the regret.
Claim. Suppose:
- ;
- is -subgaussian: every arm is integrable and for every arm and every , ;
- ;
- is a UCB policy at confidence parameter : deterministic at every history, playing an unpulled arm whenever one exists, and otherwise an arm maximizing .
Then
Edge cases:
- Inside the square root, , , are multiplied as real numbers; for , , so the radicand is nonnegative and no junk square-root convention is triggered. For , and the first term vanishes, leaving .
- The second term still depends on the gaps of the particular bandit (it is the same term as in the gap-dependent bound); the sum ranges over all arms, with optimal arms contributing .
- The bound is asserted for every policy satisfying the UCB predicate (tie-breaking and the choice among unpulled arms are unconstrained by the predicate).
Human review
Confirmed by the mission captain (proposal self-audit).