{
  "id": "1303",
  "ident": "NS.01303",
  "slug": "erdos-209",
  "title": "Erdős Problem 209",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A$ be a finite collection of $d\\geq 4$ non-parallel lines in $\\mathbb{R}^2$ such that\nthere are no points where at least four lines from $A$ meet. Must there exist a 'Gallai\ntriangle' (or 'ordinary triangle'): three lines from $A$ which intersect in three points, and\neach of these intersection points only intersects two lines from $A$?\n\nFüredi and Palásti [FuPa84] showed this is false when $d\\geq 4$ is not divisible by $9$.\nEscudero [Es16] showed this is false for all $d\\geq 4$.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos209.erdos_209",
  "statement_lean": "theorem erdos_209 :\n    ¬ ∀ d : ℕ, 4 ≤ d → ∀ A : Finset (AffineSubspace ℝ ℝ²), A.card = d →\n      (∀ L ∈ A, IsLine L) →\n      ((A : Set (AffineSubspace ℝ ℝ²)).Pairwise fun L₁ L₂ => ¬ L₁ ∥ L₂) →\n      (∀ p : ℝ², pointMultiplicity A p ≤ 3) →\n      HasGallaiTriangle A",
  "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 209\n\n*References:*\n- [erdosproblems.com/209](https://www.erdosproblems.com/209)\n- [Er84] Erdős, P., *Research problems*. Period. Math. Hungar. (1984), 101-103.\n- [ErPu95b] Erdős, Paul and Purdy, George, *Extremal problems in combinatorial geometry*.\n  Handbook of combinatorics, Vol. 1, 2 (1995), 809-874.\n- [FuPa84] Füredi, Z. and Palásti, I., *Arrangements of lines with a large number of triangles*.\n  Proc. Amer. Math. Soc. (1984), 561-566.\n- [Es16] Escudero, Juan García, *Gallai triangles in configurations of lines in the projective\n  plane*. C. R. Math. Acad. Sci. Paris (2016), 551-554.\n-/\n\n@[expose] public section\n\nopen EuclideanGeometry Affine\n\nnamespace Erdos209\n\n/-- The number of lines from `A` that pass through the point `p`. -/\nnoncomputable def pointMultiplicity (A : Finset (AffineSubspace ℝ ℝ²)) (p : ℝ²) : ℕ :=\n  {L ∈ (A : Set (AffineSubspace ℝ ℝ²)) | p ∈ L}.ncard\n\n/--\nA *Gallai triangle* (or *ordinary triangle*) in a collection `A` of lines: three lines from `A`\nwhich intersect in three points, and each of these intersection points only intersects two\nlines from `A`.\n-/\ndef HasGallaiTriangle (A : Finset (AffineSubspace ℝ ℝ²)) : Prop :=\n  ∃ L₁ ∈ A, ∃ L₂ ∈ A, ∃ L₃ ∈ A, L₁ ≠ L₂ ∧ L₂ ≠ L₃ ∧ L₁ ≠ L₃ ∧\n    ∃ p₁ p₂ p₃ : ℝ², p₁ ≠ p₂ ∧ p₂ ≠ p₃ ∧ p₁ ≠ p₃ ∧\n      p₁ ∈ L₁ ∧ p₁ ∈ L₂ ∧ p₂ ∈ L₂ ∧ p₂ ∈ L₃ ∧ p₃ ∈ L₃ ∧ p₃ ∈ L₁ ∧\n      pointMultiplicity A p₁ = 2 ∧ pointMultiplicity A p₂ = 2 ∧ pointMultiplicity A p₃ = 2\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A$ be a finite collection of $d\\geq 4$ non-parallel lines in $\\mathbb{R}^2$ such that\nthere are no points where at least four lines from $A$ meet. Must there exist a 'Gallai\ntriangle' (or 'ordinary triangle'): three lines from $A$ which intersect in three points, and\neach of these intersection points only intersects two lines from $A$?\n\nFüredi and Palásti [FuPa84] showed this is false when $d\\geq 4$ is not divisible by $9$.\nEscudero [Es16] showed this is false for all $d\\geq 4$.\n-/\n@[category research solved, question, AMS 52, formal_proof using lean4 at \"https://github.com/Jayyhk/erdos-lean/blob/110d489ed5c07e5b216453e092e9113127c98c9a/problems/209/Erdos209.lean\"]\ntheorem erdos_209 :\n    ¬ ∀ d : ℕ, 4 ≤ d → ∀ A : Finset (AffineSubspace ℝ ℝ²), A.card = d →\n      (∀ L ∈ A, IsLine L) →\n      ((A : Set (AffineSubspace ℝ ℝ²)).Pairwise fun L₁ L₂ => ¬ L₁ ∥ L₂) →\n      (∀ p : ℝ², pointMultiplicity A p ≤ 3) →\n      HasGallaiTriangle A := by\n  sorry\n\nend Erdos209\n",
  "statement_hash": "070db0413d86349d4df1f19c1437d5c1e7fd5b703ab9a50b2f263dae906cff20",
  "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."
}