← All papers
First page of A complete formalization of Fermat's Last Theorem for regular primes in Lean

A complete formalization of Fermat's Last Theorem for regular primes in Lean

Alex Best, Christopher Birkbeck, Riccardo Brasca, Eric Rodriguez Boidi, Ruben van De Velde, Andrew Yang

cs.FL Oct 2, 2024 · v1
Formalizes a complete proof of Fermat's Last Theorem for regular primes in Lean 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, the main obstruction to Fermat's Last Theorem for regular primes. Instead of using the modern approach via class field theory, we prove it by using Hilbert's Theorems 90-94 in a way that is more amenable to formalization.

Fermat's Last Theorem for regular primes is a major number-theoretic result whose formalization in a proof assistant had not been completed, particularly due to the difficulty of Kummer's lemma.

The authors formalize the complete proof of the regular case of Fermat's Last Theorem in Lean 4. Rather than using the modern approach via class field theory, they prove Kummer's lemma using Hilbert's Theorems 90-94, which is more amenable to formalization in a proof assistant.

The formalization is complete and includes a full proof of Kummer's lemma, the main obstruction to Fermat's Last Theorem for regular primes, verified by Lean 4's kernel.