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 1087

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Let f(n)f(n) be minimal such that every set of nn points in R2\mathbb{R}^2 contains at most f(n)f(n) many sets of four points which are 'degenerate' in the sense that some pair are the same distance apart. Estimate f(n)f(n) - in particular, is it true that f(n)≤n3+o(1)f(n)\leq n^{3+o(1)}?

Here a set of four points is degenerate if two of its six pairwise distances are equal, and f(n)≤n3+o(1)f(n)\leq n^{3+o(1)} is read as f(n)≪n3+εf(n) \ll n^{3+\varepsilon} for every ε>0\varepsilon > 0.

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

Formal statement

theorem erdos_1087 :
    ∀ ε > (0 : ℝ), (fun n : ℕ ↦ (f n : ℝ)) =O[atTop] fun n : ℕ ↦ (n : ℝ) ^ (3 + ε)
Show the full Challenge.lean (103 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1087

*References:*
- [erdosproblems.com/1087](https://www.erdosproblems.com/1087)
- [ErPu71] Erdős, P. and Purdy, G., *Some extremal problems in geometry*. J. Combinatorial Theory
  Ser. A 10 (1971), 246-252.
-/

@[expose] public section

open Filter Asymptotics
open scoped EuclideanGeometry

namespace Erdos1087

/-- A finite set of points has a repeated distance if two of its pairs of points are the same
distance apart, that is, if it determines fewer distinct distances than it has pairs. -/
def HasRepeatedDistance (S : Finset ℝ²) : Prop :=
  distinctDistances S < S.card.choose 2

open scoped Classical in
/-- The number of degenerate four-element subsets of `P`, that is, those in which two of the six
pairwise distances are equal. -/
noncomputable def degenerateCount (P : Finset ℝ²) : ℕ :=
  ((P.powersetCard 4).filter HasRepeatedDistance).card

/-- $f(n)$: the maximum, over all sets of $n$ points in the plane, of the number of degenerate
four-element subsets. The set of values is nonempty and bounded by $\binom{n}{4}$, so `sSup` is
a true maximum. -/
noncomputable def f (n : ℕ) : ℕ :=
  sSup {m : ℕ | ∃ P : Finset ℝ², P.card = n ∧ degenerateCount P = m}

/-- A set of `n` points has at most $\binom{n}{4}$ degenerate four-element subsets. -/
@[category API, AMS 52]
theorem degenerateCount_le (P : Finset ℝ²) : degenerateCount P ≤ P.card.choose 4 := by
  classical
  unfold degenerateCount
  exact (Finset.card_filter_le _ _).trans (Finset.card_powersetCard 4 P).le

/-- A set of points has at most `f n` degenerate four-element subsets. -/
@[category API, AMS 52]
theorem degenerateCount_le_f (P : Finset ℝ²) : degenerateCount P ≤ f P.card := by
  refine le_csSup ⟨P.card.choose 4, ?_⟩ ⟨P, rfl, rfl⟩
  rintro m ⟨Q, hQ, rfl⟩
  exact hQ ▸ degenerateCount_le Q

/--
Let $f(n)$ be minimal such that every set of $n$ points in $\mathbb{R}^2$ contains at most $f(n)$
many sets of four points which are 'degenerate' in the sense that some pair are the same distance
apart. Estimate $f(n)$ - in particular, is it true that $f(n)\leq n^{3+o(1)}$?

Here a set of four points is degenerate if two of its six pairwise distances are equal, and
$f(n)\leq n^{3+o(1)}$ is read as $f(n) \ll n^{3+\varepsilon}$ for every $\varepsilon > 0$.
-/
@[category research open, question, AMS 52]
theorem erdos_1087 :
    ∀ ε > (0 : ℝ), (fun n : ℕ ↦ (f n : ℝ)) =O[atTop] fun n : ℕ ↦ (n : ℝ) ^ (3 + ε) := by
  sorry

/--
Erdős and Purdy [ErPu71] proved
$$n^3\log n \ll f(n) \ll n^{7/2}.$$

This is the lower bound.
-/
@[category research solved, AMS 52]
theorem erdos_1087.variants.lower :
    (fun n : ℕ ↦ (n : ℝ) ^ 3 * Real.log n) =O[atTop] fun n : ℕ ↦ (f n : ℝ) := by
  sorry

/--
Erdős and Purdy [ErPu71] proved
$$n^3\log n \ll f(n) \ll n^{7/2}.$$

This is the upper bound.
-/
@[category research solved, AMS 52]
theorem erdos_1087.variants.upper :
    (fun n : ℕ ↦ (f n : ℝ)) =O[atTop] fun n : ℕ ↦ (n : ℝ) ^ (7 / 2 : ℝ) := by
  sorry

end Erdos1087

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

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

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.