# Anthropic publishes machine-checked proof of Fermat's Last Theorem in Lean 4

> Hacker News story 49568697 · language: en · submitted 2026-09-04
> Web version: https://zeli.app/story/49568697
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 143 · by [aaraujo002](<https://news.ycombinator.com/user?id=aaraujo002>) · 💬 32
[original](<https://github.com/anthropics/fermats-last-theorem>) · [HN discussion](<https://news.ycombinator.com/item?id=49568697>)

## Summary

Anthropic has released a complete, machine-checked proof of Fermat's Last Theorem in the Lean 4 theorem prover, built on Mathlib. The proof follows the classic Frey–Serre–Ribet–Wiles–Taylor–Wiles argument and is verified by Lean's kernel, the independent Rust-based kernel nanoda, and the comparator tool. The repository includes 60,475 modules, 29,511 theorems, and a browsable HTML version of the proof. It's a research artifact, not maintained, and not accepting contributions.

## Key quote

> Together, these checks establish that the statement above follows from the three axioms, given trust in the Lean kernel (or nanoda) and the checking tools.

## HN discussion (32 comments)

### [black_knight](<https://news.ycombinator.com/item?id=49570525>)

> I wonder if any piece of the lean code is in a shape which means it could be contributed to one of the existing Lean libraries.
>
> My experience is that it takes a lot of human input to make Fable write code nice enough for a formalisation library others can work on. But since this is certainly a lot of prerequisites formalised as well, it would be nice if not all of the effort was wasted on one capstone proof!
>
> (Repost of a earlier comment, but I feel it fits better here)

### [superposeur](<https://news.ycombinator.com/item?id=49578554>)

> Much of the value of proof is in the development of math definitions and intermediate theorems needed to get you there, Grothendiek-style. This ability seems still to be beyond AI (at least, I haven’t heard of any fundamentally new and useful definitions such as “scheme” or “modular form”  emerging from the latest blizzard of AI proofs). BUT, I wonder if AI could develop this skill too through a process of efficiently refactoring a big Lean proof into Lean pieces, then interpreting the pieces back into new, human-grokable definitions with evocative names?

### [mcapodici](<https://news.ycombinator.com/item?id=49574811>)

> What a time to be alive stuff.
>
> https://github.com/anthropics/fermats-last-theorem/blob/main...

### [chvid](<https://news.ycombinator.com/item?id=49574420>)

> I think an interesting problem, perhaps even more interesting problem, would be the shortest / most concise / easiest to understand (formally verifiably) proof.

### [rawling](<https://news.ycombinator.com/item?id=49569475>)

> Front-page discussion: https://news.ycombinator.com/item?id=49568506

---

## Cite

- Page: https://zeli.app/story/49568697
- Date: 2026-09-04
- Source: github.com (https://github.com/anthropics/fermats-last-theorem)
- Hacker News: https://news.ycombinator.com/item?id=49568697

## Other languages

- zh: https://zeli.app/zh/story/49568697 · markdown: https://zeli.app/zh/story/49568697.md
- ja: https://zeli.app/ja/story/49568697 · markdown: https://zeli.app/ja/story/49568697.md
- ko: https://zeli.app/ko/story/49568697 · markdown: https://zeli.app/ko/story/49568697.md
- de: https://zeli.app/de/story/49568697 · markdown: https://zeli.app/de/story/49568697.md
- es: https://zeli.app/es/story/49568697 · markdown: https://zeli.app/es/story/49568697.md
- ru: https://zeli.app/ru/story/49568697 · markdown: https://zeli.app/ru/story/49568697.md
