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

Teaching chapter 21 of 31 · Canonical route compiled

Subdifferential of a finite maximum

Exact ordinary convex hull of all active global supports, with a constructed reverse direction.

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 Theorem2.26.

Learning goals

  • Define the actual finite pointwise maximum and keep all tied active functions.
  • Prove ordinary active-hull compactness from the exact source continuity assumptions.
  • Construct near-point supports and use their limits to prove every max support belongs to the ordinary hull.

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.26: finite maximum
Pages
printed18/PDF30
Open at the cited pages
proof flow · ordered flow

Prove both directions of the maximum rule

Read top to bottom to follow the argument or procedure.

  1. Lift active supports

    An attaining component has fi(x)=F(x) and fi(y)≤F(y) for every ambient y. Its full global support therefore supports F. The maximum support set is convex at this finite query, so the ordinary active convex hull supports F. The active lifting result needs no properness/convexity/continuity; hull-forward needs properness/common finite query but not convexity of the fi or continuity. Those weaker-premise foundations are not the full numbered source terminal.

  2. Establish ordinary hull compactness

    Ambient continuity and finite query values give actual interior neighborhoods of the effective domains. Shared local support boundedness and closed global inequalities make component supports compact. A convex join is the continuous image of [0,1] times two compact sets; finite induction gives compactness of the ordinary active hull, with inactive sets empty. The generic finite-convex-union helper permits an empty selected Finset; the domain-interior continuity helper permits a bottom query value, unlike the source terminal.

  3. Construct the reverse

    For g supporting F and EACH direction d, use yn=x+d/(n+1), choose actual maximizing indices and actual component supports at sufficiently large n, and use the finite family local bounds for a compact subsequence. One finite index recurs; the restricted frequent-index filter is NeBot. Continuity makes that index active at x, and the global support limit yields k in its full support set. Actual displacement comparison gives inner(g,d)≤inner(k,d). This k depends on d, including d=0; no single k for all directions and no supplied witness is claimed. If g were outside the ordinary active hull, its compactness and convexity give strict separation by a continuous linear functional. Riesz supplies the corresponding direction d. The constructed active k has at least the directional value of g, contradicting separation. Thus every maximum support belongs to the ordinary hull; both equality directions are proved without a closure replacement.

Source theorem · faithful restatement

Theorem2.26 finite maximum rule

Original at printed18 ↗
Bounded library declarationsThe library explicitly uses a finite nonempty index set because the source leaves the empty-maximum convention unspecified (G2.26.EMPTY). Every component is proper and convex, the query lies in every effective domain, and every component, including inactive ones, is continuous there. Continuity is interpreted in the ambient topology with EReal carrying its standard topology; the inspected source does not expand this convention (G2.26.CONTINUITY). The conclusion uses ordinary convex hull without closure. No component closedness, global finiteness, relative-domain continuity or supplied decomposition is assumed. Finite-dimensional real inner-product spaces generalize the Euclidean carrier. The source cites Bauschke and Combettes (2017), Theorem 18.5 and gives no local proof. The compactness and separation argument below is the library proof, not an independently checked reconstruction of that external result. Later source obligations, Chapter 2 and the whole book remain incomplete.

For a finite family of proper convex functions, if every function is finite and continuous at x, every maximum support is a finite convex combination of active component supports, and every such combination supports the maximum.

Model
Finite-dimensional real inner-product space and finite nonempty family of EReal functions.
Assumptions
Every component is proper and convex, x belongs to every effective domain, and EVERY component, including inactive ones, is continuous at x into EReal in the AMBIENT topology. No relative-domain continuity, global finiteness, component closedness, bounded domain, supplied support decomposition or closure of the hull is assumed.
Algorithm parameters
Every finite nonempty family/common query x/candidate g; EVERY ambient test y, ALL active indices/finite convex combinations. Directional witness k depends on the chosen d.
Regret notion
No algorithm/regret/probability/feedback/computable or measurable selection claim.
Guarantee
Complete ordinary active-support convexHull equality, both directions/all candidate vectors; ties and inactive functions retained exactly.
Source mathematical statement. The maximum subdifferential is exactly the ordinary convex hull of all active component subdifferentials.

BanditRLlib relationship. The library explicitly uses a finite nonempty index set because the source leaves the empty-maximum convention unspecified (G2.26.EMPTY). Every component is proper and convex, the query lies in every effective domain, and every component, including inactive ones, is continuous there. Continuity is interpreted in the ambient topology with EReal carrying its standard topology; the inspected source does not expand this convention (G2.26.CONTINUITY). The conclusion uses ordinary convex hull without closure. No component closedness, global finiteness, relative-domain continuity or supplied decomposition is assumed. Finite-dimensional real inner-product spaces generalize the Euclidean carrier. The source cites Bauschke and Combettes (2017), Theorem 18.5 and gives no local proof. The compactness and separation argument below is the library proof, not an independently checked reconstruction of that external result.

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

Mathematics ↔ Lean

Actual finite pointwise maximum

Lean declarationBanditRL.OnlineConvex.SourceFiniteMax

Compiled

Plain-English statement. Actual finite pointwise maximum

Mathematical reading. Actual finite pointwise maximum
Intuition
An actual maximum of a finite nonempty family; values may be extended real.
Why it is needed
Actual finite pointwise maximum
Place in the proof
Seventeen theorems and two definitions supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
A retained definition: Finset.univ.sup' Finset.univ_nonempty (fun i => f i x). This is a construction, not the proof of the maximum rule.
Lean reading notes
Actual definition: arbitrary carrier E, finite nonempty index type, functions f_i from E to EReal and a query x. It requires no inner-product structure, finite dimension, properness, convexity, continuity or finite query values. Infinite values are permitted. Nonempty indexing is the explicit convention for G2.26.EMPTY. This definition constructs the maximum only; the later Theorem 2.26 separately imposes its regularity assumptions and proves a subdifferential convex-hull equality.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def SourceFiniteMax {ι : Type*} [Fintype ι] [Nonempty ι] (f : ι → E → EReal) (x : E) : EReal
Mathematics ↔ Lean

The ordinary active hull is compact

Lean declarationBanditRL.OnlineConvex.isCompact_active_subgradient_hull

Compiled

Plain-English statement. Continuity at the finite query yields compact active subdifferentials; finite convex joins give a compact ordinary hull.

Mathematical reading. Continuity at the finite query yields compact active subdifferentials; finite convex joins give a compact ordinary hull.
Intuition
Use actual global supports and continuity to retain the exact ordinary convex hull.
Why it is needed
Continuity at the finite query yields compact active subdifferentials; finite convex joins give a compact ordinary hull.
Place in the proof
Seventeen theorems and two definitions supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
Ambient continuity and finite query values give actual interior neighborhoods of the effective domains. Shared local support boundedness and closed global inequalities make component supports compact. A convex join is the continuous image of [0,1] times two compact sets; finite induction gives compactness of the ordinary active hull, with inactive sets empty. The generic finite-convex-union helper permits an empty selected Finset; the domain-interior continuity helper permits a bottom query value, unlike the source terminal.
Lean reading notes
The library explicitly uses a finite nonempty index set because the source leaves the empty-maximum convention unspecified (G2.26.EMPTY). Every component is proper and convex, the query lies in every effective domain, and every component, including inactive ones, is continuous there. Continuity is interpreted in the ambient topology with EReal carrying its standard topology; the inspected source does not expand this convention (G2.26.CONTINUITY). The conclusion uses ordinary convex hull without closure. No component closedness, global finiteness, relative-domain continuity or supplied decomposition is assumed. Finite-dimensional real inner-product spaces generalize the Euclidean carrier. The source cites Bauschke and Combettes (2017), Theorem 18.5 and gives no local proof. The compactness and separation argument below is the library proof, not an independently checked reconstruction of that external result. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
BanditRL.OnlineConvex.isCompact_sourceSubdifferential, BanditRL.OnlineConvex.isCompact_convexHull_finite_convex_union
Exact Lean statement
theorem isCompact_active_subgradient_hull [FiniteDimensional ℝ E] {ι : Type*} [Fintype ι] [Nonempty ι] (f : ι → E → EReal) (hp : ∀ i, SourceProper (f i)) (hc : ∀ i, IsConvexExtended (f i)) (x : E) (hx : ∀ i, x ∈ effectiveDomain (f i)) (hcont : ∀ i, ContinuousAt (f i) x) : IsCompact (convexHull ℝ (SourceActiveSubgradientUnion f x))
Mathematics ↔ Lean

An active limit support dominates each direction

Lean declarationBanditRL.OnlineConvex.max_subgradient_direction_witness

Compiled

Plain-English statement. An active limit support dominates each direction

Mathematical reading. An active limit support dominates each direction
Intuition
Use actual global supports and continuity to retain the exact ordinary convex hull.
Why it is needed
An active limit support dominates each direction
Place in the proof
Seventeen theorems and two definitions supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
For g supporting F and EACH direction d, use yn=x+d/(n+1), choose actual maximizing indices and actual component supports at sufficiently large n, and use the finite family local bounds for a compact subsequence. One finite index recurs; the restricted frequent-index filter is NeBot. Continuity makes that index active at x, and the global support limit yields k in its full support set. Actual displacement comparison gives inner(g,d)≤inner(k,d). This k depends on d, including d=0; no single k for all directions and no supplied witness is claimed.
Lean reading notes
The library explicitly uses a finite nonempty index set because the source leaves the empty-maximum convention unspecified (G2.26.EMPTY). Every component is proper and convex, the query lies in every effective domain, and every component, including inactive ones, is continuous there. Continuity is interpreted in the ambient topology with EReal carrying its standard topology; the inspected source does not expand this convention (G2.26.CONTINUITY). The conclusion uses ordinary convex hull without closure. No component closedness, global finiteness, relative-domain continuity or supplied decomposition is assumed. Finite-dimensional real inner-product spaces generalize the Euclidean carrier. The source cites Bauschke and Combettes (2017), Theorem 18.5 and gives no local proof. The compactness and separation argument below is the library proof, not an independently checked reconstruction of that external result. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem max_subgradient_direction_witness [FiniteDimensional ℝ E] {ι : Type*} [Fintype ι] [Nonempty ι] (f : ι → E → EReal) (hp : ∀ i, SourceProper (f i)) (hc : ∀ i, IsConvexExtended (f i)) (x : E) (hx : ∀ i, x ∈ effectiveDomain (f i)) (hcont : ∀ i, ContinuousAt (f i) x) (g d : E) (hg : g ∈ SourceSubdifferential (SourceFiniteMax f) x) : ∃ k ∈ SourceActiveSubgradientUnion f x, inner ℝ g d ≤ inner ℝ k d
Mathematics ↔ Lean

Maximum supports equal the ordinary active hull

Lean declarationBanditRL.OnlineConvex.theorem_2_26

Compiled

Plain-English statement. Maximum supports equal the ordinary active hull

Mathematical reading. Maximum supports equal the ordinary active hull
Intuition
Use actual global supports and continuity to retain the exact ordinary convex hull.
Why it is needed
Maximum supports equal the ordinary active hull
Place in the proof
Seventeen theorems and two definitions supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
An attaining component has fi(x)=F(x) and fi(y)≤F(y) for every ambient y. Its full global support therefore supports F. The maximum support set is convex at this finite query, so the ordinary active convex hull supports F. The active lifting result needs no properness/convexity/continuity; hull-forward needs properness/common finite query but not convexity of the fi or continuity. Those weaker-premise foundations are not the full numbered source terminal. Ambient continuity and finite query values give actual interior neighborhoods of the effective domains. Shared local support boundedness and closed global inequalities make component supports compact. A convex join is the continuous image of [0,1] times two compact sets; finite induction gives compactness of the ordinary active hull, with inactive sets empty. The generic finite-convex-union helper permits an empty selected Finset; the domain-interior continuity helper permits a bottom query value, unlike the source terminal. For g supporting F and EACH direction d, use yn=x+d/(n+1), choose actual maximizing indices and actual component supports at sufficiently large n, and use the finite family local bounds for a compact subsequence. One finite index recurs; the restricted frequent-index filter is NeBot. Continuity makes that index active at x, and the global support limit yields k in its full support set. Actual displacement comparison gives inner(g,d)≤inner(k,d). This k depends on d, including d=0; no single k for all directions and no supplied witness is claimed. If g were outside the ordinary active hull, its compactness and convexity give strict separation by a continuous linear functional. Riesz supplies the corresponding direction d. The constructed active k has at least the directional value of g, contradicting separation. Thus every maximum support belongs to the ordinary hull; both equality directions are proved without a closure replacement.
Lean reading notes
The library explicitly uses a finite nonempty index set because the source leaves the empty-maximum convention unspecified (G2.26.EMPTY). Every component is proper and convex, the query lies in every effective domain, and every component, including inactive ones, is continuous there. Continuity is interpreted in the ambient topology with EReal carrying its standard topology; the inspected source does not expand this convention (G2.26.CONTINUITY). The conclusion uses ordinary convex hull without closure. No component closedness, global finiteness, relative-domain continuity or supplied decomposition is assumed. Finite-dimensional real inner-product spaces generalize the Euclidean carrier. The source cites Bauschke and Combettes (2017), Theorem 18.5 and gives no local proof. The compactness and separation argument below is the library proof, not an independently checked reconstruction of that external result. Later source obligations, Chapter 2 and the whole book remain incomplete.
Teaching dependencies
BanditRL.OnlineConvex.max_subgradient_direction_witness, BanditRL.OnlineConvex.isCompact_active_subgradient_hull
Exact Lean statement
theorem theorem_2_26 [FiniteDimensional ℝ E] {ι : Type*} [Fintype ι] [Nonempty ι] (f : ι → E → EReal) (hp : ∀ i, SourceProper (f i)) (hc : ∀ i, IsConvexExtended (f i)) (x : E) (hx : ∀ i, x ∈ effectiveDomain (f i)) (hcont : ∀ i, ContinuousAt (f i) x) : SourceSubdifferential (SourceFiniteMax f) x = convexHull ℝ (SourceActiveSubgradientUnion f x)
Explore 1 additional Lean teaching notes
Mathematics ↔ Lean

Union of active global supports

Lean declarationBanditRL.OnlineConvex.SourceActiveSubgradientUnion

Compiled

Plain-English statement. Union of active global supports

Mathematical reading. Union of active global supports
Intuition
Keep every global support of every attaining component, including tied components.
Why it is needed
Union of active global supports
Place in the proof
Seventeen theorems and two definitions supporting this bounded reader. Helpers are not additional printed source results.
Proof and Lean reading notes
Proof idea
A retained Set definition: there exists i with fi(x)=F(x) AND g in its complete global subdifferential. This is a membership predicate, not the full theorem proof.
Lean reading notes
Actual definition: a real inner-product space E, finite nonempty index type, functions f_i from E to EReal and a query x. A vector belongs exactly when some i satisfies f_i(x)=SourceFiniteMax f x and the vector globally supports f_i at x. No finite dimension, properness, convexity, continuity or query finiteness is required; active values may be infinite. There is no convex hull in this definition. The later Theorem 2.26 separately imposes regularity and proves equality with the ordinary convex hull of this union.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def SourceActiveSubgradientUnion {ι : Type*} [Fintype ι] [Nonempty ι] (f : ι → E → EReal) (x : E) : Set E

Maintainer contract

Open the canonical completion definition and blockers

Seventeen theorems and two definitions. 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 library explicitly uses a finite nonempty index set because the source leaves the empty-maximum convention unspecified (G2.26.EMPTY). Every component is proper and convex, the query lies in every effective domain, and every component, including inactive ones, is continuous there. Continuity is interpreted in the ambient topology with EReal carrying its standard topology; the inspected source does not expand this convention (G2.26.CONTINUITY). The conclusion uses ordinary convex hull without closure. No component closedness, global finiteness, relative-domain continuity or supplied decomposition is assumed. Finite-dimensional real inner-product spaces generalize the Euclidean carrier. The source cites Bauschke and Combettes (2017), Theorem 18.5 and gives no local proof. The compactness and separation argument below is the library proof, not an independently checked reconstruction of that external result.

All Lean modules in this chapter

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