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

Teaching chapter 26 of 31 · Canonical route compiled

Projected online subgradient descent

Actual global supports and Euclidean projection produce a causal mathematical trajectory, sharp constant/variable-rate regret bounds and positive-parameter tuning.

How to read the status. It describes this page's canonical local Lean route, not completion of the cited textbook chapter or every extension listed below.

Orientation

Who should read this. Readers of Orabona Lemma2.31, Algorithm2.2 and the Theorem2.13 transfer.

Learning goals

  • Derive finite values from proper functions and actual supports.
  • Verify current-only choice, feasible outputs and strict-prefix causality.
  • Keep the terminal distance in fixed and decreasing-step regret bounds.

Textbook crosswalk

Read the mathematics before the Lean interface

This reading follows Online Learning: A Modern Introduction Using Convex Optimization. Teaching routes group mathematical dependencies across the shared library. Visible page labels use the cited source's numbered pages; source buttons use the PDF viewer's physical page index, including front matter. Companion papers cover algorithm-specific results.

Primary spine · arXiv:1912.13213v10, 21 June 2026

Online Learning: A Modern Introduction Using Convex Optimization

Francesco Orabona

Location
Section2.2.2 Lemma2.31/Algorithm2.2 and explicit Theorem2.13/eq2.1 transfer; printed21 constant-step formula
Pages
printed13-15,19-21/PDF25-27,31-33
Open at the cited pages
source algorithm · ordered flow

Output, observe, support, project

Read top to bottom to follow the argument or procedure.

  1. Output the feasible current point

    Start from the prescribed x1 in V. Projection membership proves every later output feasible. Strict-prefix induction compares equal past losses and schedules, so current/future loss changes do not change the current point.

  2. Observe the current loss and choose its support

    After output and payment, use the current loss information to select a global support at the played point. The library fixes G(f,x) and proves membership in the nonempty support set.

  3. Project the genuine update

    Use the shared nearest-point projection on Xt-eta(t)gt. Its existing projection theorem and support inequality produce the full Lemma2.31 chain, then divide by the positive current eta.

6 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementLemma 2.31: both one-step inequalitiesCanonical projected-subgradient declarationsprinted19
Source theorem · faithful restatement

Lemma 2.31: both one-step inequalities

Original at printed19 ↗
Canonical projected-subgradient declarationsThis package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

A global support gives the loss linearization and the projected squared-distance inequality, including its negative terminal term.

Model
Finite-dimensional real Euclidean space and actual nonempty closed convex V.
Assumptions
Nonempty closed convex V; proper f subdifferentiable on V; positive eta; u in V; actual g in the global subdifferential at x. Feasible x_t belongs to the surrounding source algorithm convention.
Algorithm parameters
Every feasible comparator and every supplied global support at the current point. The stronger Lean standalone lemma does not require current-point membership in V.
Regret notion
Finite real single-step loss gap f(x)-f(u), justified by properness and actual global supports. This standalone lemma assumes no online regret sum or algorithm trajectory.
Guarantee
Both eta-scaled inequalities and the negative projected terminal distance.
Source mathematical statement. A global support gives the loss linearization and the projected squared-distance inequality, including its negative terminal term.

BanditRLlib relationship. The source uses x_t in its feasible-iterate algorithm context without an explicit standalone membership binder. The Lean lemma additionally allows an arbitrary ambient x when an actual global support at x is supplied; that is an explicit stronger standalone variant.

Source theorem · faithful restatementAlgorithm 2.2: output, pay, obtain a support, projectCanonical projected-subgradient declarationsprinted20
Source theorem · faithful restatement

Algorithm 2.2: output, pay, obtain a support, project

Original at printed20 ↗
Canonical projected-subgradient declarationsThis package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

The actual recursive mathematical algorithm outputs before the current loss and uses a genuine selected support.

Model
Finite-dimensional real Euclidean space and actual nonempty closed convex V.
Assumptions
Feasible prescribed initialization, proper current losses subdifferentiable on V; positive played eta for performance.
Algorithm parameters
Same actual support choice and recursively projected trajectory, every feasible comparator; Lean0 = source1.
Regret notion
Finite real losses are produced from properness/supports; regret sums this same trajectory.
Guarantee
All-round feasibility, strict-prefix equality, selected support and actual finite played/comparator values.
Source mathematical statement. The actual recursive mathematical algorithm outputs before the current loss and uses a genuine selected support.

BanditRLlib relationship. The source permits any valid support. This implementation fixes G(f,x), a noncomputable whole-function/point choice. The prefix theorem compares complete past functions and schedules; a general feedback policy is separate.

Source theorem · faithful restatementTransferred Theorem 2.13: constant rateCanonical projected-subgradient declarationsprinted19
Source theorem · faithful restatement

Transferred Theorem 2.13: constant rate

Original at printed19 ↗
Canonical projected-subgradient declarationsThis package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

The exact fixed-step regret bound holds on the same subgradient trajectory, with its negative terminal residual.

Model
Finite-dimensional real Euclidean space and actual nonempty closed convex V.
Assumptions
Positive constant eta, feasible prescribed x1 and comparator u, and proper losses subdifferentiable on V at each played round. No bounded-domain premise.
Algorithm parameters
Same actual support choice and recursively projected trajectory, every feasible comparator; Lean0 = source1.
Regret notion
Finite real losses are produced from properness/supports; regret sums this same trajectory.
Guarantee
Full residual bound from genuine same-trajectory telescoping.
Source mathematical statement. The exact fixed-step regret bound holds on the same subgradient trajectory, with its negative terminal residual.

BanditRLlib relationship. The printed19 transfer reuses constant-rate telescoping after replacing the gradient step by Lemma 2.31. No bounded diameter is needed. Lean also proves the empty-horizon extension; the printed eta_T notation assumes a positive horizon.

Source theorem · faithful restatementTransferred Theorem 2.13: nonincreasing ratesCanonical projected-subgradient declarationsprinted19
Source theorem · faithful restatement

Transferred Theorem 2.13: nonincreasing rates

Original at printed19 ↗
Canonical projected-subgradient declarationsThis package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

Decreasing positive played steps use the last played eta and retain the terminal distance.

Model
Finite-dimensional real Euclidean space and actual nonempty closed convex V.
Assumptions
T>=1; prescribed feasible x1 and comparator u in V; positive nonincreasing eta through played rounds; each played loss proper and subdifferentiable on V; bounded V for Metric.diam, or an actual uniform D upper bound.
Algorithm parameters
Same actual support choice and recursively projected trajectory, every feasible comparator; Lean0 = source1.
Regret notion
Finite real losses are produced from properness/supports; regret sums this same trajectory.
Guarantee
The full variable bound, including negative terminal residual.
Source mathematical statement. Decreasing positive played steps use the last played eta and retain the terminal distance.

BanditRLlib relationship. The source transfer reuses the weighted telescope with the subgradient step. Lean provides both a finite diameter upper-bound variant and the actual Metric.diam variant with an explicit bounded-set premise. This is the finite informative regime of the source display.

Source theorem · faithful restatementTransferred equation (2.1): tuned constant rateCanonical projected-subgradient declarationsprinted19
Source theorem · faithful restatement

Transferred equation (2.1): tuned constant rate

Original at printed19 ↗
Canonical projected-subgradient declarationsThis package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

One prescribed horizon-tuned trajectory satisfies DG sqrt(T) for every feasible comparator.

Model
Finite-dimensional real Euclidean space and actual nonempty closed convex V.
Assumptions
T>=1,D>0,G>0; prescribed feasible x1 in V; every played loss proper and subdifferentiable on V; all feasible pair distances<=D; actual chosen supports on this very eta-dependent trajectory have norms<=G.
Algorithm parameters
Same actual support choice and recursively projected trajectory, every feasible comparator; Lean0 = source1.
Regret notion
Finite real losses are produced from properness/supports; regret sums this same trajectory.
Guarantee
Uniform feasible-comparator bound with eta=D/(G sqrt T).
Source mathematical statement. One prescribed horizon-tuned trajectory satisfies DG sqrt(T) for every feasible comparator.

BanditRLlib relationship. Equation (2.1) is first derived for gradients at printed15; printed19 transfers it to selected subgradients. Lean uses positive upper bounds D,G and positive horizon T. The norm premise applies to the actual chosen supports on this same tuned trajectory; it is not inferred from Lipschitzness merely on V.

Source theorem · faithful restatementPrinted21: coarse constant-rate boundCanonical projected-subgradient declarationsprinted21
Source theorem · faithful restatement

Printed21: coarse constant-rate bound

Original at printed21 ↗
Canonical projected-subgradient declarationsThis package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

Drop only the known nonnegative subtracted residual from the full fixed bound.

Model
Finite-dimensional real Euclidean space and actual nonempty closed convex V.
Assumptions
eta>0; feasible prescribed x1 and comparator u; each played loss proper and subdifferentiable on V. Lean additionally admits T=0 and no bounded-domain premise is added.
Algorithm parameters
Same actual support choice and recursively projected trajectory, every feasible comparator; Lean0 = source1.
Regret notion
Finite real losses are produced from properness/supports; regret sums this same trajectory.
Guarantee
The displayed printed21 formula as a separate corollary.
Source mathematical statement. Drop only the known nonnegative subtracted residual from the full fixed bound.

BanditRLlib relationship. Drop the nonpositive terminal term from the constant-rate sharp bound. The variable-rate diameter theorem is not a prerequisite.

Natural-language and Lean side by side

The mathematical readings are explanatory summaries. The exact generated Lean statement and its source link remain authoritative for hypotheses, types, constants, and indexing.

A curated route through definitions, key bridges, and canonical terminals stays visible. 11 additional dependency, extension, or research-frontier notes are grouped below.

Mathematics ↔ Lean

Full projected-support single-step chain

Lean declarationBanditRL.OnlineSubgradientDescent.lemma_2_31

Compiled

Plain-English statement. The loss linearization and projected potential bound both hold for a supplied actual global support.

Mathematical reading. The loss linearization and projected potential bound both hold for a supplied actual global support.
Intuition
The loss linearization and projected potential bound both hold for a supplied actual global support.
Why it is needed
This is the local source chain used by the actual algorithm.
Place in the proof
Orabona v10: Lemma 2.31, printed19/PDF31; explicit arbitrary-current standalone extension.
Proof and Lean reading notes
Proof idea
Properness and supports prove both values finite. Apply the global support inequality at u, then projection contraction and the squared-norm identity; rearrange without dropping the terminal norm.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate. The supplied-support standalone variant allows arbitrary ambient x, beyond the source algorithm feasibility convention.
Teaching dependencies
BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.effectiveDomain, BanditRL.OnlineConvex.subgradient_point_finite, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.proposition_2_11, BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn
Exact 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
Mathematics ↔ Lean

Fixed step with the terminal distance retained

Lean declarationBanditRL.OnlineSubgradientDescent.regret_fixed

Compiled

Plain-English statement. Positive constant steps give the sharp initial-distance bound with the true terminal term.

Mathematical reading. Positive constant steps give the sharp initial-distance bound with the true terminal term.
Intuition
Positive constant steps give the sharp initial-distance bound with the true terminal term.
Why it is needed
The fixed-rate bound remains informative on unbounded feasible sets.
Place in the proof
Orabona v10: Printed19 transfer of Theorem 2.13 constant branch, printed13-14/PDF25-26; Lean also includes T=0.
Proof and Lean reading notes
Proof idea
Induct over the finite horizon, add the actual one-step chain and cancel consecutive squared distances. Divide the final eta-scaled result by positive eta; no diameter bound is used.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate. No diameter premise is used; the Lean theorem includes T=0.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.one_step_chain, BanditRL.OnlineSubgradientDescent.regret
Exact 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 * η)
Mathematics ↔ Lean

Decreasing steps with the actual bounded metric diameter

Lean declarationBanditRL.OnlineSubgradientDescent.regret_variable

Compiled

Plain-English statement. For bounded V, use its actual metric diameter in the variable-rate bound.

Mathematical reading. For bounded V, use its actual metric diameter in the variable-rate bound.
Intuition
For bounded V, use its actual metric diameter in the variable-rate bound.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Printed19 transfer of Theorem 2.13 variable branch; bounded Metric.diam instance.
Proof and Lean reading notes
Proof idea
Bound each feasible pair's distance by Metric.diam using the explicit boundedness hypothesis, then apply regret_variable_bound.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.regret_variable_bound
Exact 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))
Mathematics ↔ Lean

One horizon-tuned trajectory for every comparator

Lean declarationBanditRL.OnlineSubgradientDescent.regret_tuned

Compiled

Plain-English statement. One horizon-dependent constant-rate trajectory satisfies the tuned bound for every feasible comparator.

Mathematical reading. One horizon-dependent constant-rate trajectory satisfies the tuned bound for every feasible comparator.
Intuition
One horizon-dependent constant-rate trajectory satisfies the tuned bound for every feasible comparator.
Why it is needed
The comparator is universally quantified after the run and its norm premise.
Place in the proof
Orabona v10: Printed19 transfer of equation (2.1), printed15/PDF27; all-comparator finite upper-bound variant.
Proof and Lean reading notes
Proof idea
For arbitrary feasible u, the pairwise D bound controls the initial distance. Apply regret_tuned_distance with the same prescribed trajectory and the same selected-support norm premise.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate. D,G,T must be positive; the norm premise is on the actual selected supports of this tuned run.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.regret_tuned_distance
Exact 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
Explore 11 additional Lean teaching notes
Mathematics ↔ Lean

Choose an actual current global support

Lean declarationBanditRL.OnlineSubgradientDescent.currentSubgradient_mem

Compiled

Plain-English statement. At a feasible point, the canonical selection is an actual global subgradient.

Mathematical reading. At a feasible point, the canonical selection is an actual global subgradient.
Intuition
At a feasible point, the canonical selection is an actual global subgradient.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Library choice-validity bridge for Algorithm 2.2, printed20/PDF32.
Proof and Lean reading notes
Proof idea
Subdifferentiability makes the support set nonempty. Unfold the conditional selector and apply the specification of Classical.choose; its zero fallback is unused.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient
Exact 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
Mathematics ↔ Lean

Feasible supported losses have actual finite values

Lean declarationBanditRL.OnlineSubgradientDescent.finite_loss

Compiled

Plain-English statement. A proper subdifferentiable loss equals the finite coercion of its real value on V.

Mathematical reading. A proper subdifferentiable loss equals the finite coercion of its real value on V.
Intuition
A proper subdifferentiable loss equals the finite coercion of its real value on V.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Library finite-value bridge for Lemma 2.31/Algorithm 2.2.
Proof and Lean reading notes
Proof idea
Obtain the selected support using currentSubgradient_mem. The existing proper-support finiteness theorem excludes positive infinity; properness excludes negative infinity, so EReal.coe_toReal applies.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.effectiveDomain, BanditRL.OnlineConvex.subgradient_point_finite, BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.currentSubgradient_mem
Exact 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)
Mathematics ↔ Lean

All recursive outputs are feasible

Lean declarationBanditRL.OnlineSubgradientDescent.iterate_mem

Compiled

Plain-English statement. Every iterate from a feasible initialization lies in V, regardless of the raw loss and rate data.

Mathematical reading. Every iterate from a feasible initialization lies in V, regardless of the raw loss and rate data.
Intuition
Every iterate from a feasible initialization lies in V, regardless of the raw loss and rate data.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Library feasibility bridge for Algorithm 2.2, printed20/PDF32.
Proof and Lean reading notes
Proof idea
Split on t. At zero use initial feasibility; at a successor use the membership part of the actual nearest-projection specification. No positive-rate or loss-regularity premise is used.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate
Exact 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
Mathematics ↔ Lean

Strict-prefix agreement fixes the current output

Lean declarationBanditRL.OnlineSubgradientDescent.iterate_prefix

Compiled

Plain-English statement. Equal strict past loss functions and rates produce the same current point from the same initialization.

Mathematical reading. Equal strict past loss functions and rates produce the same current point from the same initialization.
Intuition
Equal strict past loss functions and rates produce the same current point from the same initialization.
Why it is needed
The current action does not read the current or future loss function.
Place in the proof
Orabona v10: Library prefix-causality bridge for Algorithm 2.2.
Proof and Lean reading notes
Proof idea
Induct on t. The successor uses equality of the current update inputs and the induction hypothesis for the shorter strict past. Equality is of full functions, not merely observed scalar losses.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.step
Exact 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
Mathematics ↔ Lean

Actual current support along the actual trajectory

Lean declarationBanditRL.OnlineSubgradientDescent.iterate_support

Compiled

Plain-English statement. The selected vector at each feasible iterate supports that round's loss globally.

Mathematical reading. The selected vector at each feasible iterate supports that round's loss globally.
Intuition
The selected vector at each feasible iterate supports that round's loss globally.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Library current-support bridge for Algorithm 2.2.
Proof and Lean reading notes
Proof idea
Apply currentSubgradient_mem at the actual iterate; iterate_mem supplies feasibility and the current loss premise supplies subdifferentiability.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient_mem, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.iterate_mem
Exact 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)
Mathematics ↔ Lean

Played and comparator losses are truly finite

Lean declarationBanditRL.OnlineSubgradientDescent.iterate_finite_loss

Compiled

Plain-English statement. The played loss and the fixed feasible comparator loss are both actual finite values.

Mathematical reading. The played loss and the fixed feasible comparator loss are both actual finite values.
Intuition
The played loss and the fixed feasible comparator loss are both actual finite values.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Library finite-regret bridge for the OSD performance transfer.
Proof and Lean reading notes
Proof idea
Apply finite_loss twice, once using iterate_mem and once using comparator membership. This justifies both real conversions on the same current loss.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.finite_loss, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.iterate_mem
Exact 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)
Mathematics ↔ Lean

Full chain for the selected support and next iterate

Lean declarationBanditRL.OnlineSubgradientDescent.one_step_chain

Compiled

Plain-English statement. The actual chosen support and next iterate satisfy both sharp eta-scaled inequalities.

Mathematical reading. The actual chosen support and next iterate satisfy both sharp eta-scaled inequalities.
Intuition
The actual chosen support and next iterate satisfy both sharp eta-scaled inequalities.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Lemma 2.31 specialized to Algorithm 2.2.
Proof and Lean reading notes
Proof idea
Instantiate lemma_2_31 with the actual current iterate and canonical support. iterate_support supplies support membership; unfolding the recurrence identifies the projected endpoint.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.iterate_support, BanditRL.OnlineSubgradientDescent.lemma_2_31
Exact 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
Mathematics ↔ Lean

Positive-step normalized distance bound

Lean declarationBanditRL.OnlineSubgradientDescent.one_step

Compiled

Plain-English statement. With positive current rate, the loss gap is bounded by a distance decrement plus support energy.

Mathematical reading. With positive current rate, the loss gap is bounded by a distance decrement plus support energy.
Intuition
With positive current rate, the loss gap is bounded by a distance decrement plus support energy.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Normalized one-step input to the printed19 performance transfer.
Proof and Lean reading notes
Proof idea
Compose the two inequalities of one_step_chain and divide by the strictly positive current eta; field algebra gives the displayed normalization.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.one_step_chain
Exact 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
Mathematics ↔ Lean

The printed constant-step bound after dropping the residual

Lean declarationBanditRL.OnlineSubgradientDescent.regret_fixed_coarse

Compiled

Plain-English statement. Dropping the nonpositive terminal term gives the printed coarse constant-rate bound.

Mathematical reading. Dropping the nonpositive terminal term gives the printed coarse constant-rate bound.
Intuition
Dropping the nonpositive terminal term gives the printed coarse constant-rate bound.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Unnumbered constant-step OSD display, printed21/PDF33.
Proof and Lean reading notes
Proof idea
Use regret_fixed and nonnegativity of the squared terminal distance divided by positive 2 eta. The variable-rate result is not a dependency.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate. No diameter premise is used; the Lean theorem includes T=0.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineSubgradientDescent.regret_fixed
Exact 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)
Mathematics ↔ Lean

Decreasing steps with a uniform diameter upper bound

Lean declarationBanditRL.OnlineSubgradientDescent.regret_variable_bound

Compiled

Plain-English statement. Positive nonincreasing rates and a pairwise bound D give the terminal-retaining variable-rate guarantee.

Mathematical reading. Positive nonincreasing rates and a pairwise bound D give the terminal-retaining variable-rate guarantee.
Intuition
Positive nonincreasing rates and a pairwise bound D give the terminal-retaining variable-rate guarantee.
Why it is needed
Nonnegative reciprocal weights explain exactly where the diameter bound enters.
Place in the proof
Orabona v10: Printed19 transfer of Theorem 2.13 variable branch; finite upper-bound variant.
Proof and Lean reading notes
Proof idea
Apply the shared weighted_potential_sum to actual squared iterate distances, bounded by the pairwise D premise and iterate_mem. Sum one_step over the played prefix and combine; the denominator uses the last played rate.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.
Teaching dependencies
BanditRL.OnlineGradientDescent.weighted_potential_sum, BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.iterate_mem, BanditRL.OnlineSubgradientDescent.one_step, BanditRL.OnlineSubgradientDescent.regret
Exact 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))
Mathematics ↔ Lean

Tune one trajectory using an initial distance upper bound

Lean declarationBanditRL.OnlineSubgradientDescent.regret_tuned_distance

Compiled

Plain-English statement. An initial-distance bound and selected-support bound yield DG sqrt(T) on the specified tuned run.

Mathematical reading. An initial-distance bound and selected-support bound yield DG sqrt(T) on the specified tuned run.
Intuition
An initial-distance bound and selected-support bound yield DG sqrt(T) on the specified tuned run.
Why it is needed
This declaration supplies the stated mathematical step in the shared OSD proof.
Place in the proof
Orabona v10: Printed19 transfer of equation (2.1), printed15/PDF27; comparator-distance variant.
Proof and Lean reading notes
Proof idea
Apply regret_fixed to the actual tuned trajectory. Bound its support-energy sum by T G squared and initial squared distance by D squared; discard the nonpositive terminal term and simplify with sqrt(T) squared equal to T. D,G,T are positive.
Lean reading notes
The ambient space is finite-dimensional and real with its Euclidean inner product. The feasible set is nonempty, closed and convex. Properness means no minus-infinity value and a finite ambient witness; a support is tested against every ambient point. No global convexity, differentiability or closed-loss assumption is added. Lean X0 is source x1; output Xt precedes loss t; terminal XT is source x(T+1), and the last played rate is eta(T-1). The initialization and schedule are prescribed independently of the comparator. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate. D,G,T must be positive; the norm premise is on the actual selected supports of this tuned run.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.Domain, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineSubgradientDescent.regret_fixed
Exact 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

Maintainer contract

Open the canonical completion definition and blockers

The bounded canonical choice implementation, fifteen theorems, five definitions and one abbreviation are integrated together. This package fixes one noncomputable choice from the current whole function and point. A general support-policy/oracle family, Example 2.32, the remaining chapter results and whole-book completion are separate.

Remaining blockers

  • This route fixes one noncomputable choice from the current whole function and point. Generic fixed deterministic finite-history policies are covered in the separate History-dependent OSD route (online-osd-policy), and canonical plus played-legal history-policy Example 2.32 instances are covered at online-guessing-osd. Remaining chapter results and whole-book completion are separate.

Chapter implementation status

The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.

Open 0 implementation records0 compiled · 0 partial · 0 blocked · 0 planned
MilestoneStatusLean declarationRemaining gap

Open boundaries

  • The source states the transfer from gradient to subgradient bounds. Projection well-definedness, proper-support finiteness, selection validity and feasibility induction are explicit library bridges. The source does not separately treat zero-parameter tuning.
  • This route fixes one noncomputable choice from the current whole function and point. Generic fixed deterministic finite-history policies are covered in the separate History-dependent OSD route (online-osd-policy), and canonical plus played-legal history-policy Example 2.32 instances are covered at online-guessing-osd. Remaining chapter results and whole-book completion are separate.

All Lean modules in this chapter

Open the complete module list (1 modules)
ModuleDeclarationsProject importsStatus
BanditRLProof.OnlineSubgradientDescent212Compiled