Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Teaching chapter 07 of 31 · Canonical route compiled
Convexity-preserving constructions
Affine precomposition, arbitrary suprema, monotone real composition and nonnegative combinations with explicit convex upper addition.
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
Use affine changes of input without extra map assumptions.
Recognize the epigraph intersection behind an arbitrary supremum.
Keep the real-valued and global-monotonicity hypotheses of composition.
Distinguish convex upper addition from ordinary bottom-dominant EReal addition.
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, four unnumbered closure bullets; proofs assigned as exercises on the following page
These are three of the four printed closure statements. Their proofs are left as exercises. The empty-family result uses the explicit library convention sup(empty) = negative infinity.
Model
Extended-real epigraph convexity for affine maps and suprema; real-valued functions for monotone composition.
Assumptions
Arbitrary affine map and arbitrary index for extended-real inputs, including empty index. Composition keeps globally real-valued convex f and g and globally nondecreasing g; g is not applied to infinite values.
Algorithm parameters
All input points; empty family included.
Regret notion
These are convexity-preservation implications, not regret bounds.
Guarantee
Convexity of the three named constructions.
Source mathematical statement.Formula renderer unavailable; readable fallback: Affine precomposition, pointwise supremum, and monotone real convex composition preserve convexity.\[f\circ A,\qquad\sup_i f_i,\qquad g\circ f\]Swipe to read the full formula →
BanditRLlib relationship. The three shared endpoints are convex_comp_affine, convex_iSup and convex_comp_monotone. Real-module carriers generalize the printed Euclidean spaces. The source does not spell out an empty-supremum convention; the complete-lattice convention is made explicit here. The proof bridge below describes the library proofs, not an author-supplied derivation.
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 restatementNonnegative linear combinations with convex upper additionExplicit upper-addition proofprinted p. 10+
Source theorem · faithful restatement
Nonnegative linear combinations with convex upper addition
Explicit upper-addition proofThe operation convention is part of the contract; this is not a theorem for ordinary EReal addition and does not complete Chapter2.
At mixed infinities, named upper addition returns positive infinity; the convention is an explicitly attributed interpretation and is not printed by Orabona. Ordinary mathlib EReal addition differs.
Model
Arbitrary extended-real epigraph-convex functions on real vector spaces.
Assumptions
Convex f and g, nonnegative real coefficients; top-dominant upperAdd and zero-times-infinity=zero are explicit operations.
Algorithm parameters
All points and all coefficients >=0, including zero.
Regret notion
These are convexity-preservation implications, not regret bounds.
Guarantee
Convexity of the upper-addition combination, with both infinities retained.
Source mathematical statement.Formula renderer unavailable; readable fallback: Nonnegative scaling and convex upper addition preserve extended-real epigraph convexity.\[a f(x)\mathbin{+_{\mathrm{upper}}}b g(x),\qquad a,b\ge0\]Swipe to read the full formula →
BanditRLlib relationship. The shared endpoint is convex_nonneg_linear_combination. Orabona leaves the mixed-infinity arithmetic unspecified. The top-dominant interpretation is separately attributed to Rockafellar, Conjugate Duality and Optimization, printed p. 6 / physical PDF p. 17: https://sites.math.washington.edu/~rtr/papers/rtr054-ConjugateDuality.pdf (SHA256 29d57ab07857b8270c175343746c77b4138f2db6161ae20174a0bba076991b0e). That paragraph states convex sum closure under the convention; it does not supply the witness proof below. Zero times either infinity equals zero is an additional explicit library arithmetic convention, not a rule established by this Rockafellar paragraph. The public spike canary disproves closure under ordinary bottom-dominant EReal addition.
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.
Plain-English statement. An arbitrary affine change of input preserves extended-real epigraph convexity.
Mathematical reading.Formula renderer unavailable; readable fallback: An arbitrary affine change of input preserves extended-real epigraph convexity.\(x\mapsto f(Ax)\)Swipe to read the full formula →
Intuition
An arbitrary affine change of input preserves extended-real epigraph convexity.
Why it is needed
An exact main-text closure operation used to recognize convex losses.
Place in the proof
Orabona v10, printed p. 10 / PDF p. 22, closure bullets; proofs assigned as exercises on printed p. 11.
Proof and Lean reading notes
Proof idea
Take the epigraph preimage under the product affine map preserving heights.
Lean reading notes
No extra domain/image-convexity, finite-value or nonempty-index hypotheses are introduced. Mathlib API use is recorded in the proof explanation and compiled dependency evidence; this teaching link points to the shared epigraph definition.
Teaching dependencies
BanditRL.OnlineConvex.realEpigraph
Exact Lean statement
theorem convex_comp_affine {E F : Type*} [AddCommGroup E] [Module ℝ E] [AddCommGroup F] [Module ℝ F] (f : F → EReal) (hf : IsConvexExtended f) (A : E →ᵃ[ℝ] F) : IsConvexExtended (fun x => f (A x))
Plain-English statement. The supremum of an arbitrary convex family is convex, including an empty index.
Mathematical reading.Formula renderer unavailable; readable fallback: The supremum of an arbitrary convex family is convex, including an empty index.\(x\mapsto\sup_i f_i(x)\)Swipe to read the full formula →
Intuition
The supremum of an arbitrary convex family is convex, including an empty index.
Why it is needed
An exact main-text closure operation used to recognize convex losses.
Place in the proof
Orabona v10, printed p. 10 / PDF p. 22, closure bullets; proofs assigned as exercises on printed p. 11.
Proof and Lean reading notes
Proof idea
Identify the real-height epigraph with the intersection of all input epigraphs.
Lean reading notes
No extra domain/image-convexity, finite-value or nonempty-index hypotheses are introduced. Mathlib API use is recorded in the proof explanation and compiled dependency evidence; this teaching link points to the shared epigraph definition. The empty-index case uses the explicit complete-lattice supremum convention, not an arithmetic convention stated by Orabona.
Teaching dependencies
BanditRL.OnlineConvex.realEpigraph
Exact Lean statement
theorem convex_iSup {ι E : Type*} [AddCommGroup E] [Module ℝ E] (f : ι → E → EReal) (hf : ∀ i, IsConvexExtended (f i)) : IsConvexExtended (fun x => ⨆ i, f i x)
Plain-English statement. Real convex f and globally nondecreasing convex g have convex composition.
Mathematical reading.Formula renderer unavailable; readable fallback: Real convex f and globally nondecreasing convex g have convex composition.\(x\mapsto g(f(x))\)Swipe to read the full formula →
Intuition
Real convex f and globally nondecreasing convex g have convex composition.
Why it is needed
An exact main-text closure operation used to recognize convex losses.
Place in the proof
Orabona v10, printed p. 10 / PDF p. 22, closure bullets; proofs assigned as exercises on printed p. 11.
Proof and Lean reading notes
Proof idea
Combine f convexity, global monotonicity, and g convexity through the finite embedding iff.
Lean reading notes
Globally real-valued convex f and g, with global Monotone g, exactly as printed. No extension of g to infinite values or extra convex-image premise. General real-module inputs include the source Euclidean setting.
Teaching dependencies
BanditRL.OnlineConvex.convexExtended_coe_iff
Exact Lean statement
theorem convex_comp_monotone {E : Type*} [AddCommGroup E] [Module ℝ E] (f : E → ℝ) (g : ℝ → ℝ) (hf : IsConvexExtended (fun x => (f x : EReal))) (hg : IsConvexExtended (fun x => (g x : EReal))) (hmono : Monotone g) : IsConvexExtended (fun x => (g (f x) : EReal))
Plain-English statement. General extended-real convex functions remain convex under nonnegative scaling and top-dominant upper addition.
Mathematical reading.Formula renderer unavailable; readable fallback: General extended-real convex functions remain convex under nonnegative scaling and top-dominant upper addition.\(x\mapsto a f(x)\mathbin{+_{\mathrm{upper}}}b g(x),\quad a,b\ge0\)Swipe to read the full formula →
Intuition
The operation at mixed infinities matters for the epigraph.
Why it is needed
Completes the remaining closure operation under an explicitly documented convex-analysis convention.
Place in the proof
Orabona v10, printed p. 10 / PDF p. 22, closure bullets; proofs assigned as exercises on printed p. 11.
Proof and Lean reading notes
Proof idea
Decompose finite upper heights into two real witnesses, combine epigraph points, then split scaling into zero and positive cases.
Lean reading notes
No noBottom, properness, common-domain or positive-only coefficient restriction. Named upperAdd uses an explicitly attributed Rockafellar convention not printed by Orabona; scalar multiplication includes zero-times-infinity=zero. Ordinary EReal addition has the public spike counterexample. Zero-times-infinity is an explicit library convention; the cited Rockafellar paragraph discusses strictly positive scaling nearby and does not establish the zero case.
Open the canonical completion definition and blockers
Four printed closure statements under explicit interface conventions: arbitrary affine precomposition, indexed suprema, globally real monotone composition and nonnegative combinations using attributed top-dominant upper addition. Twelve retained declarations support these four endpoints; this does not complete Chapter 2.
Remaining blockers
Subgradient theory and later Chapter 2 routes remain outside this integration; finite-loss, 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.