Integrating and differentiating a primitive #
This file proves three facts about the primitive v ↦ ∫ z in 0..v, g z.
- Measurability in a parameter. If
Gis jointly measurable andc,dare measurable, thena ↦ ∫ z in c a..d a, G a zis measurable. - Tail formula. For a finite measure
μconcentrated on[0, h],∫ v, (∫ z in 0..v, g z) ∂μ = ∫ z in (0, h], μ([z, ∞)) · g z. The proof swaps the order of integration over the triangle0 < z ≤ v. Withg = 1this is the layer-cake formulaE[v] = ∫ P(v ≥ z) dzon[0, h]. Mathlib's layer-cake theoremMeasureTheory.lintegral_comp_eq_lintegral_meas_le_mulis the nonnegativelintegralrelative. Heregis a signed integrable function and the integrals are Bochner integrals. - Fundamental theorem of calculus on
[0, ∞). Ifuis continuous on[0, ∞), thent ↦ ∫ z in 0..t, u zhas derivativeu xwithin[0, ∞)at everyx ≥ 0.
Main results #
MeasureTheory.measurable_intervalIntegral: measurability of parametric interval integrals.MeasureTheory.integral_intervalIntegral_eq_integral_measureReal_Ici_mul: the tail formula.MeasureTheory.hasDerivWithinAt_integral_Ici_of_continuousOn: FTC on[0, ∞)for a continuous integrand.
theorem MeasureTheory.measurable_intervalIntegral {α : Type u_1} [MeasurableSpace α] {G : α → ℝ → ℝ} (hG : Measurable (Function.uncurry G)) {c d : α → ℝ} (hc : Measurable c) (hd : Measurable d) :
A parametric interval integral a ↦ ∫ z in c a..d a, G a z is measurable when G is jointly
measurable and the endpoints are measurable.
theorem MeasureTheory.integral_intervalIntegral_eq_integral_measureReal_Ici_mul {μ : Measure ℝ} [IsFiniteMeasure μ] {h : ℝ} (hμ : ∀ᵐ (v : ℝ) ∂μ, v ∈ Set.Icc 0 h) {g : ℝ → ℝ} (hgm : Measurable g) (hg : IntegrableOn g (Set.Ioc 0 h) volume) :
Tail formula for a primitive. If the finite measure μ is concentrated on [0, h] and g
is measurable and integrable on (0, h], then
∫ v, (∫ z in 0..v, g z) ∂μ = ∫ z in (0, h], μ([z, ∞)) · g z. The proof swaps the order of
integration over the triangle 0 < z ≤ v.
theorem MeasureTheory.hasDerivWithinAt_integral_Ici_of_continuousOn {u : ℝ → ℝ} {x : ℝ} (hu : ContinuousOn u (Set.Ici 0)) (hx : 0 ≤ x) :
Fundamental theorem of calculus on [0, ∞) for a function continuous on [0, ∞): the
primitive t ↦ ∫ z in 0..t, u z has derivative u x within [0, ∞) at every x ≥ 0.