LeanMachineLearning

Bandits.avg_mean_reward_tendsto_of_sublinear_regret๐Ÿ”—

Lemma

If the regret is sublinear, the average mean reward tends to the highest mean of the arms.

๐Ÿ”—theorem
Bandits.avg_mean_reward_tendsto_of_sublinear_regret.{u_1, u_2} {๐“ : Type u_1} {ฮฉ : Type u_2} {m๐“ : MeasurableSpace ๐“} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} {A : โ„• โ†’ ฮฉ โ†’ ๐“} {ฯ‰ : ฮฉ} (hr : (fun x => regret ฮฝ A x ฯ‰) =o[Filter.atTop] fun t => โ†‘t) : Filter.Tendsto (fun t => (โˆ‘ s โˆˆ Finset.range t, โˆซ (x : โ„), id x โˆ‚ฮฝ (A s ฯ‰)) / โ†‘t) Filter.atTop (nhds (โจ† a, โˆซ (x : โ„), id x โˆ‚ฮฝ a))
Bandits.avg_mean_reward_tendsto_of_sublinear_regret.{u_1, u_2} {๐“ : Type u_1} {ฮฉ : Type u_2} {m๐“ : MeasurableSpace ๐“} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} {A : โ„• โ†’ ฮฉ โ†’ ๐“} {ฯ‰ : ฮฉ} (hr : (fun x => regret ฮฝ A x ฯ‰) =o[Filter.atTop] fun t => โ†‘t) : Filter.Tendsto (fun t => (โˆ‘ s โˆˆ Finset.range t, โˆซ (x : โ„), id x โˆ‚ฮฝ (A s ฯ‰)) / โ†‘t) Filter.atTop (nhds (โจ† a, โˆซ (x : โ„), id x โˆ‚ฮฝ a))

Code

lemma avg_mean_reward_tendsto_of_sublinear_regret
    (hr : (regret ฮฝ A ยท ฯ‰) =o[atTop] fun t โ†ฆ (t : โ„)) :
    Tendsto (fun t โ†ฆ (โˆ‘ s โˆˆ range t, (ฮฝ (A s ฯ‰))[id]) / (t : โ„))
      atTop (nhds (โจ† a, (ฮฝ a)[id]))
Proof
by
  have ht : Tendsto (fun t โ†ฆ (โจ† a, (ฮฝ a)[id]) - regret ฮฝ A t ฯ‰ / t)
      atTop (nhds (โจ† a, (ฮฝ a)[id])) := by
    simpa using tendsto_const_nhds.sub hr.tendsto_div_nhds_zero
  apply ht.congr'
  filter_upwards [eventually_ne_atTop 0] with t ht
  rw [regret]
  field_simp
  ring

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: 1 project declarations, 41 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.