# Sylvester–Gallai theorem

Sylvester–Gallai theorem Three of the ordinary lines in a 4 × 4 grid of points The Sylvester–Gallai theorem in geometry states that every finite set of points in the Euclidean plane has a line that passes through exactly two of the points or a line that passes through all of them. It is named after James Joseph Sylvester, who posed it as a problem in 1893, and Tibor Gallai, who published one of the first proofs of this theorem in 1944.

A line that contains exactly two of a set of points is known as an ordinary line. Another way of stating the theorem is that every finite set of points that is not collinear has an ordinary line. According to a strengthening of the theorem, every finite point set (not all on one line) has at least a linear number of ordinary lines. An algorithm can find an ordinary line in a set of {displaystyle n} points in time {displaystyle O(nlog n)} .

Contents 1 History 2 Equivalent versions 3 Proofs 3.1 Kelly's proof 3.2 Melchior's proof 3.2.1 Melchior's inequality 3.3 Axiomatics 4 Finding an ordinary line 5 The number of ordinary lines 6 The number of connecting lines 7 Generalizations 7.1 Colored points 7.2 Non-real coordinates 7.3 Matroids 7.4 Distance geometry 8 Notes 9 References 10 External links History The Sylvester–Gallai theorem was posed as a problem by J. J. Sylvester (1893). Kelly (1986) suggests that Sylvester may have been motivated by a related phenomenon in algebraic geometry, in which the inflection points of a cubic curve in the complex projective plane form a configuration of nine points and twelve lines (the Hesse configuration) in which each line determined by two of the points contains a third point. The Sylvester–Gallai theorem implies that it is impossible for all nine of these points to have real coordinates.[1] H. J. Woodall (1893a, 1893b) claimed to have a short proof of the Sylvester–Gallai theorem, but it was already noted to be incomplete at the time of publication. Eberhard Melchior (1941) proved the theorem (and actually a slightly stronger result) in an equivalent formulation, its projective dual. Unaware of Melchior's proof,[2] Paul Erdős (1943) again stated the conjecture, which was subsequently proved by Tibor Gallai, and soon afterwards by other authors.[3] In a 1951 review, Erdős called the result "Gallai's theorem",[4] but it was already called the Sylvester–Gallai theorem in a 1954 review by Leonard Blumenthal.[5] It is one of many mathematical topics named after Sylvester.

Equivalent versions The question of the existence of an ordinary line can also be posed for points in the real projective plane RP2 instead of the Euclidean plane. The projective plane can be formed from the Euclidean plane by adding extra points "at infinity" where lines that are parallel in the Euclidean plane intersect each other, and by adding a single line "at infinity" containing all the added points. However, the additional points of the projective plane cannot help create non-Euclidean finite point sets with no ordinary line, as any finite point set in the projective plane can be transformed into a Euclidean point set with the same combinatorial pattern of point-line incidences. Therefore, any pattern of finitely many intersecting points and lines that exists in one of these two types of plane also exists in the other. Nevertheless, the projective viewpoint allows certain configurations to be described more easily. In particular, it allows the use of projective duality, in which the roles of points and lines in statements of projective geometry can be exchanged for each other. Under projective duality, the existence of an ordinary line for a set of non-collinear points in RP2 is equivalent to the existence of an ordinary point in a nontrivial arrangement of finitely many lines. An arrangement is said to be trivial when all its lines pass through a common point, and nontrivial otherwise; an ordinary point is a point that belongs to exactly two lines.[2] The elongated dodecahedron, a zonohedron. Its eight red parallelogram faces correspond to ordinary points of a five-line arrangement; an equivalent form of the Sylvester–Gallai theorem states that every zonohedron has at least one parallelogram face.

Arrangements of lines have a combinatorial structure closely connected to zonohedra, polyhedra formed as the Minkowski sum of a finite set of line segments, called generators. In this connection, each pair of opposite faces of a zonohedron corresponds to a crossing point of an arrangement of lines in the projective plane, with one line for each generator. The number of sides of each face is twice the number of lines that cross in the arrangement. For instance, the elongated dodecahedron shown is a zonohedron with five generators, two pairs of opposite hexagon faces, and four pairs of opposite parallelogram faces. In the corresponding five-line arrangement, two triples of lines cross (corresponding to the two pairs of opposite hexagons) and the remaining four pairs of lines cross at ordinary points (corresponding to the four pairs of opposite parallelograms). An equivalent statement of the Sylvester–Gallai theorem, in terms of zonohedra, is that every zonohedron has at least one parallelogram face (counting rectangles, rhombuses, and squares as special cases of parallelograms). More strongly, whenever sets of {displaystyle n} points in the plane can be guaranteed to have at least {displaystyle t_{2}(n)} ordinary lines, zonohedra with {displaystyle n} generators can be guaranteed to have at least {displaystyle 2t_{2}(n)} parallogram faces.[6] Proofs The Sylvester–Gallai theorem has been proved in many different ways. Gallai's 1944 proof switches back and forth between Euclidean and projective geometry, in order to transform the points into an equivalent configuration in which an ordinary line can be found as a line of slope closest to zero; for details, see Borwein & Moser (1990). The 1941 proof by Melchior uses projective duality to convert the problem into an equivalent question about arrangements of lines, which can be answered using Euler's polyhedral formula. Another proof by Leroy Milton Kelly shows by contradiction that the connecting line with the smallest nonzero distance to another point must be ordinary. And, following an earlier proof by Steinberg, H. S. M. Coxeter showed that the metric concepts of slope and distance appearing in Gallai's and Kelly's proofs are unnecessarily powerful, instead proving the theorem using only the axioms of ordered geometry.

Kelly's proof Notation for Kelly's proof This proof is by Leroy Milton Kelly. Aigner & Ziegler (2018) call it "simply the best" of the many proofs of this theorem.[7] Suppose that a finite set {displaystyle S} of points is not all collinear. Define a connecting line to be a line that contains at least two points in the collection. By finiteness, {displaystyle S} must have a point {displaystyle P} and a connecting line {displaystyle ell } that are a positive distance apart but are closer than all other point-line pairs. Kelly proved that {displaystyle ell } is ordinary, by contradiction.[7] Assume that {displaystyle ell } is not ordinary. Then it goes through at least three points of {displaystyle S} . At least two of these are on the same side of {displaystyle P'} , the perpendicular projection of {displaystyle P} on {displaystyle ell } . Call them {displaystyle B} and {displaystyle C} , with {displaystyle B} being closest to {displaystyle P'} (and possibly coinciding with it). Draw the connecting line {displaystyle m} passing through {displaystyle P} and {displaystyle C} , and the perpendicular from {displaystyle B} to {displaystyle B'} on {displaystyle m} . Then {displaystyle BB'} is shorter than {displaystyle PP'} . This follows from the fact that {displaystyle PP'C} and {displaystyle BB'C} are similar triangles, one contained inside the another.[7] However, this contradicts the original definition of {displaystyle P} and {displaystyle ell } as the point-line pair with the smallest positive distance. So the assumption that {displaystyle ell } is not ordinary cannot be true, QED.[7] Melchior's proof In 1941 (thus, prior to Erdős publishing the question and Gallai's subsequent proof) Melchior showed that any nontrivial finite arrangement of lines in the projective plane has at least three ordinary points. By duality, this results also says that any finite nontrivial set of points on the plane has at least three ordinary lines.[8] Melchior observed that, for any graph embedded in the real projective plane, the formula {displaystyle V-E+F} must equal {displaystyle 1} , the Euler characteristic of the projective plane. Here {displaystyle V} , {displaystyle E} , and {displaystyle F} are the number of vertices, edges, and faces of the graph, respectively. Any nontrivial line arrangement on the projective plane defines a graph in which each face is bounded by at least three edges, and each edge bounds two faces; so, double counting gives the additional inequality {displaystyle Fleq 2E/3} . Using this inequality to eliminate {displaystyle F} from the Euler characteristic leads to the inequality {displaystyle Eleq 3V-3} . But if every vertex in the arrangement were the crossing point of three or more lines, then the total number of edges would be at least {displaystyle 3V} , contradicting this inequality. Therefore, some vertices must be the crossing point of only two lines, and as Melchior's more careful analysis shows, at least three ordinary vertices are needed in order to satisfy the inequality {displaystyle Eleq 3V-3} .[8] As Aigner & Ziegler (2018) note, the same argument for the existence of an ordinary vertex was also given in 1944 by Norman Steenrod, who explicitly applied it to the dual ordinary line problem.[9] Melchior's inequality By a similar argument, Melchior was able to prove a more general result. For every {displaystyle kgeq 2} , let {displaystyle t_{k}} be the number of points to which {displaystyle k} lines are incident. Then[8] {displaystyle displaystyle sum _{kgeq 2}(k-3)t_{k}leq -3.} or equivalently, {displaystyle displaystyle t_{2}geqslant 3+sum _{kgeq 4}(k-3)t_{k}.} Axiomatics H. S. M. Coxeter (1948, 1969) writes of Kelly's proof that its use of Euclidean distance is unnecessarily powerful, "like using a sledge hammer to crack an almond". Instead, Coxeter gave another proof of the Sylvester–Gallai theorem within ordered geometry, an axiomatization of geometry in terms of betweenness that includes not only Euclidean geometry but several other related geometries.[10] Coxeter's proof is a variation of an earlier proof given by Steinberg in 1944.[11] The problem of finding a minimal set of axioms needed to prove the theorem belongs to reverse mathematics; see Pambuccian (2009) for a study of this question.

The usual statement of the Sylvester–Gallai theorem is not valid in constructive analysis, as it implies the lesser limited principle of omniscience, a weakened form of the law of excluded middle that is rejected as an axiom of constructive mathematics. Nevertheless, it is possible to formulate a version of the Sylvester–Gallai theorem that is valid within the axioms of constructive analysis, and to adapt Kelly's proof of the theorem to be a valid proof under these axioms.[12] Finding an ordinary line Kelly's proof of the existence of an ordinary line can be turned into an algorithm that finds an ordinary line by searching for the closest pair of a point and a line through two other points. Mukhopadhyay & Greene (2012) report the time for this closest-pair search as {displaystyle O(n^{3})} , based on a brute-force search of all triples of points, but an algorithm to find the closest given point to each line through two given points, in time {displaystyle O(n^{2})} , was given earlier by Edelsbrunner & Guibas (1989), as a subroutine for finding the minimum-area triangle determined by three of a given set of points. The same paper of Edelsbrunner & Guibas (1989) also shows how to construct the dual arrangement of lines to the given points (as used in Melchior and Steenrod's proof) in the same time, {displaystyle O(n^{2})} , from which it is possible to identify all ordinary vertices and all ordinary lines. Mukhopadhyay, Agrawal & Hosabettu (1997) first showed how to find a single ordinary line (not necessarily the one from Kelly's proof) in time {displaystyle O(nlog n)} , and a simpler algorithm with the same time bound was described by Mukhopadhyay & Greene (2012).

The algorithm of Mukhopadhyay & Greene (2012) is based on Coxeter's proof using ordered geometry. It performs the following steps: Choose a point {displaystyle p_{0}} that is a vertex of the convex hull of the given points. Construct a line {displaystyle ell _{0}} that passes through {displaystyle p_{0}} and otherwise stays outside of the convex hull. Sort the other given points by the angle they make with {displaystyle p_{0}} , grouping together points that form the same angle. If any of the points is alone in its group, then return the ordinary line through that point and {displaystyle p_{0}} . For each two consecutive groups of points, in the sorted sequence by their angles, form two lines, each of which passes through the closest point to {displaystyle p_{0}} in one group and the farthest point from {displaystyle p_{0}} in the other group. For each line {displaystyle ell _{i}} in the set of lines formed in this way, find the intersection point of {displaystyle ell _{i}} with {displaystyle ell _{0}} Return the line {displaystyle ell _{i}} whose intersection point with {displaystyle ell _{0}} is the closest to {displaystyle p_{0}} .

As the authors prove, the line returned by this algorithm must be ordinary. The proof is either by construction if it is returned by step 4, or by contradiction if it is returned by step 7: if the line returned in step 7 were not ordinary, then the authors prove that there would exist an ordinary line between one of its points and {displaystyle p_{0}} , but this line should have already been found and returned in step 4.[13] The number of ordinary lines The two known examples of point sets with fewer than {displaystyle n/2} ordinary lines.

While the Sylvester–Gallai theorem states that an arrangement of points, not all collinear, must determine an ordinary line, it does not say how many must be determined. Let {displaystyle t_{2}(n)} be the minimum number of ordinary lines determined over every set of {displaystyle n} non-collinear points. Melchior's proof showed that {displaystyle t_{2}(n)geq 3} . de Bruijn and Erdős (1948) raised the question of whether {displaystyle t_{2}(n)} approaches infinity with {displaystyle n} . Theodore Motzkin (1951) confirmed that it does by proving that {displaystyle t_{2}(n)geq {sqrt {n}}} . Gabriel Dirac (1951) conjectured that {displaystyle t_{2}geq lfloor n/2rfloor } , for all values of {displaystyle n} , a conjecture that still stands as of 2013. This is often referred to as the Dirac–Motzkin conjecture; see for example Brass, Moser & Pach (2005, p. 304). Kelly & Moser (1958) proved that {displaystyle t_{2}(n)geq 3n/7} .

Example of Böröczky's (even) configuration with 10 points determining 5 ordinary lines (the five solid black lines of the figure).

Dirac's conjectured lower bound is asymptotically the best possible, as the even numbers {displaystyle n} greater than four have a matching upper bound {displaystyle t_{2}(n)leq n/2} . The construction, due to Károly Böröczky, that achieves this bound consists of the vertices of a regular {displaystyle m} -gon in the real projective plane and another {displaystyle m} points (thus, {displaystyle n=2m} ) on the line at infinity corresponding to each of the directions determined by pairs of vertices. Although there are {displaystyle m(m-1)/2} pairs of these points, they determine only {displaystyle m} distinct directions. This arrangement has only {displaystyle m} ordinary lines, the lines that connect a vertex {displaystyle v} with the point at infinity collinear with the two neighbors of {displaystyle v} . As with any finite configuration in the real projective plane, this construction can be perturbed so that all points are finite, without changing the number of ordinary lines.[14] For odd {displaystyle n} , only two examples are known that match Dirac's lower bound conjecture, that is, with {displaystyle t_{2}(n)=(n-1)/2} One example, by Kelly & Moser (1958), consists of the vertices, edge midpoints, and centroid of an equilateral triangle; these seven points determine only three ordinary lines. The configuration in which these three ordinary lines are replaced by a single line cannot be realized in the Euclidean plane, but forms a finite projective space known as the Fano plane. Because of this connection, the Kelly–Moser example has also been called the non-Fano configuration.[15] The other counterexample, due to McKee,[14] consists of two regular pentagons joined edge-to-edge together with the midpoint of the shared edge and four points on the line at infinity in the projective plane; these 13 points have among them 6 ordinary lines. Modifications of Böröczky's construction lead to sets of odd numbers of points with {displaystyle 3lfloor n/4rfloor } ordinary lines.[16] Csima & Sawyer (1993) proved that {displaystyle t_{2}(n)geq lceil 6n/13rceil } except when {displaystyle n} is seven. Asymptotically, this formula is already {displaystyle 12/13approx 92.3%} of the proven {displaystyle n/2} upper bound. The {displaystyle n=7} case is an exception because otherwise the Kelly–Moser construction would be a counterexample; their construction shows that {displaystyle t(7)leq 3} . However, were the Csima–Sawyer bound valid for {displaystyle n=7} , it would claim that {displaystyle t_{2}(7)geq 4} .

A closely related result is Beck's theorem, stating a tradeoff between the number of lines with few points and the number of points on a single line.[17] Ben Green and Terence Tao showed that for all sufficiently large point sets (that is, {displaystyle n>n_{0}} for some suitable choice of {displaystyle n_{0}} ), the number of ordinary lines is indeed at least {displaystyle n/2} . Furthermore, when {displaystyle n} is odd, the number of ordinary lines is at least {displaystyle 3n/4-C} , for some constant {displaystyle C} . Thus, the constructions of Böröczky for even and odd (discussed above) are best possible. Minimizing the number of ordinary lines is closely related to the orchard-planting problem of maximizing the number of three-point lines, which Green and Tao also solved for all sufficiently large point sets.[18] The number of connecting lines Main article: De Bruijn–Erdős theorem (incidence geometry) As Paul Erdős observed, the Sylvester–Gallai theorem immediately implies that any set of {displaystyle n} points that are not collinear determines at least {displaystyle n} different lines. This result is known as the De Bruijn–Erdős theorem. As a base case, the result is clearly true for {displaystyle n=3} . For any larger value of {displaystyle n} , the result can be reduced from {displaystyle n} points to {displaystyle n-1} points, by deleting an ordinary line and one of the two points on it (taking care not to delete a point for which the remaining subset would lie on a single line). Thus, it follows by mathematical induction. The example of a near-pencil, a set of {displaystyle n-1} collinear points together with one additional point that is not on the same line as the other points, shows that this bound is tight.[16] Generalizations The Sylvester–Gallai theorem has been generalized to colored point sets in the Euclidean plane, and to systems of points and lines defined algebraically or by distances in a metric space. In general, these variations of the theorem consider only finite sets of points, to avoid examples like the set of all points in the Euclidean plane, which does not have an ordinary line.

Colored points A variation of Sylvester's problem, posed in the mid-1960s by Ronald Graham and popularized by Donald J. Newman, considers finite planar sets of points (not all in a line) that are given two colors, and asks whether every such set has a line through two or more points that are all the same color. In the language of sets and families of sets, an equivalent statement is that the family of the collinear subsets of a finite point set (not all on one line) cannot have Property B. A proof of this variation was announced by Theodore Motzkin but never published; the first published proof was by Chakerian (1970).[19] Non-real coordinates The Hesse configuration, in which the line through every pair of points contains a third point. The Sylvester–Gallai theorem shows that it cannot be realized by straight lines in the Euclidean plane, but it has a realization in the complex projective plane.

Just as the Euclidean plane or projective plane can be defined by using real numbers for the coordinates of their points (Cartesian coordinates for the Euclidean plane and homogeneous coordinates for the projective plane), analogous abstract systems of points and lines can be defined by using other number systems as coordinates. The Sylvester–Gallai theorem does not hold for geometries defined in this way over finite fields: for some finite geometries defined in this way, such as the Fano plane, the set of all points in the geometry has no ordinary lines.[7] The Sylvester–Gallai theorem also does not directly apply to geometries in which points have coordinates that are pairs of complex numbers or quaternions, but these geometries have more complicated analogues of the theorem. For instance, in the complex projective plane there exists a configuration of nine points, Hesse's configuration (the inflection points of a cubic curve), in which every line is non-ordinary, violating the Sylvester–Gallai theorem. Such a configuration is known as a Sylvester–Gallai configuration, and it cannot be realized by points and lines of the Euclidean plane. Another way of stating the Sylvester–Gallai theorem is that whenever the points of a Sylvester–Gallai configuration are embedded into a Euclidean space, preserving colinearities, the points must all lie on a single line, and the example of the Hesse configuration shows that this is false for the complex projective plane. However, Kelly (1986) proved a complex-number analogue of the Sylvester–Gallai theorem: whenever the points of a Sylvester–Gallai configuration are embedded into a complex projective space, the points must all lie in a two-dimensional subspace. Equivalently, a set of points in three-dimensional complex space whose affine hull is the whole space must have an ordinary line, and in fact must have a linear number of ordinary lines.[20] Similarly, Elkies, Pretorius & Swanepoel (2006) showed that whenever a Sylvester–Gallai configuration is embedded into a space defined over the quaternions, its points must lie in a three-dimensional subspace.