# Erdős–Anning theorem

The Erdős–Anning theorem states that an infinite number of points in the plane can have mutual integer distances only if all the points lie on a straight line. It is named after Paul Erdős and Norman H. Anning, who published a proof of it in 1945.

## Rationality versus integrality Dense points on a unit circle generated by rotations of a 3–4–5 right triangle. All pairwise distances among these points are rational numbers. Scaling any finite subset of these points by the least common denominator of their distances produces an arbitrarily large finite set of points at integer distances from each other.

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 by repeatedly rotating by the sharp angle in a 3–4–5 right triangle has this property. It 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.

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.

## Proof Illustration for a proof of the Erdős–Anning theorem. Given three non-collinear points A, B, C with integer distances from each other (here, the vertices of a 3–4–5 right triangle), the points whose distances to A and B differ by an integer lie on a system of hyperbolas and degenerate hyperbolas (blue), and symmetrically the points whose distances to B and C differ by an integer lie on another system of hyperbolas (red). Any point with integer distance to all three of A, B, C lies on a crossing of a blue and a red curve. There are finitely many crossings, so finitely many additional points in the set. Each branch of a hyperbola is labeled by the integer difference of distances that is invariant for the points on that branch.

Shortly after the original publication of the Erdős–Anning theorem, Erdős provided the following proof. It is simpler than the original proof. Additionally, it relates the maximum size of an integer-distance set to the maximum distance between the points (the diameter of the set). More specifically, if a set of three non-collinear points have integer distances, all at most some number $\delta$ , then at most $4(\delta +1)^{2}$ points (including the three given points) have integer distances from all three. Therefore, any set of non-collinear points, all at integer distances at most $\delta$ from each other, can have at most $4(\delta +1)^{2}$ points in total.

The proof involves finding a system of curves so that each point of the set lies on a crossing of two of the curves, and bounding the number of crossings. Let $A$ , $B$ and $C$ be any three non-collinear members of a set $S$ of points with integer distances, and let $d$ denote the Euclidean distance function. Let $X$ be any other member of $S$ . From the triangle inequality it follows that $|d(A,X)-d(B,X)|$ is a non-negative integer and is at most $d(A,B)\leq \delta$ . For each of the $d(A,B)+1$ integer values $i$ in this range, the points satisfying the equation $|d(A,X)-d(B,X)|=i$ lie on a hyperbola with $A$ and $B$ as its foci, and $X$ must lie on one of these $d(A,B)+1$ hyperbolae. By a symmetric argument, $X$ must also lie on one of a family of $d(B,C)+1$ hyperbolae having $B$ and $C$ as foci. Each pair of distinct hyperbolae, one defined by $A$ and $B$ and the second defined by $B$ and $C$ , can intersect in at most four points, by Bézout's theorem. Every point of $S$ (including $A$ , $B$ and $C$ ) lies on one of these intersection points. There are at most $4(\delta +1)^{2}$ intersection points of pairs of hyperbolae, and therefore at most $4(\delta +1)^{2}$ points in $S$ .

The quadratic dependence of this bound on $\delta$ can be improved: every non-collinear point set with integer distances and diameter $\delta$ has size $O(\delta )$ . However, it is not possible to replace $\delta$ by the minimum distance between the points: there exist arbitrarily large non-collinear point sets with integer distances and with minimum distance two.