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

Generated source map for this Lean module.

Module map

Declarations
7
Placeholders
0

Imports

BanditRLProof.OnlineLearningFTL, BanditRLProof.OnlineLearningRegret

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

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

noncomputable def squaredBestRegret (y prediction : ℕ → ℝ) (T : ℕ) : ℝ :=
  (∑ t ∈ Finset.range T, (prediction t - y t)^2) -
    sInf ((fun u : ℝ => ∑ t ∈ Finset.range T, (u - y t)^2) ''
      Set.Icc (0 : ℝ) 1)
theorem BanditRL.OnlineLearning.guessing_prefix_minimum Compiled

Produced feasible minimum; T0 is the empty-prefix convention, not uniqueness.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.guessing_prefix_minimum

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

theorem guessing_prefix_minimum (y : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : empiricalMean y T ∈ Set.Icc (0 : ℝ) 1 ∧ ∀ u ∈ Set.Icc (0 : ℝ) 1, (∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2) ≤ ∑ t ∈ Finset.range T, (u - y t)^2
theorem BanditRL.OnlineLearning.squaredLoss_minimum_eq Compiled

The actual least element is in the interval-loss image; no minimizer is assumed.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.squaredLoss_minimum_eq

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

theorem squaredLoss_minimum_eq (y : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : sInf ((fun u : ℝ => ∑ t ∈ Finset.range T, (u - y t)^2) '' Set.Icc (0 : ℝ) 1) = ∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2
theorem BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret Compiled

Signed pathwise minimum regret equals regret at the produced empirical mean.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret

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

theorem squaredBestRegret_eq_comparatorRegret (y prediction : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y prediction T = comparatorRegret (fun t x => (x - y t)^2) prediction (empiricalMean y T) T
theorem BanditRL.OnlineLearning.comparatorRegret_le_squaredBestRegret Compiled

Any feasible fixed comparator gives regret at most the same-horizon minimum regret.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.comparatorRegret_le_squaredBestRegret

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

theorem comparatorRegret_le_squaredBestRegret (y prediction : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) (u : ℝ) (hu : u ∈ Set.Icc (0 : ℝ) 1) : comparatorRegret (fun t x => (x - y t)^2) prediction u T ≤ squaredBestRegret y prediction T
theorem BanditRL.OnlineLearning.meanPredict_bestRegret_bound Compiled

Orabona v10 Theorem 1.3, now expressed against the actual interval minimum.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.meanPredict_bestRegret_bound

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

theorem meanPredict_bestRegret_bound (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y (meanPredict y) T ≤ 4 + 4 * Real.log T
theorem BanditRL.OnlineLearning.meanPredict_bestRegret_refined Compiled

Printed p5 intermediate bound: initial half and source rounds 2..T preserved.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.meanPredict_bestRegret_refined

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

theorem meanPredict_bestRegret_refined (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y (meanPredict y) T ≤ (1 : ℝ) / 4 + ∑ t ∈ Finset.range (T - 1), 4 / ((t : ℝ) + 2)