Anthropic's AI-Found Lattice Proofs Come With a Lean 4 Build. Here's What the Checkmark Actually Proves.
A proof checker can tell you an argument holds. It can't tell you the argument is about the thing in the headline.
AI models now produce research claims faster than experts can read them. A week ago, the only way to judge a big AI math result was to trust whoever announced it, or wait months for referees.
That changed on November 30. Anthropic published four papers on lattice problems, the math under the post-quantum encryption standards your browser is starting to use, and put them next to something you can run: a Lean 4 formalization of their results. The README says the results "were discovered by an internal research Claude model" and that "the formalization was written by AI models."
So the question is no longer "do you trust the lab?" It is narrower and more useful: do the formal statements say what the papers say? That one question is the whole lesson of this release, and it applies to every agent that hands you a green checkmark.
What actually shipped
The release sits in the lattices/ folder of Anthropic's formal-math repository, under Apache-2.0. It holds the four PDFs, the Lean files, and a short list of instructions for checking them.
The headline result is in paper 1, "Galactic quasi-polynomial quantum algorithms for integral and module lattices". In plain words: a quantum algorithm that solves some of the lattice puzzles behind ML-KEM and ML-DSA (the NIST post-quantum standards) faster than anyone knew, in the limit, as the puzzles grow enormous.
Before anyone panics, the outside verdict came fast. The Cryptography Incident Review Group, a panel of cryptographers, several of whom Anthropic briefed on November 16, wrote that against the actual standards the attack "requires vastly more computation than the best previously known attacks". Cloudflare's cryptographers said the same on December 1: a straightforward version would need at least billions of logical qubits (error-corrected quantum bits, each built from many physical ones). Your encrypted traffic is fine.
That's the news. The more interesting part is how the claim was packaged.
Lean in one minute
Lean is a proof assistant. Think of it as a compiler for math. You write a statement ("this program solves this problem in this much time") and then a proof, and Lean refuses to accept the proof unless every step follows from the rules. No hand-waving survives. If a step is missing, the build fails.
Two Lean terms come up in this release:
sorryis Lean's placeholder for "proof goes here." A file withsorrycompiles, but it hasn't proven anything at that spot. The README says only theChallenge/folder contains it, on purpose (more on that below).- Axioms are the starting assumptions every proof rests on. Lean's standard set is three:
propext,Classical.choiceandQuot.sound. If a proof secretly leaned on an extra assumption, it would show up in the list. The repo includes a script that prints that list for every theorem it compares.
The numbers are large. The main theorems are 132 statements, with another 190 intermediate results, remarks and detailed forms. And here is the claim that makes this unusual: the README says the main theorems "assume no conjecture and no published theorem," because the results the papers cite were formalized too, with their proofs.
The split that matters: statements versus proofs
Here is the idea worth carrying away from this whole story.
A formal proof has two halves. The statement is the claim, written in Lean. The proof is the argument that the claim holds. Lean checks the second half against the first, mechanically and completely. It never checks the first half against the PDF, or against what a cryptographer means by "breaks ML-KEM."
The repo is built around that split. Challenge/ holds the statements with sorry where proofs would go. Solution/ holds the proofs. A tool called Comparator verifies that Solution/ proves exactly the statements in Challenge/, from only those three axioms, and replays the proofs in two separate checkers: Lean's own kernel and an independent one called nanoda. Two independent checkers agreeing is a good sign the proofs are sound.
Then the README tells you, in its own list, what you still have to trust: the statements and the definitions they use (CryptoDefs/, PaperDefs/, PaperDetails/, ConsistencyDefs/, and Lean's math library, Mathlib), the Challenge/ folder, the configuration files, and the checkers themselves. And one sentence that every AI-research announcement should copy:
"That the statements say what the papers say is for the reader to judge; AI readers have compared them with the text."
That last clause is worth a second look. The match between paper and Lean was checked by AI models. That's useful. It is still AI checking AI.
A plain analogy: the build is a test suite that passes. The question it can't answer is whether the tests test the right thing. Anyone who has watched a coding agent "fix" a failing test by loosening the assertion knows exactly why that gap matters.
What the statements actually say
You don't need to be a cryptographer to read one. Here is the example the README itself points to, from PaperDefs/P01/Cases.lean:
def ModuleLWETheorem : Prop :=
∃ program : QuantumProgram, ∃ c : ℕ, ∀ rank ≥ (1 : ℕ),
∀ᶠ n : ℕ in largePowersOfTwo, ∀ noise ≥ 1, ∀ q ∈ Set.Icc (11 * rank * noise ^ 2 * n) (2 ^ n),
ForAllButFraction (2 ^ (-(n : ℝ) / (240 * rank))) fun A : Fin rank → Fin rank → Fin n → Fin q =>
program.SolvesEveryInstance (moduleLWE A noise) (told := [n, rank, rank])
(time := 2 ^ (c * rank ^ 8 * n.log2 ^ 2))
Read it line by line in plain English. There exists a quantum program and a constant c such that, for every rank (how many building blocks the puzzle is made of), for all large enough powers of two n, and for a range of noise levels and moduli, the program solves the Module-LWE puzzle (recovering a secret from equations deliberately blurred with small noise) for almost every input matrix, in time 2 raised to c × rank⁸ × (log n)².
Notice what's in there. "For all large enough n" and an unnamed constant c are the reasons this is a theoretical result. The departures file makes that concrete: its statements about schemes like ML-KEM and ML-DSA use thresholds of n ≥ 2^29 or 2^30. The real standards use n = 256. CIRG's footnote explains why that matters: ML-KEM and ML-DSA get stronger by adding more components (the rank) while keeping n fixed at 256, and the speedup only shows up as n grows.
So the statement is honest, and reading it tells you more than any headline did. The formal guarantee kicks in only at enormous sizes and does not cover the n = 256 you actually use. For those, you need the separate cost estimates from CIRG and Cloudflare, which say the attack is wildly impractical.
The departures file is the most honest page in the repo
docs/departures.md lists every place the Lean statements differ from the printed papers. A few examples, in plain words:
- Time is counted differently. Lean counts steps of a defined machine, a quantum word RAM described in about 1,000 lines, so some bounds differ from the printed ones by logarithmic factors.
- Some subroutines are swapped. Where a paper cites a task without giving an algorithm (finding roots of polynomials, for instance), the Lean programs use "a method of ours."
- "Sufficiently large" got real numbers. Some of them are very large.
None of these is a scandal. Each one is exactly the kind of gap a careful reader needs to see, and most AI announcements never publish it. If you only read one file, read this one.
Put this into practice
You can do this at two depths. Most readers should start with the first.
The 20-minute read (no build).
- Open
PaperDefs/P01/Cases.lean. It states eight results on paper 1 in a few lines each. Read one statement out loud the way we did above. - Open
docs/departures.mdand skim the paper 1 section. - Open
Challenge/Paper1.leanand note that this is the file the proofs are checked against.
You will finish knowing what was claimed, in what limit, and where the formal version bends.
The full check (about an hour of compute).
Install elan, Lean's version manager, from its repository. Then, inside the lattices/ folder:
lake exe cache get
lake build
lake env lean scripts/PrintAxioms.lean
The README says the build takes "a little over an hour on 12 cores, with 12 GB of memory and 21 GB of disk." The last command prints the axioms behind each compared theorem. You want to see only propext, Classical.choice and Quot.sound. The script itself calls this "a convenience for a reader," not an independent check, because it runs inside the project it is checking.
The independent check is Comparator (bash ../.github/scripts/comparator-check.sh). It needs Linux, plus git, Go, Cargo and jq on top of Lean, and its three configurations take about 60, 40 and 5 minutes and up to 14 GB of memory.
One safety note the README makes, and you should take seriously: building downloads the Lean toolchain and Mathlib's compiled files, and "compiling Lean code runs its tactics and macros with the rights of your user." Lean files can run code at build time. Build this in a throwaway VM or container, not on the laptop that holds your SSH keys. That advice holds for any proof repo, AI-written or not.
The lesson for your own agents
You probably don't formalize cryptography. You probably do have agents that write code and then tell you the tests pass.
The Challenge/ and Solution/ split is a pattern you can copy tomorrow. Keep the statement of what "done" means somewhere the agent can't edit, and let the agent write only the proof. In software terms: you own the acceptance tests and the spec, the agent owns the implementation, and a separate check confirms the implementation passes your tests, not tests it rewrote. When you review, spend your time on the statements. A checker can handle the proofs. Your judgment is needed for the claims.
Honest limitations
- Most readers can't judge the statements alone. Reading
ModuleLWETheoremin plain English is doable. Deciding whetherPaperDefs/captures what a lattice cryptographer means takes expertise most of us don't have. The repo says AI models compared them. Human experts comparing them is the review that matters, and that is still ahead. - A proof is not a cost estimate. The Lean files prove asymptotic bounds with unnamed constants. Whether the attack threatens anything real is a separate question, and the answer from CIRG and Cloudflare is no, not at today's parameters. CIRG also expects the attack to improve.
- The full check is expensive. An hour of 12-core compute and 21 GB of disk is a lot for a curious reader, and Comparator needs Linux.
- It is a frozen artifact. The README calls it a research artifact, "not maintained and not accepting contributions." Questions about it will have to go elsewhere.
- Building runs untrusted code. Covered above, but worth repeating: isolate the build.
What to do with this
Next time an AI lab, a vendor, or your own coding agent announces a result with a passing check, ask the two questions this release answers so well. What exactly was checked? And who wrote the statement it was checked against?
If the answer to the second question is "the same system that wrote the proof," you haven't been given evidence yet. You've been given homework. Anthropic, to its credit, wrote down exactly what the homework is.
Sources: anthropics/formal-math lattices README, commit 487d559; docs/departures.md; Paper 1 PDF; CIRG, Initial Assessment, Nov 30 2026; Cloudflare, Post-quantum cryptography is still safe, Dec 1 2026; elan. Repository reviewed at commit 487d559 (November 30, 2026).