Lattice Crypto Did Not Collapse: 385 Lean Theorems and the Real Post-Quantum Ledger

On 2026-11-30 three related posts sat on the Hacker News front page at once: the CIRG initial assessment at 692 points, the paper PDF at 279, and Cloudflare's "Post-quantum cryptography is still safe" at 148. The next day QbitAI and JiQiZhiXin covered the same event: Anthropic released four papers on lattice cryptography plus the full Lean 4 formalization. The emotional readings contradict each other -- a structural weakness, a cryptography earthquake, and a claim that your connection is still safe. They are all correct, just measured on different scales.

385 theorems, three axioms, zero borrowed results

Start with the artifact. The formal-math/lattices repository holds four papers. The first gives quantum quasi-polynomial algorithms for structured lattice problems. The second reduces search SVP to SIS and SIVP, and quantumly to LWE and GapSVP. The third proves a converse of the dual attack and a quantum equivalence of SIVP and LWE at small noise rates. The fourth builds public-key encryption from GapSVP using only classical adaptive reductions.

The README keeps exact accounts: 132 main statements, 190 intermediate lemmas and detailed forms, 63 theorems about the machine itself, 385 in total. No cited result is assumed true; every one is reproved from scratch. Algorithms are programs on a quantum word RAM defined in about 1000 lines, and time is the number of machine steps, including program text length. According to the repository, all theorems rest on just three Lean axioms: propext, Classical.choice and Quot.sound. The Comparator even replays proofs in an independent kernel named nanoda.

That machinery addresses a real problem: how do you stop an AI-written proof from hiding a hallucinated step? Formalization cannot decide whether the statement says what the paper meant, but it turns "did this proof smuggle in an assumption or leave a sorry" into a machine-checkable fact. That idea is more worth copying than the result itself.

n versus k: where the crack actually is

The most important line in the CIRG assessment (Cryptography Incident Review Group, 2026-11-30) sits in a footnote: the asymptotic speedup applies as the degree n of each structured component grows, while ML-KEM and ML-DSA raise security levels by increasing the number of components k with n fixed at 256. The paper's fast lane and the NIST standard's scaling direction are not the same axis.

Running time in P01.lean has the shape 2 to the c times k to the eighth times log2(n) squared. The constant c is unknown, but the relative exponent is still informative: at fixed n=256, moving k from 2 to 5 takes the relative exponent from 16 thousand to 25 million. Going the other way, fixing rank at 2 and raising n from 256 to 4096 moves it only from 16 thousand to 36 thousand. NIST picked the second axis, which keeps this particular ruler short.

import math

print("fixed n=256, relative exponent k^8*(log2 n)^2 (constant c omitted)")
for k in (2, 3, 4, 5):
    print("  rank", k, "=", k**8 * 64)
print("grow degree at rank 2:")
for n in (256, 1024, 4096):
    print("  n =", n, "->", 2**8 * int(math.log2(n))**2)
gap = 1001 - 128
print("Cloudflare estimate: attack near 2^1001, target 2^128")
print("gap bits", gap, "decimal orders", round(gap * math.log10(2), 1))
print("CIRG footnote: 21000 quantum ops, log2", round(math.log2(21000), 1), "is far below the real cost")
fixed n=256, relative exponent k^8*(log2 n)^2 (constant c omitted)
  rank 2 = 16384
  rank 3 = 419904
  rank 4 = 4194304
  rank 5 = 25000000
grow degree at rank 2:
  n = 256 -> 16384
  n = 1024 -> 25600
  n = 4096 -> 36864
Cloudflare estimate: attack near 2^1001, target 2^128
gap bits 873 decimal orders 262.8
CIRG footnote: 21000 quantum ops, log2 14.4 is far below the real cost

Cloudflare's 2026-12-01 post supplies another scale: by the paper's own estimates, attacking ML-DSA sits near 2 to the x with x above 1000, against a 2 to the 128 target for the smallest instance. A straightforward implementation needs at least a billion logical qubits; today's machines have on the order of a thousand physical qubits, and those are not even the same unit. CIRG is more conservative: even under assumptions favorable to the attacker, 21000 quantum operations fall far short of the cost for the smallest parameter sets, ML-KEM-512 and ML-DSA-44. That is what a galactic algorithm means -- asymptotically fast, with a constant term the size of a galaxy.

The other three papers build shields

Three of the four papers are not attacks. The second uses minima filtration and smoothing filtration to reduce average-case SIS, SIVP and SAP, and quantum LWE and GapSVP, tightly to search SVP. The third proves a converse of the dual attack, establishes the quantum equivalence of SIVP and LWE at small noise rates near the critical rank, and proves an impossibility theorem: the exponent of the approximation factor in classical reductions cannot be cut by a constant through black-box reductions. The fourth drops quantum assumptions entirely and proves classical security for public-key encryption built from GapSVP.

QbitAI on 2026-12-01 summarized this as "drop the artificial algebraic structure and unstructured lattices remain the most reliable shield." CIRG put it more carefully: these results are meaningful evidence for the post-quantum security of mainstream unstructured-lattice systems. Both point to the same engineering conclusion -- do not translate "structured lattices have a crack" into "lattice crypto is finished."

Two things you can do today

CIRG recommends four moves: keep migrating, do not delay; choose the highest security level each application can support; use hybrids built on different mathematical foundations; and design systems so a scheme can be swapped quickly. Cloudflare adds an adoption number: as of 2026-12-01, 73 percent of human traffic reaching it is post-quantum encrypted. Migration is a default configuration now, not a future project.

The script below has no third-party dependencies. It scans a config directory and sorts each file into hybrid key exchange, PQ ready, legacy TLS 1.2, or unknown. It is not a handshake probe -- a line in a config file does not prove what the wire negotiated -- but it does produce the "which machines have not moved" list. Point it at your own /etc/nginx or config repository.

import os
import sys

root = sys.argv[1] if len(sys.argv) > 1 else "fixture"
hybrid = ("X25519MLKEM768", "X25519MLKEM512")
pq = ("ML-KEM-768", "ML-KEM-1024", "ML-DSA-65", "ML-DSA-87")
legacy = ("ssl_protocols TLSv1.2;", "kRSA", "ECDHE-RSA-AES")

for name in sorted(os.listdir(root)):
    path = os.path.join(root, name)
    if not os.path.isfile(path):
        continue
    text = open(path, encoding="utf-8").read()
    h = [k for k in hybrid if k in text]
    p = [k for k in pq if k in text]
    old = [k for k in legacy if k in text]
    if h and old:
        status, action = "MIXED", "drop legacy TLS 1.2 or kRSA lines"
    elif h:
        status, action = "HYBRID", "keep; pin highest level"
    elif p and not old:
        status, action = "PQ-READY", "check the wire handshake too"
    elif old:
        status, action = "LEGACY", "add X25519MLKEM768 and TLS 1.3"
    else:
        status, action = "UNKNOWN", "inspect by hand"
    tags = ",".join(h + p) if (h or p) else "-"
    print(name, status, "tags=" + tags, action)
legacy.conf LEGACY tags=- add X25519MLKEM768 and TLS 1.3
nginx.conf HYBRID tags=X25519MLKEM768 keep; pin highest level
openssl.cnf PQ-READY tags=ML-KEM-768 check the wire handshake too
readme.txt UNKNOWN tags=- inspect by hand

Put this inventory in CI, then add one live check: connect to your own domain and confirm the negotiated group contains X25519MLKEM768. The gap between declared configuration and observed handshake is the real progress bar of a migration.

AI did not change whether a cryptosystem is secure; it changed how fast we learn its exact security margin. That line from Cloudflare is far more precise than "cryptography earthquake." Pull the inventory, raise the security level, make algorithms swappable overnight -- and do not rip ML-KEM out of production.

Further reading

Comentarios

Este sitio es solo frontal: sin backend ni cuentas. Los comentarios van a GitHub Issues, Discussions o correo.

Pega esto en el issue o correo para ayudarme a localizar el problema; no incluye nada de lo que escribiste

También:Ver comentarios existentes · Comentarios por correo (sin cuenta de GitHub):278975598@qq.com