{
  "id": "481",
  "ident": "NS.00481",
  "slug": "erdos-105",
  "title": "Erdős Problem 105",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A,B\\subset \\mathbb{R}^2$ be disjoint sets of size $n$ and $n-3$ respectively, with not all\nof $A$ contained on a single line. Is there a line which contains at least two points from $A$\nand no points from $B$?\n\nThis has been disproved by Xichuan in the comments, who has found three explicit\ncounterexamples.",
  "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": "Erdos105.erdos_105",
  "statement_lean": "theorem erdos_105 :\n    ¬ ∀ A B : Finset ℝ², Disjoint A B → A.card = B.card + 3 →\n      ¬ Collinear ℝ (A : Set ℝ²) →\n      ∃ p ∈ A, ∃ q ∈ A, p ≠ q ∧ ∀ b ∈ B, b ∉ line[ℝ, p, q]",
  "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 105\n\n*References:*\n- [erdosproblems.com/105](https://www.erdosproblems.com/105)\n- [Be83] Beck, József, *On the lattice property of the plane and some problems of Dirac, Motzkin\n  and Erdős in combinatorial geometry*. Combinatorica (1983), 281-297.\n- [ErPu95] Erdős, P. and Purdy, G., *Two combinatorial problems in the plane*. Discrete Comput.\n  Geom. (1995), 441-443.\n- [SzTr83] Szemerédi, Endre and Trotter, Jr., William T., *Extremal problems in discrete\n  geometry*. Combinatorica (1983), 381-392.\n-/\n\n@[expose] public section\n\nopen EuclideanGeometry\n\nnamespace Erdos105\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A,B\\subset \\mathbb{R}^2$ be disjoint sets of size $n$ and $n-3$ respectively, with not all\nof $A$ contained on a single line. Is there a line which contains at least two points from $A$\nand no points from $B$?\n\nThis has been disproved by Xichuan in the comments, who has found three explicit\ncounterexamples.\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/Erdos105.lean\"]\ntheorem erdos_105 :\n    ¬ ∀ A B : Finset ℝ², Disjoint A B → A.card = B.card + 3 →\n      ¬ Collinear ℝ (A : Set ℝ²) →\n      ∃ p ∈ A, ∃ q ∈ A, p ≠ q ∧ ∀ b ∈ B, b ∉ line[ℝ, p, q] := by\n  sorry\n\n/--\nA construction of Hickerson shows that this fails with $n-2$.\n-/\n@[category research solved, AMS 5 52]\ntheorem erdos_105.variants.hickerson : ¬ ∀ A B : Finset ℝ², Disjoint A B →\n    A.card = B.card + 2 → ¬ Collinear ℝ (A : Set ℝ²) →\n    ∃ p ∈ A, ∃ q ∈ A, p ≠ q ∧ ∀ b ∈ B, b ∉ line[ℝ, p, q] := by\n  sorry\n\n/--\nA result independently proved by Beck [Be83] and Szemerédi and Trotter [SzTr83] (see [211])\nimplies it is true with $n-3$ replaced by $cn$ for some constant $c>0$.\n-/\n@[category research solved, AMS 5 52]\ntheorem erdos_105.variants.beck_szemeredi_trotter : ∃ c > (0 : ℝ),\n    ∀ A B : Finset ℝ², Disjoint A B → (B.card : ℝ) ≤ c * A.card →\n      ¬ Collinear ℝ (A : Set ℝ²) →\n      ∃ p ∈ A, ∃ q ∈ A, p ≠ q ∧ ∀ b ∈ B, b ∉ line[ℝ, p, q] := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIt remains possible that this holds with $n-4$ (or in general with $n-O(1)$ or $(1-o(1))n$).\n\nThis fails with $n-4$ as well: Core_65536 gives an explicit counterexample in the\n[forum](https://www.erdosproblems.com/forum/thread/105#post-8033) (24 July 2026), with $|A| = 10$\nand $|B| = 6$ and integer coordinates, in which every line through two points of $A$ contains a\npoint of $B$. The incidences have been verified in Lean.\n-/\n@[category research solved, question, AMS 5 52, formal_proof using lean4 at\n  \"https://github.com/kusasyu36/erdos105-sub-four/blob/a2d073034d2d15af216d8bd71771f1eda13b3de3/Erdos105SubFour.lean#L93\"]\ntheorem erdos_105.variants.sub_four :\n    ¬ ∀ A B : Finset ℝ², Disjoint A B → A.card = B.card + 4 →\n      ¬ Collinear ℝ (A : Set ℝ²) →\n      ∃ p ∈ A, ∃ q ∈ A, p ≠ q ∧ ∀ b ∈ B, b ∉ line[ℝ, p, q] := by\n  sorry\n\nend Erdos105\n",
  "statement_hash": "a539a645a6b9ab559a5f7301ad708ab6fba69c02688503f7d5f88651db9e06d5",
  "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."
}