Lemma 5 — differentiating a convolution with an exponential kernel
ProvedPorteusSS.leibniz_exp_kernelLet be continuous and , and suppose that the integral
exists (is finite) for every . Then is continuously differentiable on and
for every .
The identity (23) is what drives the analysis of convolutions with exponential densities: the smoothed function moves toward at rate , so its local extrema occur where it crosses .
Formalization Note. " exists" is read as Lebesgue integrability of on for every .
import Mathlib open MeasureTheory Filter Topology Set
namespace PorteusSS
/-- Lemma 5 (p. 422). If `g` is continuous on `ℝ`, `lam > 0`, and
`f(x) = ∫_0^∞ g(x - t) lam e^{-lam t} dt` exists (is finite) for every `x`, then `f` is
continuously differentiable on `ℝ` and `f'(x) = lam (g(x) - f(x))` (23). -/
theorem leibniz_exp_kernel (g : ℝ → ℝ) (lam : ℝ) (hlam : 0 < lam) (hg : Continuous g)
(hint : ∀ x : ℝ,
IntegrableOn (fun t => g (x - t) * (lam * Real.exp (-lam * t))) (Ici 0)) :
ContDiff ℝ 1 (fun x => ∫ t in Ici (0 : ℝ), g (x - t) * (lam * Real.exp (-lam * t))) ∧
∀ x : ℝ, HasDerivAt (fun x => ∫ t in Ici (0 : ℝ), g (x - t) * (lam * Real.exp (-lam * t)))
(lam * (g x - ∫ t in Ici (0 : ℝ), g (x - t) * (lam * Real.exp (-lam * t)))) x := by sorry
end PorteusSS
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be continuous and . Assume that for every the function is Lebesgue integrable on . Define
The conclusion has two parts:
- is continuously differentiable on (class ).
- At every , is differentiable with
Degenerate cases: The integrability hypothesis is required at every , so is a genuine integral everywhere and the "non-integrable gives " convention never applies. The strict inequality excludes and negative . There are no other degenerate cases.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.