Measures of ranges, and measures on Option #
The measure of the range of an injective map out of a countable type is the sum of the measures of
the image points, and a measure on Option α is its mass at none plus its mass on the range of
some; an integral over Option α splits the same way.
[UPSTREAM] candidates for Mathlib/MeasureTheory/Measure/Basic.lean.
theorem
MeasureTheory.measure_range_eq_tsum
{α : Type u_1}
{β : Type u_2}
[MeasurableSpace α]
[Countable β]
[MeasurableSingletonClass α]
{μ : Measure α}
{f : β → α}
(hf : Function.Injective f)
:
μ (Set.range f) = ∑' (b : β), μ {f b}
theorem
MeasureTheory.measure_singleton_none_add_measure_range_some
{α : Type u_1}
[MeasurableSpace α]
(μ : Measure (Option α))
:
μ {none} + μ (Set.range some) = μ Set.univ
theorem
MeasureTheory.lintegral_option
{α : Type u_1}
[MeasurableSpace α]
[Countable α]
[MeasurableSingletonClass α]
(μ : Measure (Option α))
(f : Option α → ENNReal)
:
∫⁻ (o : Option α), f o ∂μ = f none * μ {none} + ∑' (a : α), f (some a) * μ {some a}
An integral over Option α is the term at none plus the sum of the terms at each
some a.