Module 07: From EC IPA to Lattice Bulletproofs, LaBRADOR, and Greyhound
1. The Bridge from EC IPA (Bulletproofs)
You already know IPA (Inner Product Argument) inside out! Let's recall the 10-second summary of EC IPA:
Given a Pedersen commitment P=⟨a,G⟩+⟨b,H⟩+⟨a,b⟩Q∈G where a,b∈FpN:
Split a=(aL,aR), G=(GL,GR), etc.
Send cross-terms L,R∈G.
Verifier picks random u←Fp×.
Prover folds the witness in half:
a′=uaL+u−1aR(modp),b′=u−1bL+ubR(modp),
and folds generators: G′=u−1GL+uGR.
Repeat log2N times until N=1! Total proof size: 2log2N group elements.
2. Why Naive EC IPA Catastrophically Fails in Lattices
Try running the exact same split-and-fold algorithm with an Ajtai commitment C=Axmodq (A∈Rqκ×N, ∥x∥2≤β)!
Failure 1: No Short Inverses (u−1 is huge!)
Even if u∈C is a short invertible challenge, u−1modq is huge (uniform in [−q/2,q/2)d).
Okay, fine—use u and 1 instead of u and u−1:
x′=xL+u⋅xR,A′=uAL+AR(modq).(Check: A′x′=uALxL+ARxR+u2ALxR+ARxL, so sending L=ARxL and R=ALxR gives uC+L+u2R=A′x′!)
Failure 2: Exponential Norm Blowup!
Look at the norm of x′ after 1 round:
∥x′∥2≤∥xL∥2+∥u∥op∥xR∥2≈(∥u∥op+1)∥x∥2.
After k=log2N rounds (say N=220⟹k=20), the final scalar x∗ has norm:
∥x∗∥2≈(∥u∥op+1)20⋅β!
Wait—even if ∥u∥op is tiny (say ∥u∥op=4, or 10 in R), 520≈246, and during extraction (rewinding k levels of a binary tree of transcripts!) each level multiplies the extracted norm by another factor of ≈2∥u∥op! Across 20 rounds, the extracted SIS vector has norm >(factor)20≫q, destroying M-SIS binding unless q is astronomically large (q≈2200+)!
Early lattice bulletproof papers (like Bootle–Lyubashevsky–Seiler 2019, Attema–Cramer–Kohl 2021) actually paid this exponential blowup or stopped after k=2–4 rounds, which meant either huge q or O(N1/3) proofs.
How did modern schemes (LaBRADOR 2023, Greyhound 2024, LatticeFold 2024) break the exponential barrier and get O(logN) or sublinear proofs with a tiny modulus q≈232–264?
One superpower tool: Gadget Decomposition!
3. The Superpower: Gadget Matrices G and Decomposition G−1
This trick originally came from Fully Homomorphic Encryption (GSW / bootstrapping) and is now the beating heart of succinct lattice proofs.
3.1 Base-b Gadget Decomposition
Fix a small integer base b≥2 (say b=4, b=16, or b=256) and let t=⌈logbq⌉.
Any integer x∈[−q/2,q/2) (and hence any polynomial in Rq) can be written uniquely in balanced base-b as:
x≡j=0∑t−1bj⋅x(j)(modq),where ∥x(j)∥∞≤2b!
In matrix notation, define the gadget vectorgT=(1,b,b2,…,bt−1)∈Rq1×t, and for a vector of m elements, the gadget matrix:
G=Im⊗gT=⎝⎛gT⋱gT⎠⎞∈Rqm×mt.
Look at the "inverse" operation G−1:Rqm→Rmt (which is NOT a linear map—it's digit decomposition!):
Given ANY vector v∈Rqm (even with huge coefficients near q/2!):
v~=G−1(v)∈Rmtsatisfies:G⋅v~≡v(modq)AND∥v~∥∞≤2b!
PAUSE AND STARE AT WHAT G−1 JUST DID:
Gadget decomposition takes a vector v whose norm blew up near q, and replaces it with t tiny vectors v~ of norm ≤b/2—RESETTING the norm back to O(b)!
Let's see how this immediately kills exponential norm blowup in folding!
3.2 Folding + Decomposition (The Core Trick)
Suppose after folding r vectors x1,…,xr with challenges c1,…,cr, you get a folded vector whose norm grew:
z=i=1∑rcixi(norm grew by r⋅∥c∥op).
Instead of keeping z as a single vector of growing norm and folding again:
Decompose z into t small slices: z≡∑j=0t−1bjz(j)(modq), where each ∥z(j)∥∞≤b/2.
Notice: t slices of length n′ is just t new short vectors, or if you split one long vector of length N into r chunks of length N/r and fold with challenges c1,…,cr, you go from length N to length t⋅(N/r)!
As long as r>t (for example, fold r=16 chunks when t=4, shrinking dimension by 4× per round!), the witness both shrinks in length AND resets its norm to ≤b/2 every single round!
Let's verify that!
Suppose log2q=32 and base b=256 (8 bits per digit), so t=4 slices!
Split a witness of N elements into r=16 chunks of size N/16.
Fold the 16 chunks with random short challenges c1,…,c16 into one chunk z of size N/16.
Apply G−1(z) to split z into t=4short chunks of size N/16 (total size 4⋅N/16=N/4)!
Net effect after 1 round: Witness length shrank by 4×, and witness norm stayed constant (≤b/2)! No exponential blowup!
(Run cargo run --bin lab04_gadget_folding inside labs/ to watch naive IPA explode past q while gadget-decomposed folding stays tiny over arbitrary rounds!)
4. LaBRADOR (Beullens & Seiler, CRYPTO 2023)
LaBRADOR ("Lattice-Based Recursive Arguments of Knowledge") is currently the gold standard for compact, post-quantum, transparent lattice proofs (~40–60 KB for millions of R1CS constraints!).
Let's understand LaBRADOR's architecture cleanly—you already know every single ingredient!
4.1 The Principal Relation
LaBRADOR proves knowledge of r short vectors s1,…,sr∈Rn (with total ℓ2-norm ∑i=1r∥si∥22≤β2) satisfying:
Quadratic constraints (dot products over Rq):
i,j=1∑rai,j(k)⟨si,sj⟩+i=1∑r⟨φi(k),si⟩+b(k)≡0(modq),
Constant-term constraints (using Module 06's coeff0 trick, so we can handle integer inner products ⟨si,σ−1(sj)⟩ and exact Zq constraints!).
(Think of (s1,…,sr) as a r×n matrix of witnesses, where r≈N or r shrinks recursively!)
4.2 One Round of LaBRADOR Folding (How r Vectors Collapse to 1!)
Instead of sending s1,…,sr (size r⋅n), how does LaBRADOR fold them into a single vector z of size n?
Commit to each witness si using an Ajtai commitment ti=Asimodq (i=1,…,r).
Wait: sending r commitments t1,…,tr would itself be O(r)!
LaBRADOR's key trick ("Commit to the Commitments"!): Don't send t1,…,tr in the clear! Take an outer Ajtai commitmentu1=B⋅G−1(t1,…,tr)! Wait—the prover will prove they know the short decomposed vector G−1(t1,…,tr)in the next recursive round!
Prover computes masked projection p=∑i=1rΠisi (wait: in LaBRADOR's non-ZK core or ZK variant, p is sent and checked ∥p∥2≤Bp; to get ZK, mask p or add a blinding vector s0!).
Checking p=∑Πisi is just 256 extra linear inner-product constraints on si!
Fold the r vectors into ONE vector z:
Verifier sends short challenges c1,…,cr←C.
Prover computes the folded vector:
z=i=1∑rcisi∈Rn.
Notice: if the prover simply sent z in the clear right now, proof size would be O(n) (so choosing r=n=N already gives O(N)!).
To go from O(N) to O(logN): Wait—what does the verifier actually need to check about z and the outer commitment?
Az≡∑i=1rciti(modq).
For the quadratic constraints, the prover commits to the cross-terms gi,j=⟨si,sj⟩ (which is r×r scalars—small if r is small, AND also committed inside an outer Ajtai commitment u2=C⋅G−1(gi,j)!) and verifies that ⟨z,z⟩≡∑i,jcicjgi,j(modq)!
Look at what the remaining claim is: the prover now holds a new, much smaller witness consisting of:
z (length n),
G−1(t1,…,tr) (the decomposed commitments!),
G−1(gi,j) (the decomposed cross-terms!),
ALL of which are short and satisfy linear + quadratic constraints (the exact same Principal Relation!)!
Recurse! Reshape that new smaller witness into r′ vectors of length n′, commit to them, and fold again! After O(loglogN) or O(logN) rounds, the final witness is tiny (≈ a few hundred elements) and sent in the clear!
Result: A proof size of ~40–60 KB even for millions of constraints, using tiny modulus q≈232!
5. Greyhound: A Lattice Polynomial Commitment Scheme (PCS) for Plonk!
Wait: in Plonk, you don't necessarily want to rewrite your whole arithmetization as LaBRADOR's Principal Relation. What if you just want a drop-in post-quantum replacement for KZG or EC IPA—a Polynomial Commitment Scheme (PCS) that commits to f(X)∈Fq[X] of degree <N and opens f(z)=y?
That is Greyhound (Nguyen–Seiler, CRYPTO 2024)!
5.1 How Greyhound Works (Tensor / Square-Root Matrix View)
Suppose f(X)=∑k=0N−1fkXk∈Zq[X] (or Rq[X]), with N=m⋅n (think m=n=N).
Arrange the N coefficients into an m×n matrix F∈Zqm×n (or base-b decomposed into small digits so F is short, ∥F∥∞≤b/2!).
Evaluating f(z)=y is simply a bilinear vector-matrix-vector product:
f(z)=l(z)T⋅F⋅r(z)(modq),
where:
r(z)=(1,z,z2,…,zn−1)T,
l(z)=(1,zn,z2n,…,z(m−1)n)T!
(Check: (Fr(z))i=∑j=0n−1Fi,jzj, and dotting with l(z) multiplies row i by zin, giving ∑i,jFi,jzin+j=f(z)!)
Now watch Greyhound commit and open:
Commit (Offline):
Base-b decompose F so every column fj is short.
Compute an Ajtai commitment to each column: tj=Afj∈Rqκ (j=0,…,n−1).
Compress all n commitments into one single short commitmentC=B⋅G−1(t0,…,tn−1)∈Rqκ!
(Look at that: commitment size is O(1)—just κ ring elements, ~2 KB, independent of N!)
Open f(z)=y:
Prover computes the row-compressed vector wT=l(z)TF∈Zqn (wait: l(z)TF isn't short! So decompose w into base-b: w=Gw~!) AND the intermediate column commitments tj!
Wait: wTr(z)=y is easy to check, and to prove wT=l(z)TF and C=BG−1(t0,…,tn−1)without sending F or all n commitments tj:
Prover commits to w~ in D=Aoutw~, and runs LaBRADOR on the short witness (F,G−1(t0,…,tn−1),w~) to prove:
AF=[t0,…,tn−1],BG−1(t)=C,l(z)TF=Gw~!
Because LaBRADOR proves this in O(logN) size, Greyhound gives an O(1) commitment (~2 KB) and an O(logN) evaluation proof (~50 KB) for polynomials of degree up to 224+, with fast verification (O(N) or sublinear with structured z)!
6. Summary: The Norm-Reset Paradigm
Every succinct lattice proof system follows the same two-step rhythm:
Fold linearly with short challenges ci∈C to reduce witness size (r→1, or N→N/r).
Decompose via G−1 to break the resulting vector into short base-b digits before the next round, resetting the norm to b/2!
Exercises
Gadget Math: Let q=101 and base b=5. What is t=⌈log5101⌉? Write x=37 in balanced base-5 (digits in {−2,−1,0,1,2}) and verify ∑j=0t−15jx(j)≡37(mod101).
Folding Shrinkage Ratio: Suppose q≈248 and we decompose with base b=212=4096 (t=4 slices). If one round of folding takes r chunks and combines them into 1 chunk before applying G−1, what is the minimumr needed so the total witness size decreases by at least a factor of 2 per round?
Greyhound Tensor Check: Let N=4, m=n=2, and f(X)=3+2X+5X2+X3. Write out the 2×2 matrix F and the vectors l(z),r(z), and verify l(2)TFr(2)=f(2).
Hands-on Lab (Rust + Arkworks): Run cargo run --bin lab04_gadget_folding inside labs/ (lab04_gadget_folding.rs) to compare naive IPA folding (norm explodes exponentially) vs. gadget-decomposed folding over Arkworks FBabyBear!