TL;DR
A Euclidean lattice is the set of points you reach by taking whole-number combinations of a few vectors that point in independent directions. Those vectors form a basis, and the lattice is a regular grid that repeats the same pattern everywhere, possibly stretched and tilted. The determinant of the basis gives the area that each lattice point owns.
Builds on: Vector Space, Linear Independence, Determinant · Leads to: sphere packing, crystal structure, and lattice-based cryptography
Where it's used
Cryptography. Some encryption schemes designed to resist quantum computers rest on a hard problem about lattices: given a messy basis, find a short nonzero vector in the lattice. In 2024 the US standards body NIST published ML-KEM, a key-exchange standard built on this kind of problem.
Crystals. The atoms in a perfect crystal sit at positions that form a lattice. Salt, copper and diamond all have such arrangements, and crystal lattices are the core object of crystallography. Auguste Bravais classified the 14 three-dimensional lattice types in the 1840s.
Packing and coding. How densely spheres fit together, and how to send digital information through noisy channels with lattice codes, both come down to which lattice fits points most tightly. Sphere packing is the classic case.
How it works
Start with two arrows in the plane: and . They point in different directions, so they are linearly independent and form a basis.
- Pick whole-number weights. Choose the whole numbers and . Form . Check: first coordinate , second .
- Try other weights. Choose and . Then . Check: and .
- Try non-whole weights. Choose and . This gives . The point is not in the lattice. To reach it we would need , so , and , so , which is not whole. Check: the second coordinate forces , and then the first forces .
- Collect all the points. Doing step 1 for every pair of whole numbers gives a set of points. The plot shows those with first coordinate between and and second between and . They form a tilted grid. Check: the point from step 1 is one of the marked points.
- Measure the cell. The parallelogram with corners , , and has no lattice point inside it, and copies of it, shifted by lattice vectors, tile the plane. Its area is , computed from the determinant in the math section. So each lattice point owns square units. Check: the plot has one point per 4 square units, which is a quarter point per unit of area.
- lattice points
The math
Definition
Let be linearly independent vectors in . The lattice they generate is the set , where is the set of whole numbers, positive, negative and zero. The vectors are a basis of .
The weights are whole numbers, so a lattice is the set of all integer combinations of a basis. Independence is what makes it fill out an -dimensional grid rather than collapse into a smaller set.
Step 1 in symbols: combining with weights
Stack the basis vectors as the columns of a matrix . The lattice is then , where is the column of weights. For the example,
Step 2 in symbols: testing a point
A point belongs to exactly when has whole-number entries. For a matrix, the inverse is . Here , so
For we get , which is whole, so is in . For we get , which is not whole, so is not in .
Step 3 in symbols: the cell and the determinant
The parallelogram with sides and has area , the absolute value of the Determinant. Here . The same rule holds in any dimension: the volume of the cell spanned by a basis is . This number is the covolume of the lattice.
Step 4 in symbols: changing the basis
Replace by . This is with , a matrix of whole numbers with determinant . Every integer combination of the new basis is an integer combination of the old one, and the reverse holds too, so the lattice does not change. Its covolume does not change either, because . Check: the new basis is and , and .
Worked examples
Take the single vector , so . Is in ? Is ?
- For we need a whole number with .
- Dividing by gives .
- is whole, so is in .
- Check: .
- For we need , so , which is not whole. So is not in .
- Interpretation: a one-dimensional lattice is the multiples of its basis vector. Its covolume is , so each point owns a length of .
Use the basis and . Is in ? Is ?
- Compute the first coordinate of : .
- Compute the second coordinate: .
- Both are whole, so is in with weights .
- Check: .
- Now compute the first coordinate of : .
- The first coordinate is , not whole, so is not in .
- Check: the weights give , and no whole-number weights reach .
- Interpretation: membership is a test of whether two numbers come out whole. The marked points in the plot are exactly the points that pass it.
Put circles of radius at the points of the hexagonal lattice with basis and . What fraction of the plane do the circles cover?
- Neighbouring centres are at distance . Check: , and also has length .
- Each circle has area .
- The covolume is , which is about .
- Each lattice point owns a cell of area , and that cell holds one circle of area .
- The covered fraction is .
- Numerically, . Check: .
- Interpretation: about 90.7 percent of the plane is covered. This honeycomb is the densest possible arrangement of equal circles in the plane.
Try it: what fraction of the plane do the same circles cover when they sit on the square lattice with basis and ? Answer: the covolume is , so the fraction is , less than the honeycomb's .
Common mistakes and tradeoffs
Mistake 1: "Any regular grid of points is a lattice." It is tempting to think any evenly spaced pattern counts. In fact a lattice must contain the zero point, because zero weights give zero. The points with both coordinates odd form an evenly spaced grid, but they do not include , so they are a shifted copy of a lattice, not a lattice.
Mistake 2: "The basis is part of the lattice, so different bases give different lattices." In fact one lattice has infinitely many bases. The bases and generate the same points, and both have covolume . The covolume is a property of the lattice, not of the basis.
Mistake 3: "Two vectors always make a lattice in the plane." If the vectors point the same way, such as and , every combination lies on the horizontal axis. The set is a one-dimensional lattice and covers no area. A full lattice in dimensions needs independent vectors.
When to use it. Lattices fit anything that repeats periodically: crystals, dense packings, and codes. Their calculations are exact, because membership and area reduce to solving with integers and computing a determinant.
When not to use it. Data without a repeating pattern, such as the locations of cities, has no lattice structure, and forcing one onto it hides the real layout. In high dimensions, finding the shortest nonzero vector in a lattice from a bad basis becomes very hard. That hardness is what lattice-based cryptography relies on, so it is a feature there.
Alternatives. For non-periodic point sets, use general nearest-neighbour methods, or quasi-crystals, which have order without repetition.
History
Lattices appeared in number theory before they had a name. Lagrange and Gauss studied binary quadratic forms in the late 1700s and early 1800s, which amounts to counting whole-number points in a tilted grid. In the early 1830s Gauss proved that the densest lattice packing of spheres in three dimensions is the face-centred cubic arrangement. In the 1840s Auguste Bravais classified the 14 three-dimensional lattice types, which made lattices the basic language of crystallography. Hermann Minkowski's "geometry of numbers" in the 1890s used lattices and volumes to prove theorems about whole-number solutions. In 1996 Miklos Ajtai showed that hard lattice problems could support cryptography, and in 2024 NIST standardized a lattice-based key-exchange method.
Recap
- A basis is a set of independent vectors. The lattice is every whole-number combination of them.
- A point is in the lattice when the weights found by inverting the basis matrix are whole numbers.
- The covolume is the area each point owns, and it is the same for every basis of the lattice.
- The hexagonal arrangement of circles is the densest planar packing, which leads into the packing question.
Read next: sphere packing density, which uses lattices to ask how densely spheres fit together.