What is a lattice?
Chapter 4 ended with a set of linearly independent vectors and every point you could reach from them. If the coefficients are allowed to be any real numbers, those vectors reach every point in the space they span. Nothing is left out, and there are no gaps.
A lattice comes from making one change to that setup: the coefficients have to be integers. You can take three copies of a vector, or minus one copy, but not half a copy. That single restriction turns a continuous space into a set of separated points.
By the end of this chapter, you should understand what a lattice is, how a basis generates one, how to read , and why the basis vectors have to be linearly independent.
The integer grid
The simplest lattice is the one you have already drawn on graph paper: the points whose coordinates are whole numbers.
Read as "the integers", so including the negatives and zero. Read the superscript as the number of coordinates, so is pairs of integers and is triples. Read the whole line as "the set of all pairs where both and are integers".
Points like , and are in . Points like are not.
That picture is a lattice, but the dots are not what defines it. What defines a lattice is how the points are generated.
Integer combinations of basis vectors
Take the two vectors drawn in the diagram:
A linear combination of these is , exactly as in chapter 4. The new rule is that and must be integers. We call this an integer combination.
Two examples:
The coefficients say how many copies of each basis vector to use, and a negative coefficient means the vector is used in the opposite direction. Every pair of integers gives a point of , and every point of comes from exactly one such pair. So the two vectors and generate the whole infinite grid.
The point set is infinite, but the description is two vectors.
Integers are the whole difference
Drop the word "integer" and the object changes completely. With real coefficients you can pick and :
That point sits inside one of the squares of the grid rather than on a corner of it. Keep going with other fractions and you fill in every square, which gives the whole plane rather than a set of dots.
The gaps are the useful part. Because the points are separated, questions like "which lattice point is nearest to this target?" have a definite answer, and answering them can be hard. In a continuous space the answer is always the target itself, and there is no problem to solve.
A lattice that is not the integer grid
Lattices do not have to be square, and their points do not have to be all the whole-number coordinates. Take a different pair of basis vectors:
Then work out a few integer combinations:
The general point here is . The first coordinate minus the second is , which is always even, so this lattice contains exactly the whole-number points whose two coordinates are both even or both odd. The point is in it and is not.
So this is a different lattice from , sitting inside it, generated by a different basis. Both are lattices for the same reason: each is the full set of integer combinations of two independent vectors.
Lattice points can be added and subtracted
One property follows straight from the definition and gets used constantly later. If and are both lattice points, then and are lattice points too.
The reason is that adding two integer combinations just adds their coefficients, and integers are closed under addition and subtraction. In the slanted lattice above, and are lattice points, and so are and . The origin is always a lattice point, obtained by taking every coefficient to be zero.
This is what makes a lattice a repeating pattern rather than an arbitrary scatter of dots. The view from any lattice point looks the same as the view from the origin, because you can shift the whole lattice by any lattice point and land back on itself.
The definition in dimensions
Nothing above depended on there being two dimensions. In dimensions we start from basis vectors , and a lattice point is any integer combination of them:
Written as a set, the lattice generated by those vectors is:
Read as "add up through to ", and read as "each coefficient is an integer". The braces and the colon are the same set notation used for above. The part before the colon says what is in the set, and the part after it gives the condition on the coefficients.
The same definition as a matrix
Chapter 3 showed that is a linear combination of the columns of with coefficients from . That is exactly the sum above, so the whole definition collapses into one matrix product.
Put the basis vectors in as columns:
The vertical bars are only there to show the vectors sit side by side as columns. Stack the coefficients into a vector , and then:
So the lattice generated by is written:
Read this as " is the set of every point , as runs over all integer vectors with entries". In code it is an ordinary matrix-vector product, with the single restriction that the vector being multiplied has integer entries.
Take care with the two decorations on . A superscript counts coordinates, so is integer vectors of length . A subscript is the modulus from chapter 6, so is the integers modulo . They are unrelated, and both appear once we reach q-ary lattices.
The basis vectors must be independent
The basis has to be linearly independent, for the reason chapter 4 gave. Take a pair that is not:
Every integer combination of these is:
The second coordinate is always zero, so every point lands on the x-axis. The result is still a set of separated points, but it is a one-dimensional lattice sitting inside two-dimensional space, not a grid filling the plane. From chapter 5, the matrix with these columns has determinant , which is the algebraic version of the same failure.
When this course says an -dimensional lattice, it means one generated by independent vectors in -dimensional space, so . That is called a full-rank lattice, and it is the only case we will need.
Notation
| Symbol | Meaning | Example |
|---|---|---|
| The integers | ||
| Integer vectors with entries | ||
| A basis vector | ||
| A vector of integer coefficients | ||
| The matrix whose columns are the basis vectors | ||
| The lattice generated by | every with |
What to remember
- A lattice is the set of all integer combinations of a set of linearly independent vectors.
- In dimensions, , where the columns of are the basis vectors.
- Integer coefficients are what make the points separated. Real coefficients would fill the space the vectors span.
- Sums and differences of lattice points are lattice points, and the origin is always a lattice point.
- A basis is a finite description of an infinite set of points.
- A basis must be linearly independent, equivalently . Otherwise the lattice collapses into fewer dimensions.
Checkpoint questions
- What does mean, and which of and is in it?
- What is when and ?
- Why do integer coefficients give separated points while real coefficients do not?
- How would you read out loud?
- If and are lattice points, why is also a lattice point?
- What goes wrong if the basis vectors are linearly dependent?
- What is the difference between and ?