Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5 — differentiating a convolution with an exponential kernel

Proved
PorteusSS.leibniz_exp_kernel

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

convolutionexponential-densityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let g:R→Rg : \mathbb R \to \mathbb Rg:R→R be continuous and λ>0\lambda > 0λ>0, and suppose that the integral

f(x)=∫0∞g(x−t) λe−λt dtf(x) = \int_0^\infty g(x - t)\, \lambda e^{-\lambda t}\, dtf(x)=∫0∞​g(x−t)λe−λtdt

exists (is finite) for every x∈Rx \in \mathbb Rx∈R. Then fff is continuously differentiable on R\mathbb RR and

f′(x)=λ [ g(x)−f(x) ](23)f'(x) = \lambda\,[\,g(x) - f(x)\,] \qquad (23)f′(x)=λ[g(x)−f(x)](23)

for every x∈Rx \in \mathbb Rx∈R.

The identity (23) is what drives the analysis of convolutions with exponential densities: the smoothed function moves toward ggg at rate λ\lambdaλ, so its local extrema occur where it crosses ggg.

Formalization Note. "fff exists" is read as Lebesgue integrability of t↦g(x−t)λe−λtt \mapsto g(x-t)\lambda e^{-\lambda t}t↦g(x−t)λe−λt on [0,∞)[0,\infty)[0,∞) for every xxx.

Preamble
import Mathlib

open MeasureTheory Filter Topology Set
Formal statement
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
Source
Porteus, On the Optimality of Generalized (s, S) Policies, Management Science 17(7):411–426 (1971), p. 422, Lemma 5
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let g:R→Rg:\mathbb R\to\mathbb Rg:R→R be continuous and λ>0\lambda>0λ>0. Assume that for every x∈Rx\in\mathbb Rx∈R the function t↦g(x−t) λe−λtt\mapsto g(x-t)\,\lambda e^{-\lambda t}t↦g(x−t)λe−λt is Lebesgue integrable on [0,∞)[0,\infty)[0,∞). Define

F(x)=∫[0,∞)g(x−t) λe−λt dt.F(x)=\int_{[0,\infty)} g(x-t)\,\lambda e^{-\lambda t}\,dt .F(x)=∫[0,∞)​g(x−t)λe−λtdt.

The conclusion has two parts:

  • FFF is continuously differentiable on R\mathbb RR (class C1C^1C1).
  • At every x∈Rx\in\mathbb Rx∈R, FFF is differentiable with
F′(x)=λ(g(x)−F(x)).F'(x)=\lambda\big(g(x)-F(x)\big).F′(x)=λ(g(x)−F(x)).

Degenerate cases: The integrability hypothesis is required at every xxx, so FFF is a genuine integral everywhere and the "non-integrable gives 000" convention never applies. The strict inequality λ>0\lambda>0λ>0 excludes λ=0\lambda=0λ=0 and negative λ\lambdaλ. There are no other degenerate cases.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me