The Erdős–Anning theorem states that, whenever an infinite number of points in the plane all have integer distances, the points lie on a straight line. The same result holds in higher dimensional Euclidean spaces. The theorem cannot be strengthened to give a finite bound on the number of points: there exist arbitrarily large finite sets of points that are not on a line and have integer distances.
The theorem is named after Paul Erdős and Norman H. Anning, who published a proof of it in 1945. Erdős later supplied a simpler proof, which can also be used to check whether a point set forms an Erdős–Diophantine graph, an inextensible system of integer points with integer distances. The Erdős–Anning theorem inspired the Erdős–Ulam problem on the existence of dense point sets with rational distances.
See main article: Erdős–Ulam problem. Although there can be no infinite non-collinear set of points with integer distances, there are infinite non-collinear sets of points whose distances are rational numbers. For instance, the subset of points on a unit circle obtained as the even multiples of one of the acute angles of an integer-sided right triangle (such as the triangle with side lengths 3, 4, and 5) has this property. This construction forms a dense set in the circle. The (still unsolved) Erdős–Ulam problem asks whether there can exist a set of points at rational distances from each other that forms a dense set for the whole Euclidean plane. According to Erdős, Stanisław Ulam was inspired to ask this question after hearing from Erdős about the Erdős–Anning theorem.
For any finite set S of points at rational distances from each other, it is possible to find a similar set of points at integer distances from each other, by expanding S by a factor of the least common denominator of the distances in S. By expanding in this way a finite subset of the unit circle construction, one can construct arbitrarily large finite sets of non-collinear points with integer distances from each other. However, including more points into S may cause the expansion factor to increase, so this construction does not allow infinite sets of points at rational distances to be transformed into infinite sets of points at integer distances.
Shortly after the original publication of the Erdős–Anning theorem, Erdős provided the following simpler proof.
The proof assumes a given set of points with integer distances, not all on a line. It then proves that this set must be finite, using a system of curves for which each point of the given set lies on a crossing of two of the curves. In more detail, it consists of the following steps:
ABC
d
X
|d(A,X)-d(B,X)|
d(A,B)
X
d(A,B)
0\lei<d(A,B)
i=d(A,B)
A
B
X
d(B,C)+1
0\lej\led(B,C)
X
X
The same proof shows that, when the diameter of a set of points with integer distances is
\delta
4(\delta+1)2
\delta
\delta
O(\delta)
O
\delta
See main article: Erdős–Diophantine graph. An alternative way of stating the theorem is that a non-collinear set of points in the plane with integer distances can only be extended by adding finitely many additional points, before no more points can be added. A set of points with both integer coordinates and integer distances, to which no more can be added while preserving both properties, forms an Erdős–Diophantine graph.
The proof of the Erdős–Anning theorem can be used in an algorithm to check whether a given set of integer points with integer distances forms an Erdős–Diophantine graph: merely find all of the crossing points of the hyperbolas used in the proof, and check whether any of the resulting points also have integer coordinates and integer distances from the given set.
As Anning and Erdős wrote in their original paper on this theorem, "by a similar argument we can show that we cannot have infinitely many points in
n