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
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.Formula renderer unavailable; readable fallback: For a function that never takes negative infinity and has convex effective domain, epigraph convexity is equivalent to the interior-weight inequality.\[f(\theta x+(1-\theta)y)\le\theta f(x)+(1-\theta)f(y),\quad x,y\in\operatorname{dom}f,\;0<\theta<1\]Swipe to read the full formula →
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.
The mathematical content is restated in this site's notation; wording is ours. See printed p. 10 in the linked source for the original statement and full assumptions.
Source theorem · faithful restatementConstraint indicators and adding constraintsConstraint foundationprinted 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.Formula renderer unavailable; readable fallback: The constraint indicator is convex exactly when its set is convex; adding it to a convex function that never takes negative infinity preserves convexity.\[\iota_V(x)=\begin{cases}0&x\in V,\\+\infty&x\notin V.\end{cases}\]Swipe to read the full formula →
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.
The mathematical content is restated in this site's notation; wording is ours. See printed pp. 9-10 in the linked source for the original statement and full assumptions.
Source theorem · faithful restatementExamples 2.5 and 2.6: affine functions and normsScoped convexity proofprinted 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.Formula renderer unavailable; readable fallback: Affine functions and norms are convex.\[f(x)=\langle z,x\rangle+b,\qquad h(x)=\|x\|\]Swipe to read the full formula →
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.
The mathematical content is restated in this site's notation; wording is ours. See printed p. 10 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.
A curated route through definitions, key bridges, and canonical terminals stays visible. 4 additional dependency, extension, or research-frontier notes are grouped below.
Plain-English statement. Zero on the feasible set and positive infinity outside express the set as a function.
Mathematical reading.Formula renderer unavailable; readable fallback: Zero on the feasible set and positive infinity outside express the set as a function.\(\iota_V\text{ is convex}\iff V\text{ is convex}\)Swipe to read the full formula →
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.
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.Formula renderer unavailable; readable fallback: For f that never takes negative infinity and has convex effective domain, epigraph convexity is equivalent to the interior-weight inequality on domain points.\(f\text{ convex}\iff\forall x,y\in\operatorname{dom}f,\;0<\theta<1:\;f(\theta x+(1-\theta)y)\le\theta f(x)+(1-\theta)f(y)\)Swipe to read the full formula →
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
Plain-English statement. Every inner-product affine function is convex under the shared epigraph definition.
Mathematical reading.Formula renderer unavailable; readable fallback: Every inner-product affine function is convex under the shared epigraph definition.\(f(x)=\langle z,x\rangle+b\)Swipe to read the full formula →
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))
Plain-English statement. Every real norm is convex under the shared epigraph definition.
Mathematical reading.Formula renderer unavailable; readable fallback: Every real norm is convex under the shared epigraph definition.\(f(x)=\|x\|\)Swipe to read the full formula →
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.
Plain-English statement. The source open-weight definition agrees with the shared convex-set API.
Mathematical reading.Formula renderer unavailable; readable fallback: The source open-weight definition agrees with the shared convex-set API.\(\forall x,y\in V,\;0<\theta<1:\;\theta x+(1-\theta)y\in V\)Swipe to read the full formula →
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
Plain-English statement. Adding a convex constraint preserves convexity when the original function never takes negative infinity.
Mathematical reading.Formula renderer unavailable; readable fallback: Adding a convex constraint preserves convexity when the original function never takes negative infinity.\(f+\iota_V\text{ is convex}\)Swipe to read the full formula →
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.
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)
Plain-English statement. The constrained value is finite exactly when the point is feasible and its original loss is finite.
Mathematical reading.Formula renderer unavailable; readable fallback: The constrained value is finite exactly when the point is feasible and its original loss is finite.\((\exists r\in\mathbb R:\ f(x)+\iota_V(x)=r)\iff x\in V\land(\exists s\in\mathbb R:\ f(x)=s)\)Swipe to read the full formula →
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)
Plain-English statement. Under global noBottom, the constrained effective domain is the original effective domain intersected with V.
Mathematical reading.Formula renderer unavailable; readable fallback: Under global noBottom, the constrained effective domain is the original effective domain intersected with V.\(\operatorname{dom}(f+\iota_V)=\operatorname{dom}f\cap V,\quad \forall x:\ f(x)\ne-\infty\)Swipe to read the full formula →
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.
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
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.