BanditAlgorithm.bandit_asymptotically_optimal_ucb_limsup
Proved(Asymptotic optimality) For any 1-subgaussian -armed bandit and any instance of Algorithm 6,
— matching the Lai–Robbins lower bound (Mission VII) for unit-variance Gaussian rewards. Stated in via ENNReal.ofReal on both sides (mirroring the Mission VII liminf convention) so the limsup needs no boundedness side conditions.
import Definitions.Def_banditRegret import Definitions.Def_asymptoticUcbPolicy open MeasureTheory ProbabilityTheory Filter
theorem BanditAlgorithm.bandit_asymptotically_optimal_ucb_limsup {k : ℕ}
{ν : StochasticBandit k} (hν : IsSubgaussianBandit 1 ν)
{π : BanditPolicy k} (hπ : IsAsymptoticUCBPolicy π) :
atTop.limsup
(fun n : ℕ ↦ ENNReal.ofReal (banditRegret ν π n / Real.log n)) ≤
∑ i ∈ Finset.univ.filter (fun i ↦ 0 < banditGap ν i),
ENNReal.ofReal (2 / banditGap ν i) := 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 , with means (Bochner integral, if not integrable), optimal value ( when ) and gaps . For a policy (a family of Markov kernels from length- histories to arm distributions), is the canonical measure on length- histories (point mass at the empty history for ; at each further step an arm is drawn from the policy kernel given the current history and a reward is drawn from that arm's distribution, and the pair is appended), and the expected regret is (integral by convention if the total reward is not integrable). The schedule is (), the index of arm at a length- history is where , are the pull count and empirical mean (both for unpulled arms, by the convention), and the policy property assumed of is: at every history there is an arm selected with probability one, which is unpulled if any arm is unpulled, and which maximizes (non-strictly, over all arms) if all arms are pulled. Write , regarded as an element of the extended interval .
Assertion.
the limit superior being taken in the complete lattice along ; the sum ranges over the arms with strictly positive gap, and for such arms .
Hypotheses.
- is -sub-Gaussian: each arm's identity is integrable and each centered variable satisfies (with integrability) for every real .
- satisfies the index-policy property described above.
Edge cases.
- Negative values of are truncated to before taking the limit superior.
- For , and the real division convention gives ; these initial terms cannot affect the limsup.
- If no arm has strictly positive gap, the right side is and the claim asserts that the truncated limsup equals .
- For the policy property is unsatisfiable, so the statement holds vacuously.
- Only a non-strict upper bound on the limit superior is asserted — nothing about a liminf or an actual limit.
Confirmed by the mission captain (proposal self-audit).