Post-Quantum Lattice Cryptography: NIST FIPS 203 (ML-KEM) and Module-LWE
How Shor’s 1994 factoring algorithm threatens classical public-key locks, and how NIST FIPS 203 hides a secret vector inside 768-dimensional polynomial lattices obscured by centered binomial noise.
Why it matters
Picture an egg carton stretching across 768 dimensions, blanketed in thick fog. Holding the secret key is like knowing the exact integer coordinates of one chosen valley, whereas the public key adds a small deliberate nudge (+e) into the fog and hands an outsider only the blurred position. With the secret trapdoor, the legitimate receiver steps straight back to the nearest valley; without it, an attacker faces exponentially many neighboring dimples. Where the analogy stops: a physical egg carton lives in two dimensions where rolling downhill finds a valley immediately, whereas high-dimensional modular lattices wrap around modulo 3329 and defeat simple local descent.
Conceptual Vision Plate M.19-V (Imagining What It Would Look Like) · AI-generated illustration of a three-dimensional point lattice inside a glass block with teal and amber lit nodes: a loose, futuristic picture of lattice geometry. It is not a cryptographic key or a security proof.
About this illustrationThis AI-generated illustration is imagining what the concept would look like: an artistic impression, not a measured structure or specification. Exact geometry, specifications and governing equations are kept strictly intact with zero artistic interpretation in deterministic Plate M.19-A and Plate M.19-B below.Sinopsis Ejecutiva en Español · Folio M.19
Actos I y II — Historia, ley gobernante e intuición cotidiana:Criptografía post-cuántica en retículos: NIST FIPS 203 (ML-KEM) y Module-LWE — Cómo el algoritmo de factorización de Shor de 1994 amenaza los candados clásicos de clave pública y cómo NIST FIPS 203 oculta un vector secreto dentro de retículos polinomiales de 768 dimensiones cubiertos por ruido binomial centrado. Este monográfico educativo expone la relación gobernante b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203). Por qué importa en la vida real: Un cartón de huevos en 768 dimensiones envuelto en niebla esconde la llave privada; hasta donde se sabe, ni una computadora cuántica encuentra el valle más cercano con eficiencia. Es una creencia bien estudiada, no una prueba.
En Palabras Sencillas (Explicación Accesible): Cada vez que entras a tu banco o envías un mensaje privado, tu privacidad depende de un candado matemático. Los candados clásicos funcionan como una calle de un solo sentido donde multiplicar números primos es rápido, pero deshacer el producto toma demasiado tiempo a las computadoras ordinarias. Una gran computadora cuántica del futuro podría aprovechar patrones numéricos repetitivos para abrir esos candados. Para prepararse a tiempo, la comunidad científica diseñó un candado post-cuántico basado en retículos cristalinos en cientos de dimensiones. Imaginen un enorme cartón de huevos en 768 dimensiones cubierto por una densa niebla. Soltar una canica cerca de un punto privado de la malla es fácil, pero recuperar ese valle específico desde las coordenadas con niebla ha resistido los algoritmos cuánticos conocidos. En este estándar, el Instituto Nacional de Estándares y Tecnología (NIST) fija los parámetros de FIPS 203 para ML-KEM. Ningún estándar garantiza invulnerabilidad eterna, aunque los retículos ofrecen la ruta más estudiada hoy.
Mecanismo Técnico, Fuerzas en Competencia y Umbral Crítico: El tablero de este folio mueve dos parámetros del estándar post-cuántico NIST FIPS 203 (ML-KEM, basado en Learning With Errors de Oded Regev): el rango del retículo modular y el ancho del ruido binomial centrado. Al seleccionar un rango k entre dos y cuatro, la dimensión del espacio polinomial se expande de 512 a 1,024 dimensiones, lo que encarece mucho los ataques conocidos de reducción de base, como BKZ. Al mismo tiempo, el ancho del ruido inyecta una niebla controlada que oculta la clave privada manteniendo los fallos de desencapsulado muy raros (2^−164.8 para ML-KEM-768, según la Tabla 1 de FIPS 203). Ninguna de estas herramientas vuelve inquebrantable la privacidad: los retículos son una apuesta actual bien estudiada, no una garantía.
Acto III — Laboratorio interactivo: los deslizadores en tiempo real y las cuatro lentes del observatorio (superficie 3D, retrato de fase, listón de conservación y radar polar) permiten inspeccionar los controles y las cifras de referencia directamente en el navegador.
Actos IV y V — Descubrimiento y fuentes: la narrativa completa y las fuentes primarias siguen abajo (en inglés). Investigación científica y educativa abierta, no consejo médico.
Act I — Cool Fact & Human Story: Why Quantum Computers Threaten Today's Internet Locks, and Why Cryptographers Turned to 768-Dimensional Lattices
In the autumn of 1994, mathematician Peter Shor circulated a paper showing that a sufficiently large quantum computer could factor huge integers in polynomial time. That single result shook the mathematical foundation of internet privacy, because everyday bank logins, software updates, and private messages rely on the difficulty of factoring or solving discrete logarithms. Even though no quantum machine large enough to factor cryptographic keys has been built, encrypted traffic captured today can be stored and decrypted years later if such hardware arrives. Faced with that long shadow, researchers searched for a mathematical lock with no hidden periodic pattern for a quantum Fourier transform to exploit. After thirty years of international scrutiny, the National Institute of Standards and Technology issued a lattice-based key encapsulation standard in 2024 built around high-dimensional geometric grids and deliberate small noise.
In Plain Words · Extra-Easy Explanation
Every time you log into your bank or send a private message, your privacy depends on a mathematical padlock. Classical locks work like a one-way street where multiplying prime numbers is effortless, yet reversing the product takes ordinary computers too long. A large future quantum computer could exploit repeating number patterns to pick those older locks quickly. To prepare ahead of time, cryptographers built a post-quantum lock around crystal lattices across hundreds of dimensions. Picture a giant egg carton floating in 768 dimensions and hidden behind thick fog. Dropping a marble near a private grid point is fast, while recovering that specific valley from the foggy coordinates alone has resisted known quantum algorithms. In 2024, the National Institute of Standards and Technology issued Federal Information Processing Standard 203 for module-lattice key encapsulation. No cryptographic standard promises eternal safety, yet lattices offer a well-studied path today.
In August 2024 the National Institute of Standards and Technology published FIPS 203, the Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM). It belongs to the family of schemes built on Oded Regev's Learning With Errors problem (Journal of the ACM, DOI 10.1145/1568318.1568324[Scite ↗]), and open-source implementations exist, such as github.com/open-quantum-safe/liboqs. FIPS 203 fixes polynomial degree n = 256 and prime modulus q = 3329 and defines three parameter sets: ML-KEM-512, ML-KEM-768, and ML-KEM-1024, corresponding to NIST security categories 1, 3, and 5. In ML-KEM-768, the public key vector b = A s + e (mod 3329) hides a short secret polynomial vector s inside a 768-dimensional lattice perturbed by small centered binomial noise e. Its security rests on the presumed hardness of module lattice problems; Regev showed that plain LWE is at least as hard, under a quantum reduction, as certain worst-case lattice problems, though no one has proved that these problems are unconditionally hard.
Encrypted archives recorded over public networks today remain readable if their key exchange is broken decades from now, a threat known as harvest-now, decrypt-later. Transitioning global protocols to ML-KEM requires balancing three real-world constraints simultaneously: keys must stay small enough to fit inside standard network packets, arithmetic must run in microseconds on everyday phones and servers, and decryption errors must remain vanishingly rare. Raising the noise width hides the secret better against lattice reduction, yet excessive noise would cause legitimate receivers to decode the wrong shared key.
Every enduring equation begins as a human question—an act of patient curiosity by investigators who refused to accept an opaque boundary as the final word. Tracing the intellectual arc of Folio M.19 from its earliest formulation in 1994 (Peter Shor publishes polynomial-time quantum algorithms for factoring and discrete logarithms, exposing RSA and elliptic-curve key exchange to future fault-tolerant quantum computers.) to its modern resolution in 2024 (NIST publishes FIPS 203 (ML-KEM) with q = 3329 and n = 256; open-source libraries such as open-quantum-safe/liboqs implement the three parameter sets.) reveals why un-coupled classical approximations repeatedly stalled at a hard analytical barrier. Whenever investigators attempted to treat the governing relation b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) as a purely local or linearized perturbation, higher-order coupling terms across the kernel triad (Module-LWE b = A s + e (mod 3329) over R_q = ℤ_3329[X]/(X²⁵⁶ + 1)) amplified truncation error rather than damping it. What appeared for decades to be an intractable computational or experimental pathology was, in reality, a structural phase boundary embedded in the operator domain itself.
Resolving that impasse required shifting from ad-hoc empirical curve fitting to a rigorous, multi-stage operator formulation anchored in ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1). Specifically, the system’s trajectory is governed by control parameter P_1 (Module-LWE Lattice Rank (k_rank × 256)) spanning the admissible interval [2, 4] with step resolution Δ = 1 and reference operating point k = 3; control parameter P_2 (Centered Binomial Noise Width (η_noise)) spanning the admissible interval [2, 3] with step resolution Δ = 1 and reference operating point η = 2. Within this state space, any valid proof or physical design must simultaneously satisfy local conservation laws, global boundary conditions, and strict asymptotic scaling—setting the stage for the four-chapter formal derivation in Act II.
"Unlike factoring or elliptic curves, lattice problems strip away the cyclic periodicity that Shor’s quantum Fourier transform exploits—leaving attackers to search for tiny vectors across hundreds of noisy dimensions."
§ I.2 · Historical Turning Points
Year
Milestone
1994
Peter Shor publishes polynomial-time quantum algorithms for factoring and discrete logarithms, exposing RSA and elliptic-curve key exchange to future fault-tolerant quantum computers.
2005–2009
Oded Regev introduces the Learning With Errors (LWE) problem and proves a worst-case to average-case quantum lattice reduction (Journal of the ACM, DOI 10.1145/1568318.1568324[Scite ↗]).
2016–2022
NIST runs an open multi-round post-quantum cryptography standardization process, selecting CRYSTALS-Kyber (a Module-LWE construction) for key encapsulation.
2024
NIST publishes FIPS 203 (ML-KEM) with q = 3329 and n = 256; open-source libraries such as open-quantum-safe/liboqs implement the three parameter sets.
Act II — Cross-Field Intuition: A 768-Dimensional Egg Carton in Thick Fog
Everyday Analogy & Interactive Controls Primer
Everyday Analogy: Picture an egg carton stretching across 768 dimensions, blanketed in thick fog. Holding the secret key is like knowing the exact integer coordinates of one chosen valley, whereas the public key adds a small deliberate nudge (+e) into the fog and hands an outsider only the blurred position. With the secret trapdoor, the legitimate receiver steps straight back to the nearest valley; without it, an attacker faces exponentially many neighboring dimples. Where the analogy stops: a physical egg carton lives in two dimensions where rolling downhill finds a valley immediately, whereas high-dimensional modular lattices wrap around modulo 3329 and defeat simple local descent.
How the Two Sliders Work in Plain Words: To explore how this post-quantum lock trades off margin against failure risk, consider the two controls on our cryptographic bench. The first slider sets the Module-LWE lattice rank k between two (ML-KEM-512, NIST category 1), three (ML-KEM-768, category 3), and four (ML-KEM-1024, category 5), expanding the crystal dimension from 512 to 1,024. The second slider selects the centered binomial noise width η between 2 and 3, matching the narrow noise budget specified in FIPS 203 Table 2. Dialing both parameters shows the core engineering tension: enough noise to mask the secret coordinates, and small enough noise that accidental decryption failures stay near 2^−164.8. The workbench labels quote FIPS 203 and serve as a teaching reference, not a cryptanalytic estimator.
1 · EVERYDAY ANALOGY (M.19)
The 768-Dimensional Egg Carton
Retrieving a marble dropped into foggy high-dimensional valleys
Slider 1: Module-LWE Lattice Rank
Slider 2: Centered Binomial Noise Width
➜
2 · TWO COMPETING FORCES
▲ Lattice Module Rank k
Scales crystal dimension from 512D to 1024D against known SVP attacks
▼ Binomial Noise Width η
Injects cryptographic fog while bounding decryption failure risk
Insufficient lattice dimension or unbounded noise causes failure
PLATE M.19-D · VISUAL INTUITION BRIDGE → GOVERNING OPERATOR: b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203)
Plate M.19-D · Visual Intuition Bridge: Before diving into the formal equations, follow how the everyday physical analogy (left) sets two competing mechanisms in tension (center) around a sharp tipping point (right) that you can test directly with the two sliders in Act III.
Why can a quantum computer factor integers efficiently while lattice problems resist it? RSA and elliptic-curve cryptography rest on abelian groups whose hidden periodicity a^(x+r) = a^x mod N can be extracted by Shor’s quantum Fourier transform. Module-LWE works over the polynomial quotient ring R_q = ℤ_q[X]/(X²⁵⁶ + 1) with q = 3329 and module rank k = 3 in ML-KEM-768. The public key b = A s + e (mod q) hides the secret vector s behind small centered binomial noise e. Recovering s from (A, b) can be phrased as a closest-vector or shortest-vector problem on a lattice of dimension 768, and known classical and quantum attacks use lattice basis reduction and sieving with no exponential quantum speedup known. That is strong empirical evidence, not an unconditional hardness proof. Live parameter coupling: k = 3 under governing law
— in plain words: module learning-with-errors hides a secret vector behind modular matrix multiplication plus small noise at prime modulus 3329 and dimension 256 in NIST FIPS 203.
Regev (2009) showed that solving average-case LWE would let one solve certain worst-case lattice problems with a quantum algorithm; analogous module and ring reductions motivate practical schemes such as ML-KEM. In this folio's controls, raising the module rank k from 2 to 4 expands the dimension of the underlying lattice from 512 to 1,024, which steeply raises the cost of block Korkine–Zolotarev (BKZ) lattice reduction. FIPS 203 fixes the noise widths (η₁ = 3 for ML-KEM-512 and 2 for ML-KEM-768 and -1024; η₂ = 2) and records decapsulation failure probabilities of 2^−138.8, 2^−164.8, and 2^−174.8 across the three parameter sets.
Kernels: Module-LWE b = A s + e (mod 3329) over R_q = ℤ_3329[X]/(X²⁵⁶ + 1) · Benchmarks: ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1) · Primary Anchor:DOI 10.1145/1568318.1568324
To frame Folio M.19 (Post-Quantum Lattice Cryptography: NIST FIPS 203 (ML-KEM) and Module-LWE) as a structured mathematical and physical exposition, we first write the state-space domain on which the relation b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) is posed. Let the display controls span control parameter P_1 (Module-LWE Lattice Rank (k_rank × 256)) spanning the admissible interval [2, 4] with step resolution Δ = 1 and reference operating point k = 3; control parameter P_2 (Centered Binomial Noise Width (η_noise)) spanning the admissible interval [2, 3] with step resolution Δ = 1 and reference operating point η = 2. Across this parameter box, the cited formulations (Module-LWE b = A s + e (mod 3329) over R_q = ℤ_3329[X]/(X²⁵⁶ + 1)) frame the governing balance and its stated assumptions.
Crucially, well-posedness across the ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1) regime requires that the governing operator preserve dimensional homogeneity, non-negativity of physical energy/entropy functionals, and strict monotony along the primary reaction or proof coordinate. Whenever a simplified model omits one of the coupled terms in b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203), the resulting approximation violates boundary compatibility and diverges from the primary peer-reviewed evidence (Scite Smart Citation Index (fetched 2026-11-08): 0 retractions; 2,512 citing publications (0 supporting, 708 mentioning, 0 contrasting) for Regev, On lattices, learning with errors, random linear codes, and cryptography (Journal of the ACM, 2009), the paper behind the LWE problem used in ML-KEM.).
Rather than treating b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) as an opaque black-box formula, we decompose the proof and physical mechanism of Folio M.19 into four clear, verifiable stages. True scientific tools do not ask for blind trust; they invite inspection. Each stage represents a rigorous transformation of the state vector—corresponding one-to-one with the 4-stage interactive stepper in Act III:
Stage 1 Derivation & State Transition
Formal Stage Mechanism: Stage 1 (Shor's Quantum Period-Finding): Shor's 1994 algorithm would let a large fault-tolerant quantum computer (Folio P.11) find the period r of a^x mod N in time polynomial in log N, which would break RSA and elliptic-curve cryptography. No quantum computer able to do this for cryptographic key sizes has been reported.
Operator Coupling & Invariant Closure: At Stage 1 of the Folio M.19 derivation chain, the intermediate state maps directly onto the governing law b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) under benchmark regime ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 1 toward terminal convergence, the transition operator enforces the companion verification constraint: Configure Module-LWE over polynomial ring R_q = Z_q[X]/(X^256 + 1) with prime modulus q = 3329 and module rank k in {2, 3, 4} (ML-KEM-512/768/1024). Plate M.19-A and Plate M.19-B below pair this stage relation with the interactive controls and fixed reference figures.
Stage 2 Derivation & State Transition
Formal Stage Mechanism: Stage 2 (Module Learning With Errors, NIST FIPS 203 ML-KEM): The public key b = A s + e (mod q = 3329) over the ring R_q = ℤ_q[X]/(X²⁵⁶ + 1) hides the secret s behind small centered binomial noise e. Its security rests on the presumed hardness of module lattice problems; Regev (2009) showed that plain LWE is at least as hard, under a quantum reduction, as certain worst-case lattice problems.
Operator Coupling & Invariant Closure: At Stage 2 of the Folio M.19 derivation chain, the intermediate state maps directly onto the governing law b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) under benchmark regime ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 2 toward terminal convergence, the transition operator enforces the companion verification constraint: Take decapsulation failure rates from FIPS 203 Table 1 (2^-138.8, 2^-164.8 and 2^-174.8 for ML-KEM-512/768/1024) and noise widths from Table 2 (eta1 = 3, 2, 2; eta2 = 2) rather than deriving them from a rule of thumb. Plate M.19-A and Plate M.19-B below pair this stage relation with the interactive controls and fixed reference figures.
Stage 3 Derivation & State Transition
Formal Stage Mechanism: Stage 3 (Parameter Balance & Decapsulation Failure Bound): FIPS 203 sets n = 256 and prime modulus q = 3329 across three parameter sets (ML-KEM-512, -768, -1024) with module ranks k = 2, 3, 4 and noise widths η₁ = 3, 2, 2 and η₂ = 2. Larger rank expands the lattice dimension from 512 to 1,024, while bounded binomial noise keeps decapsulation failure probabilities at 2^−138.8, 2^−164.8, and 2^−174.8 (Table 1).
Operator Coupling & Invariant Closure: At Stage 3 of the Folio M.19 derivation chain, the intermediate state maps directly onto the governing law b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) under benchmark regime ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 3 toward terminal convergence, the transition operator enforces the companion verification constraint: State plainly that lattice hardness rests on decades of cryptanalysis rather than a mathematical impossibility proof, and distinguish formal hardness reductions from bug-free code implementations. Plate M.19-A and Plate M.19-B below pair this stage relation with the interactive controls and fixed reference figures.
Stage 4 Derivation & State Transition
Formal Stage Mechanism: Stage 4 (Implementation & Formal Verification Boundary): open-quantum-safe/liboqs is an open-source library of post-quantum algorithms. Hardness assumptions about lattices do not by themselves make an implementation bug-free; verifying cryptographic code is a separate engineering task (see Folio M.12 for reading machine-checked proofs).
Operator Coupling & Invariant Closure: At Stage 4 of the Folio M.19 derivation chain, the intermediate state maps directly onto the governing law b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) under benchmark regime ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1). To ensure that deductive or physical flux is conserved without unverified hand-waving as the system advances from Stage 4 toward terminal convergence, the transition operator enforces the companion verification constraint: Configure Module-LWE over polynomial ring R_q = Z_q[X]/(X^256 + 1) with prime modulus q = 3329 and module rank k in {2, 3, 4} (ML-KEM-512/768/1024). Plate M.19-A and Plate M.19-B below pair this stage relation with the interactive controls and fixed reference figures.
Folio M.19 states three rules a careful reader can use to test its claims. They are listed as plain text in mlkem-module-lwe-lattices-SKILL.md. No script in this repository executes them yet:
Invariant M.19-R1: Configure Module-LWE over polynomial ring R_q = Z_q[X]/(X^256 + 1) with prime modulus q = 3329 and module rank k in {2, 3, 4} (ML-KEM-512/768/1024).
Stated in the essay; primary anchor DOI 10.1145/1568318.1568324. Not yet recomputed by a script in this repository.
Invariant M.19-R2: Take decapsulation failure rates from FIPS 203 Table 1 (2^-138.8, 2^-164.8 and 2^-174.8 for ML-KEM-512/768/1024) and noise widths from Table 2 (eta1 = 3, 2, 2; eta2 = 2) rather than deriving them from a rule of thumb.
Stated in the essay; primary anchor DOI 10.1145/1568318.1568324. Not yet recomputed by a script in this repository.
Invariant M.19-R3: State plainly that lattice hardness rests on decades of cryptanalysis rather than a mathematical impossibility proof, and distinguish formal hardness reductions from bug-free code implementations.
Stated in the essay; primary anchor DOI 10.1145/1568318.1568324. Not yet recomputed by a script in this repository.
Together, Invariants M.19-R1 through M.19-R3 close the epistemic loop between symbolic derivation and numerical execution. These bounds are stated for the reader. No automated gate enforces them yet.
Primary Counterfactual Knockout (SIDENOTE M.19-A · CROSS-FIELD ANALOGY · A 768-DIMENSIONAL EGG CARTON IN THICK FOG): Why is ML-KEM thought to resist quantum computers? Picture an egg carton stretched across 768 dimensions: the secret is a grid point, the public key drops you near it in fog (+e), and finding the nearest valley without the secret is believed to be hard for classical and quantum computers alike. That belief rests on decades of cryptanalysis, not on a proof.
Secondary Coupling & Regime Boundary (SIDENOTE M.19-B · FROM REGEV LWE TO MODULE-LWE IN FIPS 203): Oded Regev (2009, DOI 10.1145/1568318.1568324[Scite ↗]) proved a worst-case to average-case quantum reduction for plain Learning With Errors (LWE). Standardizing practical internet key exchange required compact keys and fast number-theoretic transforms, so FIPS 203 uses Module-LWE over degree-256 cyclotomic polynomials modulo 3329. The algebraic ring structure cuts key size while preserving a structured lattice problem.
Mathematical & Physical Necessity of the Full Operator: Testing a theorem or physical law by knocking out its core hypothesis is one of the sharpest ways a human mind builds intuition. This counterfactual analysis shows why every coupling term in b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) is indispensable: At the degenerate boundary of the Act III parameter interval below, omitting that coupling term recovers the classical breakdown described in the cited literature rather than an interior balance.
Act III — Interactive Laboratory & Worked Numerical Verification
§ III.1 · Three Guided Experiments to Try
Experiment 1 (Module-LWE Lattice Rank k): Switch Lattice Rank k across k = 2 (ML-KEM-512, NIST category 1), k = 3 (ML-KEM-768, category 3), and k = 4 (ML-KEM-1024, category 5). The slider updates the rank label while the ML-KEM-768 readout quotes FIPS 203 Table 1.
Experiment 2 (Binomial Noise Width η): Toggle η between 2 and 3, the exact parameter values used by FIPS 203 (η₁ = 3 for ML-KEM-512 and 2 for ML-KEM-768 and -1024; η₂ = 2).
Experiment 3 (Cross-Checking Failure vs. Rank): Compare the 512-dimensional, 768-dimensional, and 1,024-dimensional operating regimes to see why FIPS 203 recommends ML-KEM-768 as the balanced default.
Plate M.19-A & M.19-B · Module-LWE b = A s + e (mod 3329) over R_q = ℤ_3329[X]/(X²⁵⁶ + 1)
Source Module: tools/folios/math/m19.py
Stage 1 (Shor's Quantum Period-Finding): Shor's 1994 algorithm would let a large fault-tolerant quantum computer (Folio P.11) find the period r of a^x mod N in time polynomial in log N, which would break RSA and elliptic-curve cryptography. No quantum computer able to do this for cryptographic key sizes has been reported.
§ III.2 · Worked Numerical Verification & Reference Telemetry Benchmark
To verify the interactive observatory above by hand or inside an independent computational notebook, we evaluate the governing law b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203) at the canonical benchmark configuration (ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1)). Substituting control parameter P_1 (Module-LWE Lattice Rank (k_rank × 256)) spanning the admissible interval [2, 4] with step resolution Δ = 1 and reference operating point k = 3; control parameter P_2 (Centered Binomial Noise Width (η_noise)) spanning the admissible interval [2, 3] with step resolution Δ = 1 and reference operating point η = 2 into the coupled Stage 1–4 equations yields the reference values stated in the essay: ML-KEM-768 Security (FIPS 203) lists NIST security category 3 (k = 3); Polynomial Ring Modulus (FIPS 203) lists q = 3329 over R_q = ℤ_q[X]/(X²⁵⁶ + 1); Noise Widths (FIPS 203, Table 2) lists η₁ = 3, 2, 2 (k = 2, 3, 4); η₂ = 2; ML-KEM-768 Decapsulation Failure lists 2^−164.8 (FIPS 203, Table 1).
Observable / Proof Metric
Reference Value
Where the value comes from
ML-KEM-768 Security (FIPS 203)
NIST security category 3 (k = 3)
Stated in the essay
Polynomial Ring Modulus (FIPS 203)
q = 3329 over R_q = ℤ_q[X]/(X²⁵⁶ + 1)
Stated in the essay
Noise Widths (FIPS 203, Table 2)
η₁ = 3, 2, 2 (k = 2, 3, 4); η₂ = 2
Stated in the essay
ML-KEM-768 Decapsulation Failure
2^−164.8 (FIPS 203, Table 1)
Stated in the essay
The values above are the essay's reference values. A script that recomputes them from the governing law is not yet part of this repository.
Act IV — Imagining Humanity's Future: Post-Quantum Privacy & Open Implementations
Open-source post-quantum libraries such as github.com/open-quantum-safe/liboqs bring NIST FIPS 203 (ML-KEM) into real TLS handshakes, SSH connections, and hardware security modules. Yet standardizing the underlying lattice mathematics is only half the bridge: constant-time implementations free of timing side channels and memory-safety bugs require disciplined engineering audits and machine-checked verification. For a hands-on guide to inspecting machine-checked proofs in Lean 4, see companion Folio M.12.
Looking ahead, one central open engineering challenge is connecting high-level Module-LWE security reductions directly to verified machine code in deployed libraries. Doing so pairs high-dimensional lattice geometry (related to sphere packing in Folio M.14) with formal proof checkers so both the mathematical specification and the constant-time C or Rust assembly carry auditable guarantees against implementation flaws.
Frontier discovery
Module-LWE Key Encapsulation & Open Post-Quantum Cryptography
§ IV.3 · Cross-Disciplinary Continuum & Systems Transfer
Structural & Mathematical Isomorphism (Extends M.03/M.14 · Egg carton in fog (analogy) ↔ post-quantum key exchange): One of the defining principles of Informatico.ai is that deep governing operators transcend disciplinary silos. The exact mathematical structure of Folio M.19 (b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203)) reappears across coupled multiscale systems: Volume VII Post-Quantum Lattice Monograph (extends M.03 & M.14): Module-LWE key encapsulation and FIPS 203 parameter bounds.
Living Edition & Revision Provenance (REV 1.0): REV 1.0 (Published 2026-12-01): Dedicated standalone Folio M.19 for NIST FIPS 203 (ML-KEM) post-quantum lattice key encapsulation and Module-LWE, separated from Folio M.12 (Reading a Machine-Checked Proof) so both topics stand cleanly on their own. All FIPS 203 parameters (Tables 1–2: q = 3329, n = 256, k in {2,3,4}, failure rates) and Regev 2009 DOI 10.1145/1568318.1568324[Scite ↗] preserved from the prior M.12 ML-KEM chapters. By pairing multi-chapter mathematical and physical derivations with interactive WebGL2/SVG observatories and downloadable SKILL.md companions, Folio M.19 equips engineers, mathematicians, physicists, and AI agents with a permanent, falsifiable building block for frontier discovery.
Act V — Sources
Regev, O. (2009). On lattices, learning with errors, random linear codes, and cryptography. Journal of the ACM, 56(6), 1–40. DOI 10.1145/1568318.1568324[Scite ↗].
National Institute of Standards and Technology (2024). Module-Lattice-Based Key-Encapsulation Mechanism Standard. FIPS 203. https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf.
Open Quantum Safe Project. liboqs: C library for prototyping and experimenting with quantum-resistant cryptography. GitHub: github.com/open-quantum-safe/liboqs.
Companion Folio M.12: Reading a Machine-Checked Proof for how formal proof assistants check mathematical arguments and where their guarantees stop.
Nicholson, J. M., et al. (2021). scite: A smart citation index that displays the context of citations and classifies their intent using deep learning (https://scite.ai). Quantitative Science Studies, 2(3), 882–898. DOI 10.1162/qss_a_00146[Scite ↗].
Inspired by classic broadsheet crosswords: test your command of M.19’s governing laws and historical turning points. Switch to ES-MX in the masthead to unlock a completely independent Spanish crossword with its own grid and scientific vocabulary.
EN · INDEPENDENT ENGLISH EDITION (10×10)
0 / 64 Folios Sealed (EN: 0 · ES-MX: 0)
1 ACROSSSelect any cell or clue below to begin solving.
Across
Down
Select any cell or clue and type A–Z. Space toggles Across/Down; progress auto-saves to localStorage.
Scite Smart Citation Index (fetched 2026-11-08): 0 retractions; 2,512 citing publications (0 supporting, 708 mentioning, 0 contrasting) for Regev, On lattices, learning with errors, random linear codes, and cryptography (Journal of the ACM, 2009), the paper behind the LWE problem used in ML-KEM.
Give any AI agent or engineering pipeline the governing equations of Folio M.19 as plain text: a portable SKILL.md, or the current panel state as JSON. Its reference values are stated in the essay and are not yet recomputed by a script in this repository.
Show the SKILL.md source
---
name: mlkem-module-lwe-lattices
description: AI-agnostic post-quantum cryptography skill for NIST FIPS 203 ML-KEM Module-LWE parameters, ring arithmetic, and failure bounds.
license: MIT
compatibility: Claude Code, GitHub Copilot, Cursor, Google Antigravity, OpenAI Codex, Ollama (Qwen 3.8 / Gemma 4)
---
# Post-Quantum Lattice Cryptography: NIST FIPS 203 (ML-KEM) and Module-LWE (Folio M.19)
A plain-text companion to the essay at https://informatico.ai/math/m19/ (`M.19 · NIST FIPS 203 ML-KEM & Module-LWE Lattices`, `REV 1.0`, redated `2026-12-01`).
## The governing relation
`b = A s + e (mod q) · q = 3329 · n = 256 · k ∈ {2, 3, 4} (NIST FIPS 203)`
## Rules the essay derives
1. Configure Module-LWE over polynomial ring R_q = Z_q[X]/(X^256 + 1) with prime modulus q = 3329 and module rank k in {2, 3, 4} (ML-KEM-512/768/1024).
2. Take decapsulation failure rates from FIPS 203 Table 1 (2^-138.8, 2^-164.8 and 2^-174.8 for ML-KEM-512/768/1024) and noise widths from Table 2 (eta1 = 3, 2, 2; eta2 = 2) rather than deriving them from a rule of thumb.
3. State plainly that lattice hardness rests on decades of cryptanalysis rather than a mathematical impossibility proof, and distinguish formal hardness reductions from bug-free code implementations.
## How it works, in four stages
- Stage 1 (Shor's Quantum Period-Finding): Shor's 1994 algorithm would let a large fault-tolerant quantum computer (Folio P.11) find the period r of a^x mod N in time polynomial in log N, which would break RSA and elliptic-curve cryptography. No quantum computer able to do this for cryptographic key sizes has been reported.
- Stage 2 (Module Learning With Errors, NIST FIPS 203 ML-KEM): The public key b = A s + e (mod q = 3329) over the ring R_q = ℤ_q[X]/(X²⁵⁶ + 1) hides the secret s behind small centered binomial noise e. Its security rests on the presumed hardness of module lattice problems; Regev (2009) showed that plain LWE is at least as hard, under a quantum reduction, as certain worst-case lattice problems.
- Stage 3 (Parameter Balance & Decapsulation Failure Bound): FIPS 203 sets n = 256 and prime modulus q = 3329 across three parameter sets (ML-KEM-512, -768, -1024) with module ranks k = 2, 3, 4 and noise widths η₁ = 3, 2, 2 and η₂ = 2. Larger rank expands the lattice dimension from 512 to 1,024, while bounded binomial noise keeps decapsulation failure probabilities at 2^−138.8, 2^−164.8, and 2^−174.8 (Table 1).
- Stage 4 (Implementation & Formal Verification Boundary): open-quantum-safe/liboqs is an open-source library of post-quantum algorithms. Hardness assumptions about lattices do not by themselves make an implementation bug-free; verifying cryptographic code is a separate engineering task (see Folio M.12 for reading machine-checked proofs).
## Reference values stated in the essay
- **ML-KEM-768 Security (FIPS 203)**: `NIST security category 3 (k = 3)`
- **Polynomial Ring Modulus (FIPS 203)**: `q = 3329 over R_q = ℤ_q[X]/(X²⁵⁶ + 1)`
- **Noise Widths (FIPS 203, Table 2)**: `η₁ = 3, 2, 2 (k = 2, 3, 4); η₂ = 2`
- **ML-KEM-768 Decapsulation Failure**: `2^−164.8 (FIPS 203, Table 1)`
## What is and is not checked
The reference values above are stated in the essay. No script in this repository recomputes them yet, so treat them as the essay's claims and check them against the primary source before relying on them.
## Primary source
- https://doi.org/10.1145/1568318.1568324 (Scite report: https://scite.ai/reports/10.1145/1568318.1568324)
- What the essay compares against: ML-KEM-768: k = 3 · q = 3329 · n = 256 · NIST security category 3 · decapsulation failure 2^−164.8 (FIPS 203, Table 1)
## Recent research context
- **Module-LWE Key Encapsulation & Open Post-Quantum Cryptography**: NIST FIPS 203 standardizes Module-LWE over R_q = ℤ_3329[X]/(X²⁵⁶ + 1) across ranks k ∈ {2, 3, 4}, grounded in Oded Regev’s quantum lattice reduction (DOI 10.1145/1568318.1568324) and implemented in open-source libraries such as https://github.com/open-quantum-safe/liboqs.
Edition history & reviewPublished 2026-12-01 · Updated 2026-12-01 (REV 1.0)
REV 1.0 (Published 2026-12-01): Dedicated standalone Folio M.19 for NIST FIPS 203 (ML-KEM) post-quantum lattice key encapsulation and Module-LWE, separated from Folio M.12 (Reading a Machine-Checked Proof) so both topics stand cleanly on their own.
All FIPS 203 parameters (Tables 1–2: q = 3329, n = 256, k in {2,3,4}, failure rates) and Regev 2009 DOI 10.1145/1568318.1568324 preserved from the prior M.12 ML-KEM chapters.