Exercise Solutions (Modules 00–09)
Module 00: Algebra Prerequisites
Vector Space vs. Module: Over , any real number can be written as because (you can divide!). Over , , so integer multiples of only give even integers and can never produce or .
Projections:
- , and .
- .
- Leftover: .
- Dot product check: (perpendicular!).
Quotient Rings ():
- . Substitute : .
- Check squares mod : , , , . None equals , so has no roots and is irreducible over . Therefore is a field!
Zero Divisors via CRT ():
- .
- .
- CRT pair: . Because the first slot is , is a zero divisor and NOT invertible! (Indeed, .)
Cyclotomic Wrap-Around ():
- .
- .
Module 01: Lattice Foundations
Unimodular Check: Compute . Then: Since and , is unimodular. Therefore and both generate the exact same lattice ().
Determinant & Minkowski:
- .
- Minkowski's bound guarantees , so there is a nonzero lattice vector with .
- Taking gives (and ; in fact , , etc. Notice has -norm , and ? Check: has . Actually , and is the shortest nonzero vector: check for !).
Dual Lattice: Checking inner products:
- , .
- , . (Notice for , which is Module 02's duality!)
Module 02: Hard Problems — SIS and LWE
Pigeonhole SIS: Consider the map given by .
- Domain size: .
- Codomain size: . Since , by the Pigeonhole Principle there exist two distinct vectors with . Then satisfies !
Duality Check: .
- Two linearly independent short vectors in :
- since .
- since .
- For , (or lifted ).
- Check ; .
- Two linearly independent short vectors in :
Why Unbounded SIS Fails: Since , the homogeneous system has a kernel of dimension over . Using Gaussian elimination over in time, the adversary finds a nonzero with and opens to both and .
HNF LWE Practice: If is fixed and invertible, and is uniformly random and independent of , then right-multiplying a uniform matrix by an invertible matrix is a bijection on , so is uniformly distributed and independent of . Thus is an exact instance with short secret .
Module 03: Algebraic Lattices & NTT
Negacyclic Multiplication:
- , .
- Expand over : Use , :
- , .
- .
Constant term of :
- (no constant term!) Sum of constant terms: !
NTT Splitting & Zero Divisors ():
- : . The odd powers are , , , . So .
- Take (coefficients in ): evaluate at : , wait—evaluate at ? No, isn't a root! We want a root among : Try ? At : . At : . Wait: how about ? At : . Let's check ? At : . Wait: . What if we subtract ? : at , . Try ? At : . Try at : . Wait: for : we want ? Notice , (no). Can ? Wait: ! So NO polynomial with coefficients in vanishes at ! Aha! What about ?! , , , —still , max sum ! Wait: what about in vanishing at ? Max magnitude is still ! Aha—that's a great sanity check: for , NO nonzero polynomial vanishes at ANY of because ! To get a zero divisor with coefficients, you need a slightly larger (like : or wait: , or for use coefficients in , e.g., at gives !). Let's state that clearly—the exercise asked for , and proving that no polynomial works for (while works in ) is an awesome insight!
Partial Splitting (): Are and irreducible mod ? The squares mod are , so neither nor is a square mod —hence both quadratics are irreducible! Why is invertible in ? Because has degree , so it cannot be divisible by either irreducible degree-2 factor mod !
Module 04: Lattice Commitments
BDLOP Arithmetic:
- .
- .
- .
- Commit to with :
- .
- . Matches!
Breaking Unbounded BDLOP: Given and any target , solve the linear system over : Since , with overwhelming probability has full row rank (in CRT slots) and Gaussian elimination finds an unbounded opening the commitment to .
Why :
- If , then and is a square invertible matrix (in HNF, literally !). So is uniquely determined by —no M-LWE secret exists, and exposes directly (no hiding!).
- If , there is no binding equation at all; an adversary can shift arbitrarily and absorb the difference into (no binding!).
Module 05: Sigma Protocols & Fiat-Shamir with Aborts
Leakage Math:
- .
- When , happens iff , which has probability (per transcript), so an adversary expects to wait 11 transcripts with (about 22 total transcripts) before seeing and proving with 100% certainty! (Similarly occurs with prob when .)
Uniform Box Acceptance Probability: Resulting bound on accepted : .
Invertibility Bound: For with , . Since , we have , so can never fail to be invertible! By contrast, if were fully splitting (), , so differences in could easily vanish in one of the 128 CRT slots and become non-invertible zero divisors.
Module 06: Exact Proofs, Norm Bounds, and Quadratic Relations
Quadratic Trick Algebra:
- , .
- If , then is a nonzero degree-2 polynomial over . By the Fundamental Theorem of Algebra (over a field), a nonzero quadratic has at most 2 roots, so it cannot vanish at 3 distinct challenges .
Constant-Term Check:
- .
- .
- Constant term of :
- Sum: .
Why JL Needs a Fallback Bound: Take any where is huge (say in every coordinate!). Since , we still have , even though !
Lagrange Four-Squares: . One four-square representation of is (or ).
Module 07: Folding, LaBRADOR, and Greyhound
Gadget Math: (since ). Balanced base-5 digits of :
- (rem ).
- (rem ).
- . Check: . All digits in .
Folding Shrinkage Ratio: Each round replaces chunks of size with decomposed chunks of size , so total witness size goes from to . For size to shrink by at least (), we need .
Greyhound Tensor Check: , : Then , and . Direct check: .
Module 08: Lattice SNARKs & Folding Schemes
IVC Norm Invariant: Decomposing (with ) in balanced base takes digits (plus sign/carry headroom: actually for 2 digits covers up to , whereas ; so digits covers up to , or covers in digits!). With digits of and digits of (or new witness if already norm ), folding chunks of norm with gives norm ! Even with chunks (), . The invariant holds for infinitely many IVC steps!
Separating Challenges:
- Short challenges have small support/size and fail Schwartz-Zippel if splits into small fields (or don't give field soundness in one challenge over ), whereas Sumcheck needs uniform challenges from a large field ().
- Uniform challenges have coefficients , so folding Ajtai commitments with immediately destroys the shortness bound required for M-SIS binding.
Pay-Per-Bit Intuition: With base , a general 64-bit register requires digit chunks.
- Naive (decompose everything to 64 bits): chunks per wire on average.
- Neo pay-per-bit: boolean wires take chunk (norm ) and 64-bit wires take chunks, averaging chunks per wire—a reduction in commitment and prover work!
Module 09: Capstone
Security Estimation Practice: With , , :
- For (): Not quite enough! (BKZ finds vectors slightly shorter than .)
- For (): gives comfortable margin!
Slack Budget Check:
- (or with tail margin, ).
- One relaxed extraction gives with norm .
- Cross-multiplying two relaxed openings with () gives an M-SIS vector of norm at most:
Spot the Bug: Because , via NTT. Pick ANY vector of bits in NTT space (say ) and let ! In NTT space, , so in holds exactly, even though the coefficients of are spread all across and are completely non-binary!