BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.

Lean module · Convex-to-linear reduction

BanditRLProof.OnlineLinearization

Orabona arXiv:1912.13213v10 Section 2.3, printed 22 / PDF 34. An exogenous deterministic learner reads only finite past vector feedback. The observed current loss supplies an actual support after the current output; that vector is appended to the same recursion. Reconstructed output history agrees with every played point. The linear comparator regret uses that same learner and generated vector sequence. A universal OLO guarantee is an input to performance transport; this module does not assert such a guarantee for an arbitrary learner. Played legality suffices for the ambient comparison; feasible/canonical adapte

Module map

Declarations
30
Placeholders
0

Imports

BanditRLProof.OnlineSubgradientPolicy, BanditRLProof.OnlineLearningRegret

Imported by

BanditRLProof

Declarations

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

abbrev BanditRL.OnlineLinearization.Domain Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.Domain

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

abbrev Domain
abbrev BanditRL.OnlineLinearization.LinearPolicy Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.LinearPolicy

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

abbrev LinearPolicy
abbrev BanditRL.OnlineLinearization.SupportPolicy Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.SupportPolicy

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

abbrev SupportPolicy
def BanditRL.OnlineLinearization.Feasible Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.Feasible

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

def Feasible (V : Domain (E := E)) (A : LinearPolicy (E := E)) : Prop
def BanditRL.OnlineLinearization.outputHistory Compiled

Reconstruct all outputs from a finite strict-past vector history.

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.outputHistory

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

def outputHistory (A : LinearPolicy (E := E)) {t : ℕ} (h : Fin t → E) : Fin (t + 1) → E
def BanditRL.OnlineLinearization.history Compiled

The current support is appended only after the current output has been made.

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.history

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

def history (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) : (t : ℕ) → Fin t → E
def BanditRL.OnlineLinearization.output Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.output

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

def output (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : E
def BanditRL.OnlineLinearization.selected Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.selected

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

def selected (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : E
def BanditRL.OnlineLinearization.LegalFeedback Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.LegalFeedback

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

def LegalFeedback (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) : Prop
def BanditRL.OnlineLinearization.linearRun Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.linearRun

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

def linearRun (A : LinearPolicy (E := E)) (g : ℕ → E) (t : ℕ) : E
def BanditRL.OnlineLinearization.linearLoss Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.linearLoss

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

def linearLoss (g x : E) : ℝ
def BanditRL.OnlineLinearization.regret Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.regret

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

def regret (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (u : E) (T : ℕ) : ℝ
theorem BanditRL.OnlineLinearization.outputHistory_last Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.outputHistory_last

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

theorem outputHistory_last (A : LinearPolicy (E := E)) (t : ℕ) (h : Fin t → E) : outputHistory A h (Fin.last t) = A t h
theorem BanditRL.OnlineLinearization.history_zero Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.history_zero

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

theorem history_zero (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) : history A loss p 0 = Fin.elim0
theorem BanditRL.OnlineLinearization.history_succ Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.history_succ

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

theorem history_succ (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : history A loss p (t + 1) = Fin.snoc (history A loss p t) (selected A loss p t)
theorem BanditRL.OnlineLinearization.history_castSucc Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.history_castSucc

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

theorem history_castSucc (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (i : Fin t) : history A loss p (t + 1) i.castSucc = history A loss p t i
theorem BanditRL.OnlineLinearization.history_selected Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.history_selected

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

theorem history_selected (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (i : Fin t) : history A loss p t i = selected A loss p i.val
theorem BanditRL.OnlineLinearization.output_linear_run Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.output_linear_run

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

theorem output_linear_run (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : output A loss p t = linearRun A (selected A loss p) t
theorem BanditRL.OnlineLinearization.outputHistory_played Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.outputHistory_played

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

theorem outputHistory_played (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (i : Fin (t + 1)) : outputHistory A (history A loss p t) i = output A loss p i.val
theorem BanditRL.OnlineLinearization.output_mem Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.output_mem

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

theorem output_mem (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : output A loss p t ∈ V.carrier
theorem BanditRL.OnlineLinearization.history_prefix Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.history_prefix

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

theorem history_prefix (A : LinearPolicy (E := E)) (loss loss' : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (hloss : ∀ s < t, loss s = loss' s) : history A loss p t = history A loss' p t
theorem BanditRL.OnlineLinearization.output_prefix Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.output_prefix

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

theorem output_prefix (A : LinearPolicy (E := E)) (loss loss' : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (hloss : ∀ s < t, loss s = loss' s) : output A loss p t = output A loss' p t
theorem BanditRL.OnlineLinearization.oracle_feedback Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.oracle_feedback

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

theorem oracle_feedback (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (hp : BanditRL.OnlineSubgradientPolicy.OracleLaw V p) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) : LegalFeedback A loss p T
theorem BanditRL.OnlineLinearization.canonical_feedback Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.canonical_feedback

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

theorem canonical_feedback (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) : LegalFeedback A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy T
theorem BanditRL.OnlineLinearization.trajectory_finite_loss Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.trajectory_finite_loss

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

theorem trajectory_finite_loss (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (t : ℕ) (ht : t < T) : loss t (output A loss p t) = ((loss t (output A loss p t)).toReal : EReal)
theorem BanditRL.OnlineLinearization.support_gap Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.support_gap

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

theorem support_gap (V : Domain (E := E)) (f : E → EReal) (hf : BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V f) (x g u : E) (hu : u ∈ V.carrier) (hg : g ∈ SourceSubdifferential f x) : (f x).toReal - (f u).toReal ≤ inner ℝ g (x - u)
theorem BanditRL.OnlineLinearization.linearLoss_gap Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.linearLoss_gap

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

theorem linearLoss_gap (g x u : E) : linearLoss g x - linearLoss g u = inner ℝ g (x - u)
theorem BanditRL.OnlineLinearization.regret_comparison Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.regret_comparison

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

theorem regret_comparison (V : Domain (E := E)) (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback A loss p T) (u : E) (hu : u ∈ V.carrier) : regret A loss p u T ≤ BanditRL.OnlineLearning.comparatorRegret (fun t => linearLoss (selected A loss p t)) (linearRun A (selected A loss p)) u T
theorem BanditRL.OnlineLinearization.regret_transfer Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.regret_transfer

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

theorem regret_transfer (V : Domain (E := E)) (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback A loss p T) (B : (ℕ → E) → E → ℕ → ℝ) (hB : ∀ g u, u ∈ V.carrier → BanditRL.OnlineLearning.comparatorRegret (fun t => linearLoss (g t)) (linearRun A g) u T ≤ B g u T) (u : E) (hu : u ∈ V.carrier) : regret A loss p u T ≤ B (selected A loss p) u T
theorem BanditRL.OnlineLinearization.canonical_regret_comparison Compiled

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

Used in these reading views: Online Learning Book

Convex losses to causal linear feedback

Canonical node identitydeclaration:BanditRL.OnlineLinearization.canonical_regret_comparison

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

theorem canonical_regret_comparison (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy u T ≤ BanditRL.OnlineLearning.comparatorRegret (fun t => linearLoss (selected A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy t)) (linearRun A (selected A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy)) u T