Docsity

Integer Optimization and Lattices, Schemes and Mind Maps of Geometry

Partial preview of the text

Download Integer Optimization and Lattices and more Schemes and Mind Maps Geometry in PDF only on Docsity!

Integer Optimization and Lattices

Thomas Rothvoss

Spring 2016

K

b b b b b b

b b b b b b b

b b b b b b

b b b b b b b

b b b b b b

b b b b b b b

Last changes: May 25, 2016

5.1 A 2 O ( n

  • 1 Lattices
    • 1.1 Introduction to Lattices
      • 1.1.1 Unimodular matrices
      • 1.1.2 The fundamental parallelepiped
    • 1.2 Minkowski’s Theorem
      • 1.2.1 Minkowski’s Theorem for general lattices
      • 1.2.2 Minkowski’s Theorem and the Shortest Vector
      • 1.2.3 Dirichlet’s Theorem
    • 1.3 The Gram Schmidt orthogonalisation
    • 1.4 The LLL-algorithm
      • 1.4.1 Coefficient reduction
      • 1.4.2 The main procedure
      • 1.4.3 The orthogonality defect
    • 1.5 Breaking Knapsack Cryptosystems
      • 1.5.1 A polynomial time algorithm to solve sparse knapsack instance
    • 1.6 The dual lattice and applications
      • 1.6.1 Dual lattices
      • 1.6.2 Solving Shortest Vector via Minkowski’s Theorem
    • 1.7 The Hermite Normal Form
    • 1.8 Minkowski’s 2nd Theorem
    • 1.9 Exercises
  • 2 Integer Programming in Fixed Dimension
    • 2.1 John’s Theorem
    • 2.2 A flatness theorem for Ellipsoids
    • 2.3 The algorithm
    • 2.4 Exercises
  • 3 Two Structural Theorems in Integer optimization
    • 3.1 Doignon’s Theorem
    • 3.2 Complexity of the integer hull
    • 3.3 Exercises
  • 4 A 2 O ( n ) -time algorithm for the Shortest Vector Problem
    • 4.1 Packing balls in R n
    • 4.2 The basic approach
    • 4.3 The main sieving procedure
    • 4.4 Exercises
  • 5 The Closest Vector Problem - -algorithm for Closest Vector 2 )
    • 5.2 The Voronoi cell
    • 5.3 Computing a closest vector
    • 5.4 Putting things together
    • 5.5 Exercises
  • 6 Integer conic combinations
    • 6.1 Small support for integer conic combinations
    • 6.2 Small support for integer conic cominations of convex sets
    • 6.3 An algorithm for Integer Conic Programming
      • 6.3.1 A special case of parallelepipeds
      • 6.3.2 Covering polytopes with parallelepipeds
      • 6.3.3 The algorithm
    • 6.4 Exercises
  • 7 Banaszczyk’s Transference Theorem
    • 7.1 Fourier analysis
      • 7.1.1 The Fourier Transform
      • 7.1.2 The Fourier series
    • 7.2 The discrete Gaussian
    • 7.3 The Proof of Banaszczyk’s Theorem
    • 7.4 Exercises
  • 8 Discrepancy Theory
    • 8.1 Finding partial colorings
    • 8.2 Proof of Spencer’s Theorem
    • 8.3 A constructive proof

Chapter 1

Lattices

In this chapter, we introduce the concept of lattices. Lattices are fundamentally important in discrete geometry, cryptography, discrete optimization and computer science as a whole. We follow to some extend the short, but very readable material in Chapter 2 of the text book “ Lectures on Discrete Geometry ” by Jiri Matousek [Mat02] and to some extend the excellent lecture notes by Oded Regev^1 as well as the ones by Chris Peikert^2.

1.1 Introduction to Lattices

Lattices are integral combinations of linearly independent vectors. Formally, a lattice is a set

{ (^) ∑ k

i = 1

λi b i | λ 1 ,... , λk ∈ Z

where b 1 ,... , b k ∈ R n^ are linearly independent vectors. An alternative definition is to say that a lattice is a discrete subgroup of R n^ , where “discrete” means that there is an ε > 0 so that all points in the lattice have at least distance ε from each other. If k = n , then the lattice has full rank. As every lattice is just a full rank lattice when restricted to the subspace span{ b 1 ,... , b k }, most of the time we will consider full-rank lattices. In fact, we will drop the term “full-rank” and assume it implicitly from now on if not announced otherwise. We can shortcut notation and let B ∈ R n × n^ be the matrix that has the basis vectors b 1 ,... , b n as columns. Then we abbreviate the lattice as

Λ( B ) =

{ (^) ∑ n

i = 1

λi b i | λ 1 ,... , λn ∈ Z

The matrix B itself is also called a basis of the lattice Λ( B ). Note that a lattice has more than one basis. For example adding any integral multiple of b i to b (^) j for j 6 = i will preserve the set of points that can be generated. Below we see an example of two different bases for the same underlying lattice:

(^1) See http://www.cims.nyu.edu/~regev/teaching/lattices_fall_ (^2) see http://www.cc.gatech.edu/~cpeikert/lic

1.1.2 The fundamental parallelepiped

The fundamental parallelepiped of the lattice Λ( B ) is the polytope

P( B ) :=

{ (^) ∑ n

i = 1

λi b i | 0 ≤ λi < 1 ∀ i ∈ [ n ]

We see that this definition actually depends on the basis:

b b b b b

b b b b

b b b b b

b b b b

b 1

b 2 P( B )

b b b b b

b b b b

b b b b b

b b b b

b 1

b 2 P( B )

Let us make some observation: Since b 1 ,... , b n is a basis of R n^ , we know that for every x ∈ R n^ there is a unique coefficient vector λ ∈ R n^ so that x = ∑ n i = 1 λi^ b i^. That means^ x^ can be written as

x =

∑^ n i = 1

⌊ λi ⌋ b i ︸ ︷︷ ︸ ∈Λ( B )

∑^ n i = 1

( λi − ⌊ λi ⌋) b i ︸ ︷︷ ︸ ∈P( B )

In other words, the translates of the parallelepiped placed at lattices points exactly partition the R n^. We call this a tiling of R n^. The tiling of the space with parallelepipeds can be visualized as follows:

b b b b b

b b b b b

b b b b b

b b b b b

Note that actually we can rewrite the fundamental parallelepiped as

P( B ) = { B x : x ∈ [0, 1[ n^ },

that means it is the image of the hypercube [0, 1] n^ under the linear map given by the matrix B. Then by the transformation formula

vol(P( B )) = vol([0, 1[ ︸ ︷︷ n^ ︸)

= 1

·| det( B )|

While the fundamental parallelepiped itself does depend on the choice of the basis — its volume does not!

Lemma 1.3. Let B ∈ R n × n and let Λ := Λ( B ) be the generated lattice. Then the determinant of the lattice

det(Λ) := | det( B )| is independent of the chosen basis. Moreover, det(Λ) = vol(P( B )).

Proof. Clear, because for different basis B , B ′^ ∈ R n^ of the same lattice, there is a unimodular transforma- tion U ∈ Z n × n^ with B ′^ = BU. Then | det( B ′)| = | det( B )| · | det( U )| = | det( B )|.

Note that the quantity vol(P^1 ( B )) gives the density of the lattice. For example if B( 0 , R ) := { x ∈ R n^ |

‖ x ‖ 2 ≤ R } is the ball of radius R around the origin, then

|Λ( B ) ∩ B( 0 , R )| ≈

vol(B( 0 , R ))

vol(P( B ))

The “≈” should be understood that the ratio of both sides goes to 1 as R → ∞. This is another more geometric argument why the volume of the fundamental parallelepiped cannot depend on the basis.

1.2 Minkowski’s Theorem

Recall that a set K ⊆ R n^ is called convex if for all x , y ∈ K and 0 ≤ λ ≤ 1 one also has λ x + (1 − λ ) y ∈ K. A set K is (centrally) symmetric if x ∈ K if and only if − x ∈ K. In particular for a convex symmetric set K , we can define a norm that is called the Minkowski norm ‖ x ‖ K := min{ λ ≥ 0 : x ∈ λK }. Here λK := { λ x | x ∈ K } is the scaled set. In other words, ‖ x ‖ K gives the scaling factor that one needs until the scaled copy of K includes x. For a vector y ∈ R n^ , we define y + K := { x + y | x ∈ K } as the translate of K by y. Intuitively, ‖ x ‖ K denotes by how much we need to scale K so that x is included. For example the Euclidean norm

‖·‖ 2 is the norm ‖·‖ K for K := B( 0 , 1). The other way around, we defined a norm so that K is the unit ball

of that norm and ‖ x ‖ K ≤ 1 ⇔ x ∈ K. We now come to Minkowski’s Theorem which says that every large enough symmetric convex set must contain a non-zero lattice point.

Theorem 1.4 (Minkowski). Let K ⊆ R n be a bounded symmetric convex set with vol( K ) > 2 n. Then K ∩ (Z n^ \ { 0 }) 6 = ;.

Proof. First, by assumption we have vol( 12 K ) > 1. Next, place copies of 12 K at every lattice point in Z n^.

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

b

z

x

y

x + 12 K

y + 12 K

Then on average, points in R n^ are covered more than once. So there must be two different lattice points x , y ∈ Z n^ so that the translates x + 12 K and y + 12 K overlapp. Let z ∈ ( x + 12 K ) ∩ ( y + 12 K ) be a point in that intersection. Then

‖ x − y ‖ K ≤ ‖ ︸ x −︷︷ z ‖ K ︸ ≤1/

  • ‖ ︸ y −︷︷ z ‖ K ︸ ≤1/

Hence ( x − y ) ∈ Z n^ /{ 0 } is the lattice point that we are looking for.

1.2.2 Minkowski’s Theorem and the Shortest Vector

A particularly interesting vector in a lattice is the Shortest Vector with respect to the ‖ · ‖ 2 -norm. Let us abbreviate SVP(Λ) := min{‖ x ‖ 2 | x ∈ Λ/{ 0 }} as its length.

b b b

b b b

b b b

SVP(Λ)

In fact, finding the shortest vector (or its length) is an NP -hard problem. However, one can get some estimates on it:

Theorem 1.7. Any lattice Λ ⊆ R n one has SVP(Λ) ≤

p n · det(Λ)1/ n.

Proof. First, for r := det(Λ)1/ n^ , the hypercube [− r , r ] n^ has a volume of

vol([− r , r ] n^ ) = (2 r ) n^ ≥ 2 n^ det(Λ).

Hence there is a point x ∈ Λ/{ 0 } with ‖ x ‖∞ ≤ det(Λ)1/ n^. Of course ‖ x ‖ 2 ≤

p n · ‖ x ‖∞, which implies the claim.

Note that the scaling in the claim actually makes sense: if we scale the lattice Λ by a factor s > 0, then the length of the shortest vector also scales with s , while det(Λ) changes by a factor of sn^. The analysis can be improved to c

p n det(Λ)1/ n^ for a constant c < 1 — however, this is best possible. There are lattices for every n with determinant 1 and shortest vector of length Ω( p n ). In the literature, the length of the shortest vector is also written as λ 1 (Λ). This makes sense as more generally one can define

λi (Λ) := min{ r ≥ 0 | dim(span(B( 0 , r ) ∩ Λ)) ≥ i }

as the i th successive minimum. That means one has i many linearly independent vectors of length at most λi and 0 < λ 1 ≤ λ 2 ≤... ≤ λn.

b b b

b b b

b b b

λ 1 (Λ)

b b b

b b b

b b b

λ 1 (Λ)

λ 2 (Λ)

It turns out that one has at least a little bit of control over the lengths λi (Λ):

Theorem 1.8 (Minkowski’s Second Theorem). For any full-rank lattice Λ ⊆ R n one has

( (^) ∏ n

i = 1

λi (Λ)

)1/ n ≤

p n · det(Λ)1/ n^.

While Minkowski’s First Theorem only tells us that λi (Λ) is at most

p n · det(Λ)1/ n^ , the Second Theo- rem gives the stronger statement that even the geometric average of λ 1 (Λ),... , Λ n (Λ) is bounded by that same quantity. But for the proof, we need some more ingredients. So we will give it at the end of this chapter.

1.2.3 Dirichlet’s Theorem

We will now see another elegant application of Minkowski’s First Theorem. Suppose we have a vector α ∈ [0, 1] n^ of real numbers and we want to approximate the vector as good as possible with a vector of rational numbers so that the common denominator is at most a parameter Q. One can find some obvious applications in computer science, where one simply cannot work with real numbers but has to use rational approximations all the time. Then the most obvious choice would be

( (^) ⌈ α 1 Q ⌋ Q

⌈ αnQ ⌋ Q

where ⌈·⌋ rounds up or down to the nearest integer. One can easily see that the rounding error in every component is upper bounded by (^21) Q. Is this best possible? Well, the task was to have a common denomi- nator that is at most Q. So, we are allowed to pick any denominator in {1,... , Q }, but we haven’t made use of that freedom.

Theorem 1.9 (Dirichlet). For any α ∈]0, 1] n and Q ∈ N , there are numbers p 1 ,... , pn ∈ Z≥ 0 and q ∈ {1,... , Q } so that

max i =1,..., n

∣∣^ pi q − αi

Q 1/ n^ q

Proof. If we abbreviate ε := (^) Q^1 1/ n and multiply the inequality in the claim by q , then we get the constraint | pi − q · αi | ≤ ε for all i = 1,... , n. Note that this is a linear constraint, hence we can reduce our problem to finding an integer point in the polytope

K :=

( p 1 ,... , pn , q ) ∈ R n +^1 | | pi − q · αi | ≤ ε ∀ i = 1,... , n ; | q | ≤ Q

Note that on purpose, we admitted negative numbers to make the set K symmetric. For example for n = 1, one obtains the following picture:

− Q Q

ε ε

q

p 1

p 1 − qα 1 ≤ ε

K p 1 − qα 1 ≥ − ε

Theorem 1.10. Let B be a basis and B ∗^ = ( b ∗ 1 ,... , b n ∗ ) be its Gram-Schmidt orthogonalization. Then SVP(Λ( B )) ≥ min i =1,..., n ‖ b ∗ i ‖ 2.

Proof. Let x ∈ Λ( B ) be any lattice vector and let x =

∑ n i = 1 λi^ b i^ with^ λi^ ∈^ Z^ be the linear combination that generates it. Let k be the largest index with λk 6 = 0. Define the subspace U := span{ b 1 ,... , b k − 1 } = span{ b ∗ 1 ,... , b ∗ k − 1 }.

b k

b k ∗ x

U

λk b ∗ k + U

Then x lies on a translate of that subspace which is λk b ∗ k + U. Hence ‖ x ‖ 2 ≥ d ( x , U ) = | λk | · | b ∗ k | where d ( x , U ) tells the distance of x to U.

In particular b 1 ∗ = b 1 is always lattice vector — b ∗ 2 ,... , b n ∗ generally not. One idea to find a short lattice vector would be to find a basis (and an ordering on the vectors!) so that ‖ b ∗ 1 ‖ 2 ≤ ρ · ‖ b ∗ i ‖ 2 for all i and some ρ. Then by the previous lemma SVP(Λ) ≥ min i =1,..., n ‖ b i ∗ ‖ 2 ≥ (^1) ρ ‖ b 1 ‖ 2 , hence b 1 would be a ρ -approximation to the shortest vector. That is precisely what the LLL-algorithm will achieve.

1.4 The LLL-algorithm

For the presentation of the LLL-algorithm, we are loosely following the exposition of Chris Peikert’s ex- cellent lecture notes [Pei13]. The main statement will be:

Theorem 1.11 (Lenstra-Lenstra-Lovász 1982). Given a regular matrix B ∈ Q n × n one can compute a vector x ∈ Λ( B )/{ 0 } of length ‖ x ‖ 2 ≤ 2 n /2^ · SVP(Λ( B )) in polynomial time.

If B has integral entries then the running time is actually of the form O ( n^6 log^3 ( n ‖ B ‖∞)). The im- portance of this algorithm cannot be underestimated. Until now — 33 years after it’s discovery — the LLL-algorithm is basically the only algorithm that gives any kind of non-trivial guarantee for any lattice problem in polynomial time! Let us consider a basis b 1 ,... , b n (here for n = 2) and wonder what kind of operations we could do make the basis as orthogonal as possible , while it still generates the same lattice.

  • Subtracting vectors from each other: In n = 2, if we have a vector b 2 , we can always subtract mul- tiples of b 1 from it so that | μ 1,2| ≤ 12. In higher dimensions we will see that we can always achieve that | μi j | ≤ 12 for all i < j.

bbbbbbbbbbbbbb

b 1

b 2

b b b b b

b b b b

b b b b b

b 1

b 2

  • Switching the order: One the other hand, in n = 2 dimensions it might be that b 1 is a lot longer than b 2 so that we would not make progress in subtracting b 1 from b 2. But in that case we can swap the order of b 1 and b 2. In higher dimensions it will make sense to swap b i and b i + 1 if ‖ b i ‖ 2 ≫ ‖ b i + 1 ‖ 2.

b b b b b

b b b b

b b b b b

b 2^ b 1

1.4.1 Coefficient reduction

We want to begin by discussing how to make use of the first procedure, where we subtract integer mul-

tiples of vectors in the basis from other basis vectors. Let B = ( b 1 ,... , b n ) be a basis and let μi j := 〈 b (^) j , b ∗ i 〉 ‖ b ∗ i ‖^22 be the coefficients from the Gram-Schmidt orthogonalisation.

Definition 2. We call a basis Coefficient-reduced if | μi j | ≤ 12 for all 1 ≤ i < j ≤ n.

Lemma 1.12. Given any basis B = ( b 1 ,... , b n ) one can compute a coefficient-reduced basis B ˜ in polyno- mial time so that Λ( ˜ B ) = Λ( B ) and the Gram-Schmidt orthogonalizations are identical.

Proof. Suppose that B = ( b 1 ,... , b n ) is a lattice basis and μi j are the Gram-Schmidt coefficients, that means

b (^) j = b ∗ j +

j ∑ − 1

i = 1

μi j · b ∗ i ∀ j ∈ [ n ]. (∗)

Now fix indices 1 ≤ ℓ < k ≤ n and q ∈ Z and consider the updated basis ˜ B with vectors

b (^) j :=

b (^) j + q · b ℓ if j = k b (^) j otherwise.

Clearly, Λ( ˜ B ) = Λ( B ). Let ˜ μi j be the updated Gram-Schmidt coefficients for B ˜. In particular b ˜∗ 1 = b ∗ 1 ,... , b ˜∗ k − 1 = b ∗ k − 1 and for the coefficients we have ˜ μi j = μi j for all pairs ( i , j ) with i < j < k since only b k has changed. Adding up (∗) for j = k and j = ℓ we obtain

b ˜ k = b k + q · b ℓ = b k ∗ +

i < ℓ

μi k + q · μi ℓ

= μ ˜ i k

· b ∗ i + ( μℓk + q ) ︸ ︷︷ ︸ = μ ˜ ℓk

· b ℓ ∗ +

k ∑− 1

i = ℓ + 1

μi k ︸︷︷︸ = μ ˜ i k

b ∗ i

Then we see that ˜ μi k = μi k for all i > ℓ. Moreover, we can choose q ∈ Z so that | μ ˜ ℓ , k | = | μℓ , k + q | ≤ 12. In the figure below we show which coefficients are guaranteed to not have changed:

LLL-algorithm Input: A lattice basis B = ( b 1 ,... , b n ) ∈ R n × n Output: An LLL reduced basis ˜ B = ( b ˜ 1 ,... , b ˜ n ) (1) Compute a Gram Schmidt orthogonalization b ∗ 1 ,... , b n ∗ with coefficients μi j and update whenever we change the order of the basis (2) WHILE B is not LLL-reduced DO (3) Apply coefficient reduction so that | μi j | ≤ (^12) (4) If there is an index i with ‖ b i ∗ ‖^22 > 2 ‖ b ∗ i + 1 ‖^22 then swap b i and b i + 1 in the ordering.

Obviously, the algorithm only terminates when it has found an LLL-reduced basis. Let us now prove that the algorithm terminates within a polynomial number of iterations. For this sake, we consider the potential function

Φ( B ) =

∏^ n i = 1

‖ b ∗ i ‖ n 2 +^1 − i

and we want to argue that it is decreasing. Intuitively, the potential function wants the vectors b ∗ i with small i to be as small as possible. In particular, the point is that we swap i with i +1 if ‖ b ∗ i ‖ 2 is a lot longer than ‖ b i ∗ + 1 ‖ 2 ; one can expect that this should decrease the potential function. Let us define

vol k ( b 1 ,... , b k )

as the k -dimensional volume of the parallelepiped spanned by b 1 ,... , b k. Note that by orthogonalizing the vectors, we do not change the volume of that parallelepiped (this is again Cavalieri’s principle ). Hence

vol k ( b 1 ,... , b k ) =

∏^ k i = 1

‖ b ∗ i ‖ 2

We can use this to rewrite the potential function as

Φ( B ) =

∏^ n k = 1

vol k ( b 1 ,... , b k )

We want to really understand what’s going on, so here is a standalone lemma:

Lemma 1.14. Suppose we have vectors ( a 1 , a 2 ) with Gram Schmidt orthogonalization ( a ∗ 1 , a ∗ 2 ) so that ‖ a ∗ 1 ‖^22 ≥ 2 ‖ a ∗ 2 ‖^22 and Let μ := 〈 ‖ aa^1 , 1 a ‖^22 〉 2 ≤ 12. Let ( a 2 ∗∗ , a 1 ∗∗ ) be the Gram Schmidt Orthogonalization for the

reverse order ( a 2 , a 1 ). Then ‖ a 2 ∗∗ ‖ 2 ≤

3 4 · ‖ a ∗ 1 ‖^2.

a 1

a 2

a ∗ 1

a ∗ 2 0 a 1

a 2

a 1 ∗∗

a 2 ∗∗

0

Proof. Let us first write down the vectors in both orthogonalizations depending on a 1 , a 2 and the inner product μ :

a 1 ∗ = a 1 , a ∗ 2 = a 2 − 〈 a 1 , a 2 〉 ‖ a 1 ‖^22 ︸ ︷︷ ︸ = μ

a 1 , and a ∗∗ 2 = a 2

This can be rewritten to a ∗∗ 2 = a 2 = a ∗ 2 + μ a ∗ 1. We inspect the square of the desired ratio and get:

‖ a 2 ∗∗ ‖^22 ‖ a ∗ 1 ‖^22

‖ a 2 ∗ + μ · a 1 ∗ ‖^22 ‖ a 1 ∗ ‖^22

Pythagoras & a 1 ∗ ⊥ a 2 ∗

‖ a 2 ∗ ‖^22 + μ^2 ‖ a ∗ 1 ‖^22 ‖ a 1 ∗ ‖^22

‖ a 2 ∗ ‖^22 ‖ a 1 ∗ ‖^22 ︸ ︷︷ ︸ ≤1/

Lemma 1.15. In each iteration Φ( B ) reduces by a constant factor.

Proof. First, observe that making B coefficient-reduced does not change the Gram-Schmidt orthogo- nalization and hence leaves the potential function Φ( B ) unchanged. Now, let B be a coefficient-reduced basis at the beginning of (4) and let B ˜ be the basis after we swapped index i. Then the whole Gram- Schmidt orthogonalisation of B and ˜ B is identical — except for vectors i and i + 1. We can hence write

Φ( ˜ B ) Φ( B )

vol i ( b 1 ,... , b i − 1 , b i + 1 ) vol i ( b 1 ,... , b i − 1 , b i )

Let a 1 be the projection of b i on the subspace U := span{ b 1 ,... , b i − 1 }⊥^ and let a 2 be the projection of b i + 1 on that subspace. In the notation of the previous lemma, let ( a 1 ∗ , a 2 ∗ ) be the orthogonalization of ( a 1 , a 2 ) (in that order) and let ( a ∗ 2 , a ∗ 1 ) be the orthogonalization of ( a 2 , a 1 ) (again in that order). Then a ∗ 1 = b ∗ i and a ∗∗ 2 = b ˜∗ i + 1. Since the volumes of both parallelepipeds is proportional to the distance of the last vector to the subspace U , we get

Φ( ˜ B ) Φ( B )

vol i ( b 1 ,... , b i − 1 , b i + 1 ) vol i ( b 1 ,... , b i − 1 , b i )

‖ a 2 ∗∗ ‖ 2 ‖ a ∗ 1 ‖ 2

using Lemma 1.14.

Now it is easy to show that the LLL is a polynomial time algorithm. Originally, B could have been any matrix with rational entries. But we can scale any such matrix so that the entries become integral. Note that an entry Bi j used ≈ log 2 (| Bi j |) bits in the input. Hence, a polynomial time algorithm should have a running time that is polynomial in n and in log(‖ B ‖∞). Moreover, the squared volume of a parallelepiped that is spanned by integral vectors will be integral.

Lemma 1.16. Let b 1 ,... , b k ∈ Z n be linearly independent integral vectors. Then vol k ( b 1 ,... , b k )^2 ∈ Z≥ 1.

Proof sketch. We have restricted our attention to full rank lattices so far. But there are more general definitions for lattices of lower rank. Let B = ( b 1 ,... , b k ) ∈ Z n × k^. Consider the lattice Λ( B ) spanned by b 1 ,... , b k. One can define show that^4

vol k ( b 1 ,... , b k ) =

det( B T^ B )

Since B T^ B ∈ Z k × k^ is an integral matrix one has det( B T^ B ) ∈ Z and the claim follows.

(^4) The reader may want to double-check that in case of k = n , this is exactly | det( B )|.

Taking norms, we get

‖ b k ‖^22 =

∥ b k ∗ +

k ∑− 1

i = 1

μi k b i ∗

2 2 = ‖ b ∗ k ‖^22 +

k ∑− 1

i = 1

μ^2 i k ︸︷︷︸ ≤1/

‖ b ∗ i ‖^22 ︸ ︷︷ ︸ ≤ 2 k − i^ ‖ b ∗ k ‖^22

≤ ‖ b ∗ k ‖^22 ·

k ∑− 1

i = 1

2 k − i^

≤ 2 k

≤ 2 k^ · ‖ b k ∗ ‖^22

using that ‖ b ∗ j ‖^22 ≤ 2 ‖ b (^) j + 1 ‖^22 for all j = 1,... , n − 1. Then being generous with the constants, we get that

γ ( B ) =

∏^ n k = 1

‖ b k ‖ 2 ‖ b ∗ k ‖ 2 ︸ ︷︷ ︸ ≤ 2 n /

≤ 2 n

(^2) / .

A different definition of a reduced basis is due to Korkhine and Zolotarav and is called K-Z-reduced basis. Such a basis has an orthogonality defect of at most nn^. However, no polynomial time algorithm is known to compute such a basis.

Open Question 1. Is there a polynomial time algorithm to find x ∈ Λ( B )/{ 0 } with ‖ x ‖ 2 ≤ poly( n )·SVP(Λ( B ))? As we will outline later, the problem of approximation SVP within a factor of n is in NP ∩ coNP (and using more advanced arguments one can bring the factor down do p n ). On the other hand, depending on the polynomial, such an algorithm would break existing lattice based cryptosystems.

1.5 Breaking Knapsack Cryptosystems

The approximation guarantee of 2 n /2^ provided by the LLL-algorithm may sound weak, but it is already enough for a couple of very surprising applications. We want to show-case one of them here. For a public key cryptosystem , the goal is that two parties A (say Alice) and B (say, Bob) can commu- nicate a secret message over a public channel without that any third party C could decrypt it.

Alice Bob

unsecure channel

A

B
A

Alice creates a public key and a private key

Bob receives the public key and uses it to encrypt his secret message x for Alice

Alice uses her private key to decode the message

public key

encrypted message x

To be more precise, there will be a public key , which Alice would generate and then put on her webpage. Then Bob could see that public key and he would use it to encrypt a message that he wants to send to Alice. Even if a third party wiretaps the message that Bob sends to Alice and knows the public key, we want that C is still unable to decrypt the message. The important fact behind such a cryptosystem is that Alice and Bob do not need to agree on any key in advance – it suffices to communicate over the unsecure channel.

The idea behind the Knapsack cryptosystem is the following: Alice could create some large numbers a 1 ,... , an ∈ N and publish them as public key. If Bob wants to send a secret message x ∈ {0, 1} n^ to Alice, he could compute the sum S := ∑ n i = 1 ai^ xi^ and send Alice the number^ S. Knapsack is an^ NP -hard problem, so Bob could hope that his message is safe enough. But in any meaningful cryptosystem, at least the intended receiver Alice should be able to decrypt the message efficiently. So, the Knapsack instance has to be “simple”. One way of having an easy Knapsack instance is if the numbers ai are super-increasing , that means

ai >

j < i

a (^) j ∀ i ∈ [ n ].

It is a simple exercise to show that in this case, given a sum S = ∑ n i = 1 ai^ xi^ , one can recover the vec- tor x ∈ {0, 1} n^ with a polynomial time greedy-style algorithm. But of course, also a third party C would know how to solve such a Knapsack problem. So, we need one more ingredient to “hide” the super in- creasing sequence. We simply take a large number M > ∑ n i = 1 ai^ and some random^ W^ ∈^ {1,... ,^ M^ −1} with gcd( M , W ) = 1 and compute numbers ˜ ai := ai · W mod M. Here it is helpful to remember that the map a 7 → a · W mod M is a bijection on {0,... , M − 1} and the inverse function is simply a 7 → a · W −^1 mod M. The inverse W −^1 with W · W −^1 ≡ M 1 exists as M and W are coprime. We use that function to randomly “shuffle” the numbers:

M − 1
M − 1

a 1 a 2 a 3

a ˜ 2 a ˜ 1 a ˜ 3

· W (^) · W mod M − (^1) mod M

Now, those numbers ˜ a 1 ,... , ˜ an form the public key. Note that the numbers of the super increasing se- quence are now wildly mixed. Obviously Alice should randomly permute the indices, but to keep no- tation simple, we skip this detail. Now, Bob receives the public key ˜ a 1 ,... , ˜ an and computes the sum S ˜ = ∑ ni = 1 a ˜ i xi. Then he sends the message ˜ S to Alice. Alice computes S := S ˜ · W −^1 mod M and then uses the super-increasing property to compute the unique vector x satisfying S = ∑ n i = 1 ai^ xi^ (here we use that

∑ n i = 1 ai^ xi^ ≤^ M^ ). Note that her^ private key^ consists of the pair ( M^ , W^ ) (and the permutation of the indices).

It seemed that in order to decrypt the message without knowing the private key (the numbers M , W and the order of the super-increasing sequence), one would have to solve the Knapsack problem. The remaining incredient for a working cryptosystem would be the generation of a hard Knapsack instance. Intuitively one might think that taking a random instance with large enough coefficients would give such a hard instance. Surprisingly, this is false due to the LLL algorithm.