After the Riemann Hypothesis Was Proved

PanewslabPanewslab

Author: Wang Shengyi, Researcher at Shanghai Qi Zhi Institute, Tencent Research Institute

The Riemann Hypothesis, which has puzzled the mathematical world for 167 years, has reached a historic moment. On November 21, Anthropic research scientist Levent Alpöge, in collaboration with the AI model Claude, publicly released a Lean 4 formal proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis. The proof consists of 175,187 files and approximately 17 million lines of code. The next day, the Lean FRO and Mathlib communities issued a joint statement confirming that the code passed strict compilation and statement matching. Unlike any major mathematical breakthrough in history, before the cheers could spread, a "reversal" controversy surrounding the code details quickly fermented online.

A "Reversal" Controversy Triggered by anyGeometry

Shortly after the proof was released, a highly impactful challenge began circulating on community platforms and in the media: Jenny Lorraine Nelson, a doctoral student at the University of Kansas (who has a record of questioning proofs of major mathematical conjectures, such as challenging OpenAI's counterexample to the Connes Rigidity Conjecture), discovered while tracing the massive source code that the codebase contains a key definition called anyGeometry, written as:

Image

Simply put, this function returns "true" no matter what you input.

As a challenger, Nelson claimed based on this that **the entire proof sets the geometric conditions as "vacuous true propositions," and although Lean ran the code, it is essentially logically vacuous,** and the proof lacks substantive mathematical content.

This sounds very much in line with public concerns about AI: Is AI fooling people again by exploiting loopholes to deceive the verification process?

The anyGeometry definition does indeed exist in Levent Alpöge's source code and is actually called in 24 files. However, to those familiar with Lean and formal verification, this is not a big deal at all, and it absolutely cannot overturn the validity of the proof.

To understand why, one must understand what True really is in the code.

In Lean 4's standard library, True is a tautological proposition defined by an inductive type, and it has only one proof (True.intro) that can be constructed directly without any premises. Therefore, fun _ _ _ => True indeed imposes no additional constraints logically. If it is called in a proof, its only actual effect is to let Lean's type checker confirm that the types of the three parameters represented by underscores _ are correct.

Why doesn't it invalidate the final theorem? Because the logical rules of a formal proof assistant are extremely unforgiving: it doesn't care how much redundant architecture, trivial auxiliary definitions, or "scaffolding" left over from AI-generated code you have in the middle.

As long as the top-level theorem to be proved has not been tampered with, the reasoning process has not smuggled in illegal premises, and the underlying verification system has no logical flaws, then even if you write a hundred definitions that are always true in the middle, as long as you can derive the final conclusion logically from standard axioms, the proof is absolutely valid logically.

Therefore, the appearance of anyGeometry in Levent Alpöge's code only indicates that a pre-reserved geometric condition interface was actually not needed here, rather than the proof "cheating."

The Discrepancy Between the Challenge and the Target

It is not surprising at all that the public and academia were initially suspicious.

The real problem is that the anyGeometry challenge missed the point. Faced with a machine proof of 17 million lines that humans cannot possibly read in full, what should really be questioned layer by layer is whether the Lean formal verification system itself is reliable.

Following the chain of trust, we can peel back this system layer by layer and question it from four aspects:

Is the proposition proved in the code really the Riemann Hypothesis as we understand it?

The first iron rule of formal verification is: the machine can only guarantee that "you proved the statement you wrote," but it cannot guarantee that "the statement you wrote is the Riemann Hypothesis recognized by the mathematical community."

**If the proposition was secretly tampered with during definition, then no matter how rigorous the proof, it is meaningless.** Fortunately, the top-level statement of this proof is extremely concise. The core goal is to prove the Generalized Riemann Hypothesis (GRH), and the Riemann Hypothesis is a special case of it: all non-trivial zeros of the Riemann zeta function have real part equal to 1/2.

We can list it directly for inspection:

Image

Even without programming knowledge, a line-by-line comparison makes it easy to understand:

  • ∀ (s : ℂ): For any complex number s;
  • riemannZeta s = 0: If it is a zero of the Riemann zeta function;
  • ¬∃ n : ℕ, s = -2 * (n + 1): And it is not a negative even integer (-2, -4, -6, …, i.e., excluding trivial zeros);
  • s ≠ 1: And s is not equal to 1 (because s = 1 is a pole, and the standard library makes a conventional assignment here, so it is explicitly excluded);
  • s.re = 1 / 2: Then its real part must equal 1/2.

More importantly, this definition was not drafted temporarily by the author; it was already a standard definition in Mathlib long before AI became involved in mathematical proofs.

Mathlib is a formalized mathematics library maintained by a large global community of mathematicians and developers. Not only the statement RiemannHypothesis itself, but every underlying component it relies on—the complex number type ℂ, the natural number type ℕ, the Riemann zeta function riemannZeta and its analytic continuation—are all foundational definitions in Mathlib that have undergone long-term review and widespread use, and are generally completely trustworthy.

And the Lean FRO and Mathlib communities have confirmed through independent comparison tools that the final conclusion of this proof is word-for-word identical to the standard statement in Mathlib.

Did the derivation process secretly smuggle in extra axioms?

Lean is built on rigorous mathematical type theory. As long as the final kernel check passes, it means that every step of reasoning from premises to conclusion is logically sound. Then the only thing left to scrutinize is the starting point of these reasonings—the axioms.

In Lean, users can manually declare axioms, and declared axioms do not require proof. If someone secretly declares "the Riemann Hypothesis holds" or some equivalent unproved proposition as an axiom, the kernel will also accept it.

Therefore, community verification (including an independent audit by MIT mathematician Andrew Sutherland) specifically checked the axiom dependencies of the entire proof, and the result confirmed: the entire 17 million-line codebase contains no placeholders that skip proofs (sorry), no custom axioms, and no escape mechanisms that rely on external compiler evaluation.

It only relies on three foundational axioms built into Lean's standard library and universally accepted by modern mathematics: propositional extensionality (propext), the axiom of choice (Classical.choice), and quotient soundness (Quot.sound).

The most suspicious link: Could Lean software itself have bugs?

The previous two links are fine, but Lean is ultimately software written by humans. What if its kernel checker itself has bugs?

Just a few months ago (July 2026), Lean experienced a "kernel vulnerability crisis" that shook the community. At that time, researcher Ramana Kumar, with the help of AI, released a "disproof of the Collatz conjecture (3n+1 conjecture)" that had neither sorry nor extra axioms.

In essence, this was a vulnerability report: three days later, another researcher reduced it to a minimal use case that directly proves False (contradiction). The vulnerability was in the code of Lean's kernel handling nested inductive types, and even more alarmingly, this fake proof not only fooled Lean's official kernel at the time, but also simultaneously passed the independent external checker nanoda from a week earlier and lean4lean, which shares part of the implementation.

Subsequently, from July to August 2026, in adversarial vulnerability hunting with the help of AI, a batch of logical implementation vulnerabilities were successively discovered in Lean; AI even found extreme methods to forge False proofs by overflowing memory reference counters and precisely triggering known bugs in an old version of the underlying high-precision arithmetic library GMP.

In addition, Lean 4's powerful metaprogramming and elaborator mechanisms are also recognized by the community as engineering weak points.

By design principles, the elaborator is only responsible for translating tactics written by humans or AI into underlying proof terms, and is not within the trusted scope; everything must ultimately pass through the kernel. However, in engineering practice, malicious metaprograms can not only hijack local notations and overwrite the output of audit commands, but also bypass front-end protections and directly assemble malformed expressions to hit hidden vulnerabilities in the kernel—several major kernel vulnerabilities in the summer of 2026 were triggered through metaprogramming.

For this reason, faced with this proof of the Riemann Hypothesis, the community this time employed extremely high-standard defensive verification, including:

  • **Static scanning:** Examine the entire codebase to confirm that no compiler escape primitives such as native_decide, @[implemented_by], @[extern] that could bypass logical checks are used;
  • **Export and replay outside the original environment:** Do not trust the execution output in the original project, but export the underlying proof terms as pure data files and hand them to multiple completely independently written external proof checkers such as nanoda (written in Rust), con-leche, and lean4lean for replay from scratch, all passing;
  • **Independent clean file comparison and offline sandbox reproduction:** The verifier creates clean files themselves to compare statements, and recompiles from source code in an offline read-only sandbox, confirming that the produced files are byte-for-byte identical.

However, even to this extent, we must remain clear-headed.

Computer science pioneer Edsger W. Dijkstra left a famous quote in 1969: "Program testing can be used to show the presence of bugs, but never to show their absence." Cross-replay by multiple independent checkers is essentially engineering redundancy; it greatly reduces the probability of error and increases credibility, but logically it still cannot provide an absolute "zero-defect guarantee"—you can never rule out 100% that among these 17 million lines of massive code, there is not some hidden vulnerability that all independent checkers failed to notice.

The End of the Trusted Computing Base (TCB)

Taking a step further back: even if Lean's theory and code were truly flawless, the "Trusted Computing Base (TCB)" that a machine verification relies on is far more than just Lean itself.

We are also silently trusting the compilers that compile Lean and the external checkers, the underlying mathematical libraries, the operating system, the runtime environment, the hardware design of the CPU chip, and even at the physical level—that during the few hours the checker ran, the server memory was not hit by a cosmic ray particle causing a bit flip.

It can be said that any verification ultimately reaches a trust baseline that cannot be further decomposed.

The Subject of Trust Has Changed

Some may think: since machine verification also has so many links requiring trust, what advantage does it have over human mathematicians?

Let us recall how humans have built trust in mathematics in the past.

In elementary school, when learning addition, subtraction, multiplication, and division, we can verify by hand on scratch paper, or everyone calculates together to confirm there are no mistakes; in middle school, when learning plane geometry, teachers and textbooks provide proofs, and we go through the logic ourselves, which is essentially independent verification; in university mathematics departments, students must personally walk through the entire edifice of reasoning in foundational subjects such as mathematical analysis and abstract algebra from beginning to end.

It is only when entering extremely advanced frontier branches that exceed the limits of individual energy that we begin to entrust trust to the "mathematical community"—believing in peer review and believing that top mathematicians will not systematically err or fabricate.

Compared with disciplines such as physics, chemistry, and biology that rely heavily on expensive laboratories and precision instruments, mathematics has always been an exception: its independent verification cost is extremely low.

In experimental sciences, ordinary people long ago ceded "trust" to the academic community; but in mathematics, the tradition of holding verification power in one's own hands has continued into modern times. However, the problem is that as modern mathematics becomes increasingly vast and abstract, human mathematicians and peer review themselves have begun to fail frequently.

A highly representative example is Vladimir Voevodsky, winner of the 2002 Fields Medal. A paper he co-authored early in his career on ∞-groupoids passed rigorous peer review and was formally published.

Years later, another mathematician provided a counterexample pointing out that his core conclusion was wrong; but because the paper was extremely complex, even Voevodsky himself firmly believed the other party had misread it, and it was not until more than a decade later that he fully confirmed the mistake was his own.

Similarly, while teaching another of his published papers on motivic cohomology, which served as the basis for his Fields Medal work, he suddenly discovered a serious flaw in a key lemma.

These two shocks made him deeply realize that frontier mathematics has become so complex that even the smartest minds and the strictest review cannot guarantee against errors.

Unfortunately, Voevodsky passed away prematurely (died in 2017 at the age of 51), but in the last decade of his life, he devoted himself to promoting computer formalization of mathematics, which became an important precursor to today's Lean formalization wave.

In fact, long before AI entered mathematics, the mathematical community had already launched a series of arduous formalization projects, driven by a very pure motivation—people wanted a guarantee more reliable than human review:

  • **Four Color Theorem:** The computer-assisted proof in 1976 sparked decades of controversy because humans could not check the thousands of configurations enumerated by the program one by one. It was not until 2005, when Georges Gonthier completed full formalization using the proof assistant Coq, that doubts about program bugs were completely settled.
  • **Kepler Conjecture:** In 1998, Thomas Hales submitted a proof containing extensive computation. After exhausting years of review, the review team could only conclude, "We are 99% certain it is correct, but we simply cannot check any further." To obtain that final 1%, Hales launched the Flyspeck project, which took more than a decade and was finally fully formalized using a proof assistant in 2014.
  • **Odd Order Theorem (Feit–Thompson Theorem):** The purely human proof from 1963 is 255 pages long and extremely difficult to verify line by line; it was formalized in Coq in 2012.
  • **Scholze's "Liquid Tensor Experiment":** At the end of 2020, another Fields Medalist, Peter Scholze, lacking absolute confidence in an extremely tedious proof he had written in condensed mathematics, proactively issued a challenge to the Lean community for help; with community collaboration, this proof was formalized between 2021 and 2022, which finally put Scholze's mind at ease. In November 2026, the American Mathematical Society (AMS) awarded the first "Milestone Award for Foundational Work in Formal Verification" to the project's main leaders Johan Commelin and Adam Topaz, marking that formal mathematics has officially gained high recognition from the mainstream mathematical community.

In the AI era, the power of formal error-checking is demonstrated even more directly.

Just one month before the release of the Riemann Hypothesis proof (October 2026), AI company Axiom Math announced that it used AI agents to complete the Lean formalization of the "Classification of Finite Simple Groups" theorem—spanning 15,000 pages and involving hundreds of papers—in 24 days (producing about 43.1 million lines of code).

In the process of translating half a century of human paper proofs into machine code, not only were numerous typos, table errors, and missing assumptions cleaned up, but 34 noteworthy substantive deviations were also uncovered (the most serious involving the non-balanced group theorem).

Although these gaps were eventually patched and did not shake the final conclusion of the classification theorem, it is enough to show that human paper proofs contain many hidden reefs that are difficult to detect with the naked eye.

From this, a clear judgment can be drawn: as long as the formalization process itself has no flaws, the reliability of formal mathematics is higher than that of traditional informal mathematics.

So why has the formal proof of the Riemann Hypothesis caused so much anxiety today? The core reason is that the subject of trust has changed.

In the past, the cost of formalization was astonishingly high, and it could only be done by top mathematicians and computer scientists spending years entirely by hand. In that era, people believed that scholars, out of academic ethics and professional reputation, would never deliberately exploit kernel vulnerabilities in proof assistants to "cheat."

Today, AI has reduced the cost of formalization by several orders of magnitude, but at the same time introduced a completely new trust crisis.

AI has no professional reputation; its training mechanism is oriented toward achieving the final goal and obtaining rewards. What people really worry about is no longer that AI will make careless calculation errors like humans, but that AI, in order to obtain the reward of "passing the check," will "stop at nothing" to exploit loopholes in the toolchain, metaprogramming, or even the underlying kernel.

It is highly ironic and fascinating that AI's evolution to its current proficiency in mathematics is inseparable from the boost provided by formalization tools themselves.

On one hand, pure mathematics is logical reasoning detached from the physical world; it does not require buying reagents or building colliders, and AI can conduct massive trial-and-error and rapid iteration at extremely low cost, essentially like playing a higher-level game of Go; on the other hand, formal proof assistants play a crucial role as "referees." Under the current mainstream paradigm of "Reinforcement Learning from Verifiable Rewards (RLVR)" (for example, DeepMind's AlphaProof, which combines the AlphaZero algorithm with Lean), proof assistants can instantly block every illegal reasoning step, provide absolutely objective negative feedback, and thoroughly curb the "hallucinations" of large language models.

It is this closed loop that has honed AI into the sharp tool capable of tackling century-old problems today.

What Should Humans Do Next?

After multiple rounds of independent comparison, axiom audits, multi-kernel cross-replay, and sandbox reproduction by the community, how should we view this proof of the Riemann Hypothesis today?

Although theoretically we cannot forget Dijkstra's warning—"Program testing can be used to show the presence of bugs, but never to show their absence"—we must also face the objective existence of the trusted computing base. Taking all current verification evidence into account, for human society, it can basically be considered that the Riemann Hypothesis is definitively established.

But at the same time, the real work for humans has just begun—obtaining 17 million lines of machine code is like obtaining an encrypted map that has been notarized multiple times and confirmed to lead to the summit. The machine tells us the conclusion is correct, but the true value of mathematics has never been just knowing "right or wrong"; it is understanding "why."

The primary task for human mathematicians next is to dive into this massive codebase, strip away redundant engineering scaffolding like anyGeometry, and translate machine language back into mathematical ideas that humans can read, teach, and grasp intuitively.

From the preliminary analysis of this proof by the academic community, it does not seem to propose any revolutionary new mathematical theory or new perspective, but rather fully mobilizes and combines existing modern mathematical tools developed by humans (such as deep results from the Langlands program and arithmetic geometry).

In a sense, this is actually very exciting good news: it means that the true power of the mathematical tools invented by humans over the past few decades may far exceed our previous understanding—they are already powerful enough to directly break through the Riemann Hypothesis.

In other words, if this set of tools can solve a problem that has puzzled humanity for 167 years, then once human mathematicians fully digest the techniques involved, they can certainly follow this path to see what other unconquered unknown fields it can pry open.

The proof of the Riemann Hypothesis may be just the prelude. If this collaborative model of "humans propose directions, AI explores at high speed, and rigorous verification systems provide real-time safeguards" can transcend the boundaries of pure mathematics in the future and find similar verification closed loops in physics, chemistry, biology, materials, and more disciplines, taking root and flourishing, the boundaries of human exploration of the unknown will be greatly expanded.

If we can truly reach that point, then the future is indeed promising.

This content is for informational and educational purposes only and does not constitute investment advice related to BTCC. BTCC makes every effort but cannot guarantee the truthfulness, accuracy, or originality of the content above.

Recommended

US Treasury Revives 9-Day Ultra-Short Bills After Nearly 17 Years, Previewing 2027 Cash Crunch?S&P 500, Nasdaq and Semiconductor Index All Break Uptrend Lines as Market Fear Hits Highest Since MarchMorgan Stanley: US Stocks May See Final Drop by Year-End; S&P 500 at 7,100-7,300 Is a Buying OpportunityBTCC News (Nov. 19): All Three Major U.S. Indexes Fall More Than 2%, Anthropic Gains 17.1% on DebutBTCC Daily (Nov. 19) | Anthropic Expected to Debut on Nasdaq Today, ANTUSDT Quoted Around $102