{
  "id": "3235",
  "ident": "NS.03235",
  "slug": "erdos-798",
  "title": "Erdős Problem 798",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $t(n)$ be the minimum number of points in $\\{1,\\ldots,n\\}^2$ such that the $\\binom{t}{2}$\nlines determined by these points cover all points in $\\{1,\\ldots,n\\}^2$.\n\nEstimate $t(n)$. In particular, is it true that $t(n)=o(n)$?\n\nA problem of Erdős and Purdy, who proved $t(n) \\gg n^{2/3}$.\n\nResolved by Alon [Al91] who proved $t(n) \\ll n^{2/3}\\log n$.",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:52"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos798.erdos_798",
  "statement_lean": "theorem erdos_798 :\n    (fun n : ℕ => (t n : ℝ)) =o[atTop] (fun n : ℕ => (n : ℝ))",
  "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 798\n\n*References:*\n- [erdosproblems.com/798](https://www.erdosproblems.com/798)\n- [Al91] Alon, N., *Economical coverings of sets of lattice points*. Geom. Funct. Anal. (1991),\n  224-230.\n-/\n\n@[expose] public section\n\nnamespace Erdos798\n\nopen Filter Asymptotics\n\n/--\nThe grid $\\{1,\\ldots,n\\}^2$, viewed as a set of points of the plane.\n-/\ndef gridPoints (n : ℕ) : Set (ℝ × ℝ) :=\n  {p : ℝ × ℝ | ∃ i j : ℕ, 1 ≤ i ∧ i ≤ n ∧ 1 ≤ j ∧ j ≤ n ∧ p = ((i : ℝ), (j : ℝ))}\n\n/--\n`S` is a set of points of $\\{1,\\ldots,n\\}^2$ such that the lines determined by the pairs of\ndistinct points of `S` cover all points of $\\{1,\\ldots,n\\}^2$.\n-/\ndef IsLineCover (n : ℕ) (S : Set (ℝ × ℝ)) : Prop :=\n  S ⊆ gridPoints n ∧\n    ∀ x ∈ gridPoints n, ∃ p ∈ S, ∃ q ∈ S, p ≠ q ∧ Collinear ℝ ({p, q, x} : Set (ℝ × ℝ))\n\n/--\nThe minimum number of points in $\\{1,\\ldots,n\\}^2$ such that the lines determined by these points\ncover all points in $\\{1,\\ldots,n\\}^2$.\n-/\nnoncomputable def t (n : ℕ) : ℕ :=\n  sInf {k | ∃ S : Set (ℝ × ℝ), IsLineCover n S ∧ S.ncard = k}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $t(n)$ be the minimum number of points in $\\{1,\\ldots,n\\}^2$ such that the $\\binom{t}{2}$\nlines determined by these points cover all points in $\\{1,\\ldots,n\\}^2$.\n\nEstimate $t(n)$. In particular, is it true that $t(n)=o(n)$?\n\nA problem of Erdős and Purdy, who proved $t(n) \\gg n^{2/3}$.\n\nResolved by Alon [Al91] who proved $t(n) \\ll n^{2/3}\\log n$.\n-/\n@[category research solved, question, AMS 5 52, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos798.lean\"]\ntheorem erdos_798 :\n    (fun n : ℕ => (t n : ℝ)) =o[atTop] (fun n : ℕ => (n : ℝ)) := by\n  sorry\n\n/--\nA problem of Erdős and Purdy, who proved $t(n) \\gg n^{2/3}$.\n-/\n@[category research solved, AMS 5 52]\ntheorem erdos_798.variants.lower_bound :\n    (fun n : ℕ => (n : ℝ) ^ (2 / 3 : ℝ)) =O[atTop] (fun n : ℕ => (t n : ℝ)) := by\n  sorry\n\n/--\nResolved by Alon [Al91] who proved $t(n) \\ll n^{2/3}\\log n$.\n-/\n@[category research solved, AMS 5 52]\ntheorem erdos_798.variants.upper_bound :\n    (fun n : ℕ => (t n : ℝ)) =O[atTop]\n      (fun n : ℕ => (n : ℝ) ^ (2 / 3 : ℝ) * Real.log n) := by\n  sorry\n\nend Erdos798\n",
  "statement_hash": "dced23b4cb6f0603c4e2ec381b67a2a07cda8c4a528fa71d7d641c91edc72575",
  "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."
}