The Leibniz integral rule (differentiation under the integral sign)
ProvedFamousTheorems.leibniz_integral_ruleThe Leibniz integral rule. Let be a family of integrable functions of , depending on a parameter in a normed space , with values in a normed space . Suppose that near , for almost every , is differentiable with derivative , and that for an integrable function (plus measurability conditions). Then
Differentiation under the integral sign is a basic tool of analysis. It is used for Fourier and Laplace transforms, for Feynman's trick in evaluating integrals, and for proving regularity of solutions of differential equations given by integral formulas.
Formalization note. Mathlib's hasFDerivAt_integral_of_dominated_of_fderiv_le. The parameter derivative is a Fréchet derivative F' x a : H →L[𝕜] E over 𝕜 = ℝ or ℂ. The domination and differentiability hypotheses hold for all in a neighbourhood s of and almost every .
import Mathlib
namespace FamousTheorems
theorem leibniz_integral_rule {α 𝕜 E H : Type*} [MeasurableSpace α] {μ : MeasureTheory.Measure α} [RCLike 𝕜] [NormedAddCommGroup E]
[NormedSpace ℝ E] [NormedSpace 𝕜 E] [NormedAddCommGroup H] [NormedSpace 𝕜 H] {F : H → α → E}
{F' : H → α → H →L[𝕜] E} {x₀ : H} {bound : α → ℝ} {s : Set H} (hs : s ∈ nhds x₀)
(hF_meas : ∀ᶠ x in nhds x₀, MeasureTheory.AEStronglyMeasurable (F x) μ) (hF_int : MeasureTheory.Integrable (F x₀) μ)
(hF'_meas : MeasureTheory.AEStronglyMeasurable (F' x₀) μ) (h_bound : ∀ᵐ a ∂μ, ∀ x ∈ s, ‖F' x a‖ ≤ bound a)
(bound_integrable : MeasureTheory.Integrable bound μ)
(h_diff : ∀ᵐ a ∂μ, ∀ x ∈ s, HasFDerivAt (fun x => F x a) (F' x a) x) :
HasFDerivAt (fun x => ∫ a, F x a ∂μ) (∫ a, F' x₀ a ∂μ) x₀ := by sorry
end FamousTheorems