What a Lattice Actually Is
Start simpler than the textbooks. A lattice is a regular grid of points in n-dimensional space — the set of all integer combinations of a chosen set of basis vectors.
In two dimensions, if the basis is (1, 0) and (0, 1), the lattice is just every point with integer coordinates: (0,0), (1,0), (0,1), (-5, 3), and so on. Pick a different basis — say (2, 1) and (1, 3) — and you get a different-looking grid of points, still defined by integer combinations, still infinite, still regular.
The important observation: the same lattice can be described by many different bases. Some bases are "nice" — short, nearly orthogonal vectors that make computation easy. Other bases are "bad" — long, highly correlated vectors that describe the same lattice but hide its structure.
This asymmetry is the whole story of lattice cryptography. A lattice with a good basis is easy to work with. The same lattice with a bad basis is computationally hard to work with. The private key is the good basis; the public key is a bad basis for the same lattice. Transforming a bad basis into the good one — the process cryptographers call lattice reduction — is the hard problem the whole structure rests on.
The Four Problems That Matter
Formal lattice cryptography is organised around four specific computational problems, and every cryptographic construction either reduces to one of them or depends on their hardness. They're worth naming because when a cryptographer says "lattice problem," they mean one of these.
SVP — Shortest Vector Problem
Given a basis of a lattice, find the non-zero lattice vector with the smallest Euclidean norm. Intuitively: among all the lattice points, which one is closest to the origin without being the origin itself?
With a good basis, this is near-trivial. With a bad basis in high dimensions, this is believed to be exponentially hard — and importantly, quantum algorithms don't appear to break it any faster than classical ones. That resistance is what makes lattices a candidate for post-quantum cryptography.
SIS — Short Integer Solution
Given a matrix A over a modular ring, find a short non-zero integer vector x such that Ax ≡ 0 (mod q). Short meaning small-norm; small enough that the vector is a non-trivial solution but not large enough to be a trivial multiple of q.
SIS is the structural backbone of lattice-based signatures. ML-DSA (NIST's post-quantum signature standard, formerly Dilithium) builds on a structured variant called Module-SIS.
LWE — Learning With Errors
Given many pairs (aᵢ, bᵢ) where bᵢ = ⟨s, aᵢ⟩ + eᵢ (mod q) — s is a secret vector, aᵢ is a random vector, eᵢ is a small random "error" — recover s.
LWE is the structural backbone of lattice-based encryption. ML-KEM (post-quantum key encapsulation, formerly Kyber) builds on a structured variant called Module-LWE. The error term is what makes it hard: without the noise, this is just a linear algebra problem and trivially solvable. With the noise, it's believed to be as hard as worst-case lattice problems — a connection called the Regev reduction.
GapSVP — Decision SVP
Given a lattice and a distance bound d, decide whether the shortest vector has norm less than d or greater than some larger bound. Sounds weaker than SVP, but a GapSVP oracle is enough to break most lattice-based schemes, so hardness of GapSVP is what most security proofs actually need.
These four problems don't stand alone — they're deeply interconnected, and a lot of lattice cryptography research is about proving reductions between them (e.g., "if you can solve LWE, you can solve GapSVP, so LWE is at least as hard"). Those reductions matter because they transfer confidence from the theoretically best-studied problems to the specific variants used in deployed schemes.
Module Lattices — Where the Deployed Standards Actually Live
NIST's standardised schemes (ML-KEM, ML-DSA) don't use arbitrary lattices. They use module lattices — lattices built from vectors whose entries are polynomials over a specific ring, typically ℤ[x]/(xⁿ + 1) for n a power of 2.
The module structure buys efficiency: operations on polynomial entries are fast via Number-Theoretic Transforms (NTT), key sizes are smaller than fully random LWE, and the algebraic structure is clean enough to analyse.
The module structure also raises security questions. A module lattice has more algebraic structure than a random lattice — and structure is exactly what cryptographic attackers try to exploit. Every few years there's a flurry of research asking: does the module structure open a weakness that random lattices don't have? So far the answer is no — but every result in that direction gets scrutinised hard.
The Formal Math Angle: Why Proofs Matter Here
For decades, lattice cryptography's security has rested on a chain of reductions written in LaTeX papers and verified by hand by a few hundred cryptographers worldwide. That's how all cryptography has been done. It mostly works. Occasionally — the elliptic-curve DualEC_DRBG backdoor, the various SHA-1 weaknesses that took years to propagate through deployed systems — it doesn't.
Post-quantum cryptography is the first case where the standardisation effort has been paired with serious formal verification — mechanical proofs in a proof assistant like Lean 4 or Coq, where every step has been checked by a computer.
In November 2026, Anthropic published the anthropics/formal-math repository on GitHub, including a lattices subdirectory with Lean 4 formalizations of four foundational lattice cryptography papers. The scope is substantial:
- 132 main theorems across the four papers, with 190 intermediate statements supporting them.
- Formal machinery for Turing machines, quantum circuits, and the complexity classes P, BPP, PSPACE, BQP — because lattice reductions have to be stated relative to an explicit computational model.
- Complete Lean 4 proofs verified by Mathlib, using only three axioms (
propext,Classical.choice,Quot.sound) — the standard Mathlib base. - An independent comparator tool that verifies the proofs end-to-end.
The specific papers formalized cover:
- Quasi-polynomial quantum algorithms for integral and module lattices — the active frontier of "could quantum computers break lattice crypto?"
- Search SVP reductions to SIS, SIVP, LWE, and GapSVP — the reduction chain underpinning deployed scheme security.
- Dual attack converses and quantum equivalences of SIVP and LWE.
- Public-key encryption from GapSVP with classical reductions to decision LWE — the structural path from hard lattice problems to a working encryption scheme.
The repository notes the results were "discovered by Claude research model" and the formalizations performed by AI models — with the independent comparator tool providing the external verification. The repository is Apache 2.0 licensed, available for anyone to inspect, build (about one hour on 12 cores, 12 GB RAM), and verify locally.
What This Means for Deployed PQC
Three practical observations.
The reductions are now machine-checked
For the specific reduction chains the formalization covers — SVP → SIS, LWE equivalences, GapSVP → public-key encryption — the proofs no longer rely on human verification of LaTeX. A reader can download the repository, run lake build, and watch Lean verify every step. If a reduction is wrong, Lean refuses to compile the file.
This is a meaningful strengthening of the security foundation under ML-KEM and ML-DSA, even though the formalization doesn't directly prove the deployed schemes' security — it proves the underlying reductions that the security arguments cite.
Quasi-polynomial quantum attacks exist, but aren't practical
Paper 1 of the formalization establishes that there's a quasi-polynomial-time quantum algorithm solving Module-LWE under specific parameter conditions. The theorem's time bound grows as roughly 2^(c · rank⁸ · log²(n)) for some constant c.
For real-world ML-KEM parameters — rank 2, 3, or 4; dimension 256 — plugging in the numbers gives time bounds in the 2^(millions) range. Astronomically far from practical even on hypothetical fault-tolerant quantum computers.
What the formalization proves is that the asymptotic structure exists — quasi-polynomial in quantum time. What it does not prove is that this is a practical threat. For ML-KEM-512, ML-KEM-768, or ML-KEM-1024, the parameters are chosen specifically so these attacks remain out of reach.
The structure provides confidence, not certainty
Formalization doesn't prove that no attack exists. It proves that the stated reductions hold — that the dependencies between the standardised problems and the deployed schemes are mathematically sound. If a new attack surfaces tomorrow against a specific module lattice structure that isn't covered by the reductions, the formalization doesn't contradict it.
What the formalization does is harden the floor. The published security arguments for ML-KEM and ML-DSA no longer depend on hoping no one made a mistake in their LaTeX. They depend on specific Lean proofs that anyone can audit.
Why This Matters for Enterprise PKI
For operators planning the 2027-2030 PQC transition, three takeaways:
Trust the standards. ML-KEM (FIPS 203) and ML-DSA (FIPS 204) are now backed by both the traditional cryptographic review process AND machine-checked proofs of their underlying hard problems. The security argument is as rigorous as it's ever been for any deployed cryptography.
Watch the formal-math repositories. Anthropic's lattices subdirectory is one of the first large-scale formalizations of lattice reductions. More will follow. For CISOs and crypto-policy teams, the state of formal verification is a real input to risk assessment — not a theoretical nice-to-have.
Hybrid deployment is still the right path. Classical + PQC hybrid key exchange (e.g., X25519MLKEM768) gives you confidence from two independent hardness assumptions. Even if a single assumption falls, the other holds. The current state of research — including the formal verification above — says lattices look solid, but the hybrid approach is the right conservative choice for the next 3-5 years.