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

Lean module · Projected OSD

BanditRLProof.OnlineSubgradientDescent

Orabona arXiv:1912.13213v10: Lemma 2.31 (printed19/PDF31), Algorithm 2.2 (printed20/PDF32), and its explicit Theorem2.13/eq2.1 transfer. The full standalone lemma allows an arbitrary ambient current point and supplied actual global support. The algorithm starts feasible, selects a permitted support from the current whole loss only, and uses the shared actual nearest projection. The noncomputable choice is a mathematical implementation, not an executable oracle. Properness and supports produce finite loss values before real regret differences. Fixed/variable performance keeps the negative terminal residual; fixed

Module map

Declarations
21
Placeholders
0

Imports

BanditRLProof.OnlineGradientDescentVariable, BanditRLProof.OnlineLipschitzSubgradient

Imported by

BanditRLProof, BanditRLProof.OnlineGuessingSubgradient, BanditRLProof.OnlineSubgradientPolicy, BanditRLProof.OnlineUnboundedOSD

Declarations

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

abbrev BanditRL.OnlineSubgradientDescent.Domain Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.Domain

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

abbrev Domain
def BanditRL.OnlineSubgradientDescent.SubdifferentiableOn Compiled

Source Definition2.20 properness precedes its subdifferentiability convention.

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.SubdifferentiableOn

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

def SubdifferentiableOn (V : Domain (E := E)) (f : E → EReal) : Prop
def BanditRL.OnlineSubgradientDescent.currentSubgradient Compiled

Current function/point only; no comparator, horizon or future losses.

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.currentSubgradient

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

def currentSubgradient (f : E → EReal) (x : E) : E
def BanditRL.OnlineSubgradientDescent.step Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.step

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

def step (V : Domain (E := E)) (η : ℝ) (f : E → EReal) (x : E) : E
def BanditRL.OnlineSubgradientDescent.iterate Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.iterate

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

def iterate (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) : ℕ → E | 0 => x₁ | t + 1 => step V (η t) (loss t) (iterate V η loss x₁ t) def regret (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ u : E) (T : ℕ) : ℝ
def BanditRL.OnlineSubgradientDescent.regret Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret

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

def regret (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ u : E) (T : ℕ) : ℝ
theorem BanditRL.OnlineSubgradientDescent.lemma_2_31 Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.lemma_2_31

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

theorem lemma_2_31 (V : Domain (E := E)) (f : E → EReal) (hf : SubdifferentiableOn V f) (η : ℝ) (hη : 0 < η) (x u : E) (hu : u ∈ V.carrier) (g : E) (hg : g ∈ SourceSubdifferential f x) : η * ((f x).toReal - (f u).toReal) ≤ η * inner ℝ g (x - u) ∧ η * inner ℝ g (x - u) ≤ ‖x - u‖ ^ 2 / 2 - ‖BanditRL.OnlineGradientDescent.project V (x - η • g) - u‖ ^ 2 / 2 + η ^ 2 / 2 * ‖g‖ ^ 2
theorem BanditRL.OnlineSubgradientDescent.currentSubgradient_mem Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.currentSubgradient_mem

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

theorem currentSubgradient_mem (V : Domain (E := E)) (f : E → EReal) (hf : SubdifferentiableOn V f) (x : E) (hx : x ∈ V.carrier) : currentSubgradient f x ∈ SourceSubdifferential f x
theorem BanditRL.OnlineSubgradientDescent.finite_loss Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.finite_loss

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

theorem finite_loss (V : Domain (E := E)) (f : E → EReal) (hf : SubdifferentiableOn V f) (x : E) (hx : x ∈ V.carrier) : f x = ((f x).toReal : EReal)
theorem BanditRL.OnlineSubgradientDescent.iterate_mem Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.iterate_mem

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

theorem iterate_mem (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (t : ℕ) : iterate V η loss x₁ t ∈ V.carrier
theorem BanditRL.OnlineSubgradientDescent.iterate_prefix Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.iterate_prefix

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

theorem iterate_prefix (V : Domain (E := E)) (η η' : ℕ → ℝ) (loss loss' : ℕ → E → EReal) (x₁ : E) (t : ℕ) (hη : ∀ s < t, η s = η' s) (hloss : ∀ s < t, loss s = loss' s) : iterate V η loss x₁ t = iterate V η' loss' x₁ t
theorem BanditRL.OnlineSubgradientDescent.iterate_support Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.iterate_support

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

theorem iterate_support (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (t : ℕ) (hloss : SubdifferentiableOn V (loss t)) : currentSubgradient (loss t) (iterate V η loss x₁ t) ∈ SourceSubdifferential (loss t) (iterate V η loss x₁ t)
theorem BanditRL.OnlineSubgradientDescent.iterate_finite_loss Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.iterate_finite_loss

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

theorem iterate_finite_loss (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (t : ℕ) (hloss : SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : loss t (iterate V η loss x₁ t) = ((loss t (iterate V η loss x₁ t)).toReal : EReal) ∧ loss t u = ((loss t u).toReal : EReal)
theorem BanditRL.OnlineSubgradientDescent.one_step_chain Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.one_step_chain

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

theorem one_step_chain (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (t : ℕ) (hη : 0 < η t) (hloss : SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : η t * ((loss t (iterate V η loss x₁ t)).toReal - (loss t u).toReal) ≤ η t * inner ℝ (currentSubgradient (loss t) (iterate V η loss x₁ t)) (iterate V η loss x₁ t - u) ∧ η t * inner ℝ (currentSubgradient (loss t) (iterate V η loss x₁ t)) (iterate V η loss x₁ t - u) ≤ ‖iterate V η loss x₁ t - u‖ ^ 2 / 2 - ‖iterate V η loss x₁ (t + 1) - u‖ ^ 2 / 2 + (η t) ^ 2 / 2 * ‖currentSubgradient (loss t) (iterate V η loss x₁ t)‖ ^ 2
theorem BanditRL.OnlineSubgradientDescent.one_step Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.one_step

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

theorem one_step (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (t : ℕ) (hη : 0 < η t) (hloss : SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : (loss t (iterate V η loss x₁ t)).toReal - (loss t u).toReal ≤ (‖iterate V η loss x₁ t - u‖ ^ 2 - ‖iterate V η loss x₁ (t + 1) - u‖ ^ 2) / (2 * η t) + η t / 2 * ‖currentSubgradient (loss t) (iterate V η loss x₁ t)‖ ^ 2
theorem BanditRL.OnlineSubgradientDescent.regret_fixed Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret_fixed

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

theorem regret_fixed (V : Domain (E := E)) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hloss : ∀ t < T, SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret V (fun _ => η) loss x₁ u T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖currentSubgradient (loss t) (iterate V (fun _ => η) loss x₁ t)‖ ^ 2) - ‖iterate V (fun _ => η) loss x₁ T - u‖ ^ 2 / (2 * η)
theorem BanditRL.OnlineSubgradientDescent.regret_fixed_coarse Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret_fixed_coarse

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

theorem regret_fixed_coarse (V : Domain (E := E)) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hloss : ∀ t < T, SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret V (fun _ => η) loss x₁ u T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖currentSubgradient (loss t) (iterate V (fun _ => η) loss x₁ t)‖ ^ 2)
theorem BanditRL.OnlineSubgradientDescent.regret_variable_bound Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret_variable_bound

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

theorem regret_variable_bound (V : Domain (E := E)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (hη : ∀ t < T, 0 < η t) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hloss : ∀ t < T, SubdifferentiableOn V (loss t)) (D : ℝ) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (u : E) (hu : u ∈ V.carrier) : regret V η loss x₁ u T ≤ D ^ 2 / (2 * η (T - 1)) + (∑ t ∈ range T, η t / 2 * ‖currentSubgradient (loss t) (iterate V η loss x₁ t)‖ ^ 2) - ‖iterate V η loss x₁ T - u‖ ^ 2 / (2 * η (T - 1))
theorem BanditRL.OnlineSubgradientDescent.regret_variable Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret_variable

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

theorem regret_variable (V : Domain (E := E)) (hV : Bornology.IsBounded V.carrier) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (hη : ∀ t < T, 0 < η t) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hloss : ∀ t < T, SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret V η loss x₁ u T ≤ (Metric.diam V.carrier) ^ 2 / (2 * η (T - 1)) + (∑ t ∈ range T, η t / 2 * ‖currentSubgradient (loss t) (iterate V η loss x₁ t)‖ ^ 2) - ‖iterate V η loss x₁ T - u‖ ^ 2 / (2 * η (T - 1))
theorem BanditRL.OnlineSubgradientDescent.regret_tuned_distance Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret_tuned_distance

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

theorem regret_tuned_distance (V : Domain (E := E)) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (D G : ℝ) (hD : 0 < D) (hG : 0 < G) (hloss : ∀ t < T, SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) (hdist : ‖x₁ - u‖ ≤ D) (hgrad : ∀ t < T, ‖currentSubgradient (loss t) (iterate V (fun _ => D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : regret V (fun _ => D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T
theorem BanditRL.OnlineSubgradientDescent.regret_tuned Compiled

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

Used in these reading views: Online Learning Book

Projected online subgradient descent

Canonical node identitydeclaration:BanditRL.OnlineSubgradientDescent.regret_tuned

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

theorem regret_tuned (V : Domain (E := E)) (loss : ℕ → E → EReal) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (D G : ℝ) (hD : 0 < D) (hG : 0 < G) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (hloss : ∀ t < T, SubdifferentiableOn V (loss t)) (hgrad : ∀ t < T, ‖currentSubgradient (loss t) (iterate V (fun _ => D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : ∀ u ∈ V.carrier, regret V (fun _ => D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T