BanditRLlib
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
Pages
printed pp. 10–11 / physical PDF pp. 22–23
Open at the cited pages
mathematical closure rules · ordered flow

Recognize a convex construction

Read top to bottom to follow the argument or procedure.

  1. Affine input

    Pull the epigraph back along an affine map that leaves heights unchanged.

  2. Supremum

    Intersect all the epigraphs, including an empty indexed family.

  3. Monotone composition

    For real f and g, combine convexity with global monotonicity of g.

2 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementThree convexity-preserving operationsScoped convexity proofprinted p. 10
Source theorem · faithful restatement

Three convexity-preserving operations

Original at printed p. 10 ↗
Scoped convexity proofLater Chapter2 results remain incomplete.

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. Affine precomposition, pointwise supremum, and monotone real convex composition preserve convexity.

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.

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

Original at printed p. 10 ↗
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. Nonnegative scaling and convex upper addition preserve extended-real epigraph convexity.

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.

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

Convexity under affine precomposition

Lean declarationBanditRL.OnlineConvex.convex_comp_affine

Compiled

Plain-English statement. An arbitrary affine change of input preserves extended-real epigraph convexity.

Mathematical reading. An arbitrary affine change of input preserves extended-real epigraph convexity.
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))
Mathematics ↔ Lean

Convexity of pointwise suprema

Lean declarationBanditRL.OnlineConvex.convex_iSup

Compiled

Plain-English statement. The supremum of an arbitrary convex family is convex, including an empty index.

Mathematical reading. The supremum of an arbitrary convex family is convex, including an empty index.
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)
Mathematics ↔ Lean

Monotone convex composition

Lean declarationBanditRL.OnlineConvex.convex_comp_monotone

Compiled

Plain-English statement. Real convex f and globally nondecreasing convex g have convex composition.

Mathematical reading. Real convex f and globally nondecreasing convex g have convex composition.
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))
Mathematics ↔ Lean

Nonnegative combinations with convex upper addition

Lean declarationBanditRL.OnlineConvex.convex_nonneg_linear_combination

Compiled

Plain-English statement. General extended-real convex functions remain convex under nonnegative scaling and top-dominant upper addition.

Mathematical reading. General extended-real convex functions remain convex under nonnegative scaling and top-dominant upper addition.
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.
Teaching dependencies
BanditRL.OnlineConvex.convex_upperAdd, BanditRL.OnlineConvex.convex_nonneg_mul
Exact Lean statement
theorem convex_nonneg_linear_combination {E : Type*} [AddCommGroup E] [Module ℝ E] (f g : E → EReal) (hf : IsConvexExtended f) (hg : IsConvexExtended g) (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) : IsConvexExtended (fun x => upperAdd ((a : EReal) * f x) ((b : EReal) * g x))

Maintainer contract

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.

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 (2 modules)
ModuleDeclarationsProject importsStatus
BanditRLProof.OnlineConvexClosures31Compiled
BanditRLProof.OnlineConvexSums91Compiled