Alex Best ; Christopher Birkbeck ; Riccardo Brasca ; Eric Rodriguez Boidi ; Ruben van De Velde et al. - A complete formalization of Fermat's Last Theorem for regular primes in Lean

afm:14586 - Annals of Formalized Mathematics, July 15, 2025, Volume 1 - https://doi.org/10.46298/afm.14586
A complete formalization of Fermat's Last Theorem for regular primes in LeanArticle

Authors: Riccardo Brasca 1,2; Christopher Birkbeck ORCID3; Eric Rodriguez Boidi ORCID; Alex Best ORCID; Ruben van De Velde ; Andrew Yang 4

We formalize a complete proof of the regular case of Fermat's Last Theorem in the Lean4 theorem prover. Our formalization includes a proof of Kummer's lemma, that is the main obstruction to Fermat's Last Theorem for regular primes. Rather than following the modern proof of Kummer's lemma via class field theory, we prove it by using Hilbert's Theorems 90-94 in a way that is more amenable to formalization.


Volume: Volume 1
Published on: July 15, 2025
Accepted on: July 2, 2025
Submitted on: October 17, 2024
Keywords: Lean,Mathlib,Kummer's lemma,[MATH.MATH-NT]Mathematics [math]/Number Theory [math.NT],[INFO.INFO-LO]Computer Science [cs]/Logic in Computer Science [cs.LO],[INFO.INFO-FL]Computer Science [cs]/Formal Languages and Automata Theory [cs.FL]