Post-Quantum

PQ Is Still Safe: What Anthropic's Lattice Formalization Does and Doesn't Prove

Every few months a new paper raises the question: are the lattice problems protecting ML-KEM and ML-DSA actually hard? In November 2026, Anthropic published a Lean 4 formalization of four foundational lattice papers — 132 machine-verified theorems covering quasi-polynomial quantum algorithms, SVP reductions, and LWE equivalences. Here's what the formalization proves, what it doesn't, and why PQC remains the right migration target.

F
Fizer Khan
Co-founder & CTO
2026-12-01
14 min read

The Question Enterprises Keep Asking

Since NIST standardised ML-KEM (FIPS 203), ML-DSA (FIPS 204), and SLH-DSA (FIPS 205) in 2024, the question hasn't been "should we migrate to post-quantum cryptography?" — the regulatory calendar answered that one. CNSA 2.0 mandates PQC transition for US national security systems by 2030. NIS2, DORA, and the CA/Browser Forum roadmaps all target the same window.

The question has been: are we sure the lattices are safe?

It's a fair question. Lattice cryptography's security rests on the assumed hardness of specific computational problems — SVP, SIS, LWE, Module-LWE, GapSVP. "Assumed hardness" means no one has published an efficient algorithm to solve them, and the complexity-theoretic structure suggests they should be hard. But "no one has published" is not a mathematical proof. Every couple of years a paper appears claiming an efficient lattice attack; most are quickly withdrawn or shown to be incorrect; a few genuinely move the field.

For CISOs deciding whether to deploy ML-KEM in 2027 or to keep classical crypto for a few more years, the status of "are the lattices actually hard?" is a load-bearing input.

In November 2026, Anthropic published a Lean 4 formalization of four foundational lattice cryptography papers. It's the largest formal verification of lattice reductions published to date. This post is about what that formalization actually establishes — and what it doesn't.

What Anthropic Formalized

The repository (anthropics/formal-math/lattices) covers four papers:

  1. Quasi-polynomial quantum algorithms for integral and module lattices.
  2. Search SVP reductions to SIS, SIVP, LWE, and GapSVP.
  3. Dual attack converses and quantum equivalences of SIVP and LWE.
  4. Public-key encryption from GapSVP with classical reductions to decision LWE.

The scope in numbers:

  • 132 main theorems across the four papers.
  • 190 intermediate statements supporting them.
  • 63 auxiliary theorems on complexity-class definitions (P, BPP, PSPACE, BQP) — needed because lattice reductions are stated relative to a specific computational model.
  • Full Lean 4 proofs verified by Mathlib. The entire tree uses only three axioms (propext, Classical.choice, Quot.sound) — the standard Mathlib base.
  • Independent comparator tool that re-verifies the proofs end-to-end.
  • Build cost: about 1 hour on 12 cores, 12 GB RAM, 21 GB disk.
  • License: Apache 2.0.

The repository's own description notes the results were "discovered by Claude research model" and the formalizations performed by AI models — with the comparator providing external verification. The repository is open and anyone can clone it, run lake build, and verify every theorem on their own hardware.

For context, this is in the same order of magnitude as prior major formal cryptography projects — EasyCrypt's Kyber proof (the first formal security proof of a specific NIST post-quantum candidate), CertiCrypt's foundational work, and the FIAT-Crypto formalization of elliptic-curve arithmetic that now underlies BoringSSL's ECC implementations.

What the Formalization Proves

The formalized reductions form a chain, and each link is now machine-verified.

SVP is at least as hard as SIS and LWE

Paper 2's reductions establish that if you have an efficient algorithm for SIS or LWE, you can convert it into an efficient algorithm for SVP (or variants). Contrapositively: if SVP is hard, so are SIS and LWE.

This matters because SVP is the oldest and best-studied lattice problem. Decades of complexity-theoretic analysis converge on SVP being exponentially hard in the worst case. The formalized reductions transfer that confidence to the specific problems used in deployed schemes.

LWE and SIVP are quantum-equivalent

Paper 3 formalises converses to dual attacks and proves quantum equivalences between SIVP (Shortest Independent Vectors Problem) and LWE. In plain terms: a quantum attacker who can break LWE efficiently can break SIVP efficiently, and vice versa.

This is a tight connection. For ML-KEM, which rests on Module-LWE hardness, it means the standard's security floor is pinned to a worst-case lattice problem — not a chosen average-case assumption that could have hidden structure.

Public-key encryption from GapSVP, formally

Paper 4 constructs a public-key encryption scheme with classical (not just quantum) reductions to decision LWE and GapSVP. The reduction is formally stated and the proof is machine-checked. This isn't ML-KEM specifically — but it's a scheme in the same family, proven secure under exactly the kind of assumptions ML-KEM relies on.

Quasi-polynomial quantum attacks on Module-LWE exist asymptotically

Paper 1 is the most subtle — and the one worth dwelling on, because if it says "there's a quantum attack on Module-LWE," that sounds like bad news.

The formalized theorem (looking at the Lean statement directly):

text
1def ModuleLWETheorem : Prop := 2 ∃ program : QuantumProgram, ∃ c : ℕ, ∀ rank ≥ 1, 3 ∀ᶠ n : ℕ in largePowersOfTwo, 4 ∀ noise ≥ 1, 5 ∀ q ∈ Set.Icc (11 * rank * noise² * n) (2^n), 6 ForAllButFraction (2^(-n/(240 * rank))) fun A => 7 program.SolvesEveryInstance (moduleLWE A noise) 8 (time := 2^(c * rank⁸ * log²(n)))

Reading it: there exists a quantum algorithm that solves Module-LWE (for sufficiently large n and a range of parameters) in time 2^(c · rank⁸ · log²(n)).

That's quasi-polynomial in quantum time — faster than exponential, slower than polynomial. Asymptotically, it's a real attack.

Operationally, for ML-KEM's actual parameters, it's not a threat. Here's why.

SchemeRankDimension nAttack time exponent
ML-KEM-5122256c · 2⁸ · log²(256) = c · 256 · 64 = ~2^14 · c
ML-KEM-7683256c · 3⁸ · 64 = c · 6561 · 64 ≈ 2^19 · c
ML-KEM-10244256c · 4⁸ · 64 = c · 65536 · 64 ≈ 2^22 · c

Even with the constant c = 1 (likely optimistic), attack time for ML-KEM-1024 is on the order of 2^(2^22) — far beyond what any physical or hypothetical computer could execute. The parameters NIST chose for ML-KEM were specifically calibrated to keep attacks of this shape out of reach.

The formalization confirms an asymptotic result. It does not say ML-KEM is broken. It says the shape of the attack is machine-verified to exist — which gives cryptographers something concrete to tighten against in future parameter revisions.

What the Formalization Doesn't Prove

Important to be honest about the limits.

It doesn't prove ML-KEM itself is secure

The formalization proves the underlying reductions between lattice problems. ML-KEM's security argument cites those reductions, but ML-KEM's full security proof — including the specific IND-CCA2 game, the Fujisaki-Okamoto transform, the module structure's algebraic properties — is a larger artefact. Other projects (EasyCrypt's Kyber proof, for example) address those directly.

It doesn't prove no faster attack exists

A machine-checked proof that SVP → LWE reduction holds does not prove SVP is actually hard. If a new algorithm appears tomorrow solving SVP in polynomial time, the formalization doesn't contradict it — it just means LWE would fall too. The whole edifice rests on SVP's assumed hardness, which is a complexity-theoretic belief, not a theorem.

It doesn't address side-channel attacks

Formal verification of the math says nothing about implementation attacks — timing side channels, power analysis, fault injection, cache-based attacks. Those are the attack surface for real deployed ML-KEM implementations, and they're the subject of separate (equally important) research tracks.

It doesn't capture every lattice problem in use

The four papers formalized are foundational, but lattice cryptography has moved beyond them. Structured lattice variants, ideal lattices, specific algebraic rings used in deployed standards — these live in a related but distinct body of work. The formalization is a solid anchor; it's not a complete audit of the field.

What This Changes for Enterprise PQC Planning

Three practical implications.

The 2030 migration target remains correct

CNSA 2.0 deadlines, CA/Browser Forum roadmaps, DORA expectations — the 2030 PQC transition target is based on the assumption that lattice cryptography is secure enough to deploy. The Anthropic formalization strengthens that assumption rather than weakening it. The reductions underpinning ML-KEM are now machine-verified.

For CISOs with lingering doubts about whether to start migration planning, this closes one of the biggest category of concerns: "what if the math turns out to be wrong?"

Hybrid deployment remains the right conservative choice

Even with the formalization, running classical + PQC hybrid key exchange (e.g., X25519MLKEM768) through the 2027-2032 window is the right posture. Hybrid gives you security from two independent assumptions — a classical ECDH problem and the Module-LWE problem. If either falls, the other protects the connection.

The formalization makes Module-LWE a more solid-looking assumption. It doesn't eliminate the value of the hybrid hedge. Deploy both.

Inventory still matters more than theory

Even with perfectly secure standards, every certificate in your estate still needs to be enumerable before you can migrate it. Every library still needs to be version-tracked for PQC support. Every protocol handshake still needs to be sampled to see what cipher suite actually negotiates.

See Cryptographic Bill of Materials (CBOM) and the 12-point PQC readiness checklist. The math is now in better shape than it was six months ago. The operational work is unchanged.

Verifying the Formalization Yourself

The repository is open and the proofs are reproducible. The minimum setup:

bash
1git clone https://github.com/anthropics/formal-math 2cd formal-math/lattices 3lake exe cache get # pulls precompiled Mathlib 4lake build # verifies all four papers end-to-end

Budget about 1 hour on 12 cores, 12 GB RAM, 21 GB disk. The build succeeding means Lean has independently verified every theorem. The docs/INDEX.md file maps every printed theorem number from the papers to its Lean declaration — useful if you want to spot-check a specific reduction against the published math.

For teams doing their own PQC readiness evaluation, running the build locally is a reasonable addition to the trust-but-verify discipline. If the proofs don't build on your hardware, that's a signal. If they do, the entire reduction chain is machine-verified in front of you.

Related Reading

TOPICS

post-quantum cryptography
lattice cryptography
ML-KEM
Module-LWE
formal verification
Lean 4
Anthropic
PQC safety
TigerTrust

SHARE THIS ARTICLE

Related articles

Post-Quantum

The December 2026 Post-Quantum Warning: What PKI and Certificate Teams Should Do This Month

On 2 December 2026, the NSA urged an immediate transition to post-quantum cryptography. A joint statement from NSA, CISA and the White House Office of the National Cyber Director said AI companies had disclosed discoveries affecting some cryptography, while also saying the advances "do not present an immediate and widespread threat." Eight large tech companies issued a joint industry statement backing the move to NIST PQC. Here's what certificate teams should actually do this month.

12 min read
Post-Quantum

A Lattice Cryptography Primer: What Actually Protects Post-Quantum PKI

Every post-quantum algorithm NIST standardised in 2024 — ML-KEM for key exchange, ML-DSA for signatures, SLH-DSA for stateless signing — rests on lattice problems. But "lattice" as a word covers a lot of ground. Here's what the structure actually is, why it resists quantum attack, and what the formal math community (including Anthropic's recent Lean 4 formalization of four foundational lattice papers) has nailed down.

13 min read
Post-Quantum

PQC Readiness: The 12-Point Checklist Before 2030

Your board has asked whether you're PQC-ready. You cannot answer yes until you can score your organisation against the four readiness dimensions — inventory, policy, deployment, and governance — and produce evidence against each. This is the 12-point checklist that turns "are we ready?" into a scorecard, with the specific artefacts to collect for each item.

13 min read

Ready to Transform Your Certificate Management?

See how TigerTrust can help you automate certificate lifecycle management at scale.