AI Agents Close 17 Riemann Consequences in Lean Within 72 Hours of Proof
ChatAndBuild's agents converted a 125-year backlog of conditional theorems in three days

Three days after Levent Alpöge's machine-verified proof of the Riemann Hypothesis was certified by independent mathematicians, an AI agent team announced it had used that proof to automatically formalize 17 derived mathematical results in Lean — including six problems that had remained conditionally open in the literature for decades. The achievement, announced November 25 by Christel Buchanan, founder of ChatAndBuild, demonstrates a qualitatively new capability: AI-driven automation of the downstream "harvest" that follows a core mathematical breakthrough, compressing what would traditionally take years of doctoral work into roughly 72 hours.
The results include the Lindelöf hypothesis, a 1908 bound on the growth of the Riemann zeta function along the critical line; Erdős Problem 985, a prime primitive root conjecture whose conditional resolution dates to a 2016 paper by McGown and collaborators; Euler's idoneal number problem, which asks how many quadratic forms represent distinct integers uniquely and whose conditional resolution traces to 1973 Weinberger work; and Grosswald's conjecture, alongside Abelian ERH and Cramer-type prime gap bounds. All six were long known to follow logically from the Riemann Hypothesis or the Generalized Riemann Hypothesis — once those were proved, these results would become unconditional. The agents' contribution was converting that known logical dependency into certified Lean 4 code.
Read more: Anthropic's Claude Produces First Complete Computer-Checked Proof of Fermat's Last Theorem
What "Open" Actually Meant — and Why Thomas Bloom's Criticism Matters
The announcement generated immediate pushback from the mathematical community, led by Thomas Bloom, a number theorist at the University of Manchester who maintains the erdosproblems.com catalog. Bloom's reaction on X was pointed: "This is ridiculous. All of these appear to be results which were resolved many years ago conditional on the Generalised Riemann Hypothesis. Of course once (G)RH is proved, all of these conditional results immediately become unconditional. But the work was done long ago."
Community notes on Buchanan's post, which garnered over 905,000 views, echoed Bloom's framing: the agents formalized the known implications in Lean, making them unconditional after the RH proof — but the underlying mathematical content was established by human mathematicians working over more than a century.
ChatAndBuild's own technical documentation acknowledges this directly. A dev.to post from the team states: "We don't claim these are 17 independently discovered new theorems." The genuine contribution is formalization speed and unconditional certification, not mathematical discovery.
That distinction matters for two reasons. First, it correctly characterizes what AI agents can and cannot yet do in mathematics. Second, it clarifies why the achievement is nonetheless significant: the Lean kernel does not care about the history of a result — only whether the proof compiles correctly from first principles. Converting 125 years of "if-RH-then-X" conditional literature into unconditional machine-verified certificates in 72 hours is a meaningful engineering and automation accomplishment, even if the underlying mathematics had been established by humans long ago.
How the Agent Architecture Actually Worked
The system rested on two components: LivingBrain, ChatAndBuild's persistent AI memory platform, and OpenHuman, the agent execution environment that hosted what the team calls the RSI Ralph loop.
LivingBrain had spent three months before the RH proof loading the relevant mathematical landscape. The system ingested published papers, proof blueprints, failure records from prior attempts, and a "star map" of 2,196 open problems, using what the team describes as a four-dimensional memory scoring mechanism: relevance weighting, recency decay, archival tier assignment, and an association graph linking related results. When Alpöge's proof was certified by Lean FRO and Mathlib on November 21, a single query was issued against this memory: "Which of these problems just got unlocked?" The system identified 17 candidates and explicitly excluded Goldbach's conjecture and the twin prime conjecture on the grounds that neither directly benefits logically from RH — a discrimination that required genuine mathematical reasoning about dependency structure.
Each of the 17 results was then assigned to a separate agent running on its own git branch inside the OpenHuman environment. The RSI Ralph loop operates as follows: the agent modifies proof code, attempts to compile it with Lean 4, and treats a successful compilation with no sorryAx entry in the #print axioms output as the reward signal. If the modified proof compiles cleanly, the change is kept; otherwise, it is reverted. This iterated loop continues until the full theorem chain passes the Lean kernel's verification. The lead session performs a final rebuild and explicitly runs the axiom audit before merging.
The team's repo structure separates conditional and unconditional verification. Each sub-repository contains a proof that "RH implies X" or "GRH implies X" in isolation. A separate Unconditional/ module then imports from the community riemann-hypothesis repository — Alpöge's certified proof — and stitches the conditional implication to the base theorem to produce the final unconditional result. The dual structure makes the dependency chain explicit and auditable: the conditional proof stands on its own, and the unconditional status derives cleanly from it.
The team reported that Erdős Problem 985 produced its first passing Lean kernel compilation within approximately one hour from the first line of code — a figure that is company-claimed and has not been independently verified, but is consistent with the relatively direct nature of the conditional implication involved. More complex results involving explicit numerical bounds required additional time for lemma verification. The agents used Lean's native_decide tactic for finite-range checks — a mechanism that can verify small numerical claims by direct computation rather than by proof derivation, which is both faster and more reliable than constructing explicit proof trees for bounded assertions. This tactic choice is itself a form of mathematical strategy selection, since native_decide only applies where the claim is decidable in finite time, and misapplying it to an undecidable claim would produce a compiler error rather than a wrong proof.
GRH Dependency and the Scope of What Was Proved
A technical distinction present in the GitHub repository but absent from the announcement post deserves explicit attention. Some of the 17 results depend not on the Riemann Hypothesis proper but on the Generalized Riemann Hypothesis, which extends the zero-distribution claim from the Riemann zeta function to the broader family of Dirichlet L-functions. The GRH is a strictly stronger statement than RH, and the sub-repos for erdos-985 and weinberger-grh explicitly disclose this dependency in their README files.
Alpöge's original proof covers both RH and GRH for Dirichlet L-functions, so the dependency chain is complete. But the distinction matters for readers tracking what exactly was proved and what the agents' unconditional certificates actually rest on. A result that falls under GRH requires the full force of Alpöge's proof; a result that requires only RH would have fallen to a weaker theorem. The 17 results span both categories, and the agents' architecture correctly tracked which dependency applied to which sub-repo.
The five RH-equivalent formulations in the repository — including Robin's inequality, the Li criterion, and related analytic reformulations — are in a different category again. These are not consequences of RH but alternative statements logically equivalent to it; formalizing them in Lean given the proof of RH is primarily a translation exercise, confirming the coherence of the proof framework rather than extending mathematical content.
How This Differs From Prior AI Math Benchmarks
The November 25 announcement arrived at a moment when multiple AI systems have been claiming progress in formal mathematics, and the distinctions matter for assessing what has actually changed.
Google DeepMind's AlphaProof Nexus, released in May 2026, resolved nine of 353 open Erdős problems autonomously, with each result representing independent discovery from scratch rather than conditional harvesting. The system operated without a known base theorem to leverage, instead building proofs through reinforcement learning on novel ground. AlphaProof's nine results were genuine new additions to the mathematical literature.
An OpenAI batch from October 2026 — 722 manuscripts organized into 372 result families, released on GitHub on October 6 — faced substantial criticism for including already-solved problems in its count and for retracting three manuscripts within 24 hours of publication after a sign error was identified. Several additional results were downgraded following community review. The episode illustrated the distinction between claimed results and independently verified ones — and established the importance of a formal verification anchor rather than a language model's self-assessment.
ChatAndBuild's approach differs from both. It neither claims independent discovery (Bloom's criticism acknowledged as legitimate) nor relies on language model confidence as the verification standard. The Lean kernel is the judge. What the agents did was apply a known, recently certified base theorem to an inventory of known dependent results at machine speed, using formalization tooling to produce certified certificates. The scope is narrower than AlphaProof's claim; the verification standard is higher than OpenAI's.
Separately, Anthropic researcher Luke Sernau published a condensed Lean proof of the same five theorems on the same day — November 25 — in two editions: a readable version of approximately 300,000 lines and a compact version of approximately 76,000 lines, down from Alpöge's original library of approximately 17 million lines. An independent check at the University of Waterloo confirmed the compact edition passed on November 26. Sernau's compression work and the ChatAndBuild agents' downstream formalization effort proceeded on parallel tracks without apparent coordination, illustrating how a single certification event can trigger multiple independent downstream formalization efforts simultaneously.
The more interesting competitive comparison may be with the broader academic literature-closing cycle. When a major theorem falls, dependent results typically trickle into the published record over years, as individual researchers work through implications, formalize proofs, and submit to journals. The November 25 announcement suggests that cycle can now be mechanized — not because AI discovered the mathematics, but because AI can run the formalization pipeline faster than any human team.
Read more: OpenAI Claims 100-Plus Open Math Problems Solved: The Verification Is Still Underway
The Infrastructure Question: What Proof-Dependent AI Systems Require
The RSI Ralph loop is computationally lightweight by the standards of modern AI training, but Lean proof compilation at scale is not trivial. Each iteration of the loop requires a full Lean kernel compilation pass over a potentially large proof tree. For results with complex lemma chains — particularly those involving explicit numerical bounds verified through Lean's native_decide tactic for finite-range checks — compilation times grow substantially.
The LivingBrain pre-loading requirement is worth noting separately. Three months of continuous memory ingestion, covering thousands of papers and proof attempt logs, represents a substantial infrastructure investment before the first useful output. The system worked in the ChatAndBuild case because the foundational preparation preceded the triggering event. A team attempting to replicate this result without prior memory loading would face a different timeline.
The agents also operated within a constraint that proves crucial for mathematical reliability: the Statement.lean file for each sub-repo was fixed before the RSI loop began, preventing an agent from "proving" a weakened version of the target claim. This constraint is straightforward to implement but essential — without it, an optimization loop could trivially succeed by changing what it was trying to prove.
What Changes If This Scales
The structural implication Bloom's criticism gestures toward, without fully articulating, is that the academic incentive to work on conditional theorems has changed. For 167 years, mathematicians working on RH-dependent results were doing something useful: they were building a library of consequences that would immediately enter the mathematical canon once RH fell. That library had real value precisely because formalizing those consequences was expected to take years.
The November 25 announcement suggests that the formalization work — the mechanical step of converting a known conditional implication into a certified unconditional proof — can now be automated at a pace that outruns human academic timelines. The original mathematical insight (proving that RH implies X, often itself a nontrivial result) remains a human contribution. But the downstream formalization step, at least for results with well-understood proof strategies, appears to be automatable.
The more immediate consequence is for formal verification projects. Lean's Mathlib, the community mathematics library, now has a path to incorporating all 17 results as certified theorems linked to Alpöge's RH proof. The question of how the community handles machine-generated bulk additions to Mathlib — quality review, attribution, proof maintenance — is an open process question the November 25 announcement has forced into focus.
What the Clay Mathematics Institute's two-year community scrutiny period for the RH prize does not resolve is how to evaluate the downstream. Alpöge's proof must survive independent human examination before the Millennium Prize is awarded. The 17 ChatAndBuild results rest on that proof: if the proof stands, they stand with it; if it is overturned or requires modification, the unconditional certificates become conditional again. The Lean kernel is a reliable judge of logical consistency, but it cannot evaluate the axioms it was given. The certification chain remains only as strong as its foundation.



