Measurable spaces on Option, and singletons in sums and sigma types #
Option α carries the image of the σ-algebra of α under some, the σ-algebra of the sum of
α and a point: a set is measurable when its preimage under some is, so a function out of
Option α is measurable when its composite with some is.
A singleton in α ⊕ β or Option α is the image of a singleton or {none}, and the fibre of a
singleton {⟨i, x⟩} of Σ i, X i over j is {x} when j = i and empty otherwise, so these
types have measurable singletons when their components do. Sums and options of discrete spaces are
discrete. [UPSTREAM] candidates for Mathlib/MeasureTheory/MeasurableSpace/Constructions.lean.
Implementation notes #
WithTop α and ℕ∞ are synonyms of Option α with σ-algebras of their own, the Borel and the
discrete one, which the instance here does not reach. Both agree with it, the first when α is
Borel, since none is closed in WithTop α and some is an open embedding.
Equations
- Option.instMeasurableSpace = MeasurableSpace.map some inst✝
Alias of the reverse direction of measurableSet_some_image.