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

Teaching chapter 06 of 31 · Canonical route compiled

Convexity with extended-real values

Real-height epigraphs, effective domains, constraint indicators and the source convexity characterization.

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

  • Keep positive and negative infinity distinct from finite real values.
  • Understand why an epigraph characterizes convexity.
  • Convert between epigraph convexity and interior-weight inequalities under the exact source assumptions.
  • Distinguish finite constrained loss from the below-top domain and retain no-bottom on the domain identity.

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
Section 2.1.1; Definitions 2.2-2.3, Theorem 2.4 and domain/indicator consequences
Pages
printed pp. 9-10; PDF pp. 21-22
Open at the cited pages
mathematical characterization · ordered flow

Read the convexity equivalence

Read top to bottom to follow the argument or procedure.

  1. Define the epigraph

    Keep real heights and the full extended-real function.

  2. Identify the effective domain

    For Theorem 2.4, verify convexity of the domain and exclusion of negative infinity.

  3. Check interior weights

    Compare the value on each convex combination with the weighted endpoint values.

3 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementTheorem 2.4: convexity through interior weightsScoped convexity proofprinted p. 10
Source theorem · faithful restatement

Theorem 2.4: convexity through interior weights

Original at printed p. 10 ↗
Scoped convexity proofOnly the named foundation package is covered; remaining Chapter 2 results and exercises are not claimed complete.

Infinite values outside the effective domain are retained.

Model
Extended-real functions on a finite-dimensional real vector space; the Lean interfaces support real vector spaces.
Assumptions
Theorem 2.4 excludes negative infinity and assumes a convex effective domain. Definition 2.3 itself permits both infinities.
Algorithm parameters
Two points in the effective domain and a real weight strictly between zero and one; empty domains remain allowed.
Regret notion
This is a convex-analysis equivalence, not a regret bound.
Guarantee
Exact equivalence between the source real-height epigraph definition and its interior-weight inequality.
Source mathematical statement. For a function that never takes negative infinity and has convex effective domain, epigraph convexity is equivalent to the interior-weight inequality.

BanditRLlib relationship. The shared theorem_2_4 keeps no negative infinity, convex effective domain, domain points and strict interior weights. Proved finite-value epigraph bridges reuse the real ConvexOn API; domain cardinality need not be finite.

Source theorem · faithful restatementConstraint indicators and adding constraintsConstraint foundationprinted pp. 9-10
Source theorem · faithful restatement

Constraint indicators and adding constraints

Original at printed pp. 9-10 ↗
Constraint foundationThe exact finite-loss iff refines the source necessary condition. Ordinary EReal addition permits bottom in that iff; the separate below-top domain identity requires global no-bottom. Membership alone does not ensure finite original loss. Later Chapter 2 obligations remain open.

This is the extended-real constraint indicator, not the zero-outside indicator used in some other contexts.

Model
The same extended-real epigraph model.
Assumptions
No nonempty-domain assumption. Adding constraints uses a convex feasible set and a convex function that never takes negative infinity.
Algorithm parameters
A feasible set V and an extended-real function f.
Regret notion
No algorithmic performance statement is made here.
Guarantee
Indicator convexity equivalence and convexity of f plus the indicator. Finite constrained loss is equivalent to feasibility and finite original loss. The below-top domain equals the domain intersection only under no-bottom.
Source mathematical statement. The constraint indicator is convex exactly when its set is convex; adding it to a convex function that never takes negative infinity preserves convexity.

BanditRLlib relationship. Shared interfaces: BanditRL.OnlineConvex.convex_indicator_iff and BanditRL.OnlineConvex.convex_add_indicator. The separate finite-loss necessity is refined to an exact iff by finite_add_indicator_iff. effectiveDomain_add_indicator gives the domain intersection under global no-bottom. Orabona specifies neither mixed-infinity addition nor a total ambient extension of the original V-to-real game losses in this passage. Applying ordinary bottom-dominant EReal addition to arbitrary ambient extended-real f is an explicit library interpretation and refinement.

Source theorem · faithful restatementExamples 2.5 and 2.6: affine functions and normsScoped convexity proofprinted p. 10
Source theorem · faithful restatement

Examples 2.5 and 2.6: affine functions and norms

Original at printed p. 10 ↗
Scoped convexity proofOnly the named foundation package is covered; remaining Chapter 2 results and exercises are not claimed complete.

Finite real functions embed into the same extended-real epigraph definition.

Model
Real inner-product spaces for affine functions; real normed spaces for norms. Both include finite-dimensional Euclidean space.
Assumptions
Arbitrary affine slope and constant; any norm. No boundedness or nonzero-value assumption.
Algorithm parameters
All points in the whole space.
Regret notion
These are exact convexity examples, not regret bounds.
Guarantee
Epigraph convexity of each source example.
Source mathematical statement. Affine functions and norms are convex.

BanditRLlib relationship. Exact shared example_2_5 and example_2_6, including the norm proof left as a main-text exercise. The real coercion iff is a library refinement; real normed/inner-product generality includes the source Euclidean instances.

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. 4 additional dependency, extension, or research-frontier notes are grouped below.

Mathematics ↔ Lean

Constraint indicators characterize convex sets

Lean declarationBanditRL.OnlineConvex.convex_indicator_iff

Compiled

Plain-English statement. Zero on the feasible set and positive infinity outside express the set as a function.

Mathematical reading. Zero on the feasible set and positive infinity outside express the set as a function.
Intuition
Zero on the feasible set and positive infinity outside express the set as a function.
Why it is needed
This is a source-qualified Chapter 2 foundation in the shared Lean graph.
Place in the proof
Orabona v10, printed pages 9-10.
Proof and Lean reading notes
Proof idea
Identify the epigraph as the feasible set times nonnegative real heights; use convexity of the effective domain for the converse.
Lean reading notes
Definition 2.3 permits both infinities. Theorem 2.4 and indicator addition retain their explicit no-negative-infinity conditions. Remaining Chapter 2 results are not completed.
Teaching dependencies
BanditRL.OnlineConvex.convex_effectiveDomain, BanditRL.OnlineConvex.effectiveDomain_indicator
Exact Lean statement
theorem convex_indicator_iff (V : Set E) : IsConvexExtended (extendedIndicator V) ↔ Convex ℝ V
Mathematics ↔ Lean

Theorem 2.4: epigraph and weighted values

Lean declarationBanditRL.OnlineConvex.theorem_2_4

Compiled

Plain-English statement. For f that never takes negative infinity and has convex effective domain, epigraph convexity is equivalent to the interior-weight inequality on domain points.

Mathematical reading. For f that never takes negative infinity and has convex effective domain, epigraph convexity is equivalent to the interior-weight inequality on domain points.
Intuition
For f that never takes negative infinity and has convex effective domain, epigraph convexity is equivalent to the interior-weight inequality on domain points.
Why it is needed
This is a source-qualified Chapter 2 foundation in the shared Lean graph.
Place in the proof
Orabona v10, printed pages 9-10.
Proof and Lean reading notes
Proof idea
Prove the exact real-height epigraph bridge and apply the existing real-valued positive-weight convexity equivalence.
Lean reading notes
Explicit noBottom and convex effective domain; the domain may be unbounded, empty or infinite in cardinality. Real epigraph heights and strict interior weights; finite-value conversions are proved, not assumed.
Teaching dependencies
BanditRL.OnlineConvex.convexExtended_iff_toReal
Exact Lean statement
theorem theorem_2_4 (f : E → EReal) (hbot : ∀ x, f x ≠ ⊥) (hdom : Convex ℝ (effectiveDomain f)) : IsConvexExtended f ↔ ∀ x ∈ effectiveDomain f, ∀ y ∈ effectiveDomain f, ∀ θ : ℝ, 0 < θ → θ < 1 → f (θ • x + (1 - θ) • y) ≤ (θ : EReal) * f x + ((1 - θ : ℝ) : EReal) * f y
Mathematics ↔ Lean

Orabona Example 2.5: affine functions

Lean declarationBanditRL.OnlineConvex.example_2_5

Compiled

Plain-English statement. Every inner-product affine function is convex under the shared epigraph definition.

Mathematical reading. Every inner-product affine function is convex under the shared epigraph definition.
Intuition
Finite real values embed exactly into extended-real epigraphs.
Why it is needed
Connects basic source examples to the same convexity definition used by later theory.
Place in the proof
Orabona v10, printed page 10, PDF page 22.
Proof and Lean reading notes
Proof idea
Use the proved real embedding equivalence, then the affine identity or pinned mathlib norm convexity.
Lean reading notes
No bounded-domain or nonzero-value assumptions; the public canary includes nondegenerate cases.
Teaching dependencies
BanditRL.OnlineConvex.convexExtended_coe_iff
Exact Lean statement
theorem example_2_5 {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (z : E) (b : ℝ) : IsConvexExtended (fun x => ((inner ℝ z x + b : ℝ) : EReal))
Mathematics ↔ Lean

Orabona Example 2.6: norms

Lean declarationBanditRL.OnlineConvex.example_2_6

Compiled

Plain-English statement. Every real norm is convex under the shared epigraph definition.

Mathematical reading. Every real norm is convex under the shared epigraph definition.
Intuition
Finite real values embed exactly into extended-real epigraphs.
Why it is needed
Connects basic source examples to the same convexity definition used by later theory.
Place in the proof
Orabona v10, printed page 10, PDF page 22.
Proof and Lean reading notes
Proof idea
Use the proved real embedding equivalence, then the affine identity or pinned mathlib norm convexity.
Lean reading notes
No bounded-domain or nonzero-value assumptions; the public canary includes nondegenerate cases.
Teaching dependencies
BanditRL.OnlineConvex.convexExtended_coe_iff
Exact Lean statement
theorem example_2_6 {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] : IsConvexExtended (fun x : E => ((‖x‖ : ℝ) : EReal))
Explore 4 additional Lean teaching notes
Mathematics ↔ Lean

Definition 2.2: convex sets

Lean declarationBanditRL.OnlineConvex.definition_2_2

Compiled

Plain-English statement. The source open-weight definition agrees with the shared convex-set API.

Mathematical reading. The source open-weight definition agrees with the shared convex-set API.
Intuition
The source open-weight definition agrees with the shared convex-set API.
Why it is needed
This is a source-qualified Chapter 2 foundation in the shared Lean graph.
Place in the proof
Orabona v10, printed pages 9-10.
Proof and Lean reading notes
Proof idea
Apply the positive-weight characterization and identify the second weight with one minus the first.
Lean reading notes
Definition 2.3 permits both infinities. Theorem 2.4 and indicator addition retain their explicit no-negative-infinity conditions. Remaining Chapter 2 results are not completed.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem definition_2_2 (V : Set E) : Convex ℝ V ↔ ∀ x ∈ V, ∀ y ∈ V, ∀ θ : ℝ, 0 < θ → θ < 1 → θ • x + (1 - θ) • y ∈ V
Mathematics ↔ Lean

Adding a convex constraint

Lean declarationBanditRL.OnlineConvex.convex_add_indicator

Compiled

Plain-English statement. Adding a convex constraint preserves convexity when the original function never takes negative infinity.

Mathematical reading. Adding a convex constraint preserves convexity when the original function never takes negative infinity.
Intuition
Adding a convex constraint preserves convexity when the original function never takes negative infinity.
Why it is needed
This is a source-qualified Chapter 2 foundation in the shared Lean graph.
Place in the proof
Orabona v10, printed pages 9-10.
Proof and Lean reading notes
Proof idea
The constrained epigraph is the original epigraph intersected with the feasible cylinder.
Lean reading notes
Definition 2.3 permits both infinities. Theorem 2.4 and indicator addition retain their explicit no-negative-infinity conditions. Remaining Chapter 2 results are not completed.
Teaching dependencies
BanditRL.OnlineConvex.realEpigraph, BanditRL.OnlineConvex.extendedIndicator
Exact Lean statement
theorem convex_add_indicator (f : E → EReal) (hbot : ∀ x, f x ≠ ⊥) (hf : IsConvexExtended f) (V : Set E) (hV : Convex ℝ V) : IsConvexExtended (fun x => f x + extendedIndicator V x)
Mathematics ↔ Lean

Finite loss requires feasibility and finite original loss

Lean declarationBanditRL.OnlineConvex.finite_add_indicator_iff

Compiled

Plain-English statement. The constrained value is finite exactly when the point is feasible and its original loss is finite.

Mathematical reading. The constrained value is finite exactly when the point is feasible and its original loss is finite.
Intuition
At feasible points the indicator adds zero. Outside V, adding positive infinity never yields a finite real, including the negative-infinity case.
Why it is needed
Close the unnumbered main-text finite-loss obligation used for both the prediction and comparator.
Place in the proof
Orabona v10 Section2.1.1, printed9-10/PDF21-22; explicit iff refinement of the source necessary condition.
Proof and Lean reading notes
Proof idea
Split on x in V. Inside, f(x)+0=f(x). Outside, split f(x) into bottom, finite and top: the sums are bottom, top and top, and none equals an embedded real.
Lean reading notes
The source printed9-10/PDF21-22 gives a necessary condition: finite constrained loss requires x in V. The iff is an explicit library refinement adding finite original f(x). Arbitrary carriers generalize Rd for this algebra. Ordinary bottom-dominant EReal addition is retained. Finite-real witness existence excludes both infinities; below-top effectiveDomain includes bottom. No noBottom premise on finite_add_indicator_iff; global noBottom is essential on effectiveDomain_add_indicator. Convexity/topology/nonempty V are unnecessary here. Two retained proofs are integrated here; later Chapter 2 obligations remain outside this package. The source passage specifies neither mixed-infinity addition nor a total ambient extension of V-to-real game losses; the arbitrary ambient EReal formulation is an explicit library refinement.
Teaching dependencies
BanditRL.OnlineConvex.extendedIndicator
Exact Lean statement
theorem finite_add_indicator_iff {E : Type*} (f : E → EReal) (V : Set E) (x : E) : (∃ r : ℝ, f x + extendedIndicator V x = (r : EReal)) ↔ x ∈ V ∧ ∃ r : ℝ, f x = (r : EReal)
Mathematics ↔ Lean

Effective domain of a constrained loss

Lean declarationBanditRL.OnlineConvex.effectiveDomain_add_indicator

Compiled

Plain-English statement. Under global noBottom, the constrained effective domain is the original effective domain intersected with V.

Mathematical reading. Under global noBottom, the constrained effective domain is the original effective domain intersected with V.
Intuition
Below top becomes a finite-value test only when bottom is excluded. Without that premise, bottom outside V leaks into the domain.
Why it is needed
Support the constraint algebra with the exact shared effective-domain definition, while exposing its stronger hypothesis.
Place in the proof
Separate algebraic helper associated with Orabona v10 printed9-10/PDF21-22; not a printed numbered theorem.
Proof and Lean reading notes
Proof idea
At x in V, adding zero preserves f(x)<top. Outside V, noBottom makes f(x)+top=top. Thus membership is exactly the intersection. The public constant-bottom/empty-V canary refutes dropping noBottom.
Lean reading notes
The source printed9-10/PDF21-22 gives a necessary condition: finite constrained loss requires x in V. The iff is an explicit library refinement adding finite original f(x). Arbitrary carriers generalize Rd for this algebra. Ordinary bottom-dominant EReal addition is retained. Finite-real witness existence excludes both infinities; below-top effectiveDomain includes bottom. No noBottom premise on finite_add_indicator_iff; global noBottom is essential on effectiveDomain_add_indicator. Convexity/topology/nonempty V are unnecessary here. Two retained proofs are integrated here; later Chapter 2 obligations remain outside this package. The source passage specifies neither mixed-infinity addition nor a total ambient extension of V-to-real game losses; the arbitrary ambient EReal formulation is an explicit library refinement.
Teaching dependencies
BanditRL.OnlineConvex.effectiveDomain, BanditRL.OnlineConvex.extendedIndicator
Exact Lean statement
theorem effectiveDomain_add_indicator {E : Type*} (f : E → EReal) (hbot : ∀ x, f x ≠ ⊥) (V : Set E) : effectiveDomain (fun x => f x + extendedIndicator V x) = effectiveDomain f ∩ V

Maintainer contract

Open the canonical completion definition and blockers

Definitions 2.2–2.3, Theorem 2.4 with no negative infinity and a convex effective domain, the domain/indicator consequences, and Examples 2.5–2.6. The norm example includes the proof left as an exercise. Closure constructions have a separate bounded reader. The finite-loss necessity now has an exact iff refinement, with a separate no-bottom domain-intersection helper. This does not complete Chapter 2.

Remaining blockers

  • Later Chapter 2 results remain outside this bounded foundation 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 (3 modules)