Few lines through every point
Result page Proof blueprint → Paper PDF Verification archive Palomar Registry GitHub
Put n points in the plane, not all on one line, and draw the line through every two. For every n ≥ 8, Lean proves some such set has no point on more than n/2 of them, and builds endless families with no point on more than (n − 5)/2.
For every n ≥ 8 there is a set of n points in the plane, not all on one line, in which every point lies on at most ⌊n/2⌋ of the lines through two of its points, and for every j ≥ 2 there is such a set of 12j + 11 points with fractions as coordinates whose largest count is exactly 6j + 5; and, with G(n) = 2⌊n/4⌋, for every n ≥ 68 whose remainder on division by 60 is 0, 1, 8, 9, 52 or 53 there is such a set of n points with fractions as coordinates whose largest count is exactly G(n) − 2, and for every n ≥ 124 whose remainder is 4, 5, 44, 45, 48 or 49 one whose largest count is exactly G(n) − 1.
Dirac (1951) asked how few connecting lines the busiest point can have. Akiyama, Ito, Kobayashi and Nakamura (2011) reached ⌊n/2⌋ for every n ≥ 8 except n = 12k + 11 with k ≥ 4, and Grünbaum (2010) conjectured that, for all but finitely many n, the least possible largest count is G(n) = 2⌊n/4⌋. Lean checks sets for every n ≥ 8, the open case included, and families below G(n) in 12 classes of n modulo 60.
A trimmed grid closes the 12j + 11 case at half; eight-ray families fall below Grünbaum’s G(n) in 12 classes modulo 60
Walkthrough: 7 of 7 main results in Lean
Each configuration taken from the works below is re-checked inside Lean, which proves the count at every one of its points; no outside theorem is assumed.
Published inputs
- Akiyama, Ito, Kobayashi & Nakamura (2009; 2011) (Re-proved in Lean): Constructed sets with every point on at most ⌊n/2⌋ connecting lines for every n ≥ 8 except possibly n = 12k + 11 with k ≥ 4, leaving that class open; their 11-point set (construction (v)) is reused here, and the square grid at n = 4u + 5 has the incidence structure of their construction (ii) (checked for n ≤ 53).
- Felsner (2004) (Re-proved in Lean): Recorded the triangular-grid family with every point on at most ⌈n/2⌉ − 2 connecting lines for n = 12k + 7, without a construction or proof. The coordinates here are rebuilt from the accounts of Grünbaum (2010) and Lund, Purdy & Smith (2014); Lean proves that every point is on at most 6k + 2 connecting lines at n = 12k + 7 and 12k + 6, for every k ≥ 1.
- Grünbaum (2009) (Re-proved in Lean): Catalogued (the paper read its text; the diagrams were not inspected) the arrangements A(9, 1), A(15, 1), A(19, 1) and A(25, 5), which the paper places behind four witnesses (n = 9; n = 15 and 14; n = 19, by matching counts; and n = 23, the 25-point octagon set less two points).
What this paper adds
- At most half, for every n ≥ 8: The trimmed grid closes n = 12j + 11; A set for every n ≥ 8, split by n modulo 12; From whole-number triples to points with fractions
- Eight rays of points, below G(n): A finite certificate caps the count for every size; Family A falls 5/2 short of half; Deleting a point on a line with a third point keeps the count; Exact counts below G(n) in 12 classes modulo 60
⌊n/2⌋ for every n ≥ 8; exact counts below G(n) in 12 classes modulo 60
For every n ≥ 8 some set of n points in the plane, not all on one line, has every point on at most ⌊n/2⌋ connecting lines. With G(n) = 2⌊n/4⌋, for every n ≥ 68 in six classes modulo 60 a set of n points with fractions as coordinates has largest count exactly G(n) − 2, and for every n ≥ 124 in six more classes exactly G(n) − 1.
All 7 of 7 main results proved in Lean with no outside input; the 36 certificates and the eight small point lists are checked inside Lean.
Listed as open in the paper
- The bounded-deficit strong Dirac conjecture (Conjecture 8, cited in the paper to Akiyama et al. (2009) and to Lund, Purdy and Smith (2014)): some absolute constant c > 0 gives every set of n ≥ 3 points, not all on one line, a point on at least n/2 − c connecting lines. Theorem 2 and Proposition 3 force any such c to be at least 5/2.
- Whether an endless family of points with straight lines can fall short of n/2 by more than 5/2, as some small sets do with 7/2.
- Whether the shortfall below n/2 can grow without bound for points with straight lines.
Adjacent prior work (not used as inputs)
- Grünbaum (2010) [Lean: exact counts G(n) − 2 (n ≥ 68) and G(n) − 1 (n ≥ 124) in 12 classes modulo 60]: Conjectured that, for all sufficiently large n, the least possible largest count t(n) equals G(n) = 2⌊n/4⌋ (a shortfall of at most 3/2); the paper refutes it across twelve classes modulo 60.
- Dirac (1951): For even n, described sets with every point on at most n/2 connecting lines.
- Florek (2011): For every k ≥ 2, built a set of 4k + 1 points on three lines through one point, not all on one line, with every point on at most 2k connecting lines.
- Grünbaum (1972): Tabulated arrangements of 9, 15, 19, 25, 31 and 37 lines that, read as point sets, already meet the bound (n − 1)/2 at those six sizes. Only pp. 16–25 were read; the rest was not read in full.
- Brass, Moser & Pach (2005): Reported Felsner’s family as a personal communication. Only p. 313 was read; the rest was not read in full.
- Lund, Purdy & Smith (2014): Their pseudoline construction (curves that behave like lines), not used here, has 18j + 7 pseudolines with at most 8j + 2 crossing points on each, a shortfall of j + 3/2 that grows without bound; they noted no endless straight-line family with shortfall above 3/2 was known.
- Trok (2020); Dumitrescu (2024); Florek (2025): Read in full by the paper via arXiv preprints, they confirm that n = 12k + 11 (k ≥ 4) and straight-line endless families with shortfall above 3/2 remained open in the literature the paper read; Florek (2025) proves that some point lies on at least ⌈n/2⌉ connecting lines when all points lie on three lines through one point.
The 53 points of family A with s = 0
Take family A with s = 0, so a, e, b, m = 7, 2, 6, 3. Its points are (1 : 0 : c) and (0 : 1 : c) for c = −7, −5, …, 7 and c = −2, 0, 2, which is 11 points each; (1 : 1 : c) and (1 : −1 : c) for c = −6, −4, …, 6, which is 7 each; (1 : ±2 : c) and (2 : ±1 : c) for c = −3, −1, 1, 3, which is 4 each; and (0 : 0 : 1). That makes 22 + 14 + 16 + 1 = 53 points. The point (1 : 0 : 7) lies on exactly 24 connecting lines and no point lies on more, while half of 53 is 26.5, a shortfall of 5/2; and 24 = (53 − 5)/2 = G(53) − 2, since G(53) = 2·13 = 26. Across all 53 points, 1 lies on 8 lines, 4 on 12, 6 on 14, 4 on 18, 10 on 20 and 28 on 24.
Points, lines and the count at a point
Lean writes each point as a triple (x : y : z) of whole numbers, and three points lie on one line exactly when the determinant of their triples is 0. The count at a point p is the number of different lines through p and another point of the set. Two tools give every bound: labels that name the possible lines through p give an upper bound, and points that are pairwise on different lines through p give a lower bound.
Labels give an upper bound
Give each other point of X a label from a list of at most N labels, such that two points with the same label are on one line with p. Then p lies on at most N connecting lines.
Witnesses give a lower bound
If W is a set of other points of X, no two of them on one line with p, then p lies on at least as many connecting lines as W has points.
- A point as a triple of whole numbers
- A triple that is not all zeros
- The cross product of two triples
- The determinant of three triples
- Two triples name the same point
- A list of distinct points
- Not all on one line (triples)
- The line through two points (triples)
- The connecting lines through a point (triples)
- How many connecting lines pass through a point
- Swap x and y
- Negate the third coordinate
- Three ordinary points on one line
- Not all on one line
- The line through two ordinary points
- The connecting lines through an ordinary point
- How many connecting lines pass through an ordinary point
From triples to points with fractions
A triple (x : y : z) goes to the ordinary point (y/D, z/D), where D = x + k·y + k²·z. A finite set has only finitely many bad values of k, so some whole number k makes D nonzero at every point, and then the map keeps points apart, keeps lines, and keeps every count. So each result about triples gives a set of ordinary points with fractions as coordinates and the same counts.
Every proper set of triples has a copy in the plane with fractions
For every finite proper set X of triples, some map sends X to points with fractions as coordinates, keeps different points apart, keeps the set not all on one line if it was, and keeps the number of connecting lines at every point.
theorem StrongDirac.ExactEqualities.exists_rational_euclidean_embedding (X : Finset Pt) (hX : Proper X) : ∃ φ, (∀ p ∈ X, IsRationalPt (φ p)) ∧ Set.InjOn φ ↑X ∧ (Finset.image φ X).card = X.card ∧ (NonCollinear X → NonCollinearR2 (Finset.image φ X)) ∧ ∀ p ∈ X, lineCountR2 (Finset.image φ X) (φ p) = projLineCount X pAn exact largest count moves into the plane
If a proper set of n triples, not all on one line, has every count at most B and some count at least B, then some set of n ordinary points with fractions as coordinates, not all on one line, has every count at most B and some count exactly B.
The chart keeps every count
If D is not 0 at any point of a proper set X, then at every point of X, the number of connecting lines of the image is the number for X.
theorem StrongDirac.lineCountR2_projToR2 (t : ℝ) {X : Finset Pt} (hX : Proper X) (hden : ∀ p ∈ X, denom t p ≠ 0) {p : Pt} (hp : p ∈ X) : lineCountR2 (Finset.image (projToR2 t) X) (projToR2 t p) = projLineCount X p- The denominator of the chart
- The chart into the ordinary plane
- A point with fractions as coordinates
- A set of points with fractions as coordinates
- The denominator, as a fraction
- The chart with fractions
At most half, for every n ≥ 8
Lean splits n ≥ 8 by its remainder on division by 12 and gives a set for each case. Square grids cover the remainders 0, 1, 4, 5, 8 and 9, Felsner's set covers 6 and 7, Felsner's set less four points and the trimmed grid less one point cover most of 2, 3 and 10, and the trimmed grid covers 11. Eight small cases, from 10 to 27 points, come from lists that Lean checks by running a program, some written with √2 or the golden ratio.
For every n ≥ 8 some set has every count at most ⌊n/2⌋
For every n ≥ 8 there is a set of n points in the plane, not all on one line, in which every point lies on at most ⌊n/2⌋ connecting lines.
- The square grid
- Felsner's set
- A turn of Felsner's set
- A flip of Felsner's set
- Four points to delete
- Felsner's set less four points
- An ordinary line
- A number a + b·α
- A triple of numbers a + b·α
- Zero
- Subtracting
- Multiplying
- The value of a + b·α
- The cross product, with α
- The determinant, with α
- Not all zeros, with α
- A whole-number triple, with α
- A triple of real numbers
- The real triple of a triple with α
- The determinant of three real triples
- The cross product of two real triples
- The chart denominator, real triples
- The chart, real triples
- One point per line through p
- A checker for small sets
A passed check gives a set of points
If α² = a·α + b, no u + v·α with whole numbers u, v not both 0 is 0, and the checker accepts a list with bound B, then some set of as many ordinary points, not all on one line, has every count at most B.
- A 15-point set from the icosahedron
- The same set less one point
- A triangular grid without medians
- Felsner's set for k = 2 less four points
- The same set less one more point
The trimmed grid closes n = 12j + 11
For K = 2j + 2 with j ≥ 2, the trimmed grid takes three rows of points with heights from −K to K, leaves out a few heights, and adds four more points, 12j + 11 in all. Lean bounds the count at each kind of point by 6j + 5 with labels, using a mirror to halve the work, and shows that (1 : 0 : −K) reaches 6j + 5 exactly. Moved into the ordinary plane, this gives the main theorem on half.
Every n ≥ 8 at half, and the exact count for 12j + 11 with j ≥ 2
For every n ≥ 8 there is a set of n points in the plane, not all on one line, with every point on at most ⌊n/2⌋ connecting lines. For every j ≥ 2 there is a set of 12j + 11 points with fractions as coordinates, not all on one line, in which every point is on at most 6j + 5 connecting lines and some point is on exactly 6j + 5.
theorem StrongDirac.ExactEqualities.thm_half : (∀ (n : ℕ), 8 ≤ n → ∃ P, P.card = n ∧ NonCollinearR2 P ∧ ∀ a ∈ P, lineCountR2 P a ≤ n / 2) ∧ ∀ (j : ℕ), 2 ≤ j → ∃ P, IsRationalSet P ∧ P.card = 12 * j + 11 ∧ NonCollinearR2 P ∧ (∀ a ∈ P, lineCountR2 P a ≤ 6 * j + 5) ∧ ∃ a ∈ P, lineCountR2 P a = 6 * j + 5For j ≥ 2 the trimmed grid reaches 6j + 5 exactly
For every j ≥ 2 there is a set of 12j + 11 points with fractions as coordinates, not all on one line, in which every point is on at most 6j + 5 connecting lines and some point is on exactly 6j + 5.
theorem StrongDirac.ExactEqualities.r15_2_1_rational_tight {j : ℕ} (hj : 2 ≤ j) : ∃ P, IsRationalSet P ∧ P.card = 12 * j + 11 ∧ NonCollinearR2 P ∧ (∀ a ∈ P, lineCountR2 P a ≤ 6 * j + 5) ∧ ∃ a ∈ P, lineCountR2 P a = 6 * j + 5- K = 2j + 2
- The heights −K to K, less three
- The heights −K to K, less two
- The points (1 : 0 : −c)
- The points (0 : 1 : −c)
- The points (1 : 1 : −c)
- Four more points
- The trimmed grid
- The mirror of the trimmed grid
Every point of the trimmed grid is on at most 6j + 5 lines
For j ≥ 2 every point of the trimmed grid lies on at most 6j + 5 connecting lines.
The Lean statement is shown in the interactive page.
The point (1 : 0 : −K) is on exactly 6j + 5 lines
For j ≥ 2 the point (1 : 0 : −K) of the trimmed grid lies on exactly 6j + 5 connecting lines.
A finite check caps the count for every size
The points of an eight-ray set lie in rows whose length grows with the size t. From a point (1 : q₀ : c), Lean labels each other point by where its line lands and counts the possible labels row by row; this overcount grows at most linearly in c and t. A certificate checks the overcount at finitely many starting values, and Lean proves that a passed certificate caps the count for every size.
A passed certificate caps the lines through a point
If the certificate passes, then for every size t and every proper set X whose points lie in its rows or on the line through (1 : q₀ : 0) and (0 : 0 : 1), each point (1 : q₀ : c) of X with 0 ≤ c ≤ TB₁·t + TB₀ and the right parity lies on at most 1 + N₁·t + N₀ connecting lines.
theorem StrongDirac.HullCert.projLineCount_le_of_certifyTarget {q0 : ℤ} {Lam : ℕ} {pencils : List Pencil} {rho0 : ℕ} {TB1 : ℕ} {TB0 : ℕ} {Qc : ℕ} {Qt : ℕ} {N1 : ℕ} {N0 : ℕ} (hcert : certifyTarget q0 Lam pencils rho0 TB1 TB0 Qc Qt N1 N0 = true) {t : ℕ} {X : Finset Pt} (hX : Proper X) (hcover : ∀ x ∈ X, x.2.1 - q0 * x.1 = 0 ∨ ∃ P ∈ pencils, P.Mem t x) {c : ℤ} (hp : (1, q0, c) ∈ X) (hc0 : 0 ≤ c) (hc_hi : c ≤ ↑(TB1 * t + TB0)) (hc_par : c % 2 = ↑rho0) : projLineCount X (1, q0, c) ≤ 1 + N1 * t + N0A passed certificate bounds the overcount
If the certificate passes, then for every size t and every allowed c, the overcount is at most N₁·t + N₀.
- A row of points
- A point of a row
- The numbers that describe a row from a point
- Computing those numbers
- Whether a row reaches a remainder
- The largest value on a list
- The remainders that may occur
- The rows for each remainder
- The top of a row's labels
- The bottom of a row's labels
- The overcount
- How fast the overcount grows
- The least step that is far enough
- Check one starting offset
- Check the side conditions
- The certificate
- The line label
Eight rays of points, 5/2 short of half
An eight-ray set puts points in eight rows, (1 : 0 : c), (0 : 1 : c), (1 : ±1 : c), (1 : ±2 : c) and (2 : ±1 : c) with c in steps of 2, each row on a line through the extra point (0 : 0 : 1). Families A and B have 60s + 53 and 60s + 69 points, and certificates for even and odd s cap every count at 30s + 24 and 30s + 32, which the points (1 : 0 : 9s + 7) and (1 : 0 : 9s + 9) reach. Deleting chosen points gives the other classes, and deleting a point on a line with a third point keeps the busiest count, so Lean reaches 12 classes of n modulo 60.
For n ≥ 68 or n ≥ 124 in 12 classes, exact largest counts below G(n)
With G(n) = 2⌊n/4⌋: for every n ≥ 68 whose remainder on division by 60 is 0, 1, 8, 9, 52 or 53, there is a set of n points with fractions as coordinates, not all on one line, whose largest count is exactly G(n) − 2; for every n ≥ 124 with remainder 4, 5, 44, 45, 48 or 49, there is one whose largest count is exactly G(n) − 1.
theorem StrongDirac.ExactEqualities.thm_knights : (∀ (n : ℕ), 68 ≤ n → n % 60 = 0 ∨ n % 60 = 1 ∨ n % 60 = 8 ∨ n % 60 = 9 ∨ n % 60 = 52 ∨ n % 60 = 53 → ∃ P, IsRationalSet P ∧ P.card = n ∧ NonCollinearR2 P ∧ (∀ a ∈ P, lineCountR2 P a ≤ grunbaumVal n - 2) ∧ ∃ a ∈ P, lineCountR2 P a = grunbaumVal n - 2) ∧ ∀ (n : ℕ), 124 ≤ n → n % 60 = 4 ∨ n % 60 = 5 ∨ n % 60 = 44 ∨ n % 60 = 45 ∨ n % 60 = 48 ∨ n % 60 = 49 → ∃ P, IsRationalSet P ∧ P.card = n ∧ NonCollinearR2 P ∧ (∀ a ∈ P, lineCountR2 P a ≤ grunbaumVal n - 1) ∧ ∃ a ∈ P, lineCountR2 P a = grunbaumVal n - 1Family A reaches 30s + 24 exactly
For every s ≥ 0 there is a set of 60s + 53 points with fractions as coordinates, not all on one line, whose largest count is exactly 30s + 24, which is (n − 5)/2.
Deleting a point on a line with a third point keeps the count
If q and r are two other points of X on one line with p, then removing q leaves the number of connecting lines through p unchanged.
- Every other number from −B to B
- The eight-ray set
- Family A, an eight-ray set with bounds 9s + 7, 3s + 2, 8s + 6 and 5s + 3
- Family B, an eight-ray set with bounds 9s + 9, 3s + 2, 8s + 8 and 5s + 5
Every point of family A is on at most 30s + 24 lines
For every s ≥ 0, every point of family A lies on at most 30s + 24 connecting lines.
The Lean statement is shown in the interactive page.
Every point of family B is on at most 30s + 32 lines
For every s ≥ 0, every point of family B lies on at most 30s + 32 connecting lines.
The Lean statement is shown in the interactive page.
The point (1 : 0 : 9s + 7) is on exactly 30s + 24 lines
For every s ≥ 0, the point (1 : 0 : 9s + 7) of family A lies on exactly 30s + 24 connecting lines.
The Lean statement is shown in the interactive page.
The point (1 : 0 : 9s + 9) is on exactly 30s + 32 lines
For every s ≥ 0, the point (1 : 0 : 9s + 9) of family B lies on exactly 30s + 32 connecting lines.
The Lean statement is shown in the interactive page.
- Grünbaum's value G(n)
- Eight points to delete
- Four points (1 : ±2 : ±h) to delete
- Family C, family B less eight points
- Family B less four points
- Family A less eight points
- Family A less four points