TechPastWeek logo

Google DeepMind's Gemini Agents Claim a Proof of a 42-Year-Old Number Theory Prediction

DeepMind posted preprints claiming a proof of the 1984 Cohen–Lenstra prediction for 5-torsion, produced by Gemini 4 agents under mathematician Carlo Pagano.

The glass entrance of Google's office at 6 Pancras Square in London, which houses Google DeepMind.
On this page

Key takeaways

  • Google DeepMind posted two preprints dated 3 December 2026 claiming that the average size of the 5-torsion subgroup in class groups of imaginary quadratic fields is 2, as Cohen and Lenstra predicted in 1984.
  • The 191-page lead paper and a 70-page companion on the second moment of 3-torsion were produced by the Cogentic agent harness on an internal Gemini 4, steered by mathematician Carlo Pagano.
  • DeepMind says the main theorems were formalised in Lean 4 without custom axioms, but the Lean code had not been published when the preprints appeared.
  • Neither paper has been peer reviewed. Outside mathematicians have not yet replayed the formal proofs, so the results are claims rather than settled theorems.
  • The work targets the prime-5 case of the Cohen–Lenstra heuristics, not the full conjecture. The prime-3 case has been classical since Davenport and Heilbronn.

Google DeepMind posted two preprints on GitHub dated 3 December claiming a proof of a prediction that Henri Cohen and Hendrik Lenstra made in 1984: that the average size of the 5-torsion subgroup in the class groups of imaginary quadratic fields is exactly 2. The lead paper runs to 191 pages. A 70-page companion claims a related bound on the second moment of 3-torsion.

Related reading: Anthropic's Claude Duet Works in the Background, and Asks Before It Acts · AI Shopping Agents Moved $20 Million Over Black Friday, a Fraction of Stripe's Volume.

The papers are not peer reviewed, and the Lean 4 formalisation that DeepMind says verifies the main theorems was not in the public repository when the preprints appeared. That makes the result a claim, not a settled theorem, however strong the underlying work turns out to be. The distinction is the story as much as the mathematics is.

DeepMind published the papers in the cohen_lenstra directory of its superhuman repository. The README names Carlo Pagano, who is affiliated with Google DeepMind and Concordia University, as the author and credits the Cogentic agent harness, an internal version of Gemini 4 and Pagano's steering. MLQ and explainx reported the release the same day.

What the two papers claim

The lead paper claims that the average size of the 5-torsion subgroup in class groups of imaginary quadratic fields equals 2. That is the value the Cohen–Lenstra heuristics predict. The result is stated for the prime 5, not for every odd prime.

The companion paper claims that the second moment of the 3-torsion in class groups of quadratic fields is bounded. By Scholz's reflection theorem, the same bound carries over to real quadratic fields. Combined with the Davenport–Heilbronn theorem, the paper says, that implies 3 divides the class number of a positive proportion of both real and imaginary quadratic fields.

Those two claims are related but separate. The 5-torsion paper is the headline result. The 3-torsion paper is a supporting advance in the same area, and it uses classical machinery rather than starting from scratch. Together they show a coordinated push on class-group statistics rather than a one-off calculation.

The maths, without the jargon

An imaginary quadratic field is a number system built by adjoining the square root of a negative integer to the rational numbers. The class group of such a field measures how badly unique factorisation fails inside it. In the familiar integers, every number has a unique prime factorisation. In these larger rings, that is often false, and the class group records the failure.

The p-torsion subgroup consists of the elements of the class group whose order divides p. If the group has no such elements beyond the identity, the subgroup is trivial. If it has more, the field has extra p-power structure. The Cohen–Lenstra heuristics predict how large those pieces should be on average when fields are ordered by size.

For each odd prime p, the prediction is that the average size of the p-torsion subgroup is 2. Most fields contribute only the identity, a minority contribute larger p-power chunks, and the mean settles at 2. The prime-3 case is classical, going back to Davenport and Heilbronn. The prime-5 case is the next one, and it has resisted the methods that worked for 3. Later primes are harder still.

This is pure mathematics. It does not break a cipher, change a security protocol or affect a product. The class-group statistics sit inside number theory, with connections to Diophantine problems and the history of cryptography, but the result itself is not a cryptographic breakthrough.

How Gemini and Cogentic did the work

The README says both the initial breakthrough and the later advances were produced by Cogentic, a multi-agent harness described in arXiv:2609.40324, steered by Pagano. Aletheia 2, a sequel to DeepMind's earlier mathematics agent, helped Pagano find a flexible generalisation of Cogentic's concepts to guide the work. All runs used an internal version of Gemini 4 as part of DeepMind's Discovery Strike effort, led by Thang Luong.

Cogentic is not a single prompt that produced a proof. The README credits a team across Google Research and Google DeepMind for building the harness: Yang Cai, Vineet Gupta, Yanchen Jiang, Christopher Liaw, Aranyak Mehta, Grigoris Velegkas and Di Wang. Cai is also affiliated with Yale University. The picture is a human mathematician setting direction, a group of agents proposing and testing steps, and a formal proof assistant checking the parts that can be checked.

That workflow is the part with implications beyond this paper. A model that can suggest a lemma is useful. A model that can suggest a lemma, have it checked, and then build on the checked result is a different kind of tool. DeepMind says the Lean 4 formalisations of the main theorems were obtained entirely by the Cogentic harness and verified with no custom axioms beyond Lean 4's standard axioms. The code was promised “shortly” but was not in the repository at the time of writing.

The verification gap

Mathematics has two verification standards, and this release meets neither in public yet. The first is peer review, where referees read the argument and check that the proof establishes the theorem. The second is formal verification, where a proof assistant compiles a machine-checkable script. The preprints have not had the first. The Lean code for the second has not been published.

That leaves outside mathematicians with 261 pages of prose, a README's assurance that the formal check succeeded, and no way to replay it. MLQ put the point directly: until the Lean files are published and independently compiled, and until the prose proofs are audited, the results remain unverified claims. explainx reached the same conclusion.

This is not a reason to dismiss the work. It is a reason to describe it accurately. DeepMind has published formal-methods work before, and the code may appear and compile cleanly. The papers may pass review. But the gap between “the lab says a machine checked it” and “an outsider has checked the machine's check” is where most of the scientific uncertainty currently sits.

The length of the papers compounds the problem. A 191-page proof is not something a reader can verify in an afternoon, and the companion paper adds another 70 pages. Formal verification is supposed to make that burden manageable, which is why the missing Lean code matters more here than it would for a short paper.

Why the prime-5 case matters

If the proof holds, it is a genuine result in arithmetic statistics. The Cohen–Lenstra heuristics have been tested computationally for decades and have shaped how number theorists think about class groups. Proving one of the predicted averages for a new prime is the kind of result that would normally be a significant journal paper.

It would also be a data point for AI-assisted mathematics. DeepMind's earlier agents have produced results on the Erdős problems and other combinatorial questions, and the company has been building a case that models can contribute to research when they are paired with search, human judgement and formal checking. A verified prime-5 proof would strengthen that case. An unverified preprint that later needs correction would weaken it.

The result would not settle the general conjecture. It would establish one case, for one prime, in one family of fields. The heuristics make predictions for every odd prime, and the methods that work for 5 may not generalise. Coverage that describes the papers as a proof of the Cohen–Lenstra conjecture is wrong on that point, and the README itself is careful to describe two specific theorems.

Caveats

The papers are preprints, not peer-reviewed publications. The Lean 4 source files were not public when the preprints appeared, so no outside party could compile them. The claim that the main theorems were formalised without custom axioms is DeepMind's statement, not an independent finding. The 5-torsion result covers imaginary quadratic fields and the prime 5; it does not prove the full Cohen–Lenstra heuristics. The 3-torsion companion is a separate result with its own scope. The author affiliations and team credits come from the README and secondary reporting, not from a journal disclosure. No independent mathematician has published a detailed assessment of the proofs.

What to watch

The first checkpoint is the Lean code. If it appears, compiles against a clean Mathlib pin and matches the theorem statements in the papers, the result becomes much harder to dispute. The second is arXiv or journal submission, which would bring referee scrutiny and a public version history. The third is expert commentary: a detailed review from a number theorist outside the project would be more informative than any press release.

Until then, the right description is the one the evidence supports. DeepMind has posted a claimed proof of a long-standing prediction, produced with AI agents and a human mathematician, and it says a formal check exists. The check is not public. The proof is not reviewed. The result is interesting, and it is not yet a theorem anyone outside DeepMind can confirm.

Cover image: “Google-Deep Mind headquarters in London, 6 Pancras Square.jpg” by Gciriani, via Wikimedia Commons, CC BY-SA 4.0.

Tags

deepmindgemini-4mathematicsnumber-theorylean-4

Frequently asked questions

What did Google DeepMind claim?
DeepMind posted two preprints claiming that the average size of the 5-torsion subgroup in class groups of imaginary quadratic fields is 2, matching a prediction from the Cohen–Lenstra heuristics. A companion paper claims a bound on the second moment of 3-torsion.
Did Gemini prove the Cohen–Lenstra conjecture?
No. The papers claim one case of the heuristics, for 5-torsion in imaginary quadratic fields, not the full conjecture. Gemini 4 agents produced the drafts under Carlo Pagano's direction, and the results have not been peer reviewed or independently formalised.
What are the Cohen–Lenstra heuristics?
They are a set of predictions from 1984 about how class groups of quadratic number fields are distributed. Class groups measure how far unique factorisation fails in those number systems. The heuristics predict, among other things, that the average size of the p-torsion subgroup is 2 for each odd prime p.
Why does the 5-torsion case matter?
The prime-3 case has long been known through the Davenport–Heilbronn theorem. Prime 5 is the next odd prime, and proving the predicted average there has resisted existing methods. A verified proof would be a genuine result in arithmetic statistics, though it would not settle the general conjecture.
Share

Found this useful? Share it with your team.

TPW Editorial

TPW Editorial

Editorial Team

TechPastWeek's editorial team reports and edits every story we publish. We research each piece against primary and credible secondary sources, and a human editor reviews and signs off before it goes live.

Keep reading