Lean module · Online foundations
BanditRLProof.OnlineLearningFTL
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.OnlineLearningFoundations, BanditRLProof.OnlineLearningMean
Imported by
BanditRLProof, BanditRLProof.OnlineFTLFailure, BanditRLProof.OnlineGuessingComparison, BanditRLProof.OnlineLearningAsymptotic, BanditRLProof.OnlineLearningFTLState, BanditRLProof.OnlineLearningInformation, 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.meanPredict
Compiled
Source round t+1 prediction: initial 1/2, then the mean of exactly t past observations.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredictReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def meanPredict (y : ℕ → ℝ) (t : ℕ) : ℝ :=
if t = 0 then 1/2 else empiricalMean y t
theorem
BanditRL.OnlineLearning.meanPredict_prefix
Compiled
Strict-prefix causality, including the fixed initial prediction.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredict_prefixReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem meanPredict_prefix (y z : ℕ → ℝ) (t : ℕ) (h : ∀ i < t, y i = z i) : meanPredict y t = meanPredict z t
theorem
BanditRL.OnlineLearning.meanPredict_mem
Compiled
The actual prediction is feasible.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredict_memReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem meanPredict_mem (y : ℕ → ℝ) (t : ℕ) (hy : ∀ i < t, y i ∈ Set.Icc (0 : ℝ) 1) : meanPredict y t ∈ Set.Icc (0 : ℝ) 1
theorem
BanditRL.OnlineLearning.empiricalMean_update
Compiled
Updating the sufficient statistic adds only the current observation.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.empiricalMean_updateReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem empiricalMean_update (y : ℕ → ℝ) (t : ℕ) (ht : 0 < t) : empiricalMean y (t+1) = empiricalMean y t + (y t - empiricalMean y t) / (t+1)
theorem
BanditRL.OnlineLearning.meanPredict_stability
Compiled
Source stability bound, zero-based index; the special initial round is included.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredict_stabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem meanPredict_stability (y : ℕ → ℝ) (t : ℕ) (hy : ∀ i ≤ t, y i ∈ Set.Icc (0 : ℝ) 1) : (meanPredict y t - y t)^2 - (empiricalMean y (t+1) - y t)^2 ≤ 4 / (t+1)
theorem
BanditRL.OnlineLearning.theorem_1_3
Compiled
Orabona Theorem 1.3: actual past-average predictor versus the best fixed prediction, represented by its proved empirical-mean minimizer.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.theorem_1_3Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem theorem_1_3 (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : (∑ t ∈ Finset.range T, (meanPredict y t - y t)^2) - (∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2) ≤ 4 + 4 * Real.log T
theorem
BanditRL.OnlineLearning.meanPredict_initial_stability
Compiled
Orabona v10 Theorem 1.3 proof, printed p5: the initial stability term is at most 1/4.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredict_initial_stabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem meanPredict_initial_stability (y : ℕ → ℝ) (hy : y 0 ∈ Set.Icc (0 : ℝ) 1) : (meanPredict y 0 - y 0)^2 - (empiricalMean y 1 - y 0)^2 ≤ (1 : ℝ) / 4
theorem
BanditRL.OnlineLearning.meanPredict_regret_refined
Compiled
Orabona v10 Theorem 1.3 proof, printed p5: retain the sharp initial term and exact positive-round tail.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredict_regret_refinedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem meanPredict_regret_refined (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : (∑ t ∈ Finset.range T, (meanPredict y t - y t)^2) - (∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2) ≤ (1 : ℝ) / 4 + ∑ t ∈ Finset.range (T - 1), 4 / ((t : ℝ) + 2)