Documentation

ToCslib.MeasureTheory.MeasurableSpace.Option

The measurable coproduct structure on Option #

Mathlib gives Sum α β the coproduct measurable space, but does not currently provide the corresponding instance for Option α. This file gives Option α the coproduct structure generated by some : α → Option α and the distinguished none point. In particular, optional values over a discrete space are again discrete.

@[instance_reducible]

The coproduct measurable space on Option α, generated by some and none.

Equations

A set of optional values is measurable exactly when its preimage under some is measurable. The none branch imposes no condition because it is indexed by the discrete one-point space.

@[simp]

The image of a measurable set under some is measurable.

some embeds a measurable space as the successful branch of its optional extension.

@[simp]

The absent optional value is a measurable singleton in every optional measurable space.

Optional values have measurable singletons whenever the underlying values do.

The set of present optional values is measurable.

theorem Option.measurable_elim {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {f : Option α → β} (hNone : Measurable fun (x : Unit) => f none) (hSome : Measurable (f ∘ some)) :

A function out of Option α is measurable when its none and some branches are.

theorem Option.measurable_elim' {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (b : β) {f : α → β} (hf : Measurable f) :
Measurable fun (x : Option α) => x.elim b f

Eliminating an optional value with a measurable success branch is measurable.

theorem Option.measurable_map {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {f : α → β} (hf : Measurable f) :

Mapping a measurable function over an optional value is measurable.

def MeasurableEquiv.optionCongr {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (e : α ≃ᵐ β) :

A measurable equivalence extends to optional values, fixing none.

Equations
Instances For
    @[simp]
    theorem MeasurableEquiv.optionCongr_apply {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] (e : α ≃ᵐ β) (x : Option α) :
    e.optionCongr x = Option.map (⇑e) x