From the Dirichlet Integral to Lobachevsky's Formula: A Formalization in Lean 4
The Dirichlet integral of sinc is only conditionally convergent, so it cannot be stated as a Lebesgue integral. The classical Feynman-style proof also hides a uniform tail estimate that is hard to formalize. The goal is to formalize the Dirichlet integral and its classical applications in Lean 4.
The Dirichlet integral is stated as a limit of integrals over bounded intervals. The authors avoid the Feynman exponential-factor argument and instead evaluate the absolutely integrable sinc^2 integral, using differentiation under the integral sign and dominated convergence. An identity between truncated integrals of sinc and sinc^2 then transfers the value to the Dirichlet integral. Lobachevsky's formula is proved for cosine modes first, then extended by uniform approximation via density of cosine polynomials, obtained from Mathlib's Fourier analysis on AddCircle π.
Formalized results include the Dirichlet integral and convergence of the rescaled Dirichlet cutoff to the Heaviside function, with continuity and boundedness of the cutoff. Several quadratic and bilinear trigonometric integral identities are also formalized, along with Lobachevsky's integral formula for continuous π-periodic functions with reflection symmetry.
