Geometry

How often points can sit on lines

A million points and a million lines: how many times can a point lie on a line? Counting pairs says about a billion, and over a finite field that is exactly right. In the real plane the true limit is about a hundred million, because a line has an order along it. The proof takes four lines and uses nothing but a crossing count, and from it follows the fact that no set of numbers can have both few sums and few products.

Worth reading first: The busiest point in a set · The crossings a graph cannot avoid.

Points and lines are the most elementary objects in plane geometry, and a surprising number of the essays near this one have to appeal to an estimate about them without stopping to look at it. The busiest point in a set rests on it, at least as many lines as points needs its strength for Beck’s theorem, and the count of pairs one apart uses the same method. This essay looks at it directly.

Fix nn points and mm lines. Call a point lying on a line an incidence. What is the largest possible number of incidences II?

The theorem, due to Endre Szemerédi and William Trotter in 1983, says that

I≤C((nm)2/3+n+m)I \le C\left((nm)^{2/3} + n + m\right)

for an absolute constant CC. For n=mn = m, that is about n4/3n^{4/3}. And the grid shows that this is the correct order. Its original proof was a heavy cell decomposition. In 1997 László Székely found a proof that is hardly more than a remark, using a theorem about the crossings a graph cannot avoid which has nothing visibly to do with incidences.

Many points on many lines. Grid of 192 points and 128 lines with 512 incidences, against (n m)^(2/3) = 845.
Fig. 1 Four columns of 48 points, and some of the 128 lines through them: every line meets a point in every column, so there are 512 incidences.

Why a grid is good

Before any bound, here is a very good example, in a form due to György Elekes. Take the points (x,y)(x, y) with xx in {0,…,k−1}\{0, \dots, k-1\} and yy in {0,…,3k2−1}\{0, \dots, 3k^2 - 1\}: a thin tall block. Take the lines y=ax+by = ax + b with slope aa in {0,…,2k−1}\{0, \dots, 2k-1\} and intercept bb in {0,…,k2−1}\{0, \dots, k^2-1\}. On any such line, each whole number xx from 00 to k−1k - 1 gives a whole number yy that lies inside the block, so every line passes through exactly kk points.

That gives n=3k3n = 3k^3 points and m=2k3m = 2k^3 lines, with I=2k4I = 2k^4 incidences. Since kk is about n1/3n^{1/3}, that is of order n4/3n^{4/3}. The check at k=5k = 5 with brute force finds all 250 lines with 55 incidences each, and the case drawn in the figure with k=4k = 4 has 512 incidences against (nm)2/3=845(nm)^{2/3} = 845. There are no tricks here: the idea is that many lines with small rational slopes pass through many points of a lattice.

The ordinary square grid does almost as well, and the lines through it are worth counting exactly. A line through a square grid of size NN passes through many points when its slope is a simple fraction, and how many lines have at least rr points is an exact count.

How many lines are rich. Lines through at least r points of the 18 by 18 grid: 2: 23926, 3: 4398, 4: 1570, 5: 718, 6: 466, 7: 194, 8: 174, 9: 154, 10: 70, 11: 66, 12: 62, 13: 58, 14: 54, 15: 50, 16: 46, 17: 42, 18: 38; ratio to n^2/r^3 from 0.634 to 1.131.
Fig. 2 The exact number of lines through at least rr points of the 18×1818 \times 18 grid, with the theorem’s limit dashed: for moderate rr the two run parallel.

For the 18×1818 \times 18 grid, with n=324n = 324, there are 23,926 lines through at least two points, 4,398 through at least three, 718 through at least five, 70 through at least ten and 38 through all eighteen. The last are the rows, the columns and the diagonals in the two directions. The theorem has an equivalent form about such rich lines: for rr up to about n\sqrt n, there are at most about n2/r3n^2/r^3 lines with at least rr points. The measured counts divided by that expression lie between 0.63 and 1.13 for rr from 3 to 9. So the grid is at the limit of the theorem at every level of richness simultaneously, up to a constant, and this is a stronger claim than a statement about one value of mm.

From incidences to rich lines

The two forms of the theorem are one calculation apart, and the rich-line form is usually the one that gets used. Suppose LrL_r lines each contain at least rr of the nn points. Those lines alone have at least rLrrL_r incidences, so applying the theorem to them gives

rLr≤C((nLr)2/3+n+Lr).r L_r \le C\left((n L_r)^{2/3} + n + L_r\right).

For rr larger than the constant, the last term can be absorbed on the left. Then either the first term dominates, and Lr≲n2/r3L_r \lesssim n^2/r^3, or the second does, and Lr≲n/rL_r \lesssim n/r. The second case is the trivial one, of lines with very many points each, of which there can only be a few. The first case is the content. It says that the number of lines with at least rr points falls as the cube of rr, whereas pair-counting says it falls only as the square. Pair-counting gives Lr≲n2/r2L_r \lesssim n^2/r^2, because each such line accounts for about r2r^2 of the n2n^2 pairs of points, and that is exact in a finite plane. So the real plane makes a rich line rarer than the arithmetic of pairs requires. A line can be rich, but the rich lines cannot then overlap as heavily as the pairs would permit.

What counting pairs gives

The classical bound uses only the fact that two points determine a line. Count triples: a line and two different points on it. Each pair of points has at most one such line, so the sum over lines of (rℓ2)\binom{r_\ell}{2} is at most (n2)\binom{n}{2}. By the Cauchy–Schwarz inequality, II is at most about m1/2n+mm^{1/2} n + m. Swapping the roles of points and lines gives the dual bound n1/2m+nn^{1/2} m + n.

What counting pairs gives, and what the plane adds. Upper bounds on incidences for 10000 points against the number of lines: m sqrt(n) + n, n sqrt(m) + m, and (n m)^(2/3) + n + m.
Fig. 3 For 10,000 points, the two bounds from counting pairs and the theorem’s curve beneath them, against the number of lines.

At n=mn = m these bounds give n3/2n^{3/2}, whereas the truth is n4/3n^{4/3}. For a million points and a million lines, that is a billion against a hundred million. The difference is a factor of the sixth root of the number of lines.

The reason it is worth writing down the pair-counting bound is what it does elsewhere. It uses exactly one fact about geometry, that two points lie on one line. So it applies in any setting where that fact holds, and it is exact in one of them.

The plane over a finite field

In the plane built from a finite field, with q2+q+1q^2 + q + 1 points and the same number of lines, every line has q+1q + 1 points. That gives I=(q2+q+1)(q+1)I = (q^2 + q + 1)(q + 1), about n3/2n^{3/2}, which matches the pair-counting bound up to a constant. So that bound is sharp as a statement about geometries.

Over a finite field the theorem is false. Incidences in the projective plane of order q over (n m)^(2/3) + n + m: q=3: 0.9193, q=5: 1.1670, q=7: 1.3679, q=11: 1.6891, q=13: 1.8235, q=17: 2.0581, q=19: 2.1623, q=23: 2.3511, q=29: 2.5974.
Fig. 4 Incidences in the finite projective plane of order qq divided by the theorem’s expression: the ratio rises steadily, so the theorem has no finite-field analogue.

So Szemerédi–Trotter is false over finite fields. The ratio of the actual incidences to its expression rises with qq, from 0.92 at q=3q = 3 to 2.6 at q=29q = 29, and it keeps rising without limit, like q1/3q^{1/3}. This is the point noted in the busiest point in a set: the theorem encodes something about the real numbers, because a real line has a betweenness that a finite line lacks, and the shortest proof uses that order very explicitly.

The order is not the only possible reason, though, and it is worth being careful here. Csaba Tóth proved that the same bound holds over the complex numbers, where a line is a two-dimensional plane with no order along it at all. The proof is far longer. What fails in a finite field is something else as well: a finite field has subfields and a positive characteristic, so a finite plane sits inside it as a perfectly structured set with far too many incidences. In the complex numbers there is no finite subfield to hide in. So order is what makes the proof short, while the absence of finite subfields is what makes the statement true. Over prime fields, which have no proper subfields, there are versions with weaker exponents for small sets, and how good those exponents can be is an active question.

The proof

Draw a graph, with the nn points as its nodes. On each line, join consecutive incident points by an edge. This is the only place where order enters: a real line lets its points be taken in a definite sequence, each point having at most two neighbours on that line.

Incidences drawn as a graph. Random arrangement of 7 lines and 14 marked crossings: incidences 28, edges 21, crossings at most 21.
Fig. 5 An arrangement of seven lines, with points as nodes and each stretch between neighbouring points as an edge: at most one crossing per pair of lines.

A line with rr points contributes r−1r - 1 edges. So the graph has E=I−mE = I - m edges, ignoring lines with no points. It is drawn in the plane, and its edges can cross only where two of the lines cross, so it has at most (m2)<m2\binom{m}{2} < m^2 crossings.

Now use the crossing lemma of Ajtai, Chvátal, Newborn, Szemerédi and Leighton: a graph with nn nodes and E≥4nE \ge 4n edges has at least E3/(64n2)E^3/(64n^2) crossings in any drawing. If EE is less than 4n4n, then I<4n+mI < 4n + m, and that is the linear term in the theorem. Otherwise,

(I−m)364n2≤m2,\frac{(I - m)^3}{64 n^2} \le m^2,

so I≤4(nm)2/3+mI \le 4(nm)^{2/3} + m. This is the whole proof.

It is hard to overstate how striking that was when Székely found it. Szemerédi and Trotter’s original proof had a very large constant and elaborate geometry. The crossing lemma itself is proved by applying Euler’s formula to a random sample of the nodes, and the essay on crossings gives that proof. So the chain is: Euler’s formula gives few edges for a planar graph; by sampling, many edges force many crossings; and lines cross at most once, so many incidences would be impossible. A statement about incidences follows from one about planar graphs without any new geometric ideas. And by using the number of crossings on a thrackle as the opposite extreme, one can see exactly what is being used: two lines cross once, no more, and that uniform bound is what the graph inherits.

The argument also generalises at once. For curves in place of lines, if any two curves cross at most ss times and any two points lie on at most a bounded number of curves, the same reasoning gives similar bounds with exponents depending on ss. That is how the best known bound on the number of pairs at unit distance is obtained, by treating unit circles as curves. Curves were much harder before this simple approach existed, and that one proof made a whole family of results short.

Beck’s dichotomy

Another consequence explains why the theorem turned up in the count of connecting lines. József Beck proved in 1983, at the same moment and by a related method, that a set of nn points must either have a large fraction of its points on a single line, or determine a large multiple of n2n^2 connecting lines. There is nothing in between, no set with a moderate maximum on a line and a moderate number of lines.

The derivation is a short calculation in the rich-line form. Sort the (n2)\binom{n}{2} pairs of points by how rich the line through them is. A line with about 2i2^i points accounts for about 4i4^i pairs, and there are at most about n2/8in^2/8^i such lines when 2i2^i is small against n\sqrt n, for a total of about n2/2in^2/2^i pairs at that scale. Summing over large ii, the pairs on rich lines add up to a small fraction of all pairs, and the rest must lie on lines with a bounded number of points. Each such line accounts for a bounded number of pairs, so there are a constant times n2n^2 of them, unless the very richest lines, of more than about n\sqrt n points, take the rest. Those are few, and a further step shows that one of them must hold a large share of the set. So the same cube in the rich-line count is what forces the dichotomy, and it is a stronger structural statement than either of the two options alone.

A sum and a product

Here is the corollary that shows how far the method reaches. Paul Erdős and Szemerédi conjectured that a set of numbers cannot have both few sums and few products. If a set AA of nn numbers is an arithmetic progression, its sumset A+AA + A is small, with about 2n2n values, and its product set AAAA is large. If it is a geometric progression, the reverse. They conjectured that max⁡(∣A+A∣,∣AA∣)\max(|A + A|, |AA|) is at least nearly n2n^2. It is an arithmetic question with no mention of geometry.

Elekes’s proof of 1997 is a single application of the theorem. Take the point set (A+A)×(AA)(A + A) \times (AA), and take the n2n^2 lines y=a(x−b)y = a(x - b) for a,ba, b in AA. Each line contains, for each cc in AA, the point with x=b+cx = b + c and y=acy = ac, both coordinates in the set. So each of the n2n^2 lines contains at least nn of the points. The number of incidences is at least n3n^3, and the theorem says

n3≤C(∣A+A∣ ∣AA∣ n2)2/3+…,n^3 \le C\left(|A + A|\,|AA|\, n^2\right)^{2/3} + \ldots,

which gives ∣A+A∣ ∣AA∣≥c n5/2|A + A|\,|AA| \ge c\,n^{5/2}, and therefore one of them is at least about n5/4n^{5/4}. That is a far-reaching result from a four-line geometry theorem, used as a black box. The best exponents have moved a little further, to about 4/34/3 plus a small fraction, using more refined ideas, and they are nowhere near the conjectured 2. The analogue for sums in a finite field, relevant to two sets added modulo a prime, required entirely new ideas by Jean Bourgain, Nets Katz and Terence Tao, since the incidence theorem is unavailable there, and it has become a central tool in additive combinatorics.

Exact numbers at small sizes

The richest lines of a square grid. Incidences between the grid's points and its n richest lines: 3x3: 26, ratio 1.3888; 4x4: 56, ratio 1.3890; 5x5: 103, ratio 1.4090; 6x6: 162, ratio 1.3628; 8x8: 352, ratio 1.3750; 10x10: 640, ratio 1.3788; 12x12: 1024, ratio 1.3567.
Fig. 6 Incidences of each square grid with its nn richest lines, as a multiple of n4/3n^{4/3}: the ratio holds near 1.37, as if it were converging to a constant.

For a square grid of nn points, take the nn richest lines. For the 12×1212 \times 12 grid that means 144 lines and a total of 1,024 incidences. The ratio to n4/3n^{4/3} in the table is 1.389 at 3×33 \times 3, 1.409 at 5×55 \times 5, 1.375 at 8×88 \times 8 and 1.357 at 12×1212 \times 12. It looks to be approaching a constant. The best upper bound of this form, due to Pach, Radoš Radoičić, Gábor Tardos and Géza Tóth, has constant about 2.5, and the grid gives a value slightly over half of that. Which of the two is closer to the truth at large nn is not known. There may be better arrangements than a square grid for large nn, and for small nn the true extremal arrangements are known to be more irregular, at least for very small sizes, where they are often non-lattice sets.

The numbers also make clear how soon the theorem’s asymptotic form is visible. At n=9n = 9, the very small grid already sits on the same ratio to within two per cent. Most bounds of this type start to mean something only for very large sizes, and this one is good at every scale. That helps explain why the structural side of the question has been useful in practice for algorithms in computational geometry, where the number of incidences determines the speed of searching among lines and points.

Counted exactly, and bounded by quotation

The counts for the grid are exact: all lines through two or more points were enumerated and each was counted. The figures do not, however, compare the grid against any cleverer point sets, so the statement that no arrangement does much better rests on the theorem, whose proof is above, with the crossing lemma cited from its essay. The values for finite fields are exact counts of a simple formula, with the exact number of slanted lines checked by brute force at q=3q = 3, 5 and 7.

The constant in the proof’s bound comes from the crossing lemma’s constant of 64, and various improvements to 2.5 are quoted. The conjectured form of the sum-product question and the exponents about it are cited, and Elekes’s argument was given in sketch form with its omitted lower-order terms. The arrangement of seven lines is an illustration and does not test anything.

Still open: the constant and the extremal shape

What is the best constant CC in the bound, and what do the extremal arrangements look like? The upper constant is about 2.5, and the square grids computed here hold at about 1.37, so there is a gap of nearly a factor of two. And all known extremal examples are lattice-like. The inverse question asks whether every near-extremal arrangement must have a large lattice-like piece. Elekes conjectured a structural result of this kind, and it has been difficult. Attempts have shown that near-extremal arrangements must have many lines with many points in common, and that they cannot be too random, but a full description is unavailable, which is not unlike the structural results of Green and Tao for ordinary lines that the fewest ordinary lines a polygon allows discussed.

How close can max⁡(∣A+A∣,∣AA∣)\max(|A + A|, |AA|) come to n2n^2? Beyond a small improvement over 4/34/3, progress has been slow, and any approach based only on Szemerédi–Trotter is known to stall well short of the conjecture. A proof of the sum-product conjecture would require finding some additional way in which addition and multiplication differ.

Order along a line

In the real plane nn points and mm lines have about (nm)2/3(nm)^{2/3} incidences at most, against about nmn\sqrt m for pair-counting, and the difference comes from the order along a real line. Draw the incidences as a graph whose edges run between neighbouring points of a line, and then many incidences mean many edges, many edges mean many crossings, and the lines cross each other only once. A grid with small-slope lines reaches this order, and a finite-field plane breaks it, because its lines have no order at all.

The surprising conclusion is about arithmetic. A theorem on points and lines implies that a set of numbers cannot be structured for addition and multiplication at the same time. The two operations are distinct, and it takes a geometric statement about ordered lines to say how distinct they are.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Counting argumentCrossing numberExtremal problemIncidencePlanar graphPoint setProjective plane