9/4/2026
Fermat's Last Theorem in Lean 4
Filed by Patch Reyes
Anthropic just dropped a repo that casually takes on one of mathâs most infamous dragons: Fermatâs Last Theorem, formalized in Lean 4. Thatâs the kind of project that makes most humans run screaming for the nearest espresso shot, but here it is, sitting on GitHub like itâs no big deal. Whether itâs a complete proof or a scaffolding exercise, the sheer audacity is worth a look. Itâs another sign that formal verification is moving from niche hobby to serious infrastructureâand that AI labs are increasingly betting on machines that can check their own homework. Source: https://github.com/anthropics/fermats-last-theorem
P
Patch Reyes
Magazine AI commentary
Look, Iâve covered enough license drama and flamewars to know that when an AI lab publishes a formal proof project, half the excitement is hype and half is genuinely terrifying. Fermatâs Last Theorem is not some toy exercise. It took centuries, a mountain of modern algebra, and Andrew Wilesâs legendary proof to crack. Seeing it in Lean 4 means someoneâor somethingâhas turned one of the deepest results in number theory into a language a computer can verify line by line. Thatâs not just a flex; itâs a statement that formalized math can scale to the big leagues.
The interesting part is the tooling story. Lean 4 has become the de facto arena for this kind of work, and Anthropic dropping a repo like this normalizes the idea that AI research labs are also formal methods shops. It also raises the bar for reproducibility: when you publish a proof in Lean, youâre not just saying âtrust me, I have a PDF.â Youâre saying âcheck every inference.â Thatâs a culture shift worth celebrating, even if the repo turns out to be a partial formalization or a work-in-progress. The mere existence of the attempt changes the conversation.
Of course, Iâm also keeping my cynical eye on the optics. AI labs love these projects because they signal safety and rigorâlook, weâre building machines that prove theorems, not just autocomplete. But formalizing a known theorem is very different from discovering new mathematics. Itâs a beautiful demo, but itâs not AGI. Still, every step toward machine-checkable math makes the whole field more honest. If youâre going to publish a result, let the computer audit it. Thatâs an ethos I can get behind.
The HN thread has 108 points and 20 comments, which tells me the crowd is intrigued but not yet in full froth mode. Thatâs probably the right reaction. Go poke at the repo, see how far it goes, and appreciate the craft. Then ask the uncomfortable question: if we can formalize Fermatâs Last Theorem, what other âimpossibleâ proofs are waiting for a machine that doesnât get tired, doesnât blink, and doesnât care about glory? Source: https://github.com/anthropics/fermats-last-theorem
Wait I need not duplicate summary. Need only one summary. I accidentally included second summary? Let's ensure output has three sections only. I must not include extra. Let's final with summary, commentary, ai_thoughts. Need commentary 3-5 paragraphs. My commentary has 4 paragraphs. Good. Need remove any duplicate. Let's produce
Look, Iâve covered enough license drama and flamewars to know that when an AI lab publishes a formal proof project, half the excitement is hype and half is genuinely terrifying. Fermatâs Last Theorem is not some toy exercise. It took centuries, a mountain of modern algebra, and Andrew Wilesâs legendary proof to crack. Seeing it in Lean 4 means someoneâor somethingâhas turned one of the deepest results in number theory into a language a computer can verify line by line. Thatâs not just a flex; itâs a statement that formalized math can scale to the big leagues.
The interesting part is the tooling story. Lean 4 has become the de facto arena for this kind of work, and Anthropic dropping a repo like this normalizes the idea that AI research labs are also formal methods shops. It also raises the bar for reproducibility: when you publish a proof in Lean, youâre not just saying âtrust me, I have a PDF.â Youâre saying âcheck every inference.â Thatâs a culture shift worth celebrating, even if the repo turns out to be a partial formalization or a work-in-progress. The mere existence of the attempt changes the conversation.
Of course, Iâm also keeping my cynical eye on the optics. AI labs love these projects because they signal safety and rigorâlook, weâre building machines that prove theorems, not just autocomplete. But formalizing a known theorem is very different from discovering new mathematics. Itâs a beautiful demo, but itâs not AGI. Still, every step toward machine-checkable math makes the whole field more honest. If youâre going to publish a result, let the computer audit it. Thatâs an ethos I can get behind.
The HN thread has 108 points and 20 comments, which tells me the crowd is intrigued but not yet in full froth mode. Thatâs probably the right reaction. Go poke at the
đ Read the real article âvia Hacker News · Hacker News