Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Chapter 8, eq. (2.2), first equality — an expectation is the sum of its integrals over the cells of a partition

Proved
StochasticProg.PartitionJensen.lintegral_eq_sum_cells

by mikedeng1 · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-analysisjensen-inequalityprobabilitystochastic-programming

Let μ\muμ be a measure on RN\mathbb R^NRN and let S1,…,Sν⊆RNS^1, \dots, S^\nu \subseteq \mathbb R^NS1,…,Sν⊆RN be measurable, pairwise disjoint sets whose union carries all of μ\muμ, that is μ((S1∪⋯∪Sν)c)=0\mu\big((S^1 \cup \dots \cup S^\nu)^{\mathrm c}\big) = 0μ((S1∪⋯∪Sν)c)=0. Then for every function f:RN→[0,∞]f : \mathbb R^N \to [0, \infty]f:RN→[0,∞],

∫f(ξ) μ(dξ)  =  ∑l=1ν∫Slf(ξ) μ(dξ),\int f(\xi)\, \mu(d\xi) \;=\; \sum_{l=1}^{\nu} \int_{S^l} f(\xi)\, \mu(d\xi),∫f(ξ)μ(dξ)=l=1∑ν​∫Sl​f(ξ)μ(dξ),

where both sides may be +∞+\infty+∞.

In the proof of Theorem 1 of §8.2 of Birge and Louveaux, the expectation E(g(x))=∫Ξg(x,ξ)P(dξ)\mathrm E(g(x)) = \int_\Xi g(x,\xi)P(d\xi)E(g(x))=∫Ξ​g(x,ξ)P(dξ) is first written as ∑l=1ν∫Slg(x,ξ)P(dξ)\sum_{l=1}^\nu \int_{S^l} g(x,\xi) P(d\xi)∑l=1ν​∫Sl​g(x,ξ)P(dξ) over a partition Sν={Sl}\mathcal S^\nu = \{S^l\}Sν={Sl} of the support Ξ\XiΞ (first equality of (2.2)). Applied to the positive part g(x,⋅)+g(x,\cdot)^+g(x,⋅)+ and the negative part g(x,⋅)−g(x,\cdot)^-g(x,⋅)−, this statement gives that decomposition without any integrability assumption.

Formalization Note RN\mathbb R^NRN is EuclideanSpace ℝ (Fin N), the index l=1,…,νl = 1, \dots, \nul=1,…,ν is Fin ν (0-based), and the integrals are lower Lebesgue integrals ∫⁻. Neither fff nor μ\muμ is restricted further: fff need not be measurable and μ\muμ need not be finite.

Differences from the source:

  • generalization: the first equality of (2.2) for g(x,·) under the law P of ξ → the decomposition for every [0, ∞]-valued f under every measure μ; reason: applied to the positive and negative parts of g(x,·) under P it gives the book's equality by subtraction whenever the right side is defined
  • generalization: S^ν a partition of the support Ξ → finitely many measurable, pairwise disjoint sets whose union has full measure; reason: a partition of Ξ is such a family because P(Ξ) = 1; the cells need not lie in Ξ
  • encoding: cells S^l, l = 1, …, ν, implicitly measurable (P[ξ ∈ S^l] is used) → S : Fin ν → Set, MeasurableSet (S l); reason: 0-based index; measurability is presupposed by the book
Preamble
import Mathlib
open MeasureTheory
Formal statement
namespace StochasticProg.PartitionJensen

/-- **Decomposition of an expectation over a partition — (2.2), first equality.**
Birge & Louveaux, Introduction to Stochastic Programming, 2nd ed., Springer 2011, Chapter 8,
§8.2, proof of Theorem 1, eq. (2.2), first equality, printed p. 346 (PDF p. 365):
`E(g(x)) = Σ_{l=1}^ν ∫_{S^l} g(x,ξ) P(dξ)`.

For a measure `μ` on `ℝ^N` and finitely many measurable, pairwise disjoint cells
`S l` (`l : Fin ν`) whose union has full measure, the (lower Lebesgue) integral of every
`[0, ∞]`-valued function `f` is the sum of its integrals over the cells. Applied to the
positive and the negative part of `g(x, ·)` this is the book's first equality in (2.2), with no
integrability assumption (both sides may be `∞`).

**Formalization Note.** `ℝ^N` is `EuclideanSpace ℝ (Fin N)`; the book's index `l = 1, …, ν`
is `Fin ν` (0-based). The book partitions the support `Ξ`; here the cells only need to cover a
set of full measure, which a partition of `Ξ` does since `P(Ξ) = 1`. `f` need not be measurable
and `μ` need not be finite. -/
theorem lintegral_eq_sum_cells {N ν : ℕ}
    (μ : Measure (EuclideanSpace ℝ (Fin N)))
    (S : Fin ν → Set (EuclideanSpace ℝ (Fin N))) (hSm : ∀ l, MeasurableSet (S l))
    (hSd : Pairwise (Function.onFun Disjoint S)) (hSc : μ (⋃ l, S l)ᶜ = 0)
    (f : EuclideanSpace ℝ (Fin N) → ENNReal) :
    ∫⁻ ξ, f ξ ∂μ = ∑ l, ∫⁻ ξ in S l, f ξ ∂μ := by sorry

end StochasticProg.PartitionJensen
Source
Birge & Louveaux, Introduction to Stochastic Programming, 2nd ed., Springer 2011, doi:10.1007/978-1-4614-0237-4, Chapter 8, §8.2, proof of Theorem 1, eq. (2.2), first equality, printed p. 346 (PDF p. 365): "E(g(x)) = Σ_{l=1}^ν ∫_{S^l} g(x,ξ)P(dξ)"

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me