{
  "id": "389",
  "ident": "NS.00389",
  "slug": "erdos-102",
  "title": "Erdős Problem 102",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $c > 0$ and let $h_c(n)$ be such that for any $n$ points in $\\mathbb{R}^2$ with at least\n$cn^2$ lines that each contain more than three of the points, some line contains $h_c(n)$ of\nthe points. Is it true that, for fixed $c > 0$, $h_c(n) \\to \\infty$?",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/102",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos102.erdos_102",
  "statement_lean": "theorem erdos_102 :\n    ∀ c > 0, ∀ M : ℕ, ∀ᶠ n in atTop, (M : ℕ∞) ≤ h c 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 102\n\n*Reference:* [erdosproblems.com/102](https://www.erdosproblems.com/102)\n-/\n\n@[expose] public section\n\nnamespace Erdos102\n\nopen EuclideanGeometry Filter\n\nopen scoped Classical in\n/-- The number of points of `P` that lie on `L`. -/\nnoncomputable def pointsOn (P : Finset ℝ²) (L : AffineSubspace ℝ ℝ²) : ℕ :=\n  (P.filter (· ∈ L)).card\n\n/-- The number of lines that contain more than three points of `P`. -/\nnoncomputable def richLineCount (P : Finset ℝ²) : ℕ :=\n  {L : AffineSubspace ℝ ℝ² | IsLine L ∧ 3 < pointsOn P L}.ncard\n\n/-- `P` has $n$ points and at least $c n^2$ lines that each contain more than three points\nof `P`. -/\ndef Admissible (c : ℝ) (n : ℕ) (P : Finset ℝ²) : Prop :=\n  P.card = n ∧ c * (n : ℝ) ^ 2 ≤ richLineCount P\n\n/-- The largest number of points of `P` on a single line. -/\nnoncomputable def maxCollinear (P : Finset ℝ²) : ℕ :=\n  sSup {k : ℕ | ∃ L, IsLine L ∧ pointsOn P L = k}\n\n/-- $h_c(n)$: the minimum of `maxCollinear P` over all admissible `P`. It is `⊤` when no\nadmissible configuration exists.\n\nTwo distinct lines share at most one pair of points, and a line with more than three points of\n`P` contains at least $\\binom{4}{2} = 6$ pairs. Hence `richLineCount P` $< n^2 / 12$, so for\n$c \\geq 1/12$ and $n \\geq 1$ no configuration is admissible and $h_c(n) = \\top$. The problem is\nonly meaningful for small $c > 0$; the statements below either quantify over all $c > 0$ (where\nsmall $c$ govern the truth value) or restrict to sufficiently small $c$. -/\nnoncomputable def h (c : ℝ) (n : ℕ) : ℕ∞ :=\n  ⨅ (P : Finset ℝ²) (_ : Admissible c n P), (maxCollinear P : ℕ∞)\n\n/-- The plane contains a line. -/\n@[category API, AMS 52]\ntheorem exists_line : ∃ L : AffineSubspace ℝ ℝ², IsLine L := by\n  refine ⟨AffineSubspace.mk' 0 (Submodule.span ℝ {EuclideanSpace.single 0 1}), ?_⟩\n  unfold IsLine\n  rw [AffineSubspace.direction_mk']\n  apply finrank_span_singleton\n  simp\n\n/-- `M ≤ maxCollinear P` exactly when some line contains at least `M` points of `P`. -/\n@[category API, AMS 52]\ntheorem le_maxCollinear_iff (P : Finset ℝ²) (M : ℕ) :\n    M ≤ maxCollinear P ↔ ∃ L, IsLine L ∧ M ≤ pointsOn P L := by\n  have hbdd : BddAbove {k : ℕ | ∃ L, IsLine L ∧ pointsOn P L = k} := by\n    refine ⟨P.card, ?_⟩\n    rintro k ⟨L, -, rfl⟩\n    classical\n    exact Finset.card_filter_le _ _\n  have hne : {k : ℕ | ∃ L, IsLine L ∧ pointsOn P L = k}.Nonempty := by\n    obtain ⟨L, hL⟩ := exists_line\n    exact ⟨_, L, hL, rfl⟩\n  constructor\n  · intro hM\n    obtain ⟨L, hL, hk⟩ := Nat.sSup_mem hne hbdd\n    exact ⟨L, hL, hk ▸ hM⟩\n  · rintro ⟨L, hL, hM⟩\n    exact hM.trans (le_csSup hbdd ⟨L, hL, rfl⟩)\n\n/-- `M ≤ h c n` exactly when every admissible configuration of $n$ points has a line that\ncontains at least `M` of its points. -/\n@[category API, AMS 52]\ntheorem le_h_iff (c : ℝ) (n M : ℕ) :\n    (M : ℕ∞) ≤ h c n ↔\n      ∀ P : Finset ℝ², Admissible c n P → ∃ L, IsLine L ∧ M ≤ pointsOn P L := by\n  simp only [h, le_iInf_iff, Nat.cast_le]\n  refine forall_congr' fun P => imp_congr_right fun _ => ?_\n  exact le_maxCollinear_iff P M\n\n/-- The statement $h_c(n) \\to \\infty$, written without $h_c$. -/\n@[category API, AMS 52]\ntheorem tendsto_h_iff (c : ℝ) :\n    (∀ M : ℕ, ∀ᶠ n in atTop, (M : ℕ∞) ≤ h c n) ↔\n      ∀ M : ℕ, ∀ᶠ n in atTop, ∀ P : Finset ℝ², P.card = n →\n        c * (n : ℝ) ^ 2 ≤ richLineCount P → ∃ L, IsLine L ∧ M ≤ pointsOn P L := by\n  refine forall_congr' fun M => eventually_congr (Eventually.of_forall fun n => ?_)\n  rw [le_h_iff]\n  exact forall_congr' fun P => ⟨fun hP hcard hrich => hP ⟨hcard, hrich⟩,\n    fun hP hadm => hP hadm.1 hadm.2⟩\n\n/--\nLet $c > 0$ and let $h_c(n)$ be such that for any $n$ points in $\\mathbb{R}^2$ with at least\n$cn^2$ lines that each contain more than three of the points, some line contains $h_c(n)$ of\nthe points. Is it true that, for fixed $c > 0$, $h_c(n) \\to \\infty$?\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_102 :\n    ∀ c > 0, ∀ M : ℕ, ∀ᶠ n in atTop, (M : ℕ∞) ≤ h c n := by\n  sorry\n\n/--\nIt is not known whether $h_c(n) \\geq 5$ for all sufficiently large $n$.\n-/\n@[category research open, question, AMS 52]\ntheorem erdos_102.variants.five :\n    ∀ c > 0, ∀ᶠ n in atTop, (5 : ℕ∞) ≤ h c n := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIt is easy to see that $h_c(n) \\ll_c n^{1/2}$: for all sufficiently small $c > 0$ there are\nadmissible configurations (e.g. grids) in which no line contains more than $C_c n^{1/2}$ points.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/eee8e904a0eb8511302bc809b9486116ec079e69/Proofs/T_Erdos102_erdos_102_variants_upper_sqrt.lean#L1100\"]\ntheorem erdos_102.variants.upper_sqrt :\n    ∃ c₀ > (0 : ℝ), ∀ c ∈ Set.Ioc 0 c₀, ∃ C : ℝ, ∀ᶠ n in atTop,\n      h c n ≤ (⌈C * Real.sqrt n⌉₊ : ℕ∞) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős [Er95] suggested that perhaps $h_c(n) \\gg_c n^{1/2}$. Zach Hunter pointed out that this is\nfalse: the points of $\\{1, \\dots, m\\}^d$ with $n \\approx m^d$, randomly projected to\n$\\mathbb{R}^2$, meet every line in $\\ll_d n^{1/d}$ points and determine $\\gg_d n^2$ lines with\nmore than three points. This gives $h_c(n) \\ll n^{1 / \\log(1/c)}$; we state the underlying form:\nfor every $d \\geq 1$ there is $c > 0$ with $h_c(n) \\ll_d n^{1/d}$.\n-/\n@[category research solved, AMS 52, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/eee8e904a0eb8511302bc809b9486116ec079e69/Proofs/T_Erdos102_erdos_102_variants_hunter.lean#L1113\"]\ntheorem erdos_102.variants.hunter :\n    ∀ d : ℕ, 1 ≤ d → ∃ c > (0 : ℝ), ∃ C : ℝ, ∀ᶠ n in atTop,\n      h c n ≤ (⌈C * (n : ℝ) ^ (1 / (d : ℝ))⌉₊ : ℕ∞) := by\n  sorry\n\nend Erdos102\n",
  "statement_hash": "943d016647da2bc023772b8c3ee50ba93738e7d500c68b3de89ab5b57af9f1f8",
  "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."
}