Lean module · Online foundations
BanditRLProof.OnlineFTLOscillation
Generated source map for this Lean module.
Module map
Imports
BanditRLProof.OnlineFTLLimitSemantics
Imported by
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRL.OnlineLearning.dyadicObservation
Compiled
Explicit binary dyadic-block observations, independent of the learner and horizon.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.dyadicObservationReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def dyadicObservation : ℕ → ℝ
| 0 => 0
| n + 1 => 1 - dyadicObservation (n / 2)
termination_by n => n
decreasing_by omega
theorem
BanditRL.OnlineLearning.meanPredict_limitNoRegret_iff_mean_converges
Compiled
Derived literal-limit criterion for the actual bounded squared-loss FTL.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.meanPredict_limitNoRegret_iff_mean_convergesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem meanPredict_limitNoRegret_iff_mean_converges (y : ℕ → ℝ) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) : LimitNoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - y t)^2) (meanPredict y) ↔ ∃ m ∈ Set.Icc (0 : ℝ) 1, Tendsto (empiricalMean y) atTop (nhds m)
theorem
BanditRL.OnlineLearning.dyadicObservation_binary
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadicObservation_binaryReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadicObservation_binary (t : ℕ) : dyadicObservation t = 0 ∨ dyadicObservation t = 1
theorem
BanditRL.OnlineLearning.dyadicObservation_unit
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 identity
declaration:BanditRL.OnlineLearning.dyadicObservation_unitReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem dyadicObservation_unit : ∀ t, dyadicObservation t ∈ Set.Icc (0 : ℝ) 1
theorem
BanditRL.OnlineLearning.dyadic_pair
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_pairReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_pair (k : ℕ) : dyadicObservation (2*k+1) = 1 - dyadicObservation k ∧ dyadicObservation (2*k+2) = 1 - dyadicObservation k
theorem
BanditRL.OnlineLearning.dyadic_prefix_pair
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_prefix_pairReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_prefix_pair (n : ℕ) : (∑ t ∈ Finset.range (2*n+1), dyadicObservation t) = 2*(n : ℝ) - 2*(∑ t ∈ Finset.range n, dyadicObservation t)
theorem
BanditRL.OnlineLearning.dyadic_high_count
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_high_countReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_high_count (n : ℕ) : (∑ t ∈ Finset.range (4^n-1), dyadicObservation t) = ((2 : ℝ)/3) * ((4 : ℝ)^n - 1)
theorem
BanditRL.OnlineLearning.dyadic_low_count
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_low_countReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_low_count (n : ℕ) : (∑ t ∈ Finset.range (2*4^n-1), dyadicObservation t) = ((2 : ℝ)/3) * ((4 : ℝ)^n - 1)
theorem
BanditRL.OnlineLearning.dyadic_high_mean
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_high_meanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_high_mean (n : ℕ) : empiricalMean dyadicObservation (4^(n+1)-1) = (2 : ℝ)/3
theorem
BanditRL.OnlineLearning.dyadic_low_mean
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_low_meanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_low_mean (n : ℕ) : empiricalMean dyadicObservation (2*4^n-1) = (1 : ℝ)/3 - ((1 : ℝ)/3) / ((2*4^n-1 : ℕ) : ℝ)
theorem
BanditRL.OnlineLearning.dyadic_horizons_tendsto
Compiled Internal helper
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 identity
declaration:BanditRL.OnlineLearning.dyadic_horizons_tendstoReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private theorem dyadic_horizons_tendsto : Tendsto (fun n : ℕ => 4^(n+1)-1) atTop atTop ∧ Tendsto (fun n : ℕ => 2*4^n-1) atTop atTop
theorem
BanditRL.OnlineLearning.dyadic_empiricalMean_subsequences
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 identity
declaration:BanditRL.OnlineLearning.dyadic_empiricalMean_subsequencesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem dyadic_empiricalMean_subsequences : Tendsto (fun n : ℕ => empiricalMean dyadicObservation (4^(n + 1) - 1)) atTop (nhds ((2 : ℝ) / 3)) ∧ Tendsto (fun n : ℕ => empiricalMean dyadicObservation (2 * 4^n - 1)) atTop (nhds ((1 : ℝ) / 3))
theorem
BanditRL.OnlineLearning.dyadic_meanPredict_obstruction
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 identity
declaration:BanditRL.OnlineLearning.dyadic_meanPredict_obstructionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem dyadic_meanPredict_obstruction : NoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - dyadicObservation t)^2) (meanPredict dyadicObservation) ∧ Tendsto (fun T : ℕ => squaredBestRegret dyadicObservation (meanPredict dyadicObservation) T / (T : ℝ)) atTop (nhds (0 : ℝ)) ∧ (¬ ∃ a : ℝ, Tendsto (fun T : ℕ => comparatorRegret (fun t x => (x - dyadicObservation t)^2) (meanPredict dyadicObservation) 0 T / (T : ℝ)) atTop (nhds a)) ∧ ¬ LimitNoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - dyadicObservation t)^2) (meanPredict dyadicObservation)