Lattices & Lattice-Based Proof Systems: A Self-Contained Course
Target audience: You have university-level linear & abstract algebra (groups, rings, fields, vector spaces, quotients, CRT) and deep familiarity with elliptic-curve cryptography—specifically Plonk (arithmetization, polynomial IOPs, KZG/PCS, Schwartz-Zippel, Fiat-Shamir) and IPA (Bulletproofs-style folding, Pedersen vector commitments). You want to go from zero lattice background to understanding how to design and analyze a full lattice-based proof system.
How to Read This Course
In elliptic-curve cryptography, the underlying group of prime order gives you exact, noise-free algebra: every nonzero scalar has a short inverse, never "overflows", and folding vectors with random scalars can be repeated indefinitely.
In lattice-based cryptography, there is no prime-order group with a hard discrete log. Instead, security rests on the geometry of discrete subgroups of and short solutions to linear equations modulo . Every single difference between Plonk/IPA and a lattice proof system—rejection sampling, soundness slack, gadget decomposition, Johnson-Lindenstrauss projections, cyclotomic automorphisms—exists to manage one central enemy: norm growth.
Each module follows the same rhythm:
- The Bridge: How this concept maps to (or breaks!) what you already know from EC/Plonk/IPA.
- The Math: Exact definitions, proofs or proof sketches, and concrete small examples.
- Why It Matters for Proof Systems: How this piece fits into a real ZKP/SNARK.
- Exercises: Pen-and-paper checks (worked answers in exercise-solutions.md).
The Rosetta Stone: EC (Plonk / IPA) vs. Lattices
| Concept | EC / Discrete-Log World (Plonk, IPA) | Lattice World (BDLOP, LNP22, LaBRADOR, LatticeFold) |
|---|---|---|
| Base algebraic object | Prime-order group , scalar field | Cyclotomic ring and quotient |
| Hardness assumption | DLog / AGM / Pairing assumptions | SIS / M-SIS (binding) and LWE / M-LWE (hiding) |
| Vector Commitment | Pedersen: | Ajtai () & BDLOP () |
| Binding condition | Exact: break DLog | Norm-bounded: Only binding for short vectors |
| Challenge space | Uniform over (size ) | Short sparse polynomials (e.g., with bounded weight) |
| Schnorr / Sigma response | (uniformly hides ) | over (leaks ! Needs Rejection Sampling) |
| Special soundness | Extract exact | Soundness with slack: Extract with , or |
| Batching / Domain eval | Roots of unity in , FFT | Roots of , NTT / CRT slots () |
| Inner product argument | Halve & fold: ( rounds) | Halving blows up norm by ! Fixed via Gadget Decomposition |
| Range / Norm check | Bit decomposition + Plonk/Bulletproofs | Bit decomposition, JL Projection (), or Sumcheck over |
| Post-quantum security | Broken by Shor's algorithm | Believed quantum-resistant |
Syllabus
Part 0: Algebra Prerequisites
- Module 00: Algebra Prerequisites
- Vector spaces (bases, projections, determinant as volume), modules vs. vector spaces, kernels/images, polynomial & quotient rings, the Chinese Remainder Theorem (CRT), and cyclotomic rings .
Part I: Lattice Foundations
- Module 01: Lattice Foundations & Geometry of Numbers
- Definition of a lattice , unimodular basis changes (), determinant, Minkowski's first theorem, , dual lattice , Gram-Schmidt orthogonalization, Babai's nearest plane, and LLL reduction (good vs. bad bases).
- Companion Lab (Rust + Arkworks): lab01_lll_and_babai.rs
- Module 02: Hard Problems — SVP, CVP, SIS, and LWE
- Approximate SVP/SIVP/GapSVP, SIS (collision resistance & vector commitment), LWE (noisy linear systems & pseudorandomness), Hermite Normal Form, and SIS–LWE duality.
- Module 03: Algebraic Lattices — Cyclotomic Rings, Modules, and NTT
- Why -lattices are too big; moving to and ; canonical vs. coefficient embeddings; norm expansion factors; Module-SIS and Module-LWE; CRT splitting & Negacyclic NTT; Galois automorphisms .
- Companion Lab (Rust + Arkworks): lab02_ajtai_and_ntt.rs
Part II: Commitments & Zero-Knowledge Building Blocks
- Module 04: Lattice Commitments — Ajtai and BDLOP
- Ajtai commitments as lattice Pedersen commitments; why binding fails without a norm bound; achieving hiding (LHL vs. M-LWE); the BDLOP commitment scheme; algebraic homomorphism and opening slack.
- Module 05: Sigma Protocols & Fiat-Shamir with Aborts
- Why naive Schnorr leaks the witness; Lyubashevsky's Rejection Sampling (uniform box vs. discrete Gaussian); computing acceptance rates; relaxed soundness & slack; designing invertible-difference challenge sets .
- Companion Lab (Rust + Arkworks): lab03_rejection_sampling.rs
- Module 06: Exact Proofs, Norm Bounds, and Quadratic Relations (LNP22)
- Closing the slack gap: exact openings; proving linear and quadratic relations in BDLOP ("garbage polynomials"); the constant-term / automorphism trick for inner products; exact range checks via binary decomposition; approximate bounds via Johnson-Lindenstrauss (JL) projections.
Part III: Succinctness, Folding, and Full Proof Systems
- Module 07: From EC IPA to Lattice Bulletproofs, LaBRADOR, and Greyhound
- Why EC IPA fails over rings; gadget matrices and base- decomposition ; how LaBRADOR folds constraints recursively to achieve ~50 KB post-quantum proofs; how Greyhound builds a lattice Polynomial Commitment Scheme (PCS) using square-matrix tensor folding.
- Companion Lab (Rust + Arkworks): lab04_gadget_folding.rs
- Module 08: Lattice SNARKs & Folding Schemes (Plonk, Sumcheck, LatticeFold, Neo)
- Bridging Plonk & HyperNova to lattices: arithmetization over prime fields vs. rings ( vs. CRT splitting); why Nova's explodes in norm; LatticeFold's witness decomposition + sumcheck over ; Neo's pay-per-bit small-field embedding.
- Module 09: Capstone — Designing a Full Lattice Proof System
- End-to-end blueprint combining arithmetization, PCS/commitment, inner-product/quadratic checking, norm verification, and Fiat-Shamir with aborts; concrete parameter selection (, root Hermite factor ); common security pitfalls.
Suggested Study Pace
- Weeks 1–2 (Modules 00–03): Refresh vector spaces, quotient rings, and cyclotomic rings in Module 00, then build geometric and NTT intuition in Modules 01–03. Run
lab01andlab02. Make sure coefficient vs. NTT representations and norm bounds feel natural. - Week 3 (Modules 04–06): Master BDLOP, rejection sampling, slack, automorphisms, and JL norm proofs. Run
lab03. At this point you can build a complete linear-sized lattice NIZK (like LNP22). - Weeks 4–5 (Modules 07–09): Tackle succinctness and folding: gadget decomposition, LaBRADOR, Greyhound PCS, and LatticeFold. Run
lab04. Read Module 09 to see every parameter and trade-off unified in one complete system.