Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Probability

Second Borel–Cantelli Lemma

If independent measurable events carry an infinite total amount of probability, then with probability one an outcome belongs to infinitely many of them.

Exact theorem

Exact Mathlib statement

theorem ProbabilityTheory.measure_limsup_eq_one {Ω : Type*} {m0 : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {s : ℕ → Set Ω} (hsm : ∀ n, MeasurableSet (s n)) (hs : ProbabilityTheory.iIndepSet s μ) (hs' : (∑' n, μ (s n)) = ∞) : μ (limsup s Filter.atTop) = 1

The theorem at a glance

Second Borel–Cantelli Lemma at a glance

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

Independent measurable events with divergent total measure occur infinitely often with measure one. Explanatory diagram.
Detailed visual description

The poster places measurability, mutual independence, and divergent measure sum above a limsup corridor. Recurrent outcome paths pass through arbitrarily late event windows, while the exact-scope footer distinguishes infinitely-often membership from eventual membership in every event.

Statement structure

From hypotheses to conclusion

Statement map for Second Borel–Cantelli LemmaA mutually independent sequence of measurable events with divergent total measure has a limsup of measure one. The pinned upstream declaration is ProbabilityTheory.measure_limsup_eq_one. The exact checked statement is theorem ProbabilityTheory.measure_limsup_eq_one {Ω : Type*} {m0 : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {s : ℕ → Set Ω} (hsm : ∀ n, MeasurableSet (s n)) (hs : ProbabilityTheory.iIndepSet s μ) (hs' : (∑' n, μ (s n)) = ∞) : μ (limsup s Filter.atTop) = 1.Mathematical readingA mutually independentsequence of measurableevents with divergenttotal measure has alimsup of measure one.Pinned declarationmathlib ·ProbabilityTheory.measure_limsup_eq_oneExact checked formtheoremProbabilityTheory.measure_limsup_eq_one{Ω : Type*} {m0 :MeasurableSpace Ω} {μ :MeasureTheory.Measure Ω}{s : ℕ → Set Ω} (hsm : ∀n, MeasurableSet (s n))(hs :ProbabilityTheory.iIndepSets μ) (hs' : (∑' n, μ (sn)) = ∞) : μ (limsup sFilter.atTop) = 1Statement map for Second Borel–Cantelli LemmaA mutually independent sequence of measurable events with divergent total measure has a limsup of measure one. The pinned upstream declaration is ProbabilityTheory.measure_limsup_eq_one. The exact checked statement is theorem ProbabilityTheory.measure_limsup_eq_one {Ω : Type*} {m0 : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {s : ℕ → Set Ω} (hsm : ∀ n, MeasurableSet (s n)) (hs : ProbabilityTheory.iIndepSet s μ) (hs' : (∑' n, μ (s n)) = ∞) : μ (limsup s Filter.atTop) = 1.Mathematical readingA mutually independentsequence of measurableevents with divergenttotal measure has alimsup of measure one.Pinned declarationmathlib ·ProbabilityTheory.measure_limsup_eq_oneExact checked formtheoremProbabilityTheory.measure_limsup_eq_one{Ω : Type*} {m0 :MeasurableSpace Ω} {μ :MeasureTheory.Measure Ω}{s : ℕ → Set Ω} (hsm : ∀n, MeasurableSet (s n))(hs :ProbabilityTheory.iIndepSets μ) (hs' : (∑' n, μ (sn)) = ∞) : μ (limsup sFilter.atTop) = 1

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

Divergent independent event mass forces almost-sure recurrence through arbitrarily late events. Explanatory diagram.
Detailed visual description

Repeated translucent event windows continue beyond the frame. Many outcome threads cross selected windows again and again at later positions, gathering into a luminous full-measure field without suggesting membership in every event.

Why it matters

A mathematical landmark

Borel–Cantelli turns a divergent series of event probabilities plus independence into an almost-sure recurrence law. It is a central bridge between measure estimates and long-run probabilistic behavior.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This page indexes Mathlib's second Borel–Cantelli lemma for a mutually independent sequence of measurable sets whose measures have divergent sum. It concludes that the set-theoretic limsup has measure one. It does not assert the first Borel–Cantelli direction, replace mutual independence by pairwise independence, give a convergence rate, or identify a finite stage at which every point belongs.

Source and local evidence

Where the theorem comes from

Existing declaration
ProbabilityTheory.measure_limsup_eq_one in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.second-borel-cantelli-lemma.v001
Source
Open the pinned upstream reference