Bandits.pullCount_rate_tendsto_of_sublinear_regret
If the regret is sublinear, the rate of suboptimal arm pulls tends to zero.
Bandits.pullCount_rate_tendsto_of_sublinear_regret.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} {A : โ โ ฮฉ โ ๐} {ฯ : ฮฉ} {a : ๐} [Finite ๐] (hr : (fun x => regret ฮฝ A x ฯ) =o[Filter.atTop] fun t => โt) (hg : 0 < gap ฮฝ a) : Filter.Tendsto (fun t => โ(Learning.pullCount A a t ฯ) / โt) Filter.atTop (nhds 0)Bandits.pullCount_rate_tendsto_of_sublinear_regret.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {m๐ : MeasurableSpace ๐} {ฮฝ : ProbabilityTheory.Kernel ๐ โ} {A : โ โ ฮฉ โ ๐} {ฯ : ฮฉ} {a : ๐} [Finite ๐] (hr : (fun x => regret ฮฝ A x ฯ) =o[Filter.atTop] fun t => โt) (hg : 0 < gap ฮฝ a) : Filter.Tendsto (fun t => โ(Learning.pullCount A a t ฯ) / โt) Filter.atTop (nhds 0)
Code
lemma pullCount_rate_tendsto_of_sublinear_regret [Finite ๐]
(hr : (regret ฮฝ A ยท ฯ) =o[atTop] fun t โฆ (t : โ)) (hg : 0 < gap ฮฝ a) :
Tendsto (fun t โฆ (pullCount A a t ฯ : โ) / t) atTop (nhds 0)Proof
by
have := Fintype.ofFinite ๐
have hb (t : โ) : (pullCount A a t ฯ : โ) * gap ฮฝ a โค regret ฮฝ A t ฯ := by
rw [regret_eq_sum_pullCount_mul_gap]
exact single_le_sum (f := fun a โฆ pullCount A a t ฯ * gap ฮฝ a)
(fun _ _ โฆ mul_nonneg (Nat.cast_nonneg _) gap_nonneg) (mem_univ a)
have hb' (t : โ) : (pullCount A a t ฯ : โ) / t โค regret ฮฝ A t ฯ / t / gap ฮฝ a := by
obtain ht | ht := eq_or_ne t 0
ยท simp [ht]
ยท calc (pullCount A a t ฯ : โ) / t
= pullCount A a t ฯ * gap ฮฝ a / gap ฮฝ a / t := by field_simp
_ โค regret ฮฝ A t ฯ / gap ฮฝ a / t := by gcongr; exact hb t
_ = regret ฮฝ A t ฯ / t / gap ฮฝ a := by ring
apply squeeze_zero' (Eventually.of_forall fun _ โฆ by positivity) (Eventually.of_forall hb')
simpa using hr.tendsto_div_nhds_zero.div_const (gap ฮฝ a)Actions: Source ยท Open Issue
Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 2th recorded change.
Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file ยท open it in the Lean web editor.
Dependency graph
Audit surface: 3 project declarations, 51 external constants
โ Proved: no sorry anywhere in its closure
This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.