Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 209

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let AA be a finite collection of d≥4d\geq 4 non-parallel lines in R2\mathbb{R}^2 such that there are no points where at least four lines from AA meet. Must there exist a 'Gallai triangle' (or 'ordinary triangle'): three lines from AA which intersect in three points, and each of these intersection points only intersects two lines from AA?

Füredi and Palásti [FuPa84] showed this is false when d≥4d\geq 4 is not divisible by 99. Escudero [Es16] showed this is false for all d≥4d\geq 4.

Subjects:Metric Geometry (math.MG)
MSC classes:52
Tags:question, formal_proof
Cite as:NS.01303 [math.MG] · NS.01303v1 for this version
Declaration:Erdos209.erdos_209
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:070db0413d86349d4df1f19c1437d5c1e7fd5b703ab9a50b2f263dae906cff20
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/209.lean

Formal statement

theorem erdos_209 :
    ¬ ∀ d : ℕ, 4 ≤ d → ∀ A : Finset (AffineSubspace ℝ ℝ²), A.card = d →
      (∀ L ∈ A, IsLine L) →
      ((A : Set (AffineSubspace ℝ ℝ²)).Pairwise fun L₁ L₂ => ¬ L₁ ∥ L₂) →
      (∀ p : ℝ², pointMultiplicity A p ≤ 3) →
      HasGallaiTriangle A
Show the full Challenge.lean (75 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 209

*References:*
- [erdosproblems.com/209](https://www.erdosproblems.com/209)
- [Er84] Erdős, P., *Research problems*. Period. Math. Hungar. (1984), 101-103.
- [ErPu95b] Erdős, Paul and Purdy, George, *Extremal problems in combinatorial geometry*.
  Handbook of combinatorics, Vol. 1, 2 (1995), 809-874.
- [FuPa84] Füredi, Z. and Palásti, I., *Arrangements of lines with a large number of triangles*.
  Proc. Amer. Math. Soc. (1984), 561-566.
- [Es16] Escudero, Juan García, *Gallai triangles in configurations of lines in the projective
  plane*. C. R. Math. Acad. Sci. Paris (2016), 551-554.
-/

@[expose] public section

open EuclideanGeometry Affine

namespace Erdos209

/-- The number of lines from `A` that pass through the point `p`. -/
noncomputable def pointMultiplicity (A : Finset (AffineSubspace ℝ ℝ²)) (p : ℝ²) : ℕ :=
  {L ∈ (A : Set (AffineSubspace ℝ ℝ²)) | p ∈ L}.ncard

/--
A *Gallai triangle* (or *ordinary triangle*) in a collection `A` of lines: three lines from `A`
which intersect in three points, and each of these intersection points only intersects two
lines from `A`.
-/
def HasGallaiTriangle (A : Finset (AffineSubspace ℝ ℝ²)) : Prop :=
  ∃ L₁ ∈ A, ∃ L₂ ∈ A, ∃ L₃ ∈ A, L₁ ≠ L₂ ∧ L₂ ≠ L₃ ∧ L₁ ≠ L₃ ∧
    ∃ p₁ p₂ p₃ : ℝ², p₁ ≠ p₂ ∧ p₂ ≠ p₃ ∧ p₁ ≠ p₃ ∧
      p₁ ∈ L₁ ∧ p₁ ∈ L₂ ∧ p₂ ∈ L₂ ∧ p₂ ∈ L₃ ∧ p₃ ∈ L₃ ∧ p₃ ∈ L₁ ∧
      pointMultiplicity A p₁ = 2 ∧ pointMultiplicity A p₂ = 2 ∧ pointMultiplicity A p₃ = 2

set_option linter.style.formal_proof_palomar false in
/--
Let $A$ be a finite collection of $d\geq 4$ non-parallel lines in $\mathbb{R}^2$ such that
there are no points where at least four lines from $A$ meet. Must there exist a 'Gallai
triangle' (or 'ordinary triangle'): three lines from $A$ which intersect in three points, and
each of these intersection points only intersects two lines from $A$?

Füredi and Palásti [FuPa84] showed this is false when $d\geq 4$ is not divisible by $9$.
Escudero [Es16] showed this is false for all $d\geq 4$.
-/
@[category research solved, question, AMS 52, formal_proof using lean4 at "https://github.com/Jayyhk/erdos-lean/blob/110d489ed5c07e5b216453e092e9113127c98c9a/problems/209/Erdos209.lean"]
theorem erdos_209 :
    ¬ ∀ d : ℕ, 4 ≤ d → ∀ A : Finset (AffineSubspace ℝ ℝ²), A.card = d →
      (∀ L ∈ A, IsLine L) →
      ((A : Set (AffineSubspace ℝ ℝ²)).Pairwise fun L₁ L₂ => ¬ L₁ ∥ L₂) →
      (∀ p : ℝ², pointMultiplicity A p ≤ 3) →
      HasGallaiTriangle A := by
  sorry

end Erdos209

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos209.erdos_209 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_209 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-209
nosorry submit erdos-209 nosorry/erdos-209/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.