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

Lean module · Projected OGD

BanditRLProof.OnlineGradientDescent

Orabona, arXiv:1912.13213v10, Algorithm 2.1, Proposition 2.11, Lemma 2.12, Theorem 2.13 (constant step only), and Eq. (2.1). Time t = 0 denotes source round 1; iterate ... T is source x_(T+1). The Hilbert-space interfaces specialize to finite-dimensional real Euclidean spaces. Loss-dependent declarations below use the stronger historical RegularLoss predicate. OnlineGradientDescentSource supplies the arbitrary-open source regularity interface on the same algorithms. Projection and causal feasibility statements need no loss regularity.

Module map

Declarations
17
Placeholders
0

Imports

No project-local imports.

Imported by

BanditRLProof, BanditRLProof.OnlineGradientDescentVariable, BanditRLProof.OnlineGuessingOGD, BanditRLProof.OnlineHuber, BanditRLProof.OnlinePrescientLinear

Declarations

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

structure BanditRL.OnlineGradientDescent.Domain Compiled

A nonempty closed convex feasible set, independent of losses and comparators.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.Domain

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

structure Domain (E : Type*) [NormedAddCommGroup E] [InnerProductSpace ℝ E] where
theorem BanditRL.OnlineGradientDescent.project_existsUnique Compiled

Every nonempty closed convex domain has a unique nearest point before any choice is made. This establishes the well-definedness of the same projection used below.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.project_existsUnique

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

theorem project_existsUnique (V : Domain E) (z : E) : ∃! p : E, p ∈ V.carrier ∧ ‖z - p‖ = ⨅ w : V.carrier, ‖z - w‖
def BanditRL.OnlineGradientDescent.project Compiled

The unique nearest point, constructed from the Hilbert projection theorem.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.project

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

def project (V : Domain E) (z : E) : E
def BanditRL.OnlineGradientDescent.RegularLoss Compiled

Historical stronger regularity: convex and differentiable on a convex open neighborhood. For the source arbitrary-open hypothesis, use `OnlineGradientDescentSource.SourceRegularLoss` and its proved `source_to_feasible` adapter. This predicate is retained for compatibility.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.RegularLoss

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

def RegularLoss (V : Domain E) (f : E → ℝ) : Prop
def BanditRL.OnlineGradientDescent.step Compiled

One update uses only the current point, current loss, and fixed step size.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.step

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

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

Algorithm 2.1, constant step branch. The current loss is read after outputting the point.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.iterate

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

def iterate (V : Domain E) (η : ℝ) (loss : ℕ → E → ℝ) (x₁ : E) : ℕ → E | 0 => x₁ | t + 1 => step V η (loss t) (iterate V η loss x₁ t) /-- Comparator regret of this exact generated trajectory over `T` rounds. -/ def regret (V : Domain E) (η : ℝ) (loss : ℕ → E → ℝ) (x₁ u : E) (T : ℕ) : ℝ
def BanditRL.OnlineGradientDescent.regret Compiled

Comparator regret of this exact generated trajectory over `T` rounds.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.regret

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

def regret (V : Domain E) (η : ℝ) (loss : ℕ → E → ℝ) (x₁ u : E) (T : ℕ) : ℝ
theorem BanditRL.OnlineGradientDescent.project_spec Compiled

The projection exists in the feasible set and minimizes Euclidean distance.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.project_spec

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

theorem project_spec (V : Domain E) (z : E) : project V z ∈ V.carrier ∧ ‖z - project V z‖ = ⨅ w : V.carrier, ‖z - w‖
theorem BanditRL.OnlineGradientDescent.project_eq_of_variational Compiled

Characterization that makes the chosen projection publicly instantiable.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.project_eq_of_variational

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

theorem project_eq_of_variational (V : Domain E) (z p : E) (hp : p ∈ V.carrier) (h : ∀ w ∈ V.carrier, inner ℝ (z - p) (w - p) ≤ 0) : project V z = p
theorem BanditRL.OnlineGradientDescent.proposition_2_11 Compiled

Proposition 2.11: distance to every feasible comparator decreases.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.proposition_2_11

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

theorem proposition_2_11 (V : Domain E) (z u : E) (hu : u ∈ V.carrier) : ‖project V z - u‖ ≤ ‖z - u‖
theorem BanditRL.OnlineGradientDescent.first_order Compiled

Theorem 2.7 interface derived from convex differentiable losses, not a premise.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.first_order

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

theorem first_order (V : Domain E) (f : E → ℝ) (hf : RegularLoss V f) (x u : E) (hx : x ∈ V.carrier) (hu : u ∈ V.carrier) : f x - f u ≤ inner ℝ (gradient f x) (x - u)
theorem BanditRL.OnlineGradientDescent.lemma_2_12 Compiled

Lemma 2.12 preserves both inequalities of the source's one-step chain.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.lemma_2_12

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

theorem lemma_2_12 (V : Domain E) (f : E → ℝ) (hf : RegularLoss V f) (η : ℝ) (hη : 0 < η) (x u : E) (hx : x ∈ V.carrier) (hu : u ∈ V.carrier) : η * (f x - f u) ≤ η * inner ℝ (gradient f x) (x - u) ∧ η * inner ℝ (gradient f x) (x - u) ≤ ‖x - u‖ ^ 2 / 2 - ‖step V η f x - u‖ ^ 2 / 2 + η ^ 2 / 2 * ‖gradient f x‖ ^ 2
theorem BanditRL.OnlineGradientDescent.iterate_mem Compiled

Algorithm feasibility includes the initial point and the terminal point.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.iterate_mem

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

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

Strict-prefix causality: the point output at time `t` does not use loss `t` or later.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.iterate_prefix

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

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

Theorem 2.13, fixed step: no bounded-domain premise; negative terminal residual retained.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.theorem_2_13_fixed

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

theorem theorem_2_13_fixed (V : Domain E) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hloss : ∀ t < T, RegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret V η loss x₁ u T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖gradient (loss t) (iterate V η loss x₁ t)‖ ^ 2) - ‖iterate V η loss x₁ T - u‖ ^ 2 / (2 * η)
theorem BanditRL.OnlineGradientDescent.equation_2_1_distance Compiled

Equation (2.1), with the source gradient bound `L` named `G`. A distance upper bound suffices; the diameter version below supplies it uniformly.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.equation_2_1_distance

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

theorem equation_2_1_distance (V : Domain E) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (D G : ℝ) (hD : 0 < D) (hG : 0 < G) (hloss : ∀ t < T, RegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) (hdist : ‖x₁ - u‖ ≤ D) (hgrad : ∀ t < T, ‖gradient (loss t) (iterate V (D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : regret V (D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T
theorem BanditRL.OnlineGradientDescent.equation_2_1 Compiled

Equation (2.1) for one horizon-tuned algorithm and every feasible comparator. Any positive diameter upper bound is admissible, including the exact diameter.

Used in these reading views: Online Learning Book

Projected OGD: Orabona Chapter 2

Canonical node identitydeclaration:BanditRL.OnlineGradientDescent.equation_2_1

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

theorem equation_2_1 (V : Domain E) (loss : ℕ → E → ℝ) (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, RegularLoss V (loss t)) (hgrad : ∀ t < T, ‖gradient (loss t) (iterate V (D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : ∀ u ∈ V.carrier, regret V (D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T