Module 02: Hard Problems — SVP, CVP, SIS, and LWE

1. The Bridge from Elliptic Curves

In EC-based proof systems (Plonk, IPA), almost everything rests on one problem—Discrete Logarithm (plus algebraic/pairing variants like qq-SDH for KZG):

  • Given G,H∈GG, H \in \mathbb{G}, find x∈Fpx \in \mathbb{F}_p such that H=xGH = xG.
  • Equivalently, for a Pedersen commitment C=∑i=1mxiGiC = \sum_{i=1}^m x_i G_i, finding two distinct openings x≠x′\mathbf{x} \neq \mathbf{x}' gives a nontrivial relation ∑(xi−xi′)Gi=0\sum (x_i - x_i') G_i = 0 (break DLog).

In lattice cryptography, two twin average-case problems do the heavy lifting:

  • SIS (Short Integer Solution): Gives collision-resistant hashing and binding commitments (the lattice analogue of Pedersen binding).
  • LWE (Learning With Errors): Gives pseudorandomness, encryption, and hiding commitments (the lattice analogue of DDH / ElGamal masking).

Remarkably, both SIS and LWE are provably as hard on average (for random matrices!) as worst-case geometric lattice problems like GapSVPγ\text{GapSVP}_\gamma and SIVPγ\text{SIVP}_\gamma. Let's see how.


2. Worst-Case Geometric Problems

Let γ=γ(n)≥1\gamma = \gamma(n) \ge 1 be an approximation factor (in crypto, usually polynomial in nn, e.g., γ=O~(n)\gamma = \tilde{O}(n) or n2n^2).

  1. SVPγ\text{SVP}_\gamma (Approximate Shortest Vector Problem): Given a basis BB of an nn-dimensional lattice L\mathcal{L}, find a nonzero v∈L∖{0}\mathbf{v} \in \mathcal{L} \setminus \{\mathbf{0}\} with ∥v∥2≤γ⋅λ1(L)\|\mathbf{v}\|_2 \le \gamma \cdot \lambda_1(\mathcal{L}).

  2. GapSVPγ\text{GapSVP}_\gamma (Decision SVP): Given a basis BB and a threshold d>0d > 0, decide whether λ1(L)≤d\lambda_1(\mathcal{L}) \le d (YES) or λ1(L)>γ⋅d\lambda_1(\mathcal{L}) > \gamma \cdot d (NO), promised one holds.

  3. SIVPγ\text{SIVP}_\gamma (Shortest Independent Vectors Problem): Given a basis BB, find nn linearly independent lattice vectors v1,…,vn∈L\mathbf{v}_1, \dots, \mathbf{v}_n \in \mathcal{L} all of norm ≤γ⋅λn(L)\le \gamma \cdot \lambda_n(\mathcal{L}).

  4. CVPγ\text{CVP}_\gamma / BDDα\text{BDD}_\alpha (Closest Vector / Bounded Distance Decoding): Given BB and target t∈Rn\mathbf{t} \in \mathbb{R}^n, find v∈L\mathbf{v} \in \mathcal{L} close to t\mathbf{t}. In Bounded Distance Decoding (BDDα\text{BDD}_\alpha), we are promised that dist(t,L)≤α⋅λ1(L)\text{dist}(\mathbf{t}, \mathcal{L}) \le \alpha \cdot \lambda_1(\mathcal{L}) (for α<1/2\alpha < 1/2, the closest vector is unique!).

Complexity note: Exact SVP (γ=1\gamma = 1) is NP-hard under randomized reductions; for γ=poly(n)\gamma = \text{poly}(n), GapSVPγ\text{GapSVP}_\gamma and SIVPγ\text{SIVP}_\gamma are not known to be NP-hard (in fact GapSVPn∈NP∩coNP\text{GapSVP}_{\sqrt{n}} \in \text{NP} \cap \text{coNP}), yet the fastest known classical and quantum algorithms still take 2Ω(n)2^{\Omega(n)} time!


3. qq-ary Lattices: Where Algebra Meets Geometry

Every lattice in real-world proof systems is a qq-ary lattice—an integer lattice defined by modular arithmetic modulo an integer qq.

Given a matrix A∈Zqn×mA \in \mathbb{Z}_q^{n \times m} (usually m>nm > n, e.g., m≈2nlog⁡qm \approx 2 n \log q):

3.1 The Kernel Lattice Λq⊥(A)\Lambda_q^\perp(A) (SIS Lattice)

Λq⊥(A)={x∈Zm:Ax≡0(modq)}.\Lambda_q^\perp(A) = \{ \mathbf{x} \in \mathbb{Z}^m : A\mathbf{x} \equiv \mathbf{0} \pmod q \}. Let's check that this is indeed a full-rank lattice in Rm\mathbb{R}^m:

  • It is closed under addition and integer scaling (so it's a discrete subgroup of Zm\mathbb{Z}^m).
  • It contains qZmq\mathbb{Z}^m (since A(qei)≡0(modq)A(q\mathbf{e}_i) \equiv \mathbf{0} \pmod q), so it has full rank mm!
  • What is its determinant? If AA has rank nn mod qq, then the map x↦Ax mod q\mathbf{x} \mapsto A\mathbf{x} \bmod q is a surjective homomorphism Zm→Zqn\mathbb{Z}^m \to \mathbb{Z}_q^n with kernel Λq⊥(A)\Lambda_q^\perp(A). By the First Isomorphism Theorem from your algebra course: Zm/Λq⊥(A)≅Zqn  ⟹  det⁡(Λq⊥(A))=∣Zm/Λq⊥(A)∣=qn!\mathbb{Z}^m / \Lambda_q^\perp(A) \cong \mathbb{Z}_q^n \implies \det(\Lambda_q^\perp(A)) = |\mathbb{Z}^m / \Lambda_q^\perp(A)| = q^n!

Let's apply Minkowski's Theorem to Λq⊥(A)\Lambda_q^\perp(A): λ1(∞)(Λq⊥(A))≤det⁡(Λq⊥(A))1/m=qn/m,λ1(Λq⊥(A))≲m2πe⋅qn/m.\lambda_1^{(\infty)}(\Lambda_q^\perp(A)) \le \det(\Lambda_q^\perp(A))^{1/m} = q^{n/m}, \qquad \lambda_1(\Lambda_q^\perp(A)) \lesssim \sqrt{\frac{m}{2\pi e}} \cdot q^{n/m}. Look at that exponent n/mn/m! If m=2nm = 2n, then qn/m=qq^{n/m} = \sqrt{q}. If m>nlog⁡2qm > n \log_2 q, then qn/m<2q^{n/m} < 2, so a nonzero {0,1}\{0, 1\}-vector or {−1,0,1}\{-1, 0, 1\}-vector is guaranteed to exist in Λq⊥(A)\Lambda_q^\perp(A) by pigeonhole!

3.2 The Image Lattice Λq(A)\Lambda_q(A) (LWE Lattice)

Λq(A)={y∈Zm:∃s∈Zqn such that y≡ATs(modq)}.\Lambda_q(A) = \{ \mathbf{y} \in \mathbb{Z}^m : \exists \mathbf{s} \in \mathbb{Z}_q^n \text{ such that } \mathbf{y} \equiv A^T \mathbf{s} \pmod q \}. Wait—look at the inner product of any x∈Λq⊥(A)\mathbf{x} \in \Lambda_q^\perp(A) and y=ATs+qk∈Λq(A)\mathbf{y} = A^T \mathbf{s} + q\mathbf{k} \in \Lambda_q(A): ⟨x,y⟩=xT(ATs+qk)=(Ax)Ts+q⟨x,k⟩≡0(modq).\langle \mathbf{x}, \mathbf{y} \rangle = \mathbf{x}^T (A^T \mathbf{s} + q\mathbf{k}) = (A\mathbf{x})^T \mathbf{s} + q \langle \mathbf{x}, \mathbf{k} \rangle \equiv 0 \pmod q. Therefore, after scaling by 1/q1/q, these two lattices are exact duals of each other! (Λq⊥(A))∗=1qΛq(A),det⁡(Λq(A))=qm−n.\left(\Lambda_q^\perp(A)\right)^* = \frac{1}{q} \Lambda_q(A), \qquad \det(\Lambda_q(A)) = q^{m-n}.

Remember this duality! Every theorem about SIS in Λq⊥(A)\Lambda_q^\perp(A) has a mirror image about LWE in Λq(A)\Lambda_q(A).


4. SIS: Short Integer Solution

4.1 Definition (SISn,m,q,β\text{SIS}_{n, m, q, \beta})

Given a uniformly random matrix A←Zqn×mA \leftarrow \mathbb{Z}_q^{n \times m}, find a nonzero integer vector x∈Zm∖{0}\mathbf{x} \in \mathbb{Z}^m \setminus \{\mathbf{0}\} such that:

  1. Ax≡0(modq)A\mathbf{x} \equiv \mathbf{0} \pmod q, and
  2. ∥x∥2≤β\|\mathbf{x}\|_2 \le \beta (or ∥x∥∞≤β\|\mathbf{x}\|_\infty \le \beta).

Wait: why do we need condition (2) (∥x∥≤β\|\mathbf{x}\| \le \beta)? Because without a norm bound, solving Ax≡0(modq)A\mathbf{x} \equiv \mathbf{0} \pmod q is just Gaussian elimination over Zq\mathbb{Z}_q—trivial in O(m3)O(m^3) time! Adding the shortness constraint ∥x∥≤β\|\mathbf{x}\| \le \beta turns trivial linear algebra into SVP\text{SVP} in the qq-ary lattice Λq⊥(A)\Lambda_q^\perp(A).

For SIS to be non-trivial (i.e., a solution actually exists), we need β\beta to be at least Minkowski's bound mqn/m\sqrt{m} q^{n/m} (or e.g., m≥nlog⁡2qm \ge n \log_2 q with β≥m\beta \ge \sqrt{m}). At the same time, we need β≪q\beta \ll q, otherwise a trivial solution like (q,0,…,0)T(q, 0, \dots, 0)^T works!

4.2 Why SIS Immediately Gives a Collision-Resistant Hash / Vector Commitment

Define the function fA:{0,1}m→Zqnf_A : \{0, 1\}^m \to \mathbb{Z}_q^n (or on short vectors ∥x∥≤B\|\mathbf{x}\| \le B) by: fA(x)=Ax mod q.f_A(\mathbf{x}) = A\mathbf{x} \bmod q. Suppose an adversary finds a collision x≠x′\mathbf{x} \neq \mathbf{x}' (both with ∥x∥2,∥x′∥2≤B\|\mathbf{x}\|_2, \|\mathbf{x}'\|_2 \le B) such that Ax≡Ax′(modq)A\mathbf{x} \equiv A\mathbf{x}' \pmod q. Then z=x−x′≠0\mathbf{z} = \mathbf{x} - \mathbf{x}' \neq \mathbf{0} satisfies: Az≡0(modq)and∥z∥2≤∥x∥2+∥x′∥2≤2B.A\mathbf{z} \equiv \mathbf{0} \pmod q \quad \text{and} \quad \|\mathbf{z}\|_2 \le \|\mathbf{x}\|_2 + \|\mathbf{x}'\|_2 \le 2B. So finding a collision in fAf_A solves SISn,m,q,2B\text{SIS}_{n, m, q, 2B}!

Pause and compare with IPA / Pedersen commitments:

  • In IPA, C=∑i=1mxiGiC = \sum_{i=1}^m x_i G_i is binding for any x∈Fpm\mathbf{x} \in \mathbb{F}_p^m.
  • In lattices, C=Ax mod qC = A\mathbf{x} \bmod q is ONLY binding for short vectors ∥x∥≤B\|\mathbf{x}\| \le B. If you allow an adversary to open CC with an unbounded vector x′∈Zqm\mathbf{x}' \in \mathbb{Z}_q^m, they can easily solve Ax′=C mod qA\mathbf{x}' = C \bmod q using Gaussian elimination!
  • This single fact drives almost the entire architecture of lattice proof systems: Every time a prover opens a commitment or folds a witness, they must prove (directly or indirectly) that their vectors remain short!

4.3 Worst-Case to Average-Case Hardness (Ajtai 1996)

In 1996, Miklós Ajtai proved a landmark theorem: solving SISn,m,q,β\text{SIS}_{n, m, q, \beta} for a random matrix AA is at least as hard as solving SIVPγ\text{SIVP}_\gamma (and GapSVPγ\text{GapSVP}_\gamma) on every nn-dimensional lattice (worst-case!), for γ=O~(βn)\gamma = \tilde{O}(\beta \sqrt{n}) (assuming q≥β⋅poly(n)q \ge \beta \cdot \text{poly}(n)). No comparable worst-case-to-average-case reduction is known for RSA or Elliptic Curves!


5. LWE: Learning With Errors

5.1 Definition (LWEn,m,q,χ\text{LWE}_{n, m, q, \chi})

Let nn be the dimension, mm the number of samples, qq the modulus, and χ\chi an error distribution over Z\mathbb{Z} concentrated on small values (e.g., discrete Gaussian of width σ\sigma, or uniform on {−η,…,η}\{-\eta, \dots, \eta\} with η≪q\eta \ll q).

Sample a secret s←Zqn\mathbf{s} \leftarrow \mathbb{Z}_q^n uniformly, a public matrix A←Zqm×nA \leftarrow \mathbb{Z}_q^{m \times n} uniformly, and a short error vector e←χm\mathbf{e} \leftarrow \chi^m. Output the pair: (A,  b=As+e mod q).(A, \; \mathbf{b} = A\mathbf{s} + \mathbf{e} \bmod q).

There are two flavors of LWE:

  • Search-LWE: Given (A,b)(A, \mathbf{b}), recover s\mathbf{s}.
  • Decision-LWE: Distinguish (A,As+e mod q)(A, A\mathbf{s} + \mathbf{e} \bmod q) from (A,u)(A, \mathbf{u}) where u←Zqm\mathbf{u} \leftarrow \mathbb{Z}_q^m is uniformly random.

Notice again: if e=0\mathbf{e} = \mathbf{0}, Gaussian elimination solves As=b mod qA\mathbf{s} = \mathbf{b} \bmod q instantly! Adding tiny noise e\mathbf{e} destroys Gaussian elimination (linear combinations of noisy equations amplify the noise until it wraps around  mod q\bmod q and destroys all signal).

Geometrically, look at b=As+e(modq)\mathbf{b} = A\mathbf{s} + \mathbf{e} \pmod q: The vector As(modq)A\mathbf{s} \pmod q is a point in the qq-ary image lattice Λq(AT)\Lambda_q(A^T), and e\mathbf{e} is a short perturbation of norm ∥e∥≪λ1(Λq(AT))\|\mathbf{e}\| \ll \lambda_1(\Lambda_q(A^T)). So Search-LWE is literally BDD\text{BDD} (Bounded Distance Decoding) on the random qq-ary lattice Λq(AT)\Lambda_q(A^T)!

5.2 Hermite Normal Form (HNF) LWE: Short Secrets

In proof systems (like BDLOP in Module 04), we almost always sample short secrets s←χn\mathbf{s} \leftarrow \chi^n rather than uniform s←Zqn\mathbf{s} \leftarrow \mathbb{Z}_q^n! Why is that still secure?

Lemma (Applebaum–Cash–Peikert–Sahai): Decision-LWE with s←χn\mathbf{s} \leftarrow \chi^n is as hard as standard Decision-LWE with uniform s←Zqn\mathbf{s} \leftarrow \mathbb{Z}_q^n (at the cost of nn extra samples).

Proof (clean 4-line linear algebra!): Given m+nm + n standard LWE samples (A1,b1=A1sunif+e1)(A_1, \mathbf{b}_1 = A_1 \mathbf{s}_{\text{unif}} + \mathbf{e}_1) (with A1∈Zqn×nA_1 \in \mathbb{Z}_q^{n \times n}) and (A2,b2=A2sunif+e2)(A_2, \mathbf{b}_2 = A_2 \mathbf{s}_{\text{unif}} + \mathbf{e}_2) (with A2∈Zqm×nA_2 \in \mathbb{Z}_q^{m \times n}): With high probability (or after column swaps), A1A_1 is invertible mod qq. Eliminate sunif\mathbf{s}_{\text{unif}}: sunif=A1−1(b1−e1)(modq).\mathbf{s}_{\text{unif}} = A_1^{-1}(\mathbf{b}_1 - \mathbf{e}_1) \pmod q. Substitute into the second block: b2−A2A1−1b1≡(−A2A1−1)e1+e2(modq)!\mathbf{b}_2 - A_2 A_1^{-1} \mathbf{b}_1 \equiv (-A_2 A_1^{-1}) \mathbf{e}_1 + \mathbf{e}_2 \pmod q! Define A′=−A2A1−1 mod qA' = -A_2 A_1^{-1} \bmod q (uniformly random!) and s′=e1←χn\mathbf{s}' = \mathbf{e}_1 \leftarrow \chi^n (short!). If b1,b2\mathbf{b}_1, \mathbf{b}_2 were uniform, so is b2−A2A1−1b1\mathbf{b}_2 - A_2 A_1^{-1}\mathbf{b}_1. Thus short-secret LWE is just standard LWE in Hermite Normal Form [In∣A′T][I_n \mid A'^T]! ■\blacksquare

This HNF trick is why in Module 04 you will see commitments of the form: t=A′r+eor[IA′]r(modq)\mathbf{t} = A'\mathbf{r} + \mathbf{e} \quad \text{or} \quad \begin{bmatrix} I & A' \end{bmatrix} \mathbf{r} \pmod q where the entire randomness vector r\mathbf{r} is short, and yet t\mathbf{t} is computationally indistinguishable from uniform in Zqm\mathbb{Z}_q^m!

5.3 Regev's Reduction & Search-to-Decision

Regev (2005) proved that Search-LWE (even for quantum algorithms!) is at least as hard as quantum worst-case GapSVPγ\text{GapSVP}_\gamma and SIVPγ\text{SIVP}_\gamma for γ=O~(nq/σ)\gamma = \tilde{O}(n q / \sigma) (and Peikert 2009 gave a classical reduction for GapSVP\text{GapSVP} when q≥2n/2q \ge 2^{n/2}). And for prime q=poly(n)q = \text{poly}(n), Search-LWE and Decision-LWE are polynomial-time equivalent.


6. Side-by-Side Summary: SIS vs. LWE

Property SIS (SISn,m,q,β\text{SIS}_{n, m, q, \beta}) LWE (LWEn,m,q,χ\text{LWE}_{n, m, q, \chi})
Equation Find short x≠0\mathbf{x} \neq \mathbf{0}: Ax≡0(modq)A\mathbf{x} \equiv \mathbf{0} \pmod q Distinguish (A,As+e)(A, A\mathbf{s} + \mathbf{e}) from (A,u)(A, \mathbf{u})
Dimensions (AA) A∈Zqn×mA \in \mathbb{Z}_q^{n \times m} (m>nm > n, fat matrix) A∈Zqm×nA \in \mathbb{Z}_q^{m \times n} (m>nm > n, tall matrix)
Underlying lattice Λq⊥(A)\Lambda_q^\perp(A) (det⁡=qn\det = q^n) Λq(AT)\Lambda_q(A^T) (det⁡=qm−n\det = q^{m-n}), dual to Λq⊥\Lambda_q^\perp
Lattice problem Approximate SVP in Λq⊥(A)\Lambda_q^\perp(A) BDD in Λq(AT)\Lambda_q(A^T)
Role in proofs Collision resistance / Binding Pseudorandomness / Hiding
Hardness condition β≪q\beta \ll q (typically q>βnq > \beta \sqrt{n}, m>nlog⁡qm > n \log q) Error σ\sigma not too tiny (σ≥2n\sigma \ge 2\sqrt{n} in worst-case reductions; in practice η=1\eta = 1 or 22 works for Module-LWE!)

Exercises

  1. Pigeonhole SIS: Suppose n=4n = 4, q=17q = 17, and m=20m = 20. Show that by the Pigeonhole Principle, there must exist a nonzero vector x∈{−1,0,1}20\mathbf{x} \in \{-1, 0, 1\}^{20} such that Ax≡0(mod17)A\mathbf{x} \equiv \mathbf{0} \pmod{17} for every matrix A∈Z174×20A \in \mathbb{Z}_{17}^{4 \times 20}. (Hint: count how many vectors are in {0,1}20\{0, 1\}^{20} versus ∣Z174∣|\mathbb{Z}_{17}^4|.)
  2. Duality Check: Let A=(125)∈Z71×3A = \begin{pmatrix} 1 & 2 & 5 \end{pmatrix} \in \mathbb{Z}_{7}^{1 \times 3}.
    • Find two linearly independent short vectors in Λ7⊥(A)\Lambda_7^\perp(A).
    • Write down a vector y∈Λ7(AT)\mathbf{y} \in \Lambda_7(A^T) (say for s=3s = 3) and verify ⟨x,y⟩≡0(mod7)\langle \mathbf{x}, \mathbf{y} \rangle \equiv 0 \pmod 7 for your vectors in Λ7⊥(A)\Lambda_7^\perp(A).
  3. Why Unbounded SIS Fails: Suppose someone proposes a commitment C=Ax mod qC = A\mathbf{x} \bmod q with A∈Zqn×mA \in \mathbb{Z}_q^{n \times m}, m=2nm = 2n, and lets the prover open with any x∈Zqm\mathbf{x} \in \mathbb{Z}_q^m (no norm check). Describe how a cheating prover can open C=0C = \mathbf{0} to a nonzero x′\mathbf{x}' in polynomial time.
  4. HNF LWE Practice: Re-read Section 5.2. If A1∈Zqn×nA_1 \in \mathbb{Z}_q^{n \times n} is invertible, check carefully why the resulting noise (−A2A1−1)e1+e2(-A_2 A_1^{-1})\mathbf{e}_1 + \mathbf{e}_2 matches a standard LWE instance with secret e1\mathbf{e}_1, public matrix −A2A1−1-A_2 A_1^{-1}, and error e2\mathbf{e}_2. Why is −A2A1−1 mod q-A_2 A_1^{-1} \bmod q uniformly distributed when A2A_2 is uniform and independent of A1A_1?

(Solutions in exercise-solutions.md.)

results matching ""

    No results matching ""