精东传媒

Mathematics

Mathematicians plan computer proof of Fermat's last theorem

Fermat's last theorem puzzled mathematicians for centuries until it was finally proven in 1993. Now, researchers want to create a version of the proof that can be formally checked by a computer for any errors in logic

By Alex Wilkins

18 March 2024

Pierre de Fermat’s scribblings set mathematicians on a centuries-long quest

GRANGER Historical Picture Archive/Alamy

Mathematicians hope to develop a computerised proof of Fermat鈥檚 last theorem, an infamous statement about numbers that has beguiled them for centuries, in an ambitious, multi-year project that aims to demonstrate the potential of computer-assisted mathematical proofs.

Pierre de Fermat鈥檚 theorem, which he first proposed around 1640, states that there are no integers, or whole numbers, a, b, and c that satisfy the equation an + bn = cn for any integer n greater than 2. Fermat scribbled the claim in a book, famously writing: 鈥淚 have discovered a truly marvellous proof of this, which this margin is too narrow to contain.鈥

It wasn鈥檛 until 1993 that Andrew Wiles, then at Princeton University, set the mathematical world alight by announcing he had a proof. Spanning more than 100 pages, the proof contained such advanced mathematics that it took more than two years for his colleagues to verify it didn鈥檛 contain any errors.

Many mathematicians hope that this work of checking, and eventually writing, proofs can be sped up by translating them into a computer-readable language. This process of formalisation would let computers instantly spot logical mistakes and, potentially, use the theorems as building blocks for other proofs.

But formalising modern proofs can itself be tricky and time-consuming, as much of the modern maths they rely on is yet to be made machine-readable. For this reason, formalising Fermat鈥檚 last theorem has long been considered far out of reach. 鈥淚t was regarded as a tremendously ambitious proof just to prove it in the first place,鈥 says at the University of Cambridge.

Free newsletter

Sign up to The Daily

The latest on what鈥檚 new in science and why it matters each day.

New 精东传媒. Science news and long reads from expert journalists, covering developments in science, technology, health and the environment on the website and the magazine.

Now, at Imperial College London and his colleagues have announced plans to take on the challenge, attempting to formalise Fermat鈥檚 last theorem in a programming language called Lean.

鈥淭here’s no point in Fermat’s last theorem, it鈥檚 completely pointless. It doesn’t have any applications – either theoretical or practical – in the real world,鈥 says Buzzard. 鈥淏ut it’s also a really hard question that鈥檚 become infamous because, for centuries, people have generated loads of brilliant new ideas in an attempt to solve it.鈥

He hopes that by formalising many of these ideas, which now include routine mathematical tools in number theory such as modular forms and Galois representations, it will help other researchers whose work is currently too far beyond the scope of computer assistants.

鈥淚t’s the kind of project that could have quite far-reaching and unexpected benefits and consequences,鈥 says at the University of Nottingham, UK.

The proof itself will loosely follow Wiles鈥檚, with slight modifications. A publicly available blueprint will be available online once the project is live, in April, so that anyone from Lean鈥檚 fast-growing community can contribute to formalising sections of the proof.

鈥淭en years ago, this would have taken an infinite amount of time,鈥 says Buzzard. Even so, he will be concentrating on the project full-time from October, putting his teaching responsibilities on hold for five years in an effort to complete it.

鈥淚 think it’s unlikely he鈥檒l be able to formalise the entire proof in the next five years, that would be a staggering achievement,鈥 says Williams. 鈥淏ut because a lot of the tools that go into it are so ubiquitous now in number theory and arithmetic geometry, I’d expect any substantial progress towards it would be very useful in the future.鈥

Sign up to our weekly newsletter

Receive a weekly dose of discovery in your inbox. We'll also keep you up to date with New 精东传媒 events and special offers.

Sign up
Piano Exit Overlay Banner Mobile Piano Exit Overlay Banner Desktop