Documentation

Mathlib.MeasureTheory.SetAlgebra

Algebra of sets #

In this file we define the notion of algebra of sets and give its basic properties. An algebra of sets is a family of sets containing the empty set and closed by complement and binary union. It is therefore similar to a Οƒ-algebra, except that it is not necessarily closed by countable unions.

We also define the algebra of sets generated by a family of sets and give its basic properties, and we prove that it is countable when it is generated by a countable family. We prove that the Οƒ-algebra generated by a family of sets π’œ is the same as the one generated by the algebra of sets generated by π’œ.

Main definitions #

Main statements #

References #

Tags #

algebra of sets, generated algebra of sets

Definition and basic properties of an algebra of sets #

structure MeasureTheory.IsSetAlgebra {Ξ± : Type u_1} (π’œ : Set (Set Ξ±)) :

An algebra of sets is a family of sets containing the empty set and closed by complement and union. Consequently it is also closed by difference (see IsSetAlgebra.sdiff_mem) and intersection (see IsSetAlgebra.inter_mem).

Instances For
    theorem MeasureTheory.IsSetAlgebra.univ_mem {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} (hπ’œ : IsSetAlgebra π’œ) :
    Set.univ ∈ π’œ

    An algebra of sets contains the whole set.

    theorem MeasureTheory.IsSetAlgebra.inter_mem {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {s t : Set Ξ±} (hπ’œ : IsSetAlgebra π’œ) (s_mem : s ∈ π’œ) (t_mem : t ∈ π’œ) :
    s ∩ t ∈ π’œ

    An algebra of sets is closed by intersection.

    theorem MeasureTheory.IsSetAlgebra.sdiff_mem {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {s t : Set Ξ±} (hπ’œ : IsSetAlgebra π’œ) (s_mem : s ∈ π’œ) (t_mem : t ∈ π’œ) :
    s \ t ∈ π’œ

    An algebra of sets is closed by difference.

    @[deprecated MeasureTheory.IsSetAlgebra.sdiff_mem (since := "2026-06-03")]
    theorem MeasureTheory.IsSetAlgebra.diff_mem {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {s t : Set Ξ±} (hπ’œ : IsSetAlgebra π’œ) (s_mem : s ∈ π’œ) (t_mem : t ∈ π’œ) :
    s \ t ∈ π’œ

    Alias of MeasureTheory.IsSetAlgebra.sdiff_mem.


    An algebra of sets is closed by difference.

    theorem MeasureTheory.IsSetAlgebra.isSetRing {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} (hπ’œ : IsSetAlgebra π’œ) :
    IsSetRing π’œ

    An algebra of sets is a ring of sets.

    theorem MeasureTheory.IsSetAlgebra.biUnion_mem {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {ΞΉ : Type u_2} (hπ’œ : IsSetAlgebra π’œ) {s : ΞΉ β†’ Set Ξ±} (S : Finset ΞΉ) (hs : βˆ€ i ∈ S, s i ∈ π’œ) :
    ⋃ i ∈ S, s i ∈ π’œ

    An algebra of sets is closed by finite unions.

    theorem MeasureTheory.IsSetAlgebra.biInter_mem {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {ΞΉ : Type u_2} (hπ’œ : IsSetAlgebra π’œ) {s : ΞΉ β†’ Set Ξ±} (S : Finset ΞΉ) (hs : βˆ€ i ∈ S, s i ∈ π’œ) :
    β‹‚ i ∈ S, s i ∈ π’œ

    An algebra of sets is closed by finite intersections.

    Definition and properties of the algebra of sets generated by some family #

    def MeasureTheory.generateSetAlgebra {Ξ± : Type u_2} (π’œ : Set (Set Ξ±)) :
    Set (Set Ξ±)

    generateSetAlgebra π’œ is the smallest algebra of sets containing π’œ.

    Equations
    Instances For
      theorem MeasureTheory.isSetAlgebra_generateSetAlgebra {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} :

      The algebra of sets generated by a family of sets is an algebra of sets.

      theorem MeasureTheory.self_subset_generateSetAlgebra {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} :
      π’œ βŠ† generateSetAlgebra π’œ

      The algebra of sets generated by π’œ contains π’œ.

      theorem MeasureTheory.generateSetAlgebra_induction {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {s : Set Ξ±} {motive : (s : Set Ξ±) β†’ s ∈ generateSetAlgebra π’œ β†’ Prop} (base : βˆ€ (u : Set Ξ±) (hu : u ∈ π’œ), motive u β‹―) (empty : motive βˆ… β‹―) (compl : βˆ€ (u : Set Ξ±) (hu : u ∈ generateSetAlgebra π’œ), motive u hu β†’ motive uᢜ β‹―) (union : βˆ€ (u v : Set Ξ±) (hu : u ∈ generateSetAlgebra π’œ) (hv : v ∈ generateSetAlgebra π’œ), motive u hu β†’ motive v hv β†’ motive (u βˆͺ v) β‹―) (hs : s ∈ generateSetAlgebra π’œ) :
      motive s hs

      An induction principle for membership of generateSetAlgebra π’œ. If motive holds of all elements of π’œ and of βˆ…, and is preserved under complement and binary union, then it holds of all elements of generateSetAlgebra π’œ.

      theorem MeasureTheory.IsSetAlgebra.generateSetAlgebra_subset {Ξ± : Type u_1} {π’œ ℬ : Set (Set Ξ±)} (h : π’œ βŠ† ℬ) (hℬ : IsSetAlgebra ℬ) :
      generateSetAlgebra π’œ βŠ† ℬ

      generateSetAlgebra π’œ is the smallest algebra of sets containing π’œ: if a family of sets π’œ is contained in an algebra of sets ℬ, then so is the algebra of sets generated by π’œ.

      @[simp]

      The measurable space generated by a family of sets π’œ is the same as the one generated by the algebra of sets generated by π’œ.

      theorem MeasureTheory.generateSetAlgebra_mono {Ξ± : Type u_1} {π’œ ℬ : Set (Set Ξ±)} (h : π’œ βŠ† ℬ) :
      generateSetAlgebra π’œ βŠ† generateSetAlgebra ℬ

      If a family of sets π’œ is contained in ℬ, then the algebra of sets generated by π’œ is contained in the one generated by ℬ.

      theorem MeasureTheory.IsSetAlgebra.generateSetAlgebra_subset_self {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} (hπ’œ : IsSetAlgebra π’œ) :
      generateSetAlgebra π’œ βŠ† π’œ

      If π’œ is an algebra of sets, then it contains the algebra generated by itself.

      theorem MeasureTheory.IsSetAlgebra.generateSetAlgebra_eq {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} (hπ’œ : IsSetAlgebra π’œ) :
      generateSetAlgebra π’œ = π’œ

      If π’œ is an algebra of sets, then it is equal to the algebra generated by itself.

      theorem MeasureTheory.mem_generateSetAlgebra_elim {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} {s : Set Ξ±} (s_mem : s ∈ generateSetAlgebra π’œ) :
      βˆƒ (A : Set (Set (Set Ξ±))), A.Finite ∧ (βˆ€ a ∈ A, a.Finite) ∧ (βˆ€ a ∈ A, βˆ€ t ∈ a, t ∈ π’œ ∨ tᢜ ∈ π’œ) ∧ s = ⋃ a ∈ A, β‹‚ t ∈ a, t

      If a set belongs to the algebra of sets generated by π’œ then it can be written as a finite union of finite intersections of sets which are in π’œ or have their complement in π’œ.

      theorem MeasureTheory.countable_generateSetAlgebra {Ξ± : Type u_1} {π’œ : Set (Set Ξ±)} (h : π’œ.Countable) :

      If a family of sets is countable then so is the algebra of sets generated by it.