Shortest-vector problems #
The worst-case lattice problems behind lattice-based cryptography, stated for a ℤ-submodule L
of a real normed space with first minimum λ₁(L) (ZLattice.minimum) and successive minima
λ_k(L) (ZLattice.successiveMinimum), following [MG02], Chapter 1:
- search
SVP_γ: find a nonzerov ∈ Lwith‖v‖ ≤ γ · λ₁(L)(Cslib.Crypto.SVP.IsSolution); - the promise problem
GapSVP_γ: on input(L, d), accept whenλ₁(L) ≤ dand reject whenγ · d < λ₁(L)(Cslib.Crypto.GapSVP.IsCorrect); SIVP_γ: findn = rank Llinearly independent vectors ofL, each of norm at mostγ · λ_n(L)(Cslib.Crypto.SIVP.IsSolution, theφ(L) = λ_n(L)specialization ofCslib.Crypto.GIVP.IsSolution); the number of vectors is fixed byL, not chosen by the solver;- Hermite
HSVP_γinEuclideanSpace ℝ ι,n = |ι|: find a nonzerov ∈ Lwith‖v‖ ≤ γ · det(L)^{1/n}(Cslib.Crypto.HSVP.IsSolution).
These are predicates on a single lattice. They fix no encoding of lattices as inputs and no running-time bound, so they state what an algorithm must output, not that it is efficient.
On a discrete nonzero lattice in a proper space an exact solution of SVP_1 exists, and SVP_γ
has solutions only for γ ≥ 1. Comparing the norm of an SVP_γ solution with γ · d decides
GapSVP_γ on (L, d) (Cslib.Crypto.GapSVP.isCorrect_decideOfSVP), the standard reduction
from the decision problem to the search problem. The first vector of a 3/4-reduced family
b : Fin (n + 1) → E solves SVP_γ with γ = (√2)ⁿ on the integer span of b
(Cslib.Crypto.SVP.isSolution_of_isReduced), by Proposition (1.11) of [LLL82].
By Minkowski's bound λ₁(L) ≤ √n · det(L)^{1/n}, every SVP_γ solution in EuclideanSpace ℝ ι
solves HSVP_{γ√n} (Cslib.Crypto.SVP.IsSolution.hsvp).
Main definitions #
Cslib.Crypto.SVP.IsSolution: solutions of searchSVP_γ.Cslib.Crypto.GapSVP.IsYes,Cslib.Crypto.GapSVP.IsNo: the promise sets ofGapSVP_γ.Cslib.Crypto.GapSVP.IsCorrect: correct answers forGapSVP_γ.Cslib.Crypto.GapSVP.decideOfSVP: the decision rule of the reduction toSVP_γ.Cslib.Crypto.SIVP.IsSolution: solutions ofSIVP_γ.Cslib.Crypto.HSVP.IsSolution: solutions of HermiteHSVP_γ.
Main results #
Cslib.Crypto.SVP.exists_isSolution_one: an exact shortest vector exists.Cslib.Crypto.SVP.IsSolution.one_le,Cslib.Crypto.SIVP.IsSolution.one_le: approximation factors below1have no solutions.Cslib.Crypto.GapSVP.not_isYes_and_isNo: forγ ≥ 1the promise sets are disjoint.Cslib.Crypto.GapSVP.isCorrect_decideOfSVP:GapSVP_γreduces toSVP_γ.Cslib.Crypto.SVP.isSolution_of_isReduced: reduced bases solveSVP_{(√2)ⁿ}.Cslib.Crypto.SVP.IsSolution.hsvp:SVP_γsolutions solveHSVP_{γ√n}.
References #
v solves search SVP_γ on L: it is a nonzero vector of L with ‖v‖ ≤ γ · λ₁(L).
A YES instance (L, d) of GapSVP_γ: λ₁(L) ≤ d.
A NO instance (L, d) of GapSVP_γ: γ · d < λ₁(L).
The answer b is correct for GapSVP_γ on (L, d): it accepts YES instances and rejects
NO instances. Any answer is correct outside the promise.
The decision rule of the reduction from GapSVP_γ to SVP_γ: accept (L, d) when the
vector v returned for L has norm at most γ · d.
The reduction from GapSVP_γ to SVP_γ: for γ ≥ 0, comparing the norm of an SVP_γ
solution with γ · d answers GapSVP_γ correctly on (L, d).
A discrete nonzero lattice in a proper space has an exact SVP_1 solution.
On a discrete lattice, SVP_γ has solutions only for γ ≥ 1.
v solves SIVP_γ on L: the φ(L) = λ_n(L) (ZLattice.successiveMinimum L (finrank ℤ L))
specialization of GIVP.IsSolution, asking for n = rank L linearly independent vectors of L,
each of norm at most γ · λ_n(L).
Enlarging the approximation factor γ preserves SIVP_γ solutions.
On a full-rank discrete lattice of positive dimension n in a finite-dimensional space,
SIVP_γ has solutions only for γ ≥ 1.
The first vector of a 3/4-reduced family b : Fin (n + 1) → E with b₀ ≠ 0 solves
SVP_γ with γ = (√2)ⁿ on the integer span of b ([LLL82],
Proposition (1.11)).
v solves Hermite HSVP_γ on a lattice L in EuclideanSpace ℝ ι, n = |ι|: it is a
nonzero vector of L with ‖v‖ ≤ γ · det(L)^{1/n}. The predicate carries no full-rank or
discreteness assumption, and covolume L has its meaning as the lattice determinant only for
full-rank discrete lattices ([DiscreteTopology L] [IsZLattice ℝ L]), which is where the
predicate should be read.
By Minkowski's bound λ₁(L) ≤ √n · det(L)^{1/n}, an SVP_γ solution with γ ≥ 0 on a
full-rank lattice in EuclideanSpace ℝ ι, n = |ι| ≥ 1, solves HSVP_{γ√n}.