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

Teaching chapter 18 of 31 · Canonical route compiled

Subgradients of finite sums

Add arbitrary proper component supports; construct exact decomposition under all closedness premises and the mixed qualification.

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 Theorem 2.23.

Learning goals

  • Separate the arbitrary-proper inclusion from the qualified convex equality.
  • Construct genuine component supports from epigraph separation.
  • Preserve the last-domain boundary and singleton empty-interior cases.

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,21June2026

Online Learning: A Modern Introduction Using Convex Optimization

Francesco Orabona

Location
Section 2.2.1, Theorem 2.23: sum inclusion and qualified equality
Pages
printed17–18/PDF29–30
Open at the cited pages
proof flow · ordered flow

Construct actual component supports

Read top to bottom to follow the argument or procedure.

  1. Sum actual support inequalities

    Inclusion quantifies EVERY x and an arbitrary Fintype family of proper components, with no convexity, closedness, query-finiteness or common finite point. Empty-index inclusion produces the zero support as an explicit library extension, not a printed positive-family equality. SourceSubgradientSum f x means actual simultaneous vectors G(i), each globally supporting the same f(i) at the same x, and their exact finite vector sum equals g. An empty component support makes this witness set empty.

  2. Force a strictly negative height coefficient

    The stronger binary interface omits closedness and explicitly takes finite query values. Build the linear image of two actual real epigraphs; aggregate support gives contact and noninterior. A nonzero separating L(v,t)=A(v)+ct has c<=0 from upward heights. If c=0, variation at the qualifying interior point forces A=0 and L=0, a contradiction; hence c<0. Normalize and use Riesz to produce actual global p and g-p, treating top branches before toReal.

  3. Construct the full family

    The mixed point yields prefix interior and an actual common finite value, so prefix/full sums are proper and prefix convex. Actual aggregate support then forces query finiteness and no-bottom summation forces every component finite. Apply the binary producer, recursively decompose the prefix, and use Fin.snoc to construct all component vectors and their exact sum. Public closedness hypotheses remain and are passed recursively; no decomposition or dual-attainment oracle is assumed.

2 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementTheorem 2.23 inclusionBounded library declarationsprinted17
Source theorem · faithful restatement

Theorem 2.23 inclusion

Original at printed17 ↗
Bounded library declarationsThe inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.

For proper components, every actual finite sum of component subgradients is a global subgradient of their sum, at every x.

Model
Finite-dimensional real inner-product space, ordinary EReal sum and actual component support witnesses.
Assumptions
Inclusion quantifies EVERY x and an arbitrary Fintype family of proper components, with no convexity, closedness, query-finiteness or common finite point. Empty-index inclusion produces the zero support as an explicit library extension, not a printed positive-family equality.
Algorithm parameters
All component functions and every queried x; equality qualification point z is independent of x.
Regret notion
No algorithm, probability, regret or measurable/computable selection guarantee.
Guarantee
SourceSubgradientSum f x is a subset of SourceSubdifferential (sum f) x.
Source mathematical statement. For proper components, every actual finite sum of component subgradients is a global subgradient of their sum, at every x.

BanditRLlib relationship. The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation.

Source theorem · faithful restatementTheorem 2.23 equalityBounded library declarationsprinted17
Source theorem · faithful restatement

Theorem 2.23 equality

Original at printed17 ↗
Bounded library declarationsThe inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.

For proper convex closed components and the exact mixed qualification, every sum-function support decomposes into actual component supports, at every x.

Model
Finite-dimensional real inner-product space, ordinary EReal sum and actual component support witnesses.
Assumptions
Equality quantifies EVERY queried x for a positive Fin(n+1) family. ALL components are proper, convex and CLOSED. An independent z is in the LAST domain and every OTHER AMBIENT domain interior; last may be boundary. For a singleton the other-interior condition is vacuous, while all proper/convex/closed hypotheses remain. Do not replace by all interiors, relative interiors, closure or qualification at the queried x.
Algorithm parameters
All component functions and every queried x; equality qualification point z is independent of x.
Regret notion
No algorithm, probability, regret or measurable/computable selection guarantee.
Guarantee
Exact equality at every queried point, including points outside the sum domain.
Source mathematical statement. For proper convex closed components and the exact mixed qualification, every sum-function support decomposes into actual component supports, at every x.

BanditRLlib relationship. The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation.

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

Mathematics ↔ Lean

Every sum of supports supports the sum

Lean declarationBanditRL.OnlineConvex.theorem_2_23_inclusion

Compiled

Plain-English statement. Add global inequalities for arbitrary proper components.

Mathematical reading. Add global inequalities for arbitrary proper components.
Intuition
Add global inequalities for arbitrary proper components.
Why it is needed
Add global inequalities for arbitrary proper components.
Place in the proof
Nine theorems and one witness-set definition supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
Sum actual global component inequalities and inner-product finite sums. SourceSubgradientSum f x means actual simultaneous vectors G(i), each globally supporting the same f(i) at the same x, and their exact finite vector sum equals g. An empty component support makes this witness set empty. Ordinary EReal addition differs from top-dominant upperAdd at mixed infinities. Each proper component excludes bottom, so the two agree here. A component finite witness somewhere need not be a common finite point. EffectiveDomain f means f(x)<top; proper components exclude its generic bottom case.
Lean reading notes
The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem theorem_2_23_inclusion {ι : Type*} [Fintype ι] (f : ι → E → EReal) (hp : ∀ i, SourceProper (f i)) (x : E) : SourceSubgradientSum f x ⊆ SourceSubdifferential (fun y => ∑ i, f i y) x
Mathematics ↔ Lean

Construct two complementary supports

Lean declarationBanditRL.OnlineConvex.binary_subgradient_decomposition

Compiled

Plain-English statement. Actual epigraph separation produces p and g-p, with the last qualifying point allowed on its domain boundary.

Mathematical reading. Actual epigraph separation produces p and g-p, with the last qualifying point allowed on its domain boundary.
Intuition
Actual epigraph separation produces p and g-p, with the last qualifying point allowed on its domain boundary.
Why it is needed
Actual epigraph separation produces p and g-p, with the last qualifying point allowed on its domain boundary.
Place in the proof
Nine theorems and one witness-set definition supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
The stronger binary interface omits closedness and explicitly takes finite query values. Build the linear image of two actual real epigraphs; aggregate support gives contact and noninterior. A nonzero separating L(v,t)=A(v)+ct has c<=0 from upward heights. If c=0, variation at the qualifying interior point forces A=0 and L=0, a contradiction; hence c<0. Normalize and use Riesz to produce actual global p and g-p, treating top branches before toReal.
Lean reading notes
This helper assumes proper convex f,h, finite query values, an actual support of f+h, and one point in interior(dom f) intersect dom h. It has no closedness premise. The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
BanditRL.OnlineConvex.supporting_functional_at_closure
Exact Lean statement
theorem binary_subgradient_decomposition (f h : E → EReal) (hpf : SourceProper f) (hph : SourceProper h) (hcf : IsConvexExtended f) (hch : IsConvexExtended h) (x : E) (hfx : ∃ a : ℝ, f x = (a : EReal)) (hhx : ∃ b : ℝ, h x = (b : EReal)) (g : E) (hgs : g ∈ SourceSubdifferential (fun y => f y + h y) x) (hqual : ∃ z : E, z ∈ interior (effectiveDomain f) ∧ z ∈ effectiveDomain h) : ∃ p : E, p ∈ SourceSubdifferential f x ∧ g - p ∈ SourceSubdifferential h x
Mathematics ↔ Lean

The prefix domain contains a neighborhood

Lean declarationBanditRL.OnlineConvex.interior_domain_sum

Compiled

Plain-English statement. Finite intersections of component finite neighborhoods make the prefix sum finite near the common point.

Mathematical reading. Finite intersections of component finite neighborhoods make the prefix sum finite near the common point.
Intuition
Finite intersections of component finite neighborhoods make the prefix sum finite near the common point.
Why it is needed
Finite intersections of component finite neighborhoods make the prefix sum finite near the common point.
Place in the proof
Nine theorems and one witness-set definition supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
Finite intersections of component finite neighborhoods make the prefix sum finite near the common point.
Lean reading notes
Every component is nowhere bottom, and z is in every component ambient domain interior. No convexity or properness premise occurs. The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem interior_domain_sum {ι : Type*} [Fintype ι] (f : ι → E → EReal) (hb : ∀ i y, f i y ≠ ⊥) (z : E) (hz : ∀ i, z ∈ interior (effectiveDomain (f i))) : z ∈ interior (effectiveDomain (fun y => ∑ i, f i y))
Mathematics ↔ Lean

The exact mixed-qualified sum rule

Lean declarationBanditRL.OnlineConvex.theorem_2_23_equality

Compiled

Plain-English statement. Construct the full component witness family at every queried point.

Mathematical reading. Construct the full component witness family at every queried point.
Intuition
Construct the full component witness family at every queried point.
Why it is needed
Construct the full component witness family at every queried point.
Place in the proof
Nine theorems and one witness-set definition supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
The mixed point yields prefix interior and an actual common finite value, so prefix/full sums are proper and prefix convex. Actual aggregate support then forces query finiteness and no-bottom summation forces every component finite. Apply the binary producer, recursively decompose the prefix, and use Fin.snoc to construct all component vectors and their exact sum. Public closedness hypotheses remain and are passed recursively; no decomposition or dual-attainment oracle is assumed. The stronger binary interface omits closedness and explicitly takes finite query values. Build the linear image of two actual real epigraphs; aggregate support gives contact and noninterior. A nonzero separating L(v,t)=A(v)+ct has c<=0 from upward heights. If c=0, variation at the qualifying interior point forces A=0 and L=0, a contradiction; hence c<0. Normalize and use Riesz to produce actual global p and g-p, treating top branches before toReal.
Lean reading notes
The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
BanditRL.OnlineConvex.binary_subgradient_decomposition, BanditRL.OnlineConvex.theorem_2_23_inclusion, BanditRL.OnlineConvex.interior_domain_sum
Exact Lean statement
theorem theorem_2_23_equality (n : ℕ) (f : Fin (n + 1) → E → EReal) (hp : ∀ i, SourceProper (f i)) (hc : ∀ i, IsConvexExtended (f i)) (hclosed : ∀ i, SourceClosed (f i)) (hqual : ∃ z : E, z ∈ effectiveDomain (f (Fin.last n)) ∧ ∀ i : Fin (n + 1), i ≠ Fin.last n → z ∈ interior (effectiveDomain (f i))) (x : E) : SourceSubdifferential (fun y => ∑ i, f i y) x = SourceSubgradientSum f x
Explore 2 additional Lean teaching notes
Mathematics ↔ Lean

Convexity of the actual finite sum

Lean declarationBanditRL.OnlineConvex.convex_finset_sum

Compiled

Plain-English statement. Reuse upper-add convexity and no-bottom proper arithmetic.

Mathematical reading. Reuse upper-add convexity and no-bottom proper arithmetic.
Intuition
Reuse upper-add convexity and no-bottom proper arithmetic.
Why it is needed
Reuse upper-add convexity and no-bottom proper arithmetic.
Place in the proof
Nine theorems and one witness-set definition supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
Induct the actual finite sum, using no-bottom arithmetic to identify upperAdd with ordinary addition. Convex sum may still be improper without a common finite point.
Lean reading notes
For every selected index, f_i is nowhere bottom and convex; properness is not required by this helper. The finite-dimensional real inner-product instances remain. The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
BanditRL.OnlineConvex.convex_upperAdd
Exact Lean statement
theorem convex_finset_sum {ι : Type*} (s : Finset ι) (f : ι → E → EReal) (hb : ∀ i ∈ s, ∀ y, f i y ≠ ⊥) (hc : ∀ i ∈ s, IsConvexExtended (f i)) : IsConvexExtended (fun y => ∑ i ∈ s, f i y)
Mathematics ↔ Lean

Derive finite component values

Lean declarationBanditRL.OnlineConvex.sum_finite_implies_components_finite

Compiled

Plain-English statement. No-bottom summands and a finite aggregate exclude a positive-infinite component.

Mathematical reading. No-bottom summands and a finite aggregate exclude a positive-infinite component.
Intuition
No-bottom summands and a finite aggregate exclude a positive-infinite component.
Why it is needed
No-bottom summands and a finite aggregate exclude a positive-infinite component.
Place in the proof
Nine theorems and one witness-set definition supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
No-bottom summands and a finite aggregate exclude a positive-infinite component.
Lean reading notes
Scalar EReal helper: every summand differs from bottom and the finite sum differs from top. No vector-space instance or properness assumption occurs. The inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem sum_finite_implies_components_finite {ι : Type*} [Fintype ι] (a : ι → EReal) (hb : ∀ i, a i ≠ ⊥) (ht : (∑ i, a i) ≠ ⊤) : ∀ i, ∃ r : ℝ, a i = (r : EReal)

Maintainer contract

Open the canonical completion definition and blockers

Nine theorems and one witness-set definition. Later source obligations, Chapter 2 and the whole book remain incomplete.

Remaining blockers

  • Later source obligations, Chapter 2 and the whole book remain incomplete.

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 inclusion keeps only individual properness and allows an empty finite index family, an explicit extension of the printed positive-family notation. The shared global-support predicate is defined for all EReal functions; the printed definition only covers proper functions. Proper components need not have a proper sum (G2.23.PROPER). Equality keeps every properness, convexity and closedness premise, a positive Fin(n+1) family, and one point in the last domain and every other ambient domain interior. This point is independent of the query. Singleton indexing makes the earlier-interior condition vacuous (G2.23.INDEX). The source proves inclusion locally and cites Bauschke and Combettes (2017), Corollary 16.50 for equality. The separation and induction proof below is a library proof, not a reconstruction of that external text. The finite-dimensional real inner-product carrier generalizes the Euclidean presentation.

All Lean modules in this chapter

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