BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.

Lean module · Online foundations

BanditRLProof.OnlineLearningRegret

Source: Orabona, arXiv:1912.13213v10 (21 June 2026), Chapter 1, printed page 2 / PDF page 14, comparator-regret definition, Remark 1.1, and footnote 1. Source round t + 1 is Lean index t.

Module map

Declarations
4
Placeholders
0

Imports

No project-local imports.

Imported by

BanditRLProof, BanditRLProof.OnlineGuessingLogLower, BanditRLProof.OnlineLearningAsymptotic, BanditRLProof.OnlineLinearization, BanditRLProof.OnlineSquareMinimum

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

def BanditRL.OnlineLearning.comparatorRegret Compiled

Comparator is an evaluation parameter, separate from the prediction sequence.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.comparatorRegret

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def comparatorRegret {X : Type*} (loss : ℕ → X → ℝ)
    (prediction : ℕ → X) (u : X) (T : ℕ) : ℝ :=
  (∑ t ∈ Finset.range T, loss t (prediction t)) - ∑ t ∈ Finset.range T, loss t u
def BanditRL.OnlineLearning.NoRegret Compiled

Upper sublinear regret. This does not require nonnegative regret or existence of its limit.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegret

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def NoRegret {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) : Prop :=
  ∀ u ∈ V, ∀ ε : ℝ, 0 < ε → ∀ᶠ T in atTop,
    comparatorRegret loss prediction u T / T ≤ ε
theorem BanditRL.OnlineLearning.comparatorRegret_eq_sum Compiled

The sum-of-differences form agrees exactly with the source's difference of sums.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.comparatorRegret_eq_sum

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem comparatorRegret_eq_sum {X : Type*} (loss : ℕ → X → ℝ) (prediction : ℕ → X) (u : X) (T : ℕ) : comparatorRegret loss prediction u T = ∑ t ∈ Finset.range T, (loss t (prediction t) - loss t u)
theorem BanditRL.OnlineLearning.noRegret_of_vanishing_bound Compiled

Any comparator-wise vanishing upper bound certifies no-regret.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.noRegret_of_vanishing_bound

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem noRegret_of_vanishing_bound {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (bound : X → ℕ → ℝ) (hb : ∀ u ∈ V, ∀ᶠ T in atTop, comparatorRegret loss prediction u T / T ≤ bound u T) (hl : ∀ u ∈ V, Tendsto (bound u) atTop (nhds 0)) : NoRegret V loss prediction