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
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 identity
declaration:BanditRL.OnlineGradientDescent.DomainReading 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 identity
declaration:BanditRL.OnlineGradientDescent.project_existsUniqueReading 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 identity
declaration:BanditRL.OnlineGradientDescent.projectReading 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 identity
declaration:BanditRL.OnlineGradientDescent.RegularLossReading 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 identity
declaration:BanditRL.OnlineGradientDescent.stepReading 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 identity
declaration:BanditRL.OnlineGradientDescent.iterateReading 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 identity
declaration:BanditRL.OnlineGradientDescent.regretReading 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 identity
declaration:BanditRL.OnlineGradientDescent.project_specReading 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 identity
declaration:BanditRL.OnlineGradientDescent.project_eq_of_variationalReading 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 identity
declaration:BanditRL.OnlineGradientDescent.proposition_2_11Reading 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 identity
declaration:BanditRL.OnlineGradientDescent.first_orderReading 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 identity
declaration:BanditRL.OnlineGradientDescent.lemma_2_12Reading 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 identity
declaration:BanditRL.OnlineGradientDescent.iterate_memReading 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 identity
declaration:BanditRL.OnlineGradientDescent.iterate_prefixReading 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 identity
declaration:BanditRL.OnlineGradientDescent.theorem_2_13_fixedReading 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 identity
declaration:BanditRL.OnlineGradientDescent.equation_2_1_distanceReading 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 identity
declaration:BanditRL.OnlineGradientDescent.equation_2_1Reading 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