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 G\mathbb{G} of prime order pp gives you exact, noise-free algebra: every nonzero scalar has a short inverse, aG+bG=(a+b)GaG + bG = (a+b)G never "overflows", and folding vectors with random scalars r∈Fpr \in \mathbb{F}_p 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 Rn\mathbb{R}^n and short solutions to linear equations modulo qq. 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:

  1. The Bridge: How this concept maps to (or breaks!) what you already know from EC/Plonk/IPA.
  2. The Math: Exact definitions, proofs or proof sketches, and concrete small examples.
  3. Why It Matters for Proof Systems: How this piece fits into a real ZKP/SNARK.
  4. 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 G\mathbb{G}, scalar field Fp\mathbb{F}_p Cyclotomic ring R=Z[X]/(Xd+1)R = \mathbb{Z}[X]/(X^d+1) and quotient Rq=R/qRR_q = R/qR
Hardness assumption DLog / AGM / Pairing assumptions SIS / M-SIS (binding) and LWE / M-LWE (hiding)
Vector Commitment Pedersen: C=∑xiGi+rHC = \sum x_i G_i + r H Ajtai (C=Ax mod qC = A\mathbf{x} \bmod q) & BDLOP (C=(Ar,Br+m)C = (A\mathbf{r}, B\mathbf{r} + \mathbf{m}))
Binding condition Exact: x≠x′  ⟹  \mathbf{x} \neq \mathbf{x}' \implies break DLog Norm-bounded: Only binding for short vectors ∥x∥≤β\|\mathbf{x}\| \le \beta
Challenge space Uniform over Fp\mathbb{F}_p (size ≈2256\approx 2^{256}) Short sparse polynomials C⊂R\mathcal{C} \subset R (e.g., {−1,0,1}\{-1,0,1\} with bounded weight)
Schnorr / Sigma response z=r+c⋅s mod pz = r + c \cdot s \bmod p (uniformly hides ss) z=y+c⋅sz = y + c \cdot s over RR (leaks ss! Needs Rejection Sampling)
Special soundness Extract exact s=(z1−z2)(c1−c2)−1 mod ps = (z_1 - z_2)(c_1 - c_2)^{-1} \bmod p Soundness with slack: Extract sˉ\bar{s} with ∥sˉ∥≤β′≫β\|\bar{s}\| \le \beta' \gg \beta, or (c1−c2)s(c_1-c_2)s
Batching / Domain eval Roots of unity in Fp\mathbb{F}_p, FFT Roots of Xd+1 mod qX^d+1 \bmod q, NTT / CRT slots (Rq≅∏FqkR_q \cong \prod \mathbb{F}_{q^k})
Inner product argument Halve & fold: x′=xL+uxR\mathbf{x}' = \mathbf{x}_L + u \mathbf{x}_R (log⁡N\log N rounds) Halving blows up norm by (∥u∥+1)k(\|u\|+1)^k! Fixed via Gadget Decomposition
Range / Norm check Bit decomposition + Plonk/Bulletproofs Bit decomposition, JL Projection (ℓ2\ell_2), or Sumcheck over RqR_q
Post-quantum security Broken by Shor's algorithm Believed quantum-resistant

Syllabus

Part 0: Algebra Prerequisites

  1. 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 Z[X]/(Xd+1)\mathbb{Z}[X]/(X^d+1).

Part I: Lattice Foundations

  1. Module 01: Lattice Foundations & Geometry of Numbers
    • Definition of a lattice L(B)\mathcal{L}(B), unimodular basis changes (GLn(Z)GL_n(\mathbb{Z})), determinant, Minkowski's first theorem, λ1(L)\lambda_1(\mathcal{L}), dual lattice L∗\mathcal{L}^*, Gram-Schmidt orthogonalization, Babai's nearest plane, and LLL reduction (good vs. bad bases).
    • Companion Lab (Rust + Arkworks): lab01_lll_and_babai.rs
  2. 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.
  3. Module 03: Algebraic Lattices — Cyclotomic Rings, Modules, and NTT
    • Why Z\mathbb{Z}-lattices are too big; moving to R=Z[X]/(Xd+1)R = \mathbb{Z}[X]/(X^d+1) and RqR_q; canonical vs. coefficient embeddings; norm expansion factors; Module-SIS and Module-LWE; CRT splitting & Negacyclic NTT; Galois automorphisms σi\sigma_i.
    • Companion Lab (Rust + Arkworks): lab02_ajtai_and_ntt.rs

Part II: Commitments & Zero-Knowledge Building Blocks

  1. 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.
  2. 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 C\mathcal{C}.
    • Companion Lab (Rust + Arkworks): lab03_rejection_sampling.rs
  3. 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 ℓ∞\ell_\infty range checks via binary decomposition; approximate ℓ2\ell_2 bounds via Johnson-Lindenstrauss (JL) projections.

Part III: Succinctness, Folding, and Full Proof Systems

  1. Module 07: From EC IPA to Lattice Bulletproofs, LaBRADOR, and Greyhound
    • Why EC IPA fails over rings; gadget matrices GG and base-bb decomposition G−1G^{-1}; 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
  2. Module 08: Lattice SNARKs & Folding Schemes (Plonk, Sumcheck, LatticeFold, Neo)
    • Bridging Plonk & HyperNova to lattices: arithmetization over prime fields vs. rings (q=pq = p vs. CRT splitting); why Nova's W1+rW2W_1 + r W_2 explodes in norm; LatticeFold's witness decomposition + sumcheck over RqR_q; Neo's pay-per-bit small-field embedding.
  3. 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 (d,q,n,m,β,σd, q, n, m, \beta, \sigma, root Hermite factor δ0\delta_0); 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 lab01 and lab02. 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.

results matching ""

    No results matching ""