The areas / V18. Measure and integration
Mathlib.MeasureTheory.OuterMeasure.BorelCantelli
9 declarations and 2 deprecated aliases. Mathlib docs · Source
Borel-Cantelli lemma, part 1
In this file we show one implication of the Borel-Cantelli lemma:
if s i is a countable family of sets such that ∑' i, μ (s i) is finite,
then a.e. all points belong to finitely many sets of the family.
We prove several versions of this lemma:
MeasureTheory.ae_finite_setOfPred_mem: as stated above;MeasureTheory.measure_limsup_cofinite_eq_zero: in terms ofFilter.limsupalongFilter.cofinite;MeasureTheory.measure_limsup_atTop_eq_zero: in terms ofFilter.limsupalong(Filter.atTop : Filter ℕ).
For the second Borel-Cantelli lemma (applying to independent sets in a probability space),
see ProbabilityTheory.measure_limsup_eq_one.
theorem MeasureTheory.measure_limsup_cofinite_eq_zero E2 #
∀ {α : Type u_1} {ι : Type u_2} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [MeasureTheory.OuterMeasureClass F α]
[Countable ι] {μ : F} {s : ι → Set α}, ∑' (i : ι), μ (s i) ≠ ⊤ → μ (Filter.limsup s Filter.cofinite) = 0
One direction of the Borel-Cantelli lemma
(sometimes called the "first Borel-Cantelli lemma"):
if (s i) is a countable family of sets such that ∑' i, μ (s i) is finite,
then the limit superior of the s i along the cofinite filter is a null set.
Note: for the second Borel-Cantelli lemma (applying to independent sets in a probability space),
see ProbabilityTheory.measure_limsup_eq_one.
theorem MeasureTheory.measure_limsup_atTop_eq_zero E3 #
∀ {α : Type u_1} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [MeasureTheory.OuterMeasureClass F α] {μ : F}
{s : ℕ → Set α}, ∑' (i : ℕ), μ (s i) ≠ ⊤ → μ (Filter.limsup s Filter.atTop) = 0
One direction of the Borel-Cantelli lemma
(sometimes called the "first Borel-Cantelli lemma"):
if (s i) is a sequence of sets such that ∑' i, μ (s i) is finite,
then the limit superior of the s i along the atTop filter is a null set.
Note: for the second Borel-Cantelli lemma (applying to independent sets in a probability space),
see ProbabilityTheory.measure_limsup_eq_one.
theorem MeasureTheory.ae_finite_setOfPred_mem E2 #
∀ {α : Type u_1} {ι : Type u_2} {F : Type u_3} [inst : FunLike F (Set α) ENNReal]
[inst_1 : MeasureTheory.OuterMeasureClass F α] [Countable ι] {μ : F} {s : ι → Set α},
∑' (i : ι), μ (s i) ≠ ⊤ → ∀ᵐ (x : α) ∂μ, {i | x ∈ s i}.Finite
One direction of the Borel-Cantelli lemma
(sometimes called the "first Borel-Cantelli lemma"):
if (s i) is a countable family of sets such that ∑' i, μ (s i) is finite,
then a.e. all points belong to finitely many sets of the family.
theorem MeasureTheory.measure_setOfPred_frequently_eq_zero E2 #
∀ {α : Type u_1} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [MeasureTheory.OuterMeasureClass F α] {μ : F}
{p : ℕ → α → Prop}, ∑' (i : ℕ), μ {x | p i x} ≠ ⊤ → μ {x | ∃ᶠ (n : ℕ) in Filter.atTop, p n x} = 0
A version of the Borel-Cantelli lemma: if pᵢ is a sequence of predicates such that
∑' i, μ {x | pᵢ x} is finite, then the measure of x such that pᵢ x holds frequently as i → ∞
(or equivalently, pᵢ x holds for infinitely many i) is equal to zero.
theorem MeasureTheory.ae_eventually_notMem E2 #
∀ {α : Type u_1} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [inst_1 : MeasureTheory.OuterMeasureClass F α]
{μ : F} {s : ℕ → Set α}, ∑' (i : ℕ), μ (s i) ≠ ⊤ → ∀ᵐ (x : α) ∂μ, ∀ᶠ (n : ℕ) in Filter.atTop, x ∉ s n
A version of the Borel-Cantelli lemma: if sᵢ is a sequence of sets such that
∑' i, μ sᵢ is finite, then for almost all x, x does not belong to sᵢ for large i.
theorem MeasureTheory.measure_liminf_cofinite_eq_zero E1 #
∀ {α : Type u_1} {ι : Type u_2} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [MeasureTheory.OuterMeasureClass F α]
[Countable ι] {μ : F} [Infinite ι] {s : ι → Set α}, ∑' (i : ι), μ (s i) ≠ ⊤ → μ (Filter.liminf s Filter.cofinite) = 0
theorem MeasureTheory.measure_liminf_atTop_eq_zero E1 #
∀ {α : Type u_1} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [MeasureTheory.OuterMeasureClass F α] {μ : F}
{s : ℕ → Set α}, ∑' (i : ℕ), μ (s i) ≠ ⊤ → μ (Filter.liminf s Filter.atTop) = 0
theorem MeasureTheory.limsup_ae_eq_of_forall_ae_eq E0 #
∀ {α : Type u_1} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [inst_1 : MeasureTheory.OuterMeasureClass F α]
{μ : F} (s : ℕ → Set α) {t : Set α}, (∀ (n : ℕ), s n =ᵐ[μ] t) → Filter.limsup s Filter.atTop =ᵐ[μ] t
theorem MeasureTheory.liminf_ae_eq_of_forall_ae_eq E0 #
∀ {α : Type u_1} {F : Type u_3} [inst : FunLike F (Set α) ENNReal] [inst_1 : MeasureTheory.OuterMeasureClass F α]
{μ : F} (s : ℕ → Set α) {t : Set α}, (∀ (n : ℕ), s n =ᵐ[μ] t) → Filter.liminf s Filter.atTop =ᵐ[μ] t
Deprecated aliases
| Name | New name | Since |
|---|---|---|
MeasureTheory.ae_finite_setOf_mem | MeasureTheory.ae_finite_setOfPred_mem | 2026-07-09 |
MeasureTheory.measure_setOf_frequently_eq_zero | MeasureTheory.measure_setOfPred_frequently_eq_zero | 2026-07-09 |