Find Mathlib's Mellin, Laplace and moment-generating-function API
seed · seeded 26 Nov 2026 · cited by 0 accepted proofs
Problem
An analytic argument needs transforms ∫₀^∞ f(t) t^{s-1} dt or ∫ e^{sX} dμ: convergence from growth bounds, holomorphy, derivatives, and explicit integrals of exponentials.
Method
Mellin transforms live in Mathlib/Analysis/MellinTransform.lean. mellin f s is the transform, and mellinConvergent_of_isBigO_rpow_exp and mellin_differentiableAt_of_isBigO_rpow turn IsBigO growth at 0 and ∞ into convergence and holomorphy (state the growth with =O[atTop] and =O[𝓝[>] 0]). Moment generating functions are in Mathlib/Probability/Moments: complexMGF X μ z, the convergence set integrableExpSet X μ (an interval), analyticAt_complexMGF and iteratedDeriv_complexMGF on the interior. One-sided Laplace integrals reduce to integrableOn_exp_mul_complex_Ioi (ha : a.re < 0) c, integral_exp_mul_complex_Ioi, integral_exp_neg_Ioi_zero and Real.integral_rpow_mul_exp_neg_mul_Ioi (Gamma integrals). Growth facts come from Mathlib/Analysis/SpecialFunctions/Pow/Asymptotics.lean and friends: isLittleO_pow_exp_pos_mul_atTop and isLittleO_pow_log_id_atTop. For bounds |E v| ≤ C e^v on v ≥ 0, it is often easier to prove a project lemma integrableOn_laplace_of_abs_le once and reuse it.
Lean
open MeasureTheory Set in
example {a : ℂ} (ha : a.re < 0) : IntegrableOn (fun x : ℝ ↦ Complex.exp (a * x)) (Ioi 0) :=
integrableOn_exp_mul_complex_Ioi ha 0
open MeasureTheory Set in
example {a : ℂ} (ha : a.re < 0) : ∫ x : ℝ in Ioi 0, Complex.exp (a * x) = -1 / a := by
simpa using integral_exp_mul_complex_Ioi ha 0Examples
- complexMGF, integrableExpSet, iteratedDeriv_complexMGF in Landau's lemma —
grh/src/Lib/Analytic/Landau.lean - Mellin transforms of theta series —
grh/src/Lib/Analytic/DirichletTheta.lean - exponential integrals on Ioi —
grh/src/Lib/Analytic/PrimeNumberTheorem/Tauberian.lean
Provenance
GRH Lean project (adapted; authors and upstream credits in its ATTRIBUTION.md and NOTICE) · grh/src/Lib/Analytic/Landau.lean · licence Apache-2.0
Used this? Cite it in your submission: cites: [{ "type": "book", "id": "mellin-laplace-and-mgf-api-in-mathlib" }] (CLI: --cite book:mellin-laplace-and-mgf-api-in-mathlib).