{
  "id": "2513",
  "ident": "NS.02513",
  "slug": "erdos-588",
  "title": "Erdős Problem 588",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f_k(n)$ be minimal such that if $n$ points in $\\mathbb{R}^2$ have no $k+1$ points on a line\nthen there must be at most $f_k(n)$ many lines containing at least $k$ points. Is it true that\n$$f_k(n) = o(n^2)$$\nfor $k \\geq 4$?\n\nThe case $k = 4$ is Erdős Problem 101. The restriction $k \\geq 4$ is needed: see\n`Erdos588.erdos_588.variants.three_not_isLittleO`.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos588.erdos_588",
  "statement_lean": "theorem erdos_588 :\n    ∀ k : ℕ, 4 ≤ k →\n      (fun n : ℕ ↦ (numLinesWithPointsMax k n : ℝ)) =o[atTop] (fun n : ℕ ↦ (n : ℝ) ^ 2)",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 588\n\n*References:*\n- [erdosproblems.com/588](https://www.erdosproblems.com/588)\n- [BGS74] Burr, Stefan A. and Grünbaum, Branko and Sloane, N. J. A., *The orchard problem*.\n  Geometriae Dedicata (1974), 397-424.\n- [Er84] Erdős, P., *Research problems*. Period. Math. Hungar. (1984), 101-103.\n- [FuPa84] Füredi, Z. and Palásti, I., *Arrangements of lines with a large number of\n  triangles*. Proc. Amer. Math. Soc. (1984), 561-566.\n- [Gr76] Grünbaum, Branko, *New views on some old questions of combinatorial geometry*.\n  Colloquio Internazionale sulle Teorie Combinatorie (Roma, 1973), Tomo I (1976), 451-468.\n- [Ka63] Kárteszi, F., *Sylvester egy tételéről és Erdős egy sejtéséről*. Matematikai Lapok\n  (1963), 3-10.\n- [SoSt13] Solymosi, József and Stojaković, Miloš, *Many collinear $k$-tuples with no $k+1$\n  collinear points*. Discrete Comput. Geom. (2013), 811-820.\n-/\n\n@[expose] public section\n\nopen EuclideanGeometry Filter Asymptotics\n\nnamespace Erdos588\n\n/--\n`numLinesWithPointsMax k n` is $f_k(n)$: the maximum number of lines containing exactly $k$\npoints among all sets $S$ of $n$ points in $\\mathbb{R}^2$ with no $k + 1$ points on a line.\n\nSince $S$ has no $k + 1$ points on a line, the lines with at least $k$ points of $S$ are exactly\nthe lines with exactly $k$ points of $S$. The definition follows Erdős Problem 101 (the case\n$k = 4$).\n-/\nnoncomputable def numLinesWithPointsMax (k n : ℕ) : ℕ :=\n  sSup {((linesWithPointsFor k S).ncard) | (S : Set ℝ²)\n    (_ : S.ncard = n) (_ : S.Finite) (_ : NonCollinearFor (k + 1) S)}\n\n/--\nLet $f_k(n)$ be minimal such that if $n$ points in $\\mathbb{R}^2$ have no $k+1$ points on a line\nthen there must be at most $f_k(n)$ many lines containing at least $k$ points. Is it true that\n$$f_k(n) = o(n^2)$$\nfor $k \\geq 4$?\n\nThe case $k = 4$ is Erdős Problem 101. The restriction $k \\geq 4$ is needed: see\n`Erdos588.erdos_588.variants.three_not_isLittleO`.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_588 :\n    ∀ k : ℕ, 4 ≤ k →\n      (fun n : ℕ ↦ (numLinesWithPointsMax k n : ℝ)) =o[atTop] (fun n : ℕ ↦ (n : ℝ) ^ 2) := by\n  sorry\n\n/--\nThe trivial upper bound, by counting pairs of points: for $k \\geq 2$,\n$$f_k(n) \\cdot k(k-1) \\leq n(n-1).$$\n-/\n@[category textbook, AMS 52, formal_proof using lean4 at\n  \"https://github.com/veljjanoski/formal-conjectures-proofs/blob/a199537b29d77124f8e1ea0d816a881e96f0cc0f/FcProofs/Erdos588.lean#L81\"]\ntheorem erdos_588.variants.trivial_upper (k n : ℕ) (hk : 2 ≤ k) :\n    numLinesWithPointsMax k n * (k * (k - 1)) ≤ n * (n - 1) := by\n  sorry\n\n/--\nSylvester showed (see [BGS74]) that\n$$f_3(n) = \\frac{n^2}{6} + O(n).$$\n\nThe upper bound $f_3(n) \\leq n(n-1)/6$ is `Erdos588.erdos_588.variants.trivial_upper` with\n$k = 3$. The lower bound comes from a construction on a cubic curve.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.sylvester :\n    (fun n : ℕ ↦ (numLinesWithPointsMax 3 n : ℝ) - (n : ℝ) ^ 2 / 6) =O[atTop]\n      (fun n : ℕ ↦ (n : ℝ)) := by\n  sorry\n\n/--\nBurr, Grünbaum, and Sloane [BGS74] and Füredi and Palásti [FuPa84] gave constructions which\nshow that\n$$f_3(n) \\geq \\left(\\frac{1}{6} + o(1)\\right) n^2.$$\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.three_lower :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (1 / 6 - ε) * (n : ℝ) ^ 2 ≤ (numLinesWithPointsMax 3 n : ℝ) := by\n  sorry\n\n/--\nThe restriction to $k \\geq 4$ in `Erdos588.erdos_588` is necessary: $f_3(n)$ is not $o(n^2)$.\nThis follows from `Erdos588.erdos_588.variants.sylvester`.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.three_not_isLittleO :\n    ¬ (fun n : ℕ ↦ (numLinesWithPointsMax 3 n : ℝ)) =o[atTop] (fun n : ℕ ↦ (n : ℝ) ^ 2) := by\n  sorry\n\n/--\nKárteszi [Ka63] proved that for $k \\geq 4$,\n$$f_k(n) \\gg_k n \\log n,$$\nresolving a conjecture of Erdős that $f_k(n)/n \\to \\infty$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.karteszi :\n    ∀ k : ℕ, 4 ≤ k → ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      c * (n : ℝ) * Real.log (n : ℝ) ≤ (numLinesWithPointsMax k n : ℝ) := by\n  sorry\n\n/--\nGrünbaum [Gr76] proved that for $k \\geq 4$,\n$$f_k(n) \\gg_k n^{1 + \\frac{1}{k-2}}.$$\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.grunbaum :\n    ∀ k : ℕ, 4 ≤ k → ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      c * (n : ℝ) ^ (1 + 1 / ((k : ℝ) - 2)) ≤ (numLinesWithPointsMax k n : ℝ) := by\n  sorry\n\n/--\nSolymosi and Stojaković [SoSt13] proved that for $k \\geq 4$,\n$$f_k(n) \\gg_k n^{2 - O_k(1/\\sqrt{\\log n})}.$$\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.solymosi_stojakovic :\n    ∀ k : ℕ, 4 ≤ k → ∃ c > (0 : ℝ), ∃ C > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      c * (n : ℝ) ^ (2 - C / Real.sqrt (Real.log (n : ℝ))) ≤\n        (numLinesWithPointsMax k n : ℝ) := by\n  sorry\n\n/--\nErdős speculated that Grünbaum's bound $n^{1 + \\frac{1}{k-2}}$ may be the correct order of\nmagnitude of $f_k(n)$ for $k \\geq 4$. This is false: by\n`Erdos588.erdos_588.variants.solymosi_stojakovic` [SoSt13], for every $k \\geq 4$ we have\n$f_k(n) \\neq O(n^{1 + \\frac{1}{k-2}})$.\n-/\n@[category research solved, AMS 52]\ntheorem erdos_588.variants.grunbaum_order :\n    ∀ k : ℕ, 4 ≤ k →\n      ¬ (fun n : ℕ ↦ (numLinesWithPointsMax k n : ℝ)) =O[atTop]\n        (fun n : ℕ ↦ (n : ℝ) ^ (1 + 1 / ((k : ℝ) - 2))) := by\n  sorry\n\nend Erdos588\n",
  "statement_hash": "f802ca99b1b64921e04550e8510617253b5b3c9994021ddb9f2f2e281604f1d3",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}