Loading prices…
STKR NewsSTKR News0 of 3 free this month
AI

AI Just Solved a 350-Year-Old Math Problem By Writing the Longest Proof Ever

Anthropic's Claude just turned Fermat’s Last Theorem into 13 million lines of machine-verifiable code, moving us from human intuition toward a future of automated truth.

Originally on Decrypt
AB

Adrian Boysel

Contributor

Sep 5, 2026

4 min read

Photo illustration / STKR News

We have spent centuries trusting the brains of a few elite mathematicians to tell us what is true about the universe. For 350 years, Fermat’s Last Theorem was the white whale of that world. It was a simple-looking equation that teased the smartest people on earth until Andrew Wiles finally cracked it in the 90s. But even then, the proof was hundreds of pages of dense, human logic that only a handful of people could actually follow.

Now, Anthropic says their AI, Claude, has essentially rewritten that proof into a format that doesn't require human trust at all. Over the course of 11 days, the model generated what is being called the longest proof in history: 13 million lines of code written in Lean, a formal verification language. This isn't just a chatbot summarizing a textbook; it is a machine building a logical structure so detailed that another computer can verify its correctness line by line.

The Death of the 'Trust Me' Era

In the building world, we talk a lot about the 'black box' problem of AI. We give it a prompt, it gives us an answer, and we hope it didn't hallucinate. This Fermat development is the polar opposite of that. By using a formal language like Lean, the AI isn't just guessing the next word. It is building a chain of logic where every single link must be mathematically perfect for the program to run.

For founders and developers, the takeaway isn't about the math itself. Most of us aren't solving number theory in our day jobs. The takeaway is the shift from probabilistic output to verifiable output. We are moving toward a world where AI doesn't just suggest code; it proves the code works before you ever hit deploy.

Why 13 Million Lines Matter

To put 13 million lines into perspective, that is roughly a quarter of the entire codebase for the Windows research kernel. It is a massive amount of data. A human being could never write this, and they certainly couldn't audit it without spending several lifetimes on the task. This is where the skeptics usually chime in: if a human can't read it, how do we know it's right?

That is the beauty of formal verification. You don't need to trust Claude. You only need to trust the Lean compiler. The compiler acts as a rigid gatekeeper. If there is a single logical flaw in those 13 million lines, the proof fails. This turns a high-level conceptual argument into a binary reality. It either works, or it doesn't.

The Founder's Perspective: Building on Solid Ground

If you are building in crypto or AI right now, you know the cost of 'almost right' is zero. In smart contracts, 'almost right' gets your liquidity drained. In AI infrastructure, 'almost right' leads to cascading failures in production. We have been limited by the scale of what human reviewers can catch.

This experiment by Anthropic suggests a future where we can automate the 'truth' part of development. Imagine an AI agent that doesn't just write your bridge protocol but provides a machine-checked proof that the protocol is mathematically impossible to exploit. That is the level of certainty this technology promises. It removes the human bottleneck of auditing and verification.

The Hard Truth About AI Reasoning

I’m usually the first one to roll my eyes at 'AGI' hype. Most of what we see is just better autocomplete. But solving Fermat in Lean is different because it requires a specific kind of persistence. Claude had to iterate for 11 days. It had to fail, correct itself, and navigate a logical maze that has stumped humans for generations.

This isn't a sign that AI is 'smarter' than us in a creative sense. It is a sign that AI is becoming much better at the grunt work of logic. It is a tool for extreme precision at an extreme scale. For a builder, that is much more useful than a chatbot that can write mediocre poetry.

The Long Game for Formal Systems

The transition from human-readable proofs to machine-verifiable code is a one-way street. Once we start verifying complex systems this way, there is no going back to the old method of 'looks good to me' peer review. We are entering an era of automated rigor.

As these models get faster and the integration with formal languages like Lean gets tighter, the barrier to entry for high-assurance software is going to drop. You won't need a PhD in formal methods to ensure your system is bug-free; you'll need an AI that knows how to speak the language of logic.

The Takeaway

Don't get distracted by the 350-year-old math problem. The headline is the 13 million lines of verified code. We are watching the birth of a new standard for certainty. If an AI can verify one of the most complex mathematical truths in history, it can eventually verify your codebase, your smart contracts, and your infrastructure. The 'move fast and break things' era is being replaced by the 'move fast and prove things' era. Build accordingly.


Read the original at Decrypt →

The Brief

Stay Updated on Cutting-Edge Tech

A six-minute morning dispatch on the markets and the technology shaping them.

Free. No spam. Unsubscribe anytime.

Write for STKR

Become a Contributor

Earn $STKR for published stories on markets, protocols, and culture.

  • Earn $STKR for every published piece
  • Editorial support from the STKR desk
  • Byline visibility across the network
  • First look at the upcoming creator program
Apply to Write

Keep reading

All stories

Comments

24 reader responses