The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V18. Measure and integration

Mathlib.MeasureTheory.MeasurableSpace.Basic

69 declarations. Mathlib docs · Source

Measurable spaces and measurable functions

This file provides properties of measurable spaces and the functions and isomorphisms between them. The definition of a measurable space is in Mathlib/MeasureTheory/MeasurableSpace/Defs.lean.

A measurable space is a set equipped with a σ-algebra, a collection of subsets closed under complementation and countable union. A function between measurable spaces is measurable if the preimage of each measurable subset is measurable.

σ-algebras on a fixed set α form a complete lattice. Here we order σ-algebras by writing m₁ ≤ m₂ if every set which is m₁-measurable is also m₂-measurable (that is, m₁ is a subset of m₂). In particular, any collection of subsets of α generates a smallest σ-algebra which contains all of them. A function f : α → β induces a Galois connection between the lattices of σ-algebras on α and β.

Implementation notes

Measurability of a function f : α → β between measurable spaces is defined in terms of the Galois connection induced by f.

References

Tags

measurable space, σ-algebra, measurable function, dynkin system, π-λ theorem, π-system

def MeasurableSpace.map E1 #

{α : Type u_1} → {β : Type u_2} → (α → β) → MeasurableSpace α → MeasurableSpace β

The forward image of a measurable space under a function. map f m contains the sets s : Set β whose preimage under f is measurable.

theorem MeasurableSpace.map_def E0 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace α} {f : α → β} {s : Set β},
  MeasurableSet s ↔ MeasurableSet (f ⁻¹' s)

theorem MeasurableSpace.map_id E0 #

∀ {α : Type u_1} {m : MeasurableSpace α}, MeasurableSpace.map id m = m

theorem MeasurableSpace.map_comp E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {m : MeasurableSpace α} {f : α → β} {g : β → γ},
  MeasurableSpace.map g (MeasurableSpace.map f m) = MeasurableSpace.map (g ∘ f) m

def MeasurableSpace.comap E1 #

{α : Type u_1} → {β : Type u_2} → (α → β) → MeasurableSpace β → MeasurableSpace α

The reverse image of a measurable space under a function. comap f m contains the sets s : Set α such that s is the f-preimage of a measurable set in β.

theorem MeasurableSpace.measurableSet_comap E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {m : MeasurableSpace β},
  MeasurableSet s ↔ ∃ s', MeasurableSet s' ∧ f ⁻¹' s' = s

theorem MeasurableSpace.comap_eq_generateFrom E1 #

∀ {α : Type u_1} {β : Type u_2} (m : MeasurableSpace β) (f : α → β),
  MeasurableSpace.comap f m = MeasurableSpace.generateFrom {t | ∃ s, MeasurableSet s ∧ f ⁻¹' s = t}

theorem MeasurableSpace.comap_id E0 #

∀ {α : Type u_1} {m : MeasurableSpace α}, MeasurableSpace.comap id m = m

theorem MeasurableSpace.comap_comp E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {m : MeasurableSpace α} {f : β → α} {g : γ → β},
  MeasurableSpace.comap g (MeasurableSpace.comap f m) = MeasurableSpace.comap (f ∘ g) m

theorem MeasurableSpace.comap_le_iff_le_map E1 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace α} {m' : MeasurableSpace β} {f : α → β},
  MeasurableSpace.comap f m' ≤ m ↔ m' ≤ MeasurableSpace.map f m

theorem MeasurableSpace.gc_comap_map E1 #

∀ {α : Type u_1} {β : Type u_2} (f : α → β), GaloisConnection (MeasurableSpace.comap f) (MeasurableSpace.map f)

theorem MeasurableSpace.map_mono E0 #

∀ {α : Type u_1} {β : Type u_2} {m₁ m₂ : MeasurableSpace α} {f : α → β},
  m₁ ≤ m₂ → MeasurableSpace.map f m₁ ≤ MeasurableSpace.map f m₂

theorem MeasurableSpace.monotone_map E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Monotone (MeasurableSpace.map f)

theorem MeasurableSpace.comap_mono E1 #

∀ {α : Type u_1} {β : Type u_2} {m₁ m₂ : MeasurableSpace α} {g : β → α},
  m₁ ≤ m₂ → MeasurableSpace.comap g m₁ ≤ MeasurableSpace.comap g m₂

theorem MeasurableSpace.monotone_comap E1 #

∀ {α : Type u_1} {β : Type u_2} {g : β → α}, Monotone (MeasurableSpace.comap g)

theorem MeasurableSpace.comap_bot E0 #

∀ {α : Type u_1} {β : Type u_2} {g : β → α}, MeasurableSpace.comap g ⊥ = ⊥

theorem MeasurableSpace.comap_sup E0 #

∀ {α : Type u_1} {β : Type u_2} {m₁ m₂ : MeasurableSpace α} {g : β → α},
  MeasurableSpace.comap g (m₁ ⊔ m₂) = MeasurableSpace.comap g m₁ ⊔ MeasurableSpace.comap g m₂

theorem MeasurableSpace.comap_iSup E0 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort uι} {g : β → α} {m : ι → MeasurableSpace α},
  MeasurableSpace.comap g (⨆ i, m i) = ⨆ i, MeasurableSpace.comap g (m i)

theorem MeasurableSpace.map_top E0 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β}, MeasurableSpace.map f ⊤ = ⊤

theorem MeasurableSpace.map_inf E0 #

∀ {α : Type u_1} {β : Type u_2} {m₁ m₂ : MeasurableSpace α} {f : α → β},
  MeasurableSpace.map f (m₁ ⊓ m₂) = MeasurableSpace.map f m₁ ⊓ MeasurableSpace.map f m₂

theorem MeasurableSpace.map_iInf E0 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort uι} {f : α → β} {m : ι → MeasurableSpace α},
  MeasurableSpace.map f (⨅ i, m i) = ⨅ i, MeasurableSpace.map f (m i)

theorem MeasurableSpace.comap_map_le E1 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace α} {f : α → β},
  MeasurableSpace.comap f (MeasurableSpace.map f m) ≤ m

theorem MeasurableSpace.le_map_comap E1 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace α} {g : β → α},
  m ≤ MeasurableSpace.map g (MeasurableSpace.comap g m)

theorem MeasurableSpace.map_comap_eq_of_surjective E0 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace α} {g : β → α},
  Function.Surjective g → MeasurableSpace.map g (MeasurableSpace.comap g m) = m

theorem MeasurableSpace.map_const E0 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace α} (b : β), MeasurableSpace.map (fun _a ↦ b) m = ⊤

theorem MeasurableSpace.comap_const E0 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace β} (b : β), MeasurableSpace.comap (fun _a ↦ b) m = ⊥

theorem MeasurableSpace.comap_generateFrom E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {s : Set (Set β)},
  MeasurableSpace.comap f (MeasurableSpace.generateFrom s) = MeasurableSpace.generateFrom (Set.preimage f '' s)

theorem measurable_iff_le_map E1 #

∀ {α : Type u_1} {β : Type u_2} {m₁ : MeasurableSpace α} {m₂ : MeasurableSpace β} {f : α → β},
  Measurable f ↔ m₂ ≤ MeasurableSpace.map f m₁

theorem Measurable.of_le_map E1 #

∀ {α : Type u_1} {β : Type u_2} {m₁ : MeasurableSpace α} {m₂ : MeasurableSpace β} {f : α → β},
  m₂ ≤ MeasurableSpace.map f m₁ → Measurable f

Alias of the reverse direction of measurable_iff_le_map.

theorem Measurable.le_map E1 #

∀ {α : Type u_1} {β : Type u_2} {m₁ : MeasurableSpace α} {m₂ : MeasurableSpace β} {f : α → β},
  Measurable f → m₂ ≤ MeasurableSpace.map f m₁

Alias of the forward direction of measurable_iff_le_map.

theorem measurable_iff_comap_le E1 #

∀ {α : Type u_1} {β : Type u_2} {m₁ : MeasurableSpace α} {m₂ : MeasurableSpace β} {f : α → β},
  Measurable f ↔ MeasurableSpace.comap f m₂ ≤ m₁

theorem Measurable.comap_le E2 #

∀ {α : Type u_1} {β : Type u_2} {m₁ : MeasurableSpace α} {m₂ : MeasurableSpace β} {f : α → β},
  Measurable f → MeasurableSpace.comap f m₂ ≤ m₁

Alias of the forward direction of measurable_iff_comap_le.

theorem Measurable.of_comap_le E1 #

∀ {α : Type u_1} {β : Type u_2} {m₁ : MeasurableSpace α} {m₂ : MeasurableSpace β} {f : α → β},
  MeasurableSpace.comap f m₂ ≤ m₁ → Measurable f

Alias of the reverse direction of measurable_iff_comap_le.

theorem MeasurableSpace.comap_le_comap_of_eq_comp E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mβ : MeasurableSpace β} {mγ : MeasurableSpace γ} {f : α → β} {g : α → γ}
  (h : β → γ), Measurable h → g = h ∘ f → MeasurableSpace.comap g mγ ≤ MeasurableSpace.comap f mβ

If g = h ∘ f, then the sigma-algebra generated by g is smaller than the one generated by f.

theorem comap_measurable E1 #

∀ {α : Type u_1} {β : Type u_2} {m : MeasurableSpace β} (f : α → β), Measurable f

theorem measurable_comap_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mα : MeasurableSpace α} {mγ : MeasurableSpace γ} {f : α → β}
  {g : β → γ}, Measurable f ↔ Measurable (g ∘ f)

theorem measurable_comap_iff_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {mβ : MeasurableSpace β} {mγ : MeasurableSpace γ} {g : α → β}
  {f : β → γ}, Function.Surjective g → (Measurable f ↔ Measurable (f ∘ g))

theorem Measurable.mono E1 #

∀ {α : Type u_1} {β : Type u_2} {ma ma' : MeasurableSpace α} {mb mb' : MeasurableSpace β} {f : α → β},
  Measurable f → ma ≤ ma' → mb' ≤ mb → Measurable f

theorem Measurable.iSup' E1 #

∀ {α : Type u_1} {β : Type u_2} {ι : Sort uι} {mα : ι → MeasurableSpace α} {x : MeasurableSpace β} {f : α → β} (i₀ : ι),
  Measurable f → Measurable f

theorem Measurable.sup_of_left E1 #

∀ {α : Type u_1} {β : Type u_2} {mα mα' : MeasurableSpace α} {x : MeasurableSpace β} {f : α → β},
  Measurable f → Measurable f

theorem Measurable.sup_of_right E1 #

∀ {α : Type u_1} {β : Type u_2} {mα mα' : MeasurableSpace α} {x : MeasurableSpace β} {f : α → β},
  Measurable f → Measurable f

theorem measurable_id'' E1 #

∀ {α : Type u_1} {m mα : MeasurableSpace α}, m ≤ mα → Measurable id

theorem measurable_from_top E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace β] {f : α → β}, Measurable f

theorem measurable_generateFrom E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] {s : Set (Set β)} {f : α → β},
  (∀ t ∈ s, MeasurableSet (f ⁻¹' t)) → Measurable f

theorem measurableSet_generateFrom_of_mem_supClosure E1 #

∀ {α : Type u_1} {s : Set (Set α)} {t : Set α}, t ∈ supClosure s → MeasurableSet t

theorem Subsingleton.measurable E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [Subsingleton α],
  Measurable f

theorem measurable_of_subsingleton_codomain E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [Subsingleton β] (f : α → β),
  Measurable f

theorem measurable_one E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [inst_2 : One α], Measurable 1

theorem measurable_zero E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [inst_2 : Zero α], Measurable 0

theorem measurable_of_empty E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [IsEmpty α] (f : α → β),
  Measurable f

theorem measurable_of_empty_codomain E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [IsEmpty β] (f : α → β),
  Measurable f

theorem measurable_const' E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] {f : β → α},
  (∀ (x y : β), f x = f y) → Measurable f

A version of measurable_const that assumes f x = f y for all x, y. This version works for functions between empty types.

theorem measurable_natCast E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [inst_2 : NatCast α] (n : ℕ),
  Measurable ↑n

theorem measurable_intCast E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [inst_2 : IntCast α] (n : ℤ),
  Measurable ↑n

theorem measurable_of_countable E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [Countable α]
  [MeasurableSingletonClass α] (f : α → β), Measurable f

theorem measurable_of_finite E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : MeasurableSpace β] [Finite α]
  [MeasurableSingletonClass α] (f : α → β), Measurable f

theorem Measurable.iterate E1 #

∀ {α : Type u_1} {m : MeasurableSpace α} {f : α → α}, Measurable f → ∀ (n : ℕ), Measurable f^[n]

theorem measurableSet_preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β} {t : Set β},
  Measurable f → MeasurableSet t → MeasurableSet (f ⁻¹' t)

theorem MeasurableSet.preimage E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β} {t : Set β},
  MeasurableSet t → Measurable f → MeasurableSet (f ⁻¹' t)

theorem Measurable.piecewise E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f g : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β}
  {x : DecidablePred fun x ↦ x ∈ s}, MeasurableSet s → Measurable f → Measurable g → Measurable (s.piecewise f g)

theorem Measurable.ite E1 #

∀ {α : Type u_1} {β : Type u_2} {f g : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β} {p : α → Prop}
  {x : DecidablePred p},
  MeasurableSet {a | p a} → Measurable f → Measurable g → Measurable fun x_1 ↦ if p x_1 then f x_1 else g x_1

This is slightly different from Measurable.piecewise. It can be used to show Measurable (ite (x=0) 0 1) by exact Measurable.ite (measurableSet_singleton 0) measurable_const measurable_const, but replacing Measurable.ite by Measurable.piecewise in that example proof does not work.

theorem Measurable.indicator E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β}
  [inst : Zero β], Measurable f → MeasurableSet s → Measurable (s.indicator f)

theorem measurable_indicator_const_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {m : MeasurableSpace α} {mβ : MeasurableSpace β} [inst : Zero β]
  [MeasurableSingletonClass β] (b : β) [NeZero b], Measurable (s.indicator fun x ↦ b) ↔ MeasurableSet s

The measurability of a set A is equivalent to the measurability of the indicator function which takes a constant value b ≠ 0 on a set A and 0 elsewhere.

theorem measurableSet_mulSupport E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β} [inst : One β]
  [MeasurableSingletonClass β], Measurable f → MeasurableSet (Function.mulSupport f)

theorem measurableSet_support E1 #

∀ {α : Type u_1} {β : Type u_2} {f : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β} [inst : Zero β]
  [MeasurableSingletonClass β], Measurable f → MeasurableSet (Function.support f)

theorem Measurable.measurable_of_countable_ne E1 #

∀ {α : Type u_1} {β : Type u_2} {f g : α → β} {m : MeasurableSpace α} {mβ : MeasurableSpace β}
  [MeasurableSingletonClass α], Measurable f → {x | f x ≠ g x}.Countable → Measurable g

If a function coincides with a measurable function outside of a countable set, it is measurable.

def IsCountablySpanning E1 #

{α : Type u_1} → Set (Set α) → Prop

We say that a collection of sets is countably spanning if a countable subset spans the whole type. This is a useful condition in various parts of measure theory. For example, it is a needed condition to show that the product of two collections generate the product sigma algebra, see generateFrom_prod_eq.

theorem isCountablySpanning_measurableSet E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α], IsCountablySpanning {s | MeasurableSet s}

theorem IsCountablySpanning.prod E1 #

∀ {α : Type u_1} {β : Type u_2} {C : Set (Set α)} {D : Set (Set β)},
  IsCountablySpanning C → IsCountablySpanning D → IsCountablySpanning (Set.image2 (fun x1 x2 ↦ x1 ×ˢ x2) C D)

Rectangles of countably spanning sets are countably spanning.