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 957

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 A⊂R2A\subset \mathbb{R}^2 be a set of size nn and let {d1<…<dk}\{d_1<\ldots<d_k\} be the set of distinct distances determined by AA. Let f(d)f(d) be the number of times the distance dd is determined. Is it true that f(d1)f(dk)≤(98+o(1))n2?f(d_1)f(d_k) \leq (\tfrac{9}{8}+o(1))n^2?

A question of Erdős and Pach [ErPa90]. The answer is yes, proved by Dumitrescu [Du19]. Here f(d)f(d) counts unordered pairs of points of AA at distance dd (distanceMultiplicity), and o(1)o(1) is uniform over all AA of size nn.

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

Formal statement

theorem erdos_957 :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², A.card = n →
      ∀ d₁ dₖ : ℝ, IsLeast (distanceSet A : Set ℝ) d₁ →
        IsGreatest (distanceSet A : Set ℝ) dₖ →
          (distanceMultiplicity A d₁ : ℝ) * distanceMultiplicity A dₖ ≤
            (9 / 8 + ε) * (n : ℝ) ^ 2
Show the full Challenge.lean (76 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 957

*References:*
- [erdosproblems.com/957](https://www.erdosproblems.com/957)
- [Du19] Dumitrescu, Adrian, *A product inequality for extreme distances*.
  Comput. Geom. 85 (2019), 101577.
  [PDF](https://adriandumitrescu.org/product-ineq.pdf)
- [ErPa90] Erdős, P. and Pach, J., *Variations on the theme of repeated distances*.
  Combinatorica 10 (1990), 261-269.
-/

@[expose] public section

open Filter
open scoped EuclideanGeometry

namespace Erdos957

set_option linter.style.formal_proof_palomar false in
/--
Let $A\subset \mathbb{R}^2$ be a set of size $n$ and let $\{d_1<\ldots<d_k\}$ be the set of
distinct distances determined by $A$. Let $f(d)$ be the number of times the distance $d$ is
determined. Is it true that
$$f(d_1)f(d_k) \leq (\tfrac{9}{8}+o(1))n^2?$$

A question of Erdős and Pach [ErPa90]. The answer is yes, proved by Dumitrescu [Du19]. Here
$f(d)$ counts unordered pairs of points of $A$ at distance $d$ (`distanceMultiplicity`), and
$o(1)$ is uniform over all $A$ of size $n$.
-/
@[category research solved, question, AMS 5 52, formal_proof using lean4 at
    "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos957.lean#L57"]
theorem erdos_957 :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℝ², A.card = n →
      ∀ d₁ dₖ : ℝ, IsLeast (distanceSet A : Set ℝ) d₁ →
        IsGreatest (distanceSet A : Set ℝ) dₖ →
          (distanceMultiplicity A d₁ : ℝ) * distanceMultiplicity A dₖ ≤
            (9 / 8 + ε) * (n : ℝ) ^ 2 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The original problem was solved by Dumitrescu [Du19, Theorem 1], who proved that
$$f(d_1)f(d_k)\leq \frac{9}{8}n^2+O(n).$$
Here a single constant $C$ in the error term $Cn$ works for all finite $A \subset \mathbb{R}^2$.
-/
@[category research solved, AMS 5 52, formal_proof using lean4 at
    "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos957.lean#L44"]
theorem erdos_957.variants.dumitrescu :
    ∃ C : ℝ, ∀ A : Finset ℝ², ∀ d₁ dₖ : ℝ, IsLeast (distanceSet A : Set ℝ) d₁ →
      IsGreatest (distanceSet A : Set ℝ) dₖ →
        (distanceMultiplicity A d₁ : ℝ) * distanceMultiplicity A dₖ ≤
          9 / 8 * (A.card : ℝ) ^ 2 + C * (A.card : ℝ) := by
  sorry

end Erdos957

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

nosorry fetch erdos-957
nosorry submit erdos-957 nosorry/erdos-957/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.