Borel-Cantelli Lemma
Statement
First Borel–Cantelli Lemma. Let be a sequence of events in a probability space . If
then , i.e., almost surely only finitely many occur:
Second Borel–Cantelli Lemma. If the are additionally independent and , then .
Visualization
Coin-flip example. Flip a coin on trial with probability of heads ( = "heads on trial ").
| partial sum | ||
|---|---|---|
| 1 | 1.000 | 1.000 |
| 2 | 0.250 | 1.250 |
| 5 | 0.040 | 1.464 |
| 10 | 0.010 | 1.548 |
| 100 | 0.0001 | 1.635 |
| — |
Since , the first Borel–Cantelli lemma says: almost surely, only finitely many trials yield heads. After some random time , all subsequent coins show tails.
Contrast: With , (harmonic series), and if the trials are independent, BC2 gives .
Proof Sketch
- Measure of the limsup. .
- Sub-additivity (union bound). .
- Tail goes to 0. Because , its tail as .
- Conclude. .
Connections
Borel–Cantelli is the probabilistic cousin of Markov's InequalityMarkov's InequalityA non-negative random variable rarely exceeds a multiple of its expectationRead more →: both control tail probabilities. It is used heavily in the study of Iterated Function SystemsIterated Function SystemsConstructing fractals via contractive affine transformationsRead more → (almost-sure convergence of random IFS orbits) and in proving the strong law of large numbers, which itself refines Chebyshev's InequalityChebyshev's InequalityA random variable rarely deviates from its mean by more than a few standard deviationsRead more →.
Lean4 Proof
Mathlib provides the first Borel–Cantelli lemma as MeasureTheory.measure_limsup_atTop_eq_zero in Mathlib.MeasureTheory.OuterMeasure.BorelCantelli.
measure_limsup_atTop_eq_zero is proved by the tail-sum argument: via ENNReal.tendsto_tsum_compl_atTop_zero.
Lean4 Proof
import Mathlib.MeasureTheory.OuterMeasure.BorelCantelli
namespace MoonMath
open MeasureTheory Filter
/-- **First Borel–Cantelli lemma**.
If `Σ μ(sₙ) < ∞`, then `μ(limsup sₙ) = 0`.
Here `limsup sₙ` along `atTop` is the set of points in infinitely many `sₙ`. -/
theorem borel_cantelli_first {α : Type*} {m : MeasurableSpace α}
(μ : Measure α) {s : ℕ → Set α}
(hs : ∑' n, μ (s n) ≠ ∞) :
μ (limsup s atTop) = 0 :=
measure_limsup_atTop_eq_zero hs
end MoonMathReferenced by
- Martingale DefinitionProbability