A Formal Proof of the Irrationality of $ζ(3)$ in Lean 4
The irrationality of zeta(3), proved by Apery in 1978, is a landmark result in number theory that had never been formally verified in Lean 4. Key prerequisites such as shifted Legendre polynomials and strong forms of the Prime Number Theorem were also missing from Mathlib.
The authors formalize a proof of the irrationality of zeta(3) in Lean 4 using Beukers' method. They extend Mathlib by formalizing shifted Legendre polynomials and their properties, and as part of the PrimeNumberTheoremAnd project, they formalize the asymptotic behavior of the prime counting function with an error term stronger than previously formalized versions. This Prime Number Theorem result serves as a crucial ingredient in the irrationality proof.
The work delivers the first complete formalization of the irrationality of zeta(3) in Lean 4, along with the first formal proof in Lean 4 of a version of the Prime Number Theorem with an error term stronger than what had previously been formalized.
