✖

Erdős unit distance problem

Open a pair of compasses to exactly 1 centimetre and draw a few dots on a sheet of paper. Then count how many pairs of dots are exactly the width of the compasses apart. With three dots it is easy: you place them in an equilateral triangle and there are three pairs. But what if there are a hundred of them, or a million? What is the largest number of pairs that can be exactly 1 apart when you put n points on the paper? The Hungarian mathematician Paul Erdős first asked this question in 1946, and today it is called the Erdős unit distance problem. Erdős guessed that you essentially cannot get more pairs than a square grid gives you. Mathematicians believed him for 80 years, until an artificial intelligence model from OpenAI disproved this guess in May 2026.

A game with compasses

Let’s start gently. Five points in a row, each 1 away from its neighbour, give four pairs. If we add a fourth point to the triangle from the introduction so that a second triangle forms, we get five pairs from four points. You cannot squeeze any more out of four points: six pairs would need four points that are all 1 apart from one another, and those do not fit in the plane.

Points joined by a blue line when they are exactly 1 apart. From the left: five points in a row with four lines, an equilateral triangle with three, a rhombus made of two triangles with five lines and a piece of a triangular lattice with 19 points and 42 lines Points joined by a blue line when they are exactly 1 apart. From the left: five points in a row with four lines, an equilateral triangle with three, a rhombus made of two triangles with five lines and a piece of a triangular lattice with 19 points and 42 lines

The piece of the triangular lattice, the last one in the figure, has 19 points and 42 lines. A point inside the lattice has six neighbours at distance 1, and every line is shared by two points, so there are almost three pairs per point. For larger pieces the number of pairs per point gets closer to three, but never goes above three.

So a different question is more interesting: how many lines can there be per point? If there is always room for only a few, there are at most a few times more pairs than points. But if, as points are added, each point picks up more and more lines, the number of pairs will grow faster.

Erdős’s trick

Erdős worked out how to get more than six lines per point. He took a square grid, but he did not choose the side of a small square as the “unit” distance. Instead he picked the distance that occurs in the grid as often as possible.

Let’s try the distance 5, for example. From a point of the grid, at distance 5 there are not only the points five squares to the right, to the left, up and down, but also the points 3 squares in one direction and 4 in the other, because by Pythagoras’ theorem 32 + 42 = 52. There are 12 of them in total: four straight and eight diagonal, because we can swap the three and the four and take each step in both directions. The distance 65 is even more generous, because 65 = 12 + 82 = 42 + 72. Each of the two decompositions gives eight diagonal points, 16 in total.

On the left points of a square grid, an orange point in the middle and 12 red points on a grey dashed circle of radius 5, each joined to the centre. On the right the same for radius square root of 65 with 16 red points On the left points of a square grid, an orange point in the middle and 12 red points on a grey dashed circle of radius 5, each joined to the centre. On the right the same for radius square root of 65 with 16 red points

All that remains is to cut a square of n points out of the grid and shrink the whole thing so that the chosen distance becomes exactly 1 centimetre. If we cleverly choose numbers that can be written as a sum of two squares in many ways, the number of lines per point will grow without bound. But terribly slowly. Erdős calculated that the number of pairs then comes out only a whisker above n. More precisely

n1+cln⁡ln⁡n,

where c is some fixed number. The exponent is a little bigger than 1, but that “little” shrinks towards zero as n grows: the logarithm of a logarithm does grow without bound, but unbelievably lazily.

What the conjecture claimed

Erdős suspected that you cannot do better. To put it precisely: for no fixed positive number δ will it be possible, for large n, to get more than n1 + δ pairs. Not n1.01, not n1.001. This is the Erdős unit distance conjecture.

From above, mathematicians could only bound the number of pairs at roughly n4/3, that is, n times the cube root of n. Joel Spencer, Endre Szemerédi and William Trotter proved this in 1984, and for over forty years nobody improved it substantially. Between the exponent only a whisker above 1 from Erdős’s grid and the exponent 4/3 there was a gap, and almost everyone expected the truth to lie down near one.

How artificial intelligence disproved the conjecture

We are writing this section on 29 November 2026. On 20 May 2026 OpenAI announced that its internal model had constructed infinitely many arrangements of points in which there are at least n1 + δ pairs at distance 1, for one fixed δ>0. So the conjecture is false. It was a general model, not a program trained specifically for mathematics, and according to the company nobody steered it towards the problem: they were testing it on a collection of Erdős problems and it cracked this tough nut.

Instead of an ordinary grid, which is built on numbers of the form a + b · i with integers a and b, where i is the square root of −1 (the so-called Gaussian integers, each of which is really one point of the grid), it uses much more complicated number systems from algebraic number theory, which have more symmetries and therefore more lines of the same length. Deep theorems from the 1960s guarantee that such number systems exist. Specialists in number theory knew these tools well. The surprise was that they had something to say about dots on paper.

The proof was examined by a group of nine mathematicians, among them Noga Alon and the Fields Medal winner Timothy Gowers, and they wrote an accompanying paper explaining the argument. Gowers wrote that if a human had submitted the same text to the prestigious journal Annals of Mathematics and someone had asked him for a quick opinion, he would have recommended it for acceptance without hesitation.

The original proof does not reveal how big δ is, only that it is positive. Soon afterwards Will Sawin of Princeton showed that one can take δ = 0.014, that is, at least n1.014 pairs. In October 2026 Eric Naslund pushed the exponent to 1.043. Most of his proof was checked by computer in Lean, but one numerical calculation was left outside it, and the paper has not yet been through peer review.

So what has been verified is that the largest possible number of pairs lies somewhere between n1.014 and n4/3. In September 2026 OpenAI published a proof that the upper bound can also be lowered a little, and Terence Tao already lists it among the known results. But it has not yet been through peer review. Nobody yet knows what the right exponent is.

Why it matters

The unit distance problem was one of Erdős’s favourite problems. A 2005 book on research problems in discrete geometry says that it is possibly the best known and the easiest to explain problem in combinatorial geometry.

But it is a milestone for another reason too. According to OpenAI, this is the first time artificial intelligence has solved on its own a famous problem at the centre of an active field, with people only checking it. Gowers himself called it a milestone. What is more, the result did not stay alone: inspired by the same idea, Thomas Bloom, Will Sawin, Carl Schildkraut and Dmitrii Zhelezov disproved the Erdős–Szemerédi conjecture on sums and products of real numbers.

Colouring the plane is related too: there we ask how many colours are needed to colour the plane so that no two points at distance 1 have the same colour.

Try it yourself

Imagine a 3 × 3 grid on paper, that is, nine points in three rows of three, with neighbouring points 1 apart. How many pairs of points are exactly 1 apart? And can the points be moved so that there are more pairs?

Solution

In each row there are two pairs of neighbours, so six in three rows. Likewise there are six pairs in the columns. Twelve in total. There are no other pairs at distance 1 here; the diagonal of a small square measures 2.

You can coax out more pairs by rearranging the points into a triangular lattice, as in the first figure. It is enough to shift every other row by half a step and move the rows closer together so that they are 32 apart. Each point then has up to six neighbours at distance 1, and nine points give 16 pairs. Six of them remain in the rows. Between the first and the second row there are five diagonal ones: the three points of the top row join the three points below alternately once and twice. In the same way there are five of them between the second and the third row. In total 6 + 5 + 5 = 16.

See also