Lean module · Online foundations
BanditRLProof.OnlineGuessingLogLower
Constructive derived support for Orabona v10 Chapter 1, printed p4/PDF p16: logarithmic dependence of guessing regret is unavoidable. The source explicitly does not prove minimax optimality there; H(T+1)/6 and log(T+2)/6 are derived here, not source-printed or sharp constants. Loss is squared error without a half factor. The terminal chooses one fixed binary path outside the independent seed integral. It applies at positive horizons to measurable, pointwise [0,1]-valued history policies. All law masses, moments, same-path causal loss and comparator minimum are produced.
Module map
Imports
BanditRLProof.OnlineLearningMean, BanditRLProof.OnlineLearningRegret, BanditRLProof.Exp3ConditionalMoments
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.GuessingLower.polyaNext
Compiled
History is newest-first: adding b records the next revealed bit after the prediction.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.polyaNextReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def polyaNext (h : List Bool) : ℝ :=
((h.count true : ℝ) + 1) / ((h.length : ℝ) + 2)
def
BanditRL.OnlineLearning.GuessingLower.pathWeight
Compiled
Actual recursively generated path mass; it does not depend on a learner or seed.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.pathWeightReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def pathWeight (h : List Bool) : ℝ :=
match h with
| [] => 1
| b :: past => pathWeight past * (if b then polyaNext past else 1 - polyaNext past)
def
BanditRL.OnlineLearning.GuessingLower.binaryStream
Compiled
Convert newest-first finite history into chronological labels, padded by false after its end.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.binaryStreamReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def binaryStream (h : List Bool) (t : ℕ) : Bool :=
(h.reverse[t]?).getD false
def
BanditRL.OnlineLearning.GuessingLower.binaryValues
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.GuessingLower.binaryValuesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def binaryValues (h : List Bool) (t : ℕ) : ℝ :=
if binaryStream h t then 1 else 0
def
BanditRL.OnlineLearning.GuessingLower.causalPredict
Compiled
One policy of strict-past labels; no current label or future sequence is passed to A.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.causalPredictReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def causalPredict (A : List Bool → ℝ) (y : ℕ → Bool) (t : ℕ) : ℝ :=
A (List.ofFn (fun i : Fin t => y i)).reverse
def
BanditRL.OnlineLearning.GuessingLower.pathRegret
Compiled
Actual shared comparator regret against the feasible empirical-mean hindsight minimizer.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.pathRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def pathRegret (A : List Bool → ℝ) (h : List Bool) : ℝ :=
comparatorRegret (fun t x => (x - binaryValues h t)^2)
(causalPredict A (binaryStream h)) (empiricalMean (binaryValues h) h.length) h.length
def
BanditRL.OnlineLearning.GuessingLower.pathExpectation
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.GuessingLower.pathExpectationReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def pathExpectation (T : ℕ) (f : List Bool → ℝ) : ℝ :=
∑ v : List.Vector Bool T, pathWeight v.toList * f v.toList
def
BanditRL.OnlineLearning.GuessingLower.prefixMeasure
Compiled
Same finite-action Dirac law as the shared Bandit library, instantiated at binary histories.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.prefixMeasureReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def prefixMeasure (T : ℕ) [MeasurableSpace (List.Vector Bool T)] :
Measure (List.Vector Bool T) :=
BanditRLProof.Exp3.finiteActionMeasure univ (fun v => pathWeight v.toList)
theorem
BanditRL.OnlineLearning.GuessingLower.probability_mem
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.GuessingLower.probability_memReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem probability_mem (h : List Bool) : polyaNext h ∈ Ioo (0 : ℝ) 1
theorem
BanditRL.OnlineLearning.GuessingLower.branch_mass
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.GuessingLower.branch_massReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem branch_mass (h : List Bool) : pathWeight (false :: h) + pathWeight (true :: h) = pathWeight h
theorem
BanditRL.OnlineLearning.GuessingLower.pathWeight_nonneg
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.GuessingLower.pathWeight_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathWeight_nonneg (h : List Bool) : 0 ≤ pathWeight h
def
BanditRL.OnlineLearning.GuessingLower.vectorConsEquiv
Compiled Internal helper
Split all newest-first histories into the next bit and the prior history.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.vectorConsEquivReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
private def vectorConsEquiv (T : ℕ) : Bool × List.Vector Bool T ≃ List.Vector Bool (T + 1) where
theorem
BanditRL.OnlineLearning.GuessingLower.sum_vectors_succ
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.GuessingLower.sum_vectors_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sum_vectors_succ (T : ℕ) (f : List Bool → ℝ) : (∑ v : List.Vector Bool (T + 1), f v.toList) = ∑ v : List.Vector Bool T, (f (false :: v.toList) + f (true :: v.toList))
theorem
BanditRL.OnlineLearning.GuessingLower.prefix_mass_one
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.GuessingLower.prefix_mass_oneReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem prefix_mass_one (T : ℕ) : (∑ v : List.Vector Bool T, pathWeight v.toList) = 1
theorem
BanditRL.OnlineLearning.GuessingLower.prefix_distribution
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.GuessingLower.prefix_distributionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem prefix_distribution (T : ℕ) : BanditRLProof.Exp3.FiniteActionDistribution (univ : Finset (List.Vector Bool T)) (fun v => pathWeight v.toList)
theorem
BanditRL.OnlineLearning.GuessingLower.prefixMeasure_probability
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.GuessingLower.prefixMeasure_probabilityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem prefixMeasure_probability (T : ℕ) [MeasurableSpace (List.Vector Bool T)] [MeasurableSingletonClass (List.Vector Bool T)] : IsProbabilityMeasure (prefixMeasure T)
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_integral
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.GuessingLower.pathExpectation_integralReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_integral (T : ℕ) [MeasurableSpace (List.Vector Bool T)] [MeasurableSingletonClass (List.Vector Bool T)] (f : List Bool → ℝ) : (∫ v, f v.toList ∂prefixMeasure T) = pathExpectation T f
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_congr
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.GuessingLower.pathExpectation_congrReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_congr (T : ℕ) (f g : List Bool → ℝ) (hfg : ∀ h, h.length = T → f h = g h) : pathExpectation T f = pathExpectation T g
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_const
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.GuessingLower.pathExpectation_constReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_const (T : ℕ) (c : ℝ) : pathExpectation T (fun _ => c) = c
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_add
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.GuessingLower.pathExpectation_addReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_add (T : ℕ) (f g : List Bool → ℝ) : pathExpectation T (fun h => f h + g h) = pathExpectation T f + pathExpectation T g
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_sub
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.GuessingLower.pathExpectation_subReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_sub (T : ℕ) (f g : List Bool → ℝ) : pathExpectation T (fun h => f h - g h) = pathExpectation T f - pathExpectation T g
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_const_mul
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.GuessingLower.pathExpectation_const_mulReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_const_mul (T : ℕ) (c : ℝ) (f : List Bool → ℝ) : pathExpectation T (fun h => c * f h) = c * pathExpectation T f
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_div
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.GuessingLower.pathExpectation_divReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_div (T : ℕ) (f : List Bool → ℝ) (c : ℝ) : pathExpectation T (fun h => f h / c) = pathExpectation T f / c
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_succ
Compiled
Actual successor expectation under the recursively generated branch masses.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.pathExpectation_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_succ (T : ℕ) (f : List Bool → ℝ) : pathExpectation (T + 1) f = pathExpectation T (fun h => (1 - polyaNext h) * f (false :: h) + polyaNext h * f (true :: h))
theorem
BanditRL.OnlineLearning.GuessingLower.heads_succ
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.GuessingLower.heads_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem heads_succ (T : ℕ) : pathExpectation (T + 1) (fun h => (h.count true : ℝ)) = pathExpectation T (fun h => (h.count true : ℝ)) + (pathExpectation T (fun h => (h.count true : ℝ)) + 1) / ((T : ℝ) + 2)
theorem
BanditRL.OnlineLearning.GuessingLower.heads_sq_succ
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.GuessingLower.heads_sq_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem heads_sq_succ (T : ℕ) : pathExpectation (T + 1) (fun h => (h.count true : ℝ)^2) = pathExpectation T (fun h => (h.count true : ℝ)^2) + (2 * pathExpectation T (fun h => (h.count true : ℝ)^2) + 3 * pathExpectation T (fun h => (h.count true : ℝ)) + 1) / ((T : ℝ) + 2)
theorem
BanditRL.OnlineLearning.GuessingLower.expected_heads
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.GuessingLower.expected_headsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_heads (T : ℕ) : pathExpectation T (fun h => (h.count true : ℝ)) = (T : ℝ) / 2
theorem
BanditRL.OnlineLearning.GuessingLower.expected_heads_sq
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.GuessingLower.expected_heads_sqReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_heads_sq (T : ℕ) : pathExpectation T (fun h => (h.count true : ℝ)^2) = (T : ℝ) * (2 * (T : ℝ) + 1) / 6
theorem
BanditRL.OnlineLearning.GuessingLower.expected_next_variance
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.GuessingLower.expected_next_varianceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_next_variance (T : ℕ) : pathExpectation T (fun h => polyaNext h * (1 - polyaNext h)) = ((T : ℝ) + 3) / (6 * ((T : ℝ) + 2))
theorem
BanditRL.OnlineLearning.GuessingLower.causalPredict_prefix
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.GuessingLower.causalPredict_prefixReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem causalPredict_prefix (A : List Bool → ℝ) (y z : ℕ → Bool) (t : ℕ) (hpast : ∀ i < t, y i = z i) : causalPredict A y t = causalPredict A z t
theorem
BanditRL.OnlineLearning.GuessingLower.binary_mean_minimizer
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.GuessingLower.binary_mean_minimizerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem binary_mean_minimizer (h : List Bool) (hpos : 0 < h.length) : empiricalMean (binaryValues h) h.length ∈ Icc (0 : ℝ) 1 ∧ ∀ u ∈ Icc (0 : ℝ) 1, (∑ t ∈ range h.length, (empiricalMean (binaryValues h) h.length - binaryValues h t)^2) ≤ ∑ t ∈ range h.length, (u - binaryValues h t)^2
theorem
BanditRL.OnlineLearning.GuessingLower.conditional_square_lower
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.GuessingLower.conditional_square_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem conditional_square_lower (h : List Bool) (x : ℝ) : polyaNext h * (1 - polyaNext h) ≤ (1 - polyaNext h) * x^2 + polyaNext h * (x - 1)^2
theorem
BanditRL.OnlineLearning.GuessingLower.binaryStream_cons_prefix
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.GuessingLower.binaryStream_cons_prefixReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem binaryStream_cons_prefix (b : Bool) (h : List Bool) (t : ℕ) (ht : t < h.length) : binaryStream (b :: h) t = binaryStream h t
theorem
BanditRL.OnlineLearning.GuessingLower.binaryStream_cons_last
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.GuessingLower.binaryStream_cons_lastReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem binaryStream_cons_last (b : Bool) (h : List Bool) : binaryStream (b :: h) h.length = b
theorem
BanditRL.OnlineLearning.GuessingLower.binaryValues_cons_prefix
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.GuessingLower.binaryValues_cons_prefixReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem binaryValues_cons_prefix (b : Bool) (h : List Bool) (t : ℕ) (ht : t < h.length) : binaryValues (b :: h) t = binaryValues h t
theorem
BanditRL.OnlineLearning.GuessingLower.causalPredict_history
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.GuessingLower.causalPredict_historyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem causalPredict_history (A : List Bool → ℝ) (h : List Bool) : causalPredict A (binaryStream h) h.length = A h
theorem
BanditRL.OnlineLearning.GuessingLower.causalPredict_cons_last
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.GuessingLower.causalPredict_cons_lastReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem causalPredict_cons_last (A : List Bool → ℝ) (b : Bool) (h : List Bool) : causalPredict A (binaryStream (b :: h)) h.length = A h
def
BanditRL.OnlineLearning.GuessingLower.pathLearnerLoss
Compiled
Source cumulative learner squared loss on exactly the decoded path.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.pathLearnerLossReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def pathLearnerLoss (A : List Bool → ℝ) (h : List Bool) : ℝ :=
∑ t ∈ range h.length, (causalPredict A (binaryStream h) t - binaryValues h t)^2
def
BanditRL.OnlineLearning.GuessingLower.pathBestLoss
Compiled
Source best fixed squared loss, at the actual shared empirical-mean minimizer.
Used in these reading views: Online Learning Book
Online Learning: foundations and Follow-the-Leader
Canonical node identity
declaration:BanditRL.OnlineLearning.GuessingLower.pathBestLossReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def pathBestLoss (h : List Bool) : ℝ :=
∑ t ∈ range h.length, (empiricalMean (binaryValues h) h.length - binaryValues h t)^2
theorem
BanditRL.OnlineLearning.GuessingLower.pathRegret_eq_losses
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.GuessingLower.pathRegret_eq_lossesReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathRegret_eq_losses (A : List Bool → ℝ) (h : List Bool) : pathRegret A h = pathLearnerLoss A h - pathBestLoss h
theorem
BanditRL.OnlineLearning.GuessingLower.pathLearnerLoss_cons
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.GuessingLower.pathLearnerLoss_consReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathLearnerLoss_cons (A : List Bool → ℝ) (b : Bool) (h : List Bool) : pathLearnerLoss A (b :: h) = pathLearnerLoss A h + (A h - if b then 1 else 0)^2
theorem
BanditRL.OnlineLearning.GuessingLower.binaryValues_sum
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.GuessingLower.binaryValues_sumReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem binaryValues_sum (h : List Bool) : (∑ t ∈ range h.length, binaryValues h t) = (h.count true : ℝ)
theorem
BanditRL.OnlineLearning.GuessingLower.binaryValues_sq
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.GuessingLower.binaryValues_sqReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem binaryValues_sq (h : List Bool) (t : ℕ) : (binaryValues h t)^2 = binaryValues h t
theorem
BanditRL.OnlineLearning.GuessingLower.pathBestLoss_count
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.GuessingLower.pathBestLoss_countReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathBestLoss_count (h : List Bool) (hpos : 0 < h.length) : pathBestLoss h = (h.count true : ℝ) - (h.count true : ℝ)^2 / (h.length : ℝ)
theorem
BanditRL.OnlineLearning.GuessingLower.expected_pathBestLoss
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.GuessingLower.expected_pathBestLossReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_pathBestLoss (T : ℕ) (hT : 0 < T) : pathExpectation T pathBestLoss = ((T : ℝ) - 1) / 6
theorem
BanditRL.OnlineLearning.GuessingLower.pathExpectation_mono
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.GuessingLower.pathExpectation_monoReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathExpectation_mono (T : ℕ) (f g : List Bool → ℝ) (hfg : ∀ h, h.length = T → f h ≤ g h) : pathExpectation T f ≤ pathExpectation T g
theorem
BanditRL.OnlineLearning.GuessingLower.expected_pathLearnerLoss_succ
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.GuessingLower.expected_pathLearnerLoss_succReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_pathLearnerLoss_succ (A : List Bool → ℝ) (T : ℕ) : pathExpectation (T + 1) (pathLearnerLoss A) = pathExpectation T (pathLearnerLoss A) + pathExpectation T (fun h => (1 - polyaNext h) * (A h)^2 + polyaNext h * (A h - 1)^2)
theorem
BanditRL.OnlineLearning.GuessingLower.expected_pathLearnerLoss_step
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.GuessingLower.expected_pathLearnerLoss_stepReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_pathLearnerLoss_step (A : List Bool → ℝ) (T : ℕ) : pathExpectation T (pathLearnerLoss A) + ((T : ℝ) + 3) / (6 * ((T : ℝ) + 2)) ≤ pathExpectation (T + 1) (pathLearnerLoss A)
theorem
BanditRL.OnlineLearning.GuessingLower.variance_sum
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.GuessingLower.variance_sumReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem variance_sum (T : ℕ) : (∑ t ∈ range T, ((t : ℝ) + 3) / (6 * ((t : ℝ) + 2))) = (T : ℝ) / 6 + ((harmonic (T + 1) : ℝ) - 1) / 6
theorem
BanditRL.OnlineLearning.GuessingLower.expected_pathLearnerLoss_lower
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.GuessingLower.expected_pathLearnerLoss_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_pathLearnerLoss_lower (A : List Bool → ℝ) (T : ℕ) : (∑ t ∈ range T, ((t : ℝ) + 3) / (6 * ((t : ℝ) + 2))) ≤ pathExpectation T (pathLearnerLoss A)
theorem
BanditRL.OnlineLearning.GuessingLower.expected_pathRegret_lower
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.GuessingLower.expected_pathRegret_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_pathRegret_lower (A : List Bool → ℝ) (T : ℕ) (hT : 0 < T) : (harmonic (T + 1) : ℝ) / 6 ≤ pathExpectation T (pathRegret A)
theorem
BanditRL.OnlineLearning.GuessingLower.pathWeight_pos
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.GuessingLower.pathWeight_posReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathWeight_pos (h : List Bool) : 0 < pathWeight h
theorem
BanditRL.OnlineLearning.GuessingLower.square_loss_mem
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.GuessingLower.square_loss_memReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem square_loss_mem (x y : ℝ) (hx : x ∈ Icc (0 : ℝ) 1) (hy : y ∈ Icc (0 : ℝ) 1) : (x - y)^2 ∈ Icc (0 : ℝ) 1
theorem
BanditRL.OnlineLearning.GuessingLower.square_loss_sum_mem
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.GuessingLower.square_loss_sum_memReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem square_loss_sum_mem (T : ℕ) (p y : ℕ → ℝ) (hp : ∀ t < T, p t ∈ Icc (0 : ℝ) 1) (hy : ∀ t < T, y t ∈ Icc (0 : ℝ) 1) : (∑ t ∈ range T, (p t - y t)^2) ∈ Icc (0 : ℝ) T
theorem
BanditRL.OnlineLearning.GuessingLower.pathRegret_abs_le
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.GuessingLower.pathRegret_abs_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathRegret_abs_le (A : List Bool → ℝ) (h : List Bool) (hbound : ∀ k, A k ∈ Icc (0 : ℝ) 1) : |pathRegret A h| ≤ (h.length : ℝ)
theorem
BanditRL.OnlineLearning.GuessingLower.pathRegret_measurable
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.GuessingLower.pathRegret_measurableReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathRegret_measurable {Ω : Type*} [MeasurableSpace Ω] (A : Ω → List Bool → ℝ) (hA : ∀ h, Measurable (fun ω => A ω h)) (h : List Bool) : Measurable (fun ω => pathRegret (A ω) h)
theorem
BanditRL.OnlineLearning.GuessingLower.pathRegret_integrable
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.GuessingLower.pathRegret_integrableReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem pathRegret_integrable {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (A : Ω → List Bool → ℝ) (hA : ∀ h, Measurable (fun ω => A ω h)) (hbound : ∀ ω h, A ω h ∈ Icc (0 : ℝ) 1) (h : List Bool) : Integrable (fun ω => pathRegret (A ω) h) μ
theorem
BanditRL.OnlineLearning.GuessingLower.randomized_harmonic_lower
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.GuessingLower.randomized_harmonic_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem randomized_harmonic_lower {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (A : Ω → List Bool → ℝ) (hA : ∀ h, Measurable (fun ω => A ω h)) (hbound : ∀ ω h, A ω h ∈ Icc (0 : ℝ) 1) (T : ℕ) (hT : 0 < T) : ∃ v : List.Vector Bool T, (harmonic (T + 1) : ℝ) / 6 ≤ ∫ ω, pathRegret (A ω) v.toList ∂μ
theorem
BanditRL.OnlineLearning.GuessingLower.randomized_log_lower
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.GuessingLower.randomized_log_lowerReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem randomized_log_lower {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (A : Ω → List Bool → ℝ) (hA : ∀ h, Measurable (fun ω => A ω h)) (hbound : ∀ ω h, A ω h ∈ Icc (0 : ℝ) 1) (T : ℕ) (hT : 0 < T) : ∃ v : List.Vector Bool T, Real.log ((T : ℝ) + 2) / 6 ≤ ∫ ω, pathRegret (A ω) v.toList ∂μ