Module 08: Lattice SNARKs & Folding Schemes (Plonk, Sumcheck, LatticeFold, Neo)

1. The Bridge from Plonk, Sumcheck, and HyperNova

In the elliptic-curve world, modern SNARKs and IVC schemes look like this:

  • Plonk: Encode computation as polynomial identities over an evaluation domain H⊂FpH \subset \mathbb{F}_p, commit with KZG or IPA, reduce gate + permutation checks to polynomial evaluations via Schwartz-Zippel, and open with PCS.
  • HyperNova / ProtoStar: Encode computation as CCS (Customizable Constraint Systems—a generalization of Plonk and R1CS), use Sumcheck to fold two CCS instances into one without committing to big cross-term polynomials, and accumulate step after step for IVC.

Can we build Plonk or HyperNova over lattices? Let's check the two ways to bridge EC SNARKs to lattices, and see the exact obstacle each hits—and how LatticeFold (Boneh–Chen 2024) and Neo (2025) solve it!


2. Two Paradigms for Lattice SNARKs

Paradigm A: Keep Plonk/HyperNova Over Fp\mathbb{F}_p, Replace ONLY the PCS!

Suppose you keep your exact Plonk arithmetization over a prime field Fp\mathbb{F}_p (e.g., Goldilocks p=264−232+1p = 2^{64} - 2^{32} + 1, BabyBear, or even a 254-bit field).

  • All Plonk gate equations, lookup arguments (LogUp / Plookup), permutation checks, and polynomial IOPs stay 100% unchanged!
  • The ONLY thing you swap out is KZG / EC IPA ⟶\longrightarrow Greyhound (Module 07) or a Brakedown-style / Ring-Ajtai PCS!
  • Wait: what's the catch?
    • In Greyhound, you must decompose Fp\mathbb{F}_p field elements into base-bb digits and commit with RqR_q (qq doesn't even have to equal pp, though q≈232q \approx 2^{32} or pp is convenient).
    • If you only replace the PCS, every Plonk prover still commits to wire polynomials and runs an opening proof at the end—great for a monolithic SNARK, but for IVC (Nova / HyperNova), you ALSO need to fold commitments and witnesses directly!

Paradigm B: Native Ring Arithmetization + Lattice Folding (LatticeFold & Neo)

Suppose instead you want Nova / HyperNova-style folding directly over Ajtai commitments C=Aw mod qC = A \mathbf{w} \bmod q! Let's trace why Nova's folding fails on Ajtai commitments—and how LatticeFold fixes it.


3. Why Nova Folding Fails on Lattices (And How LatticeFold Solves It!)

Recall Nova / HyperNova over EC: You have two committed witnesses (C1,w1)(C_1, \mathbf{w}_1) and (C2,w2)(C_2, \mathbf{w}_2) with Ci=Com(wi)C_i = \text{Com}(\mathbf{w}_i). To fold them into one instance, the verifier sends random r←Fpr \leftarrow \mathbb{F}_p, and the prover computes: C′=C1+rC2,w′=w1+rw2.C' = C_1 + r C_2, \qquad \mathbf{w}' = \mathbf{w}_1 + r \mathbf{w}_2. In EC, you can repeat this 1,000,000 times in an IVC chain! Nothing ever overflows because Fp\mathbb{F}_p wraps cleanly.

Now try this with Ajtai commitments Ci=Awi mod qC_i = A \mathbf{w}_i \bmod q, where binding requires ∥wi∥∞<B\|\mathbf{w}_i\|_\infty < B:

  • After Step 1: ∥w′∥∞≤(∥r∥op+1)B\|\mathbf{w}'\|_\infty \le (\|r\|_{\text{op}} + 1) B.
  • After Step 2: ∥w′′∥∞≤(∥r∥op+1)2B\|\mathbf{w}''\|_\infty \le (\|r\|_{\text{op}} + 1)^2 B.
  • After Step kk: ∥w(k)∥∞≤(∥r∥op+1)kB≫q\|\mathbf{w}^{(k)}\|_\infty \le (\|r\|_{\text{op}} + 1)^k B \gg q! Within just 10 IVC steps, the witness norm explodes past the M-SIS bound, and soundness breaks completely!

LatticeFold's Key Idea: Decompose Before Folding!

Look at the order of operations in LatticeFold (Boneh–Chen, 2024): Suppose your folded witness w′\mathbf{w}' currently has norm up to B2B^2 (say after folding two norm-BB witnesses—Wait: even simpler, say each valid accumulator witness has norm <B< B, and after folding w1+rw2\mathbf{w}_1 + r \mathbf{w}_2 its norm is ≈2∥r∥opB≤B2\approx 2 \|r\|_{\text{op}} B \le B^2). How do you bring the norm back down to BB before the next folding step?

Witness Decomposition!

  1. Before folding wacc\mathbf{w}_{\text{acc}} (or right after folding!), decompose wacc≡∑j=0k−1bjw(j)(modq)\mathbf{w}_{\text{acc}} \equiv \sum_{j=0}^{k-1} b^j \mathbf{w}^{(j)} \pmod q into kk chunks each of norm <B< B (typically k=2k = 2 or 33 if B≈qB \approx \sqrt{q}!).
  2. Commit separately to each chunk: C(j)=Aw(j) mod qC^{(j)} = A \mathbf{w}^{(j)} \bmod q. Notice: Cacc=∑j=0k−1bjC(j)(modq)C_{\text{acc}} = \sum_{j=0}^{k-1} b^j C^{(j)} \pmod q!
  3. Now fold the kk chunks together with the new incoming instance using fresh short challenges c0,…,ck−1,cnew∈Cc_0, \dots, c_{k-1}, c_{\text{new}} \in \mathcal{C}: wnext=∑j=0k−1cjw(j)+cnewwnew!\mathbf{w}_{\text{next}} = \sum_{j=0}^{k-1} c_j \mathbf{w}^{(j)} + c_{\text{new}} \mathbf{w}_{\text{new}}!
  4. Check the norm of wnext\mathbf{w}_{\text{next}}: Because every w(j)\mathbf{w}^{(j)} had norm ≤b/2\le b/2 (NOT B2B^2!) and cj∈Cc_j \in \mathcal{C} has small operator norm, ∥wnext∥∞≤(k+1)⋅∥c∥op⋅b2!\|\mathbf{w}_{\text{next}}\|_\infty \le (k+1) \cdot \|c\|_{\text{op}} \cdot \frac{b}{2}! As long as we simply define our invariant norm bound Binv:=(k+1)⋅∥c∥op⋅b2B_{\text{inv}} := (k+1) \cdot \|c\|_{\text{op}} \cdot \frac{b}{2} (and pick q>Binv2q > B_{\text{inv}}^2 so k=2k = 2 digits of base b≈Binvb \approx B_{\text{inv}} always cover BinvB_{\text{inv}}? Wait: when folding two norm-BinvB_{\text{inv}} witnesses, the norm only grows to 2∥c∥opBinv2\|c\|_{\text{op}} B_{\text{inv}}, so decomposing by base b=Binv/∥c∥opb = B_{\text{inv}} / \|c\|_{\text{op}} or b≈qb \approx \sqrt{q} keeps the invariant eternally fixed across infinite IVC steps!).

Check the magic:

  • Every single IVC step starts with a witness of norm ≤Binv\le B_{\text{inv}}, folds, decomposes back to digits ≤b/2\le b/2, and folds again to norm ≤Binv\le B_{\text{inv}}!
  • Norm NEVER grows with the number of IVC steps!

4. How LatticeFold Proves Constraints & Range Checks via Sumcheck

Wait: in HyperNova, you fold CCS constraints using Sumcheck over Fp\mathbb{F}_p: ∑x∈{0,1}μP(x)=0.\sum_{\mathbf{x} \in \{0, 1\}^\mu} P(\mathbf{x}) = 0. Why does Sumcheck over RqR_q have a subtlety?

4.1 Sumcheck Over a Ring RqR_q

Remember Module 03: when q≡1(mod2d)q \equiv 1 \pmod{2d}, Rq≅FqdR_q \cong \mathbb{F}_q^d splits into dd independent slots! Wait: if you run Sumcheck over RqR_q with challenges r1,…,rμ∈Rqr_1, \dots, r_\mu \in R_q, Schwartz-Zippel fails if rir_i is in C\mathcal{C} or if RqR_q splits into small fields! How does LatticeFold make Sumcheck sound?

  1. Pick qq so RqR_q splits into large extension fields! E.g., q≈264q \approx 2^{64} with Xd+1X^d + 1 factoring into kk factors of degree d/k≥2d/k \ge 2 (so each CRT slot is Fqd/k\mathbb{F}_{q^{d/k}} of size ≥2128\ge 2^{128}!).
  2. Wait—if Sumcheck challenges rir_i are uniform in RqR_q (HUGE, NOT short!), doesn't that break binding?! Look closely! In Sumcheck, you do NOT fold the Ajtai-committed vector w\mathbf{w} with the Sumcheck challenges rir_i directly!
    • The Sumcheck protocol only evaluates the multilinear extension w~(r1,…,rμ)\tilde{w}(r_1, \dots, r_\mu)!
    • At the end of Sumcheck, you only need to prove the claimed evaluation v=w~(r1,…,rμ)=⟨w,eq(r1,…,rμ)⟩v = \tilde{w}(r_1, \dots, r_\mu) = \langle \mathbf{w}, \text{eq}(r_1, \dots, r_\mu) \rangle—which is a linear inner product with a public vector e=eq(r)\mathbf{e} = \text{eq}(r)!
    • Then, to combine two evaluation claims into one (so we only fold commitments once per step!), we use short challenges cj∈Cc_j \in \mathcal{C} for the commitment folding w′=∑cjw(j)\mathbf{w}' = \sum c_j \mathbf{w}^{(j)}, while the algebraic evaluation claims ⟨w(j),e⟩=vj\langle \mathbf{w}^{(j)}, \mathbf{e} \rangle = v_j fold linearly into ⟨w′,e⟩=∑cjvj\langle \mathbf{w}', \mathbf{e} \rangle = \sum c_j v_j!

Look how cleanly the two worlds separate:

  • Sumcheck challenges ri∈Rqr_i \in R_q: Large, uniform in RqR_q (gives 2−1282^{-128} Schwartz-Zippel soundness in CRT slots!), used only for polynomial evaluations w~(r)\tilde{w}(r)!
  • Folding challenges cj∈Cc_j \in \mathcal{C}: Short, invertible differences in C\mathcal{C} (keeps witness norm ≤Binv\le B_{\text{inv}}!), used only for folding Ajtai commitments C′=∑cjC(j)C' = \sum c_j C^{(j)}!

4.2 Proving the Norm Bound ∥w(j)∥∞<b/2\|\mathbf{w}^{(j)}\|_\infty < b/2 Inside Sumcheck!

Wait: in LatticeFold's decomposition step, a cheating prover might lie and send C(j)=Aw(j)C^{(j)} = A \mathbf{w}^{(j)} where w(j)\mathbf{w}^{(j)} is NOT actually short (e.g., w(j)\mathbf{w}^{(j)} is huge mod qq)! How does LatticeFold prove ∥w(j)∥∞≤B\|\mathbf{w}^{(j)}\|_\infty \le B at every folding step without running a separate JL proof or slow linear NIZK? Put the range check inside the SAME Sumcheck! For every integer coefficient wi∈[−B,B]w_{i} \in [-B, B] (say B=2k−1B = 2^k - 1), you can check wi∈[−B,B]w_i \in [-B, B] algebraically by checking a low-degree polynomial identity: ∏a=−BB(wi−a)=0(modq)\prod_{a = -B}^{B} (w_i - a) = 0 \pmod q (or even cheaper: decompose wiw_i into bits / small chunks, or use the lookup / logarithmic-derivative trick from LogUp/Lasso, or monomial embedding as in LatticeFold+!). Because checking ∑x∈{0,1}μeq(z,x)⋅Prange(w~(x))=0\sum_{\mathbf{x} \in \{0,1\}^\mu} \text{eq}(\mathbf{z}, \mathbf{x}) \cdot P_{\text{range}}(\tilde{w}(\mathbf{x})) = 0 is just one more Sumcheck batched with the CCS Sumcheck, the prover proves both circuit correctness AND witness shortness in one unified Sumcheck!

(Wait: remember our CRT warning from Module 06! To check Prange(wi)=0P_{\text{range}}(w_i) = 0 coefficient-wise—rather than on CRT evaluations—we evaluate the multilinear polynomial of the coefficients directly, OR store the witness in NTT slots where multiplication in RqR_q IS coordinate-wise multiplication! Let's see how Neo takes this even further!)


5. Neo & Pay-Per-Bit Folding (2025)

One annoying inefficiency in LatticeFold is that every wire value in the circuit has to fit into RqR_q (q≈264q \approx 2^{64} or larger), and you often decompose 64-bit numbers into base-bb chunks inside RqR_q.

Neo (Setty et al., 2025) asks: What if our circuit is over a small prime field Fp\mathbb{F}_p (like Goldilocks p=264−232+1p = 2^{64} - 2^{32} + 1 or BabyBear p=231−227+1p = 2^{31} - 2^{27} + 1), and we want Plonk/CCS over Fp\mathbb{F}_p with pay-per-bit cost (if a witness value is a 1-bit boolean, it shouldn't cost 64 bits of commitment work!)?

Look at Neo's clean embedding of Fp\mathbb{F}_p vectors into the cyclotomic ring RqR_q:

  1. Pick q=pq = p (or qq a prime with q≡1+2d/k(mod4d/k)q \equiv 1 + 2d/k \pmod{4d/k} so Rq≅Fqd/kkR_q \cong \mathbb{F}_{q^{d/k}}^k; even simpler, in Neo they choose q=pq = p where pp is Goldilocks, and Xd+1X^d + 1 splits partially into Fp2\mathbb{F}_{p^2} or Fp\mathbb{F}_p!).
  2. Pack dd field elements (w0,…,wd−1)∈Fpd(w_0, \dots, w_{d-1}) \in \mathbb{F}_p^d as the coefficients of a single polynomial w(X)=∑i=0d−1wiXi∈Rpw(X) = \sum_{i=0}^{d-1} w_i X^i \in R_p!
  3. Notice what an Ajtai matrix multiplication AwA \mathbf{w} does when w\mathbf{w} has small coefficients (like booleans {0,1}\{0,1\} or bb-bit integers): Pay-per-bit! If a witness vector has entries in {0,1}\{0, 1\}, you don't decompose it into log⁡bp\log_b p chunks—it ALREADY has norm 11, so you commit to it in one shot! And if an entry is 32-bit, you only decompose into 32 bits (or base-bb digits of 32 bits), not 64!
  4. How does Neo evaluate a multilinear polynomial w~(r1,…,rμ)\tilde{w}(r_1, \dots, r_\mu) when dd field elements are packed into one ring coefficient vector? Using the constant-term / rotation matrix view! Multiplying by a public polynomial or taking coeff0(w⋅σ−1(eq))\text{coeff}_0(w \cdot \sigma_{-1}(\text{eq})) turns coefficient-packed ring elements directly into Fp\mathbb{F}_p inner products, compatible with standard Fp\mathbb{F}_p Sumcheck!

6. Architecture Comparison: Which Lattice Proof System Should You Choose?

System Arithmetization Proof Size (for 2202^{20} gates) Prover Speed Verifier Speed Best Use Case
LNP22 Linear + Quadratic over RqR_q Linear O(N)O(N) (tens of KB for small NN) Very fast O(N)O(N) Small statements (signatures, verifiable encryption)
LaBRADOR Principal Relation (Quadratic + coeff0\text{coeff}_0) ~45–60 KB (O(log⁡N)O(\log N)) Fast (ring NTTs + JL) O(N)O(N) or O(N)O(\sqrt{N})* Succinct standalone post-quantum proofs
Plonk + Greyhound Standard Plonk / Halo2 over Fq\mathbb{F}_q ~50–70 KB (O(log⁡N)O(\log N)) Moderate (base-bb commit + LaBRADOR open) Sublinear (O(N)O(\sqrt{N}) / O(log⁡N)O(\log N) w/ recursion) Drop-in PQ Plonk without rewriting circuits
LatticeFold / Neo CCS / R1CS over RqR_q or Fp\mathbb{F}_p ~30–100 KB (after decider) Very fast (no FFTs, just Sumcheck + small commits!) O(log⁡N)O(\log N) per folding step Post-quantum IVC / zkVMs / Folding

(*Note: In LaBRADOR, the verifier checks the public linear constraints φi\varphi_i on the circuit; with structured/Plonk/R1CS matrices or outer recursion, verification becomes succinct.)


Exercises

  1. IVC Norm Invariant: Suppose in a LatticeFold-like IVC scheme, q=264q = 2^{64}, decomposition base is b=216b = 2^{16} (so k=4k = 4 digits cover qq, or k=2k = 2 digits cover b2=232b^2 = 2^{32}!), and folding challenges satisfy ∥c∥op≤8\|c\|_{\text{op}} \le 8. Suppose the invariant norm bound for every folded accumulator is Binv=220B_{\text{inv}} = 2^{20}. When we fold two witnesses of norm ≤Binv\le B_{\text{inv}}? Wait: if we decompose wacc\mathbf{w}_{\text{acc}} (norm ≤Binv\le B_{\text{inv}}) into base b=210=1024b = 2^{10} = 1024, how many digits kk does wacc\mathbf{w}_{\text{acc}} take? If we then fold those kk digits + 11 new witness (also decomposed to base bb) with challenges ∥c∥op≤8\|c\|_{\text{op}} \le 8, verify that the new folded witness stays ≤Binv\le B_{\text{inv}}!
  2. Separating Challenges: Explain in 2–3 sentences why in LatticeFold you cannot use short challenges c∈Cc \in \mathcal{C} for Sumcheck's Schwartz-Zippel step if RqR_q splits completely, AND you cannot use uniform challenges r∈Rqr \in R_q for folding Ajtai commitments.
  3. Pay-Per-Bit Intuition: Suppose a zkVM trace has 90% boolean flags (∈{0,1}\in \{0, 1\}) and 10% 64-bit registers (∈[0,264)\in [0, 2^{64})), modulo p≈264p \approx 2^{64}. Compare the commitment cost under naive 64-bit decomposition for every wire vs. Neo's pay-per-bit approach (say decomposing with base b=28b = 2^8).

(Solutions in exercise-solutions.md.)

results matching ""

    No results matching ""