132 main theorems from four AI-found lattice papers come machine-checked in Lean 4, with the code to rerun the check, the release says
In short
- On 30 November 2026 Anthropic published four mathematics papers on lattice problems, the hard problems behind much post-quantum cryptography, together with a formalization of their results in the proof assistant Lean 4. The repository README says the results "were discovered by an internal research Claude model" and that the formalization "was written by AI models".
- The README lists 132 main statements, 190 intermediate statements and 63 theorems about the model of computation, all checked by a tool called Comparator.
- The main theorems assume no conjecture and no published theorem: the cited results the proofs rely on are formalized too, with their proofs, the README says.
- Anyone can rerun the check. A full build takes "a little over an hour on 12 cores" with 12 GB of memory and 21 GB of disk.
132 main statements of the four papers; 190 intermediate theorems, remarks and detailed forms; 63 theorems about the machine model; 3 axioms behind every compared theorem
Why the checking is the story
The four papers run to 283, 114, 95 and 49 pages, by the page counts of the PDFs in the folder; that is 541 pages in all (our sum). Proofs of that length are slow for human referees to check, and an error can hide in any line. Once the statements are written down correctly in Lean, the computer checks every step, and a reader no longer has to trust the authors, human or AI, on the logic.
The README is also plain about what that does not settle: "That the statements say what the papers say is for the reader to judge; AI readers have compared them with the text."
What the papers claim
The papers are on lattice problems such as finding short vectors (SVP) and learning with errors (LWE). The README's counts per paper:
Paper 1 carries the headline result. Its abstract says it gives quasi-polynomial-time quantum algorithms for several lattice problems, among them, for module lattices of polylogarithmic rank over power-of-two cyclotomic rings, solving random instances of search Module-LWE with short secret and error, for suitable moduli of polynomial size. Module lattices underlie ML-KEM and ML-DSA, the post-quantum encryption and signature standards (our note). The same abstract states the limit: "The algorithms are galactic: the bounds on their running times are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA." The departures file adds that the Lean statements on schemes like ML-KEM and ML-DSA use thresholds of n ≥ 2^29 or 2^30, which the paper leaves unnamed.
How the check works
The repository follows a challenge-and-solution layout. In plain terms (our wording):
- Challenge. One file states each theorem, with sorry, Lean's placeholder for "proof missing", where the proof would go. The README says only Challenge/ contains sorry.
- Solution. A matching file for each challenge file "imports the proofs and adds nothing".
- Comparator. The judge. It "verifies that Solution/ proves exactly the statements of Challenge/, from these three axioms, and replays the proofs in Lean's kernel and in the independent kernel nanoda", the README says. Its three configurations take about 60, 40 and 5 minutes and up to 14 GB of memory.
The three axioms are propext, Classical.choice and Quot.sound. These are Lean's standard foundational assumptions, roughly: equivalent statements are equal, the axiom of choice, and a rule for quotients (our gloss). A check that allows only these rules out a proof that quietly assumes the result it needs.
Running two kernels matters because the kernel is the small core program that has the final say on every proof step. Two kernels written separately are unlikely to share the same bug (our explanation).
Comparator comes from the Lean developers' own organisation; its README says it has since been merged into Lean core (v4.35.0) as lake comparator.
What a reader still has to trust
The README lists it: the statements and the definitions they use, the challenge files, the configuration files and the checkers, plus Mathlib, Lean's shared mathematics library. For the claim that explicit programs follow the printed algorithms, which lake build checks rather than Comparator, the statements in proof/ must be trusted too. If a definition were subtly wrong, the proofs could be valid and still not prove what the papers say.
One definition does a lot of work. Algorithms in the papers are programs for a "quantum word RAM", a model computer that the README says is defined in about 1,000 lines, with time counted as its steps. The 63 machine theorems tie this model to the standard complexity classes P, BPP, PSPACE and BQP, so that "polynomial time" on it means what it usually means.
The departures file lists where the Lean statements differ from the papers:
- Time. Steps of the machine are counted, so some bounds differ from the printed ones by logarithmic factors. Paper 1 counts bit operations and gates instead.
- Algorithms. A program "executes a printed algorithm" when it records the printed values and makes the printed calls and random choices in order; "the work between these events is not fixed".
- Cited subroutines. Where a paper cites a task without giving an algorithm, the programs use "a method of ours".
- Not formalized. Remark 25.20 of paper 1 (open questions), Remark 6.4 of paper 4 (a heuristic), proof outlines and comparisons with the literature. Remark 7.17 of paper 4 is conditional on an open question, as in the paper.
Terms in plain English
- Lean 4: a programming language and proof assistant. A proof written in it is checked step by step by the computer. (Our wording.)
- Machine-checked: every inference has been verified by software. It guarantees the proof is correct for the statement as written, not that the statement matches the paper.
- Lattice problem: finding short or close points in a regular grid of points in many dimensions; hard instances underpin post-quantum cryptography. (Our wording.)
- Galactic algorithm: fast in the limit, far too slow for any real input size.
Where things stand
The README calls the folder a "Research artifact. Not maintained and not accepting contributions." The root README says lattices/ is not yet submitted to the Palomar registry, unlike the repository's other projects, and that its continuous-integration check runs only when started by hand. We did not run the build or the checker; the claim that every proof passes is the release's own, and the sources we read do not mention any peer review of the papers.
Sources
- Four papers on lattices: a Lean 4 formalization (README), Anthropic on GitHub, 30 November 2026
- formal-math/lattices (repository folder), Anthropic on GitHub
- Where the Lean statements differ from the papers, Anthropic on GitHub
- Galactic quasi-polynomial quantum algorithms for integral and module lattices (paper 1, PDF), Anthropic, November 2026
- formal-math (root README), Anthropic on GitHub
- Comparator, leanprover on GitHub
Sources
- README: Four papers on lattices: a Lean 4 formalization
- formal-math/lattices (repository folder)
- Where the Lean statements differ from the papers
- Galactic quasi-polynomial quantum algorithms for integral and module lattices
- formal-math (root README)
- Comparator
More from Number Ninjas
- Bound on solving degree-n polynomials drops to about n − √n
- Computer proof extends Conway's thrackle conjecture to 16 vertices
- Audit of OpenAI's Nagata conjecture proof finds it sound, code messy
- A machine-checked proof of the Riemann Hypothesis, written with an AI model, passes the Lean community's checks; no human-readable proof yet
- IISc's Mahesh Kakde Wins the 2026 Ramanujan Prize for Work on Iwasawa Theory and the Brumer-Stark Conjecture