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.OnlineNoRegretSemantics

Generated source map for this Lean module.

Module map

Declarations
12
Placeholders
0

Imports

BanditRLProof.OnlineLearningAsymptotic

Imported by

BanditRLProof, BanditRLProof.OnlineFTLLimitSemantics

Declarations

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

def BanditRL.OnlineLearning.LimitNoRegret Compiled

Literal ordinary-real-limit reading, kept separate from the shared upper condition.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.LimitNoRegret

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

def LimitNoRegret {X : Type*} (V : Set X) (loss : ℕ → X → ℝ)
    (prediction : ℕ → X) : Prop :=
  ∀ u ∈ V, ∃ a : ℝ, a ≤ 0 ∧
    Tendsto (fun T : ℕ => comparatorRegret loss prediction u T / T) atTop (nhds a)
theorem BanditRL.OnlineLearning.noRegret_limit_nonpos Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.noRegret_limit_nonpos

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

theorem noRegret_limit_nonpos {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (hNR : NoRegret V loss prediction) (u : X) (hu : u ∈ V) (a : ℝ) (hl : Tendsto (fun T : ℕ => comparatorRegret loss prediction u T / T) atTop (nhds a)) : a ≤ 0
theorem BanditRL.OnlineLearning.limitNoRegret_implies_noRegret Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.limitNoRegret_implies_noRegret

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

theorem limitNoRegret_implies_noRegret {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (hL : LimitNoRegret V loss prediction) : NoRegret V loss prediction
theorem BanditRL.OnlineLearning.limitNoRegret_iff_noRegret_of_converges Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.limitNoRegret_iff_noRegret_of_converges

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

theorem limitNoRegret_iff_noRegret_of_converges {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (hc : ∀ u ∈ V, ∃ a : ℝ, Tendsto (fun T : ℕ => comparatorRegret loss prediction u T / T) atTop (nhds a)) : LimitNoRegret V loss prediction ↔ NoRegret V loss prediction
def BanditRL.OnlineLearning.NoRegretCounterexample.potential Compiled

A nonnegative horizon potential with alternating normalized values.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.potential

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

noncomputable def potential (T : ℕ) : ℝ :=
  if T % 2 = 0 then (T : ℝ) else 0
def BanditRL.OnlineLearning.NoRegretCounterexample.loss Compiled

Actual exogenous real affine losses; no horizon-dependent learner.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.loss

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

noncomputable def loss (t : ℕ) (x : ℝ) : ℝ :=
  (potential (t + 1) - potential t) * x
theorem BanditRL.OnlineLearning.NoRegretCounterexample.regret_eq Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.regret_eq

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

theorem regret_eq (T : ℕ) (u : ℝ) : comparatorRegret loss (fun _ => 0) u T = -potential T * u
theorem BanditRL.OnlineLearning.NoRegretCounterexample.noRegret Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.noRegret

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

theorem noRegret : NoRegret (Set.Icc (0 : ℝ) 1) loss (fun _ => 0)
theorem BanditRL.OnlineLearning.NoRegretCounterexample.normalized_even Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.normalized_even

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

theorem normalized_even (n : ℕ) : comparatorRegret loss (fun _ => 0) 1 (2 * (n + 1)) / ((2 * (n + 1) : ℕ) : ℝ) = -1
theorem BanditRL.OnlineLearning.NoRegretCounterexample.normalized_odd Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.normalized_odd

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

theorem normalized_odd (n : ℕ) : comparatorRegret loss (fun _ => 0) 1 (2 * n + 1) / ((2 * n + 1 : ℕ) : ℝ) = 0
theorem BanditRL.OnlineLearning.NoRegretCounterexample.no_limit Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.no_limit

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

theorem no_limit : ¬ ∃ a : ℝ, Tendsto (fun T : ℕ => comparatorRegret loss (fun _ => 0) 1 T / T) atTop (nhds a)
theorem BanditRL.OnlineLearning.NoRegretCounterexample.strict_separation Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.NoRegretCounterexample.strict_separation

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

theorem strict_separation : NoRegret (Set.Icc (0 : ℝ) 1) loss (fun _ => 0) ∧ ¬ LimitNoRegret (Set.Icc (0 : ℝ) 1) loss (fun _ => 0)