---
title: '17 million lines of AI slop just cracked a 167-year-old math problem...'
source: 'https://youtube.com/watch?v=Jatwf_XOncE'
video_id: 'Jatwf_XOncE'
date: 2026-11-25
duration_sec: 329
channel: 'Fireship'
---

# 17 million lines of AI slop just cracked a 167-year-old math problem...

> Source: [17 million lines of AI slop just cracked a 167-year-old math problem...](https://youtube.com/watch?v=Jatwf_XOncE)

## Summary

The video discusses the recent claim by mathematician Levent Alpagay that he and Claude, an AI, proved the Riemann Hypothesis using 17 million lines of Lean code. It explores the nature of the proof, the community's verification efforts, and the implications for mathematics and AI.

### Key Points

- **AI-Assisted Proof Claim** [00:00] — Levent Alpagay, after a 41-day conversation with Claude, claimed to have produced a proof of the Riemann Hypothesis, a famous unsolved math problem.
- **Riemann Hypothesis Explained** [00:52] — The Riemann Hypothesis, proposed in 1859, predicts the distribution of primes and is based on the assumption that all special points lie on a straight line. It has been verified for trillions of points but remains unproven.
- **Historical Context** [01:32] — For 167 years, no one has proven the hypothesis. Terence Tao predicted it would take until 2050 with human-AI collaboration, but Alpagay's claim came much sooner.
- **Alpagay's Announcement** [01:45] — Alpagay posted a four-page PDF admitting Claude did most of the work and that he hasn't mastered the math. The proof links to 17 million lines of Lean code.
- **Community Verification** [02:13] — The Lean community compiled the code overnight and found it legit since it compiled, though issues were later found, including a function that always returns true.
- **Second Proof Claim** [02:37] — Alessandro Masullo also claimed a proof with 940 pages, but it was rushed and quickly found to have problems.
- **Proof Issues** [03:07] — The AnyGeometry function in Alpagay's proof was found to always return true, but further investigation showed it didn't affect the proof's validity. Alpagay admitted the code is 'garbage' but the proof stands.
- **Anthropic's Paper** [03:47] — Anthropic posted a paper claiming to prove the VP versus VNP conjecture, with Claude as the only author, and no human has checked it yet.
- **Implications** [04:16] — The proof doesn't break anything since encryption already assumes the Riemann Hypothesis is true, but it changes the timeline for such proofs.

### Conclusion

The video concludes that while the proof doesn't have immediate practical implications, it signals a significant shift in how mathematical proofs might be generated and verified, with AI playing a central role.

## Transcript

Last Friday, while you were asking Claude to convince your spouse that you shouldn't get each other Christmas gifts this year, Yay! Yay! another, much smarter man was wrapping up a conversation with Claude of his own. In that conversation, which had been going for 41 days,
the two of them produced what they believed was a proof of the Riemann Hypothesis, one of the most famous unsolved problems in all of math. His name is Levent Alpagay, and if that sounds familiar, it's because he's the same guy from our video back in August who disproved the Jacobian Conjecture,
and the same guy from our video in September who got into a fight with OpenAI over Navier-Stokes. In today's video, we'll find out what the Riemann hypothesis actually is, look at why its proof contains a function that does nothing but return true,
and determine what all this means for the rest of us. It is November 26th, 2026, and we're watching the Code Report. You may remember what a prime number is from Leak Code number 204. They're the numbers that are only divisible by one and themselves.
Back in 1859, a German mathematician named Bernhard Riemann essentially solved the same Likow problem when he found a formula that predicts how many primes there are below any number you give it. The catch is that the formula depends on a set of special points, and it's only accurate
if every one of those points sits on the same straight line. Thankfully, every point he checked did, so he guessed they all do, admitted he couldn't really prove it, and then moved on with his life. That guess is now known as the Riemann hypothesis and if it right it means primes aren random at all and they follow a pattern that never breaks Since then computers have verified trillions of points on that line mathematicians have published hundreds of results that all assume it true and the Clay Institute put up a million bounty for its proof
But for 167 years, nobody made much progress, and just last month, Terence Tao predicted it would take a combination of humans and AI until around 2050 to get there. But what Tao didn't know is that Alperge is a sicko with a touch of AI psychosis.
He's been working on it since early October, and last Friday he announced the result in a four-page PDF on his personal website, where he admits that Claude did most of the heavy lifting and that he hasn't mastered the math the proof depends on.
There's even a footnote warning that his description of Claude's contributions is paraphrased from an AI summary and may not actually even make sense. As for the actual proof, the PDF just links to a download of 17 million lines of Lean, which you can think of as a programming language that won't compile unless your math is correct.
So after seeing the announcement, the lean community yelled upstairs that they'd be late for dinner and spent Friday night compiling it themselves on their own hardware, eventually coming to the conclusion that it was legit since it compiled. And while all that was going on, the president of the American Mathematical Society panic-posted a second proof of the exact same problem, but this one from a guy named Alessandro Masullo, who had spent the last 12 years writing 940 pages on it by hand.
His old advisor had been reviewing it for months and wanted at least another year with it but they rushed it out anyway and eight hours later people were already reporting problems they had found with it after feeding it into clogs And AlphaGate proof ran into some issues too once people started actually opening the files The biggest problem was that
there was a function called AnyGeometry that was supposed to check a geometric condition, but really it just returned true no matter what you gave it, and it was used 118 times. Jenny Nielsen, the mathematician who found the issue, then published a paper declaring the whole
proof invalid, but after some further investigation, some other lean dorks found that almost nothing actually depended on that function, and it was probably just leftover slop. Alpagay has since confirmed as much, saying that the lean is obviously full of garbage and that he was yellowing
a lot in there. He also had to clarify that a line in his announcement about the proof hitting 250,000 pages was a joke, which is a bit inconsiderate given his entire industry is on pins and needles right now. But the bigger issue is that nobody actually understands how the proof
works, including the guy who posted it. And there's no paper or human readable version, so if a mathematician wants to know why the Lehman hypothesis is true, their only option right now is to go and read 17 million lines of Lean that the author himself calls garbage. Or they can choose
to read another paper Anthropic posted on Monday, this time claiming to prove a 47-year-old conjecture called VP versus VNP, which you can think of as P versus NP's little cousin. Except with this one, there no sicko mathematician involved at all because Claude is listed as the only author It wrote both the paper and 73 lines of loom that go with it and by anthropics of admission no human mathematician has checked any of it yet So what does this mean for the rest of us The answer for now is not much Nothing breaks because the Riemann hypothesis turned out to be
true, and your encryption is fine because everyone already assumed the Riemann hypothesis was true. What it did change is the timeline, considering Terence Tau thought this was 24 years out, and it took a guy with AI psychosis just 41 days. And Alpagate can't even collect his million
yet because Cray requires a published paper followed by a two-year waiting period. Luckily, understanding the flop your own agent wrote doesn't have to take two years because you can use Codewrabbit, the sponsor of today's video. GitHub makes it pretty much impossible to review
the thousand-line PRs your coding agent loves to push. So Codewrabbit just created a new review surface called Codewrabbit Explained that helps you understand large diffs in just a few minutes. It starts by giving you an overview of what the PR is trying to accomplish and how risky it is,
Then it walks through the changes in ordered layers, like a senior engineer would, just without bullying you. It also maps out which files and services are affected, and flags anything it can't figure out from the diff so you know exactly what to ask the author.
Your comments and approvals still sync back to GitHub natively, so nothing about your workflow has to change. But your team will finally understand the code it's been blindly shipping for months. Try it out today and get a free 14-day trial of the advanced plan at the link below.
This has been the Code Report. Thanks for watching, and I will see you in the next one. you
