A regularised integral evaluating to
ProvedEulerMascheroni.loglog_integral_asympThe Euler–Mascheroni constant as the regularised value of a Mellin integral.
For the integral
converges, and it diverges as . The divergence is exactly logarithmic, and after subtracting it the limit is the Euler–Mascheroni constant :
Substituting turns into a Frullani-type integral and exhibits the singularity explicitly; the constant left behind is , the classical integral representation of as the derivative of the Gamma function at , .
The identity is the analytic engine behind the constant in Mertens' second theorem. Writing against and comparing with the integral above is what converts the Dirichlet-series pole into the statement , and it is where the inside the Meissel–Mertens constant comes from.
Formalization note. The limit is taken in the filter nhdsWithin 1 (Set.Ioi 1), i.e. as
from strictly above, and Real.eulerMascheroniConstant is Mathlib's .
import Mathlib
namespace EulerMascheroni
theorem loglog_integral_asymp :
Filter.Tendsto
(fun s : ℝ => (s - 1) * (∫ t in Set.Ioi (2:ℝ), Real.log (Real.log t) * t ^ (-s))
+ Real.log (s - 1))
(nhdsWithin 1 (Set.Ioi 1)) (nhds (-Real.eulerMascheroniConstant)) := by sorry
end EulerMascheroni