The LLL Algorithm For Lattices: Gebraic Number Theory, Springer, 1993
The LLL Algorithm For Lattices: Gebraic Number Theory, Springer, 1993
References
Q : Zn → R
is a positive definite quadratic form, i.e. Q(x) =
x>Ax where the real n × n matrix A is sym-
metric positive definite. We call A a Gram
matrix of L.
L = Z b1 + Z b2 + · · · + Z bn
with the quadratic form Q(x) = hx, xi for x ∈
L. (Note: n ≤ m.) The vectors b1, b2, . . . , bn
are a basis for L, and A = [hbi, bj i]1≤i,j≤n is
the corresponding Gram matrix.
The determinant of L is
q
d(L) = det(A)
where A is a Gram matrix for L. Or equiva-
lently (if L ⊂ Rn has rank n), d(L) = |det(B)|
where B is an n × n matrix whose columns
form a basis b1, b2, . . . , bn for L.
Hadamard’s Inequality
Qn
d(L) ≤ j=1 ||bj ||, and equality holds iff the
bj ’s are orthogonal.
Q
A “reduced” basis should have n j=1 ||bj || rather
small; equivalently, the bj ’s should be close to
orthogonal.
Gram-Schmidt Process
We have
0 ⊂ L1 ⊂ L2 ⊂ · · · ⊂ L n = L
where
Lj = Z b 1 + Z b 2 + · · · + Z b j .
The orthogonal projection of bj onto L⊥
j−1 is
found recursively to be
X
b∗j = bj − µj,k b∗k
1≤k<j
where
bj · b∗k
µj,k = ∗ ∗.
bk · bk
Qn ∗
Note that d(L) = j=1 ||bj ||.
Definition of Reduced Basis
(i) |µj,k | ≤ 1
2 for 1 ≤ j < k ≤ n, and
||b1|| ≤ 2(n−1)/4d(L).
LLL Algorithm
1. Set j = 1.
Qn Qj
Let D = j=1 d(Lj ) where d(Lj ) = k=1 ||b∗k ||2.
d(Lk−1 ) is replaced by
d(L0k−1 ) ≤ ( 3
4 ) 1/2d(L
k−1 ); and
D is replaced by D 0 ≤ ( 3
4 ) 1/2D.
1/2
Since d(Lk−1 ) ≥ (||x||/γk−1)k−1 where γk−1 is
Hermite’s constant (the maximum of min{||v|| :
0 6= v ∈ Λ} for all lattices Λ of rank k−1 and
determinant 1) and x is a shortest nonzero
vector in L, step 3 can be executed only a
finite number of times.
At,k x = λ1
which can be solved using LLL or MLLL.