Global Crowdsourcing Effort Trims 2.4 Million Lines from Claude's Riemann Proof

Original title: 黎曼猜想证明两天砍掉240万行!全球接力压缩,马斯克在线围观
78AI Score

A Riemann Hypothesis formal proof co-produced by Anthropic mathematician Levent Alpöge and Claude, spanning 17.37 million lines of Lean 4 code, passed formal verification and triggered a global human-AI relay to compress it. Within two days the official GitHub repo received 359 pull requests, cutting over 2.4 million effective lines and deleting 25,000+ files; on the VerifyTask leaderboard, 39 core modules saw nearly 1,000 compression rounds and 300+ breakthroughs, with some modules compressed by over 99%. Gemini, DeepSeek and GPT models joined the relay, and Elon Musk publicly weighed in on how small the proof could get.

Full Report

Contents4 sections

DeepSeek, GPT, and Gemini all joined in

Kelesi, reporting from Aofei Temple

QuantumBit | WeChat Official Account QbitAI

In the year 6202, humans have started working for AI—and in a relay-race fashion, scrambling to outdo one another.

The 17.37 million-line formal proof of the Riemann Hypothesis produced by Claude triggered a global relay to compress it.

Not long after the formal verification passed, 359 pull requests had already flooded into the official GitHub repository, and the valid portion of this Lean 4 code was cut by more than 2.4 million lines, with over 25,000 files deleted.

On the other side, on the public VerifyTask leaderboard, the compression of 39 core modules ran for nearly a thousand rounds, scoring more than 300 breakthroughs, with some modules compressed by over 99%.

Even Musk came to take a look.

Early yesterday morning, he retweeted the compression progress curve from VerifyTask and left a comment below it.

"Indeed, the question now is how small the proof can be compressed."

In this "Great Compression," Claude fired the starting gun, humans raced to take up the baton, and it was passed on to other AIs as well.

Gemini 4 Neon, DeepSeek, and GPT-6.2... all joined this compression relay.

What a grand spectacle of human-machine-human-machine collaboration.

Human-machine relay, over two million lines cut in two days

Last weekend, Anthropic mathematician Levent Alpöge announced a formal proof of the Riemann Hypothesis completed in collaboration with Claude.

This proof contained 17.37 million lines of Lean 4 code, split across 175,187 files.

In less than a day, the open-source formal verification community Lean, together with Mathlib (an open-source mathematical formalization software library under the Lean ecosystem), issued a joint statement confirming that the proof had passed formal verification across four checkpoints.

The news quickly spread through the mathematics world and the AI community. Dozens of scholars ran verification on their computers overnight, and many called that day "the craziest day in the history of mathematics."

The problem is that the machine got the logic through, but humans simply cannot understand it.

What does 17.37 million lines of code mean? The entire Mathlib community's years of accumulated mathematical library totals only 2.5 million lines, and this proof is nearly 7 times the size of Mathlib.

Alpöge himself also tried having Claude convert the code into natural language, and the result exceeded 250,000 pages.

Although he later stated that the 250,000 pages was a joke he made and that it was not actually that many, it is still very difficult for humans to digest all the derivation steps.

So, in order to compress the 17.37 million lines down to a level that humans can also see clearly and review, developers around the world began slimming down this codebase.

The official mirror repository riemann-hypothesis maintained by the Lean community quickly shifted from verify-only to cleanup and organization. It has now accumulated more than 800 commits, and nearly 300 pending pull requests are still hanging in the repository.

Someone specifically built a real-time tracking website called rh-shrink. The numbers on it show that as of 9 a.m. this morning, after removing blank lines, comments, and reference declarations, the valid code had dropped from the initial 14.62 million lines to 12.11 million lines, a decrease of 16.5%.

Why could so much be deleted in just two days?

Another website, rh-kernel-backbone, checked and found that of the original 17.374 million lines, only 10.737 million lines were actually used by the main proof—just over 60%.

There were also 2.694 million lines that were dead code not used by the main proof at all, and about 241,000 theorems that were written redundantly.

The first thing everyone started cleaning up was this redundant code.

Over on the main GitHub repository, people were busy deleting dead code and upgrading the toolchain, while a third party simply turned compression into a public leaderboard competition.

The dashboard supports RSS subscriptions and also has a Chinese version.

This platform split 158,055 files—accounting for 92.23% of the entire proof—into 39 assumption-free core modules, letting participants submit shorter equivalent Lean 4 code module by module, with every submission required to pass online zero-sorry verification against Lean 4.34.1, 4.33.1, and the Comparator.

As of 8:30 this morning, the leaderboard had already recorded 955 verified runs and 301 valid breakthroughs. The total standardized token count of these core modules has been reduced by 50.48 million, for an overall compression rate of 8.4%.

The proof written by Claude, revised in turn by various AIs

Now that this has become a public leaderboard competition, developers naturally bring out whichever model they have most handy to give it a try.

On the VerifyTask leaderboard, the Anthropic family—which wrote the original proof—is not at the top.

The leaderboard tallies 1,047 submission records. Claude Opus 5.5, which wrote the original proof, paired with Claude Code, ranks only 7th, taking 8 core modules.

  • Ranked first is developer Andrew Pullin's multi-model system The Council paired with the pi toolchain; this combination took 28 core modules, with an average compression rate of 66.6%;
  • Ranked second is Gemini 4 Neon, which Google released on November 18, paired with Antigravity, taking 18 modules with all 103 submissions passing on the first try, for an average compression rate of 66.4%;
  • Third is Vladyslav Larin's Fortytwo Engine and DeepSeek Flash V4.1, covering 17 modules;
  • Fourth is OpenAI's GPT-6.2 Astra paired with Codex CLI, covering 14 modules.

Some developers even went ahead and assembled a mixed team of several large models.

Mikko Nyman and kissa wired four models—Claude Fable 5.2, GPT-6.2 Astra, Gemini 4 Neon, and Gemini 4 Carbon—together with three terminal tools—Claude Code, Codex, and Antigravity—onto a single pipeline.

With this mixed combination, Mikko Nyman compressed module No. 1 from 21 files down to 1 file, cutting tokens by 95.4%.

By rights, Claude, which wrote the original proof, should be most familiar with its own reasoning, but when it comes to the streamlining step, it is other models and mixed combinations that compress harder.

It's like how people often can't spot the flaws in their own writing; the same goes for large models writing code.

In the Singularity section of Reddit, some developers compared this kind of cross-model collaboration to fuzzing in software security.

The redundancy and reasoning blind spots produced by one model often require another model with a completely different training structure and reasoning path to poke holes in and reconstruct.

Three years ago AI refused to answer; now the whole internet works for AI

Compressing the code line by line is not just about saving tens of GB of memory.

Only by first trimming away the redundant lemmas that AI generated while taking detours can human mathematicians see clearly which ideas it actually used.

As the code gets thinner, tools to help humans read this proof have also come online one after another.

Someone organized the proof's 416 statements and 209 references into 16 scalable SVG diagrams, riemann-diagrams, and a roughly 164-page natural-language draft paper was also posted on the University of Waterloo's homepage.

The onlookers are not only mathematicians and programmers.

When retweeting the compression curve, Musk asked just one question: how small can it get? The day before, when talking about this breakthrough, he had even declared "welcome to the singularity."

Meta's Chief AI Officer Alexandr Wang, in a long post, took the opportunity to propose that models have already surpassed human intelligence, and that the remaining gap lies in domain knowledge, infrastructure, and experimentation.

Watching various models take turns slimming down the Riemann hypothesis proof, some people even dug up an old story from three years ago.

A netizen posted on X a video from an August 2025 interview with Fields Medalist Terence Tao.

In front of the camera, Tao recalled that when ChatGPT first came out in 2023, he, like all mathematicians, did the first thing: ask AI to solve the Riemann hypothesis.

At the time, ChatGPT directly refused the request, telling him only that it was a famous unsolved problem.

In just three years, AI has changed so much—so very much.

Reference links: [1]https://github.com/leanprover-community/riemann-hypothesis [2]https://x.com/elonmusk/status/2124630854395940955 [3]https://riemann.verifytask.cn [4]https://x.com/DariaIv27369195/status/2124712417825591402

One-click triple: "Like," "Share," "Little Heart"

Feel free to leave your thoughts in the comments!

— The End —

🔹****In 2026, more and more people are proving to us: "Humanity's trust in AI is still not enough."

The QuantumBit MEET2027 Intelligent Future Conference is here to lock in the next step of AI evolution for you.

Baidu's Wang Ying, MoleculeMind's Xu Jinbo, Kunlun Wanwei's Fang Han, Jiyuan Ludong's Wang Yunhe, Zidong Taichu's Wang Jinqiao, Ant Health's Gu Jinjie, Xianggan Technology's Jin Yirong, ModelBest's Yao Yuan, SenseTime's Xuan Shanming, and Kuwa's Liao Wenlong are all here 🔍Learn more

December 9, Beijing. We invite you to join us to see AI clearly, seize AI, and master AI. 👉Click to attend

🌟 Light up the star 🌟

Daily updates on the latest advances in technology

Open in WeChat