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

Teaching chapter 09 of 31 · Canonical route compiled

Constrained convex optimality

Theorem2.8 and its mandatory unnumbered ambient-interior zero-gradient consequence, with explicit convex-on-V generalization and canonical finite-neighborhood derivative; boundary minima can have nonzero gradients.

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

  • Test all feasible directions at a constrained minimum.
  • Transfer finite extended-real values without changing their order.
  • Distinguish boundary minima from interior stationary points.

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.1.1, Theorem2.8 and subsequent interior consequence
Pages
printedp11/PDF23
Open at the cited pages
mathematical proof chain · ordered flow

Characterize constrained minima

Read top to bottom to follow the argument or procedure.

  1. Use feasible segments

    The everywhere-real helper assumes ConvexOn V, x membership and an ambient derivative at x. Actual minimum derivatives on convex feasible segments are nonnegative; no open set or EReal bridge is needed by this helper.

  2. Use the supporting plane

    The supporting bound proves sufficiency. The separate finite-order bridge compares canonical real and EReal minima using x membership and finite values only on V; it needs no convexity, openness or derivative.

  3. Specialize to interior points

    Ambient interior V makes a constrained minimum local in the whole space. Actual differentiability on open U is retained, so Fermat/gradient-zero has derivative meaning despite the total fderiv fallback.

Source theorem · faithful restatement

Theorem2.8 and following unnumbered interior consequence

Original at printedp11 ↗
Optimality and interior consequenceTheorem 2.8, its following interior consequence and two library helpers. Jensen has a separate reader; later Chapter 2 obligations remain outside this package.

Every feasible directional inner product characterizes the given constrained minimum. The following mandatory unnumbered source consequence adds ambient interior V for gradient-zero equivalence; boundary gradients may be nonzero.

Model
Complete real inner-product spaces explicitly generalize source Euclidean spaces; EReal f and canonical F(z)=(f(z)).toReal, finite and differentiable on supplied open U containing V.
Assumptions
Nonempty convex V, explicit x in V; arbitrary open U contains V; f excludes both infinities on U, so embedded F=f there and locally near x; DifferentiableOn F U; ConvexOn V F. No convex U or global noBottom/finite/convex F premise outside U. Ambient interior V is additional for gradient-zero equivalence; the differentiability premise is retained.
Algorithm parameters
Every feasible y; interior membership is additional for gradient-zero equivalence.
Regret notion
A convex optimality characterization, not a regret theorem.
Guarantee
Original EReal IsMinOn f V x iff every feasible inner(gradient F x,y-x)>=0; with ambient interior V, iff gradient F x=0. No optimizer existence, uniqueness, closedness, boundedness or zero minimum-value claim.
Source mathematical statement. A convex differentiable function is minimized precisely when all feasible directional inner products are nonnegative.

BanditRLlib relationship. Shared theorem_2_8 weakens source neighborhood convexity to ConvexOn V F, yielding a stronger theorem, not a stronger premise or equivalence of assumptions. Source neighborhood convexity restricts to V; the public canary constructs ConvexOn U then restricts it. Actual U need not be convex. minOn_real_iff_gradient and minOn_finitePart_iff are generalized real and finite-order library helpers, not printed theorems. interior_min_iff_gradient_zero represents the mandatory following unnumbered main-text consequence.

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.

Mathematics ↔ Lean

Real optimality criterion

Lean declarationBanditRL.OnlineConvex.minOn_real_iff_gradient

Compiled

Plain-English statement. For everywhere-real f, ConvexOn V, explicit x membership and an ambient derivative at x, the minimum iff every feasible gradient direction is nonnegative.

Mathematical reading. For everywhere-real f, ConvexOn V, explicit x membership and an ambient derivative at x, the minimum iff every feasible gradient direction is nonnegative.
Intuition
For everywhere-real f, ConvexOn V, explicit x membership and an ambient derivative at x, the minimum iff every feasible gradient direction is nonnegative.
Why it is needed
Preserves the distinction between boundary and interior convex minima.
Place in the proof
Generalized everywhere-real library helper for Theorem2.8, Orabona v10 printedp11/PDF23; not another printed theorem.
Proof and Lean reading notes
Proof idea
Use local minimum derivatives on convex segments for necessity and the supporting plane for sufficiency.
Lean reading notes
ConvexOn includes convex V. This helper has no open set, finite-part bridge or differentiability-at-all-points premise. IsMinOn only compares values; membership is separate. Boundary gradient need not vanish.
Teaching dependencies
BanditRL.OnlineConvex.convex_gradient_lower_bound
Exact Lean statement
theorem minOn_real_iff_gradient (V : Set E) (f : E → ℝ) (hf : ConvexOn ℝ V f) (x : E) (hx : x ∈ V) (hd : DifferentiableAt ℝ f x) : IsMinOn f V x ↔ ∀ y ∈ V, 0 ≤ inner ℝ (gradient f x) (y - x)
Mathematics ↔ Lean

Finite representation preserves minima

Lean declarationBanditRL.OnlineConvex.minOn_finitePart_iff

Compiled

Plain-English statement. Explicit x membership and exclusion of both infinities at every point of V make original EReal and canonical real minimum comparisons equivalent.

Mathematical reading. Explicit x membership and exclusion of both infinities at every point of V make original EReal and canonical real minimum comparisons equivalent.
Intuition
Explicit x membership and exclusion of both infinities at every point of V make original EReal and canonical real minimum comparisons equivalent.
Why it is needed
Preserves the distinction between boundary and interior convex minima.
Place in the proof
Finite-order library bridge for Theorem2.8, Orabona v10 printedp11/PDF23; not a printed theorem.
Proof and Lean reading notes
Proof idea
Rewrite the finite values at the candidate and comparator using exact EReal coercions.
Lean reading notes
Only finite values on V are required; either infinity outside V is allowed. No convexity, open neighborhood, differentiability or topology of V. Shared complete-inner-product context is retained but unnecessary for this order fact; no neighborhood equality is asserted by this helper.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem minOn_finitePart_iff (f : E → EReal) (V : Set E) (x : E) (hx : x ∈ V) (hfin : ∀ z ∈ V, f z ≠ ⊤ ∧ f z ≠ ⊥) : IsMinOn f V x ↔ IsMinOn (fun z => (f z).toReal) V x
Mathematics ↔ Lean

Orabona Theorem 2.8

Lean declarationBanditRL.OnlineConvex.theorem_2_8

Compiled

Plain-English statement. Given nonempty convex V and x in V, finite differentiability on arbitrary open U containing V and ConvexOn V for canonical F characterize the minimum by all feasible gradient directions.

Mathematical reading. Given nonempty convex V and x in V, finite differentiability on arbitrary open U containing V and ConvexOn V for canonical F characterize the minimum by all feasible gradient directions.
Intuition
Given nonempty convex V and x in V, finite differentiability on arbitrary open U containing V and ConvexOn V for canonical F characterize the minimum by all feasible gradient directions.
Why it is needed
Preserves the distinction between boundary and interior convex minima.
Place in the proof
Orabona v10 printedp11/PDF23.
Proof and Lean reading notes
Proof idea
Combine the real criterion and finite-value order equivalence, using the open neighborhood for differentiation.
Lean reading notes
Convexity on V is a weaker premise yielding a stronger theorem than source neighborhood convexity, not equivalent assumptions. Actual U need not be convex. F(z)=(f(z)).toReal embeds as f on finite U and locally near x; no global noBottom/finite/convex F outside U. No existence/uniqueness/closedness/boundedness claim.
Teaching dependencies
BanditRL.OnlineConvex.minOn_real_iff_gradient, BanditRL.OnlineConvex.minOn_finitePart_iff
Exact Lean statement
theorem theorem_2_8 (f : E → EReal) (V U : Set E) (hV : Convex ℝ V) (hne : V.Nonempty) (x : E) (hx : x ∈ V) (hU : IsOpen U) (hVU : V ⊆ U) (hfin : ∀ z ∈ U, f z ≠ ⊤ ∧ f z ≠ ⊥) (hf : ConvexOn ℝ V (fun z => (f z).toReal)) (hd : DifferentiableOn ℝ (fun z => (f z).toReal) U) : IsMinOn f V x ↔ ∀ y ∈ V, 0 ≤ inner ℝ (gradient (fun z => (f z).toReal) x) (y - x)
Mathematics ↔ Lean

Interior minima and zero gradient

Lean declarationBanditRL.OnlineConvex.interior_min_iff_gradient_zero

Compiled

Plain-English statement. At an ambient-interior feasible point, under the finite/open/differentiable/convex-on-V premises, being a minimum is equivalent to gradient F x=0.

Mathematical reading. At an ambient-interior feasible point, under the finite/open/differentiable/convex-on-V premises, being a minimum is equivalent to gradient F x=0.
Intuition
At an ambient-interior feasible point, under the finite/open/differentiable/convex-on-V premises, being a minimum is equivalent to gradient F x=0.
Why it is needed
Preserves the distinction between boundary and interior convex minima.
Place in the proof
Mandatory unnumbered interior consequence following Theorem2.8, Orabona v10 printedp11/PDF23.
Proof and Lean reading notes
Proof idea
Use the local-minimum Fermat theorem for necessity and the full feasible-direction criterion for sufficiency.
Lean reading notes
Ambient interior, not relative interior; no boundary-zero-gradient claim. Same canonical F/finite U/local equality as theorem_2_8; differentiability retained despite total fderiv fallback. Zero gradient is a vector condition, not zero loss or uniqueness.
Teaching dependencies
BanditRL.OnlineConvex.minOn_finitePart_iff, BanditRL.OnlineConvex.theorem_2_8
Exact Lean statement
theorem interior_min_iff_gradient_zero (f : E → EReal) (V U : Set E) (hV : Convex ℝ V) (hne : V.Nonempty) (x : E) (hx : x ∈ V) (hxi : x ∈ interior V) (hU : IsOpen U) (hVU : V ⊆ U) (hfin : ∀ z ∈ U, f z ≠ ⊤ ∧ f z ≠ ⊥) (hf : ConvexOn ℝ V (fun z => (f z).toReal)) (hd : DifferentiableOn ℝ (fun z => (f z).toReal) U) : IsMinOn f V x ↔ gradient (fun z => (f z).toReal) x = 0

Maintainer contract

Open the canonical completion definition and blockers

Theorem 2.8, its following interior consequence and two retained library helpers. These declarations are integrated into the shared library; they do not complete Chapter 2.

Remaining blockers

  • Later Chapter 2 source obligations and remaining book routes are outside this bounded package.

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 rest of Chapter 2 remains incomplete.
  • These mathematical interfaces are not a complete online algorithm or whole-book proof.

All Lean modules in this chapter

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