Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Teaching chapter 08 of 31 · Canonical route compiled
Supporting gradients for extended-real losses
Theorem2.7 for all comparators, with global noBottom, ambient-interior x, canonical local finite representation and two explicitly classified library helpers.
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 Chapter 2 convex-analysis foundations.
Learning goals
Interpret the gradient of canonical F(z)=(f(z)).toReal using a proved local embedding identity under global noBottom and ambient-interior membership.
Derive the supporting plane from a convex affine-line derivative.
Keep positive infinity at comparator points outside the effective domain.
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
Read top to bottom to follow the argument or procedure.
01
Identify a finite neighborhood
Global noBottom and ambient interior supply a neighborhood identity between f and the embedding of canonical F(z)=(f(z)).toReal. This identity is local.
02
Differentiate a line
The generalized real helper assumes everywhere-real f, ConvexOn V, x/y in V and an ambient derivative at x. It uses a convex affine-line secant; V need not be open and that helper does not use the extended-real representation lemma.
03
Keep all comparators
Use the finite inequality inside the domain and positive infinity outside it.
Full extended-real supporting boundTheorem2.7 and two explicitly classified library helpers only; Chapter2 and the whole book remain incomplete. Optimality and Jensen have separate bounded readers; subgradient theory, linearization and later source or legacy migration obligations remain outside this integration.
Under global noBottom, convexity, ambient-interior membership and differentiability of canonical F at x, the comparator is every y, including positive infinity outside the domain.
Model
Extended-real convex functions on complete real inner-product spaces, including finite-dimensional Euclidean space.
Assumptions
Global noBottom and convex real-height epigraph; x in ambient interior of effectiveDomain; DifferentiableAt of canonical F(z)=(f(z)).toReal at x. finitePart_eventually proves local embedding identity near x; no global identity with f or global convexity of F is asserted.
Algorithm parameters
Every comparator y, including points outside the domain.
Regret notion
A first-order convex-analysis inequality, not a regret theorem.
Guarantee
f(x)+embedded inner(gradient F x,y-x) <= f(y) for every y; outside-domain f(y)=positive infinity remains in the conclusion. No bounded/closed domain or global differentiability hypothesis.
Source mathematical statement.Formula renderer unavailable; readable fallback: A differentiable interior point of an extended-real convex function has a global supporting-gradient bound.\[f(x)+\langle\nabla f(x),y-x\rangle\le f(y),\qquad\forall y\]Swipe to read the full formula →
BanditRLlib relationship. Exact shared extended-real endpoint theorem_2_7; finitePart_eventually is a local representation helper and convex_gradient_lower_bound a generalized everywhere-real ConvexOn helper, not additional printed theorems. Historical OnlineGradientDescent.first_order uses stronger RegularLoss: convexity and differentiability on a convex open neighborhood containing V. Separately, OnlineGradientDescentSource.source_to_feasible derives feasible-set convexity and ambient derivatives from the source arbitrary-open differentiability neighborhood; its first_order reuses the real helper. Neither connection is an equivalence between these regularity predicates.
The mathematical content is restated in this site's notation; wording is ours. See printedp11 in the linked source for the original statement and full assumptions.
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.
Plain-English statement. Global exclusion of negative infinity and ambient-interior membership prove that canonical toReal embeds back to f locally near x.
Mathematical reading.Formula renderer unavailable; readable fallback: Global exclusion of negative infinity and ambient-interior membership prove that canonical toReal embeds back to f locally near x.\((f(z).\mathrm{toReal}:\overline{\mathbb R})=f(z)\text{ locally at }x\)Swipe to read the full formula →
Intuition
Global exclusion of negative infinity and ambient-interior membership prove that canonical toReal embeds back to f locally near x.
Why it is needed
Establishes the exact first-order foundation for later online convex analysis.
Place in the proof
Library local representation helper for Theorem2.7, Orabona v10 printedp11/PDF23; not a separate printed theorem.
Proof and Lean reading notes
Proof idea
Use the open interior and prove both infinite values are excluded there.
Lean reading notes
No convexity or differentiability premise is used. General domain f<top can include bottom, so global noBottom is explicit. Local identity only; top may occur away from x. Ambient, not relative, interior.
Teaching dependencies
BanditRL.OnlineConvex.effectiveDomain
Exact Lean statement
theorem finitePart_eventually (f : E → EReal) (hbot : ∀ z, f z ≠ ⊥) (x : E) (hx : x ∈ interior (effectiveDomain f)) : ∀ᶠ z in 𝓝 x, ((f z).toReal : EReal) = f z
Plain-English statement. For everywhere-real f, ConvexOn V, x/y in V and an ambient derivative at x give the supporting bound at y.
Mathematical reading.Formula renderer unavailable; readable fallback: For everywhere-real f, ConvexOn V, x/y in V and an ambient derivative at x give the supporting bound at y.\(f(x)+\langle\nabla f(x),y-x\rangle\le f(y)\)Swipe to read the full formula →
Intuition
For everywhere-real f, ConvexOn V, x/y in V and an ambient derivative at x give the supporting bound at y.
Why it is needed
Establishes the exact first-order foundation for later online convex analysis.
Place in the proof
Generalized everywhere-real library helper supporting Theorem2.7, Orabona v10 printedp11/PDF23; not another printed theorem.
Proof and Lean reading notes
Proof idea
Restrict to the affine line through x and y and apply the convex derivative-slope inequality.
Lean reading notes
ConvexOn includes convex V. V need not be open, closed or bounded; no extended-real local representation lemma is needed by this real helper. Differentiability is ambient at x only, and y must belong to V.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem convex_gradient_lower_bound (V : Set E) (f : E → ℝ) (hf : ConvexOn ℝ V f) (x y : E) (hx : x ∈ V) (hy : y ∈ V) (hd : DifferentiableAt ℝ f x) : f x + inner ℝ (gradient f x) (y - x) ≤ f y
Plain-English statement. Global noBottom, convexity, ambient-interior x and differentiability of canonical F(z)=(f(z)).toReal at x give the bound for every y, including positive infinity outside the domain.
Mathematical reading.Formula renderer unavailable; readable fallback: Global noBottom, convexity, ambient-interior x and differentiability of canonical F(z)=(f(z)).toReal at x give the bound for every y, including positive infinity outside the domain.\(f(x)+\langle\nabla f(x),y-x\rangle\le f(y),\quad\forall y\)Swipe to read the full formula →
Intuition
Global noBottom, convexity, ambient-interior x and differentiability of canonical F(z)=(f(z)).toReal at x give the bound for every y, including positive infinity outside the domain.
Why it is needed
Establishes the exact first-order foundation for later online convex analysis.
Place in the proof
Orabona v10 printedp11/PDF23.
Proof and Lean reading notes
Proof idea
Use local finite agreement and the real supporting bound on the domain; handle its complement by positive infinity.
Lean reading notes
The neighborhood lemma proves local embedded F=f near x; neither global equality with f nor global convexity of F is claimed. Domain comparators use the finite ConvexOn bridge; outside-domain f(y)=top is proved. Complete real inner-product spaces generalize the source Euclidean setting.
Open the canonical completion definition and blockers
Orabona Theorem 2.7 and two library helpers: local finite representation and a generalized real-valued supporting bound. Source statements and existing proof bodies are retained. This is not completion of Chapter 2.
Remaining blockers
Subgradient theory, linearization and later Chapter 2 routes remain outside this integration; optimality and Jensen have separate bounded readers.
Chapter implementation status
The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.