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

Teaching chapter 10 of 31 · Canonical route compiled

Signed expectation foundations for Jensen

Arbitrary-measure signed-integral representation: actual integrable-real compatibility, a.e. nonnegative reduction and infinite-positive/finite-negative branch; total both-infinite arithmetic is not a valid expectation.

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

  • Represent signed expectations using positive and negative lintegrals.
  • Recover the real Bochner integral when it is integrable.
  • Keep a positive-infinite result when its negative part is finite.

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
Section2.1.1, necessary representation dependency of Theorem2.9; seven library helpers and three definitions, not printed source results
Pages
printedp11/PDF23
Open at the cited pages
mathematical representation, not an online algorithm · ordered flow

Interpret the signed integral

Read top to bottom to follow the argument or procedure.

  1. Split positive and negative parts

    Both parts are total nonnegative extended lower integrals, even without a supplied measurability premise; this does not certify classical measurable expectation semantics.

  2. Prove a finite part

    Actual Bochner Integrable real f includes a.e. strong measurability and finite norm integral, proving both parts finite and exact embedded-real compatibility. This does not extend to a nonintegrable default-zero Bochner integral. The Jensen producer proves finite negative part via an affine minorant; loss integrability is not a source premise.

  3. Retain infinite positive mass

    A.e. nonnegativity alone gives the formal negative-zero reduction without extra measurable/integrable premises. The positive-infinite helper separately retains negative part != infinity, excluding both-infinite arithmetic.

Source theorem · faithful restatement

Theorem 2.9: parent Jensen endpoint

Original at printedp11 ↗
Shared library dependencies for the Jensen readerThe parent theorem has a separate reader in this bounded package. Dependency counts are not counts of printed source results. Chapter 2 and the whole book remain incomplete.

Only X is assumed integrable; loss integrability and a closed domain are not assumed.

Model
Finite-dimensional real random vectors under a probability law.
Assumptions
Measurable convex loss never negative infinity; measurable integrable X lies in the effective domain almost surely.
Algorithm parameters
Arbitrary probability space and finite dimension.
Regret notion
An expectation inequality, not a regret bound.
Guarantee
Jensen allows positive-infinite expected loss; its negative-part producer proves finite negative part from the stated parent assumptions.
Source mathematical statement. A measurable convex extended-real loss at the mean is bounded by its possibly infinite expected loss.

BanditRLlib relationship. This page presents supporting library declarations for the Jensen endpoint displayed in the separate Jensen reader. They are not additional printed source theorems. The proof bridge explains their actual assumptions and bodies; the parent and these dependencies are reviewed together in this bounded integration.

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

Finite positive part

Lean declarationBanditRL.OnlineConvex.positiveIntegral_coe_ne_top

Compiled

Plain-English statement. Actual Bochner Integrable real f proves finite positive part under an arbitrary measure.

Mathematical reading. Actual Bochner Integrable real f proves finite positive part under an arbitrary measure.
Intuition
Actual Bochner Integrable real f proves finite positive part under an arbitrary measure.
Why it is needed
Supports the Jensen proof through the explicit library dependency shown in the associated reader.
Place in the proof
Library representation dependency of Orabona v10 Theorem2.9, printedp11/PDF23; not a printed foundation theorem.
Proof and Lean reading notes
Proof idea
Use integrability of the positive part and the nonnegative lintegral characterization.
Lean reading notes
Integrable includes a.e. strong measurability and finite norm integral; neither pointwise finite values nor a total default-zero integral suffices. The separate negative-part helper has the same premise. No probability/mass normalization is assumed.
Teaching dependencies
BanditRL.OnlineConvex.positiveIntegral_coe
Exact Lean statement
theorem positiveIntegral_coe_ne_top (μ : Measure Ω) (f : Ω → ℝ) (hf : Integrable f μ) : positiveIntegral μ (fun ω => (f ω : EReal)) ≠ ∞
Mathematics ↔ Lean

Compatibility with the Bochner integral

Lean declarationBanditRL.OnlineConvex.signedExpectation_coe_integrable

Compiled

Plain-English statement. For actually integrable real f, the unnormalized signed representation equals the embedded real Bochner integral.

Mathematical reading. For actually integrable real f, the unnormalized signed representation equals the embedded real Bochner integral.
Intuition
For actually integrable real f, the unnormalized signed representation equals the embedded real Bochner integral.
Why it is needed
Supports the Jensen proof through the explicit library dependency shown in the associated reader.
Place in the proof
Library representation dependency of Orabona v10 Theorem2.9, printedp11/PDF23; not a printed foundation theorem.
Proof and Lean reading notes
Proof idea
Prove both parts finite, then apply the actual positive-minus-negative Bochner identity.
Lean reading notes
Both part integrals are proved finite before EReal subtraction is identified with the real integral. No nonintegrable Bochner-zero extension. The mass-two identity canary gives integral2, not probability expectation1.
Teaching dependencies
BanditRL.OnlineConvex.positiveIntegral_coe_ne_top, BanditRL.OnlineConvex.negativeIntegral_coe_ne_top
Exact Lean statement
theorem signedExpectation_coe_integrable (μ : Measure Ω) (f : Ω → ℝ) (hf : Integrable f μ) : signedExpectation μ (fun ω => (f ω : EReal)) = ((∫ ω, f ω ∂μ : ℝ) : EReal)
Mathematics ↔ Lean

Nonnegative reduction

Lean declarationBanditRL.OnlineConvex.signedExpectation_of_nonneg

Compiled

Plain-English statement. A.e. nonnegative extended f has negative part0 and the total signed representation equals its positive lower integral.

Mathematical reading. A.e. nonnegative extended f has negative part0 and the total signed representation equals its positive lower integral.
Intuition
A.e. nonnegative extended f has negative part0 and the total signed representation equals its positive lower integral.
Why it is needed
Supports the Jensen proof through the explicit library dependency shown in the associated reader.
Place in the proof
Library representation dependency of Orabona v10 Theorem2.9, printedp11/PDF23; not a printed foundation theorem.
Proof and Lean reading notes
Proof idea
Use almost-everywhere congruence of the negative integrand with zero.
Lean reading notes
Formal identity requires only a.e. nonnegativity, with no extra measurable/integrable premise and positive infinity allowed. Appropriate measurability remains separate for classical signed-integral interpretation; a.e. is relative to arbitrary measure.
Teaching dependencies
BanditRL.OnlineConvex.signedExpectation, BanditRL.OnlineConvex.negativeIntegral
Exact Lean statement
theorem signedExpectation_of_nonneg (μ : Measure Ω) (f : Ω → EReal) (hf : ∀ᵐ ω ∂μ, 0 ≤ f ω) : signedExpectation μ f = (positiveIntegral μ f : EReal)
Mathematics ↔ Lean

An infinite positive expectation

Lean declarationBanditRL.OnlineConvex.signedExpectation_eq_top

Compiled

Plain-English statement. Positive part infinity and the explicit finite-negative-part premise give signed value positive infinity.

Mathematical reading. Positive part infinity and the explicit finite-negative-part premise give signed value positive infinity.
Intuition
Positive part infinity and the explicit finite-negative-part premise give signed value positive infinity.
Why it is needed
Supports the Jensen proof through the explicit library dependency shown in the associated reader.
Place in the proof
Library representation dependency of Orabona v10 Theorem2.9, printedp11/PDF23; not a printed foundation theorem.
Proof and Lean reading notes
Proof idea
Embed the finite negative integral and apply the legitimate EReal top subtraction case.
Lean reading notes
Both-infinite is excluded: pinned total top-top=bottom is not a legitimate signed expectation. Counting-measure n+1 is a nonconstant finite-valued infinite-integral canary, not a probability Jensen instance. Parent convexity/integrable-X must separately produce finite negative part.
Teaching dependencies
BanditRL.OnlineConvex.signedExpectation
Exact Lean statement
theorem signedExpectation_eq_top (μ : Measure Ω) (f : Ω → EReal) (hp : positiveIntegral μ f = ∞) (hn : negativeIntegral μ f ≠ ∞) : signedExpectation μ f = ⊤

Maintainer contract

Open the canonical completion definition and blockers

Three literal definitions and seven retained library lemmas supporting signed-integral semantics. These declarations are integrated into the shared library; they do not complete Chapter 2.

Remaining blockers

  • Later Chapter 2 source obligations and remaining book routes are outside this bounded package.

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

  • This dependency page does not imply completion of Chapter2.

All Lean modules in this chapter

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