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 959

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

Let A⊆R2A\subseteq \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, ordered so that f(d1)≥f(d2)≥⋯≥f(dk)f(d_1)\geq f(d_2)\geq \cdots \geq f(d_k). Estimate max⁡(f(d1)−f(d2)),\max (f(d_1)-f(d_2)), where the maximum is taken over all AA of size nn (this is extremalGap n).

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

Formal statement

theorem erdos_959 :
    (fun n ↦ (extremalGap n : ℝ)) =Θ[atTop] erdos_959.answer
Show the full Challenge.lean (105 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 959

*Reference:* [erdosproblems.com/959](https://www.erdosproblems.com/959)
-/

@[expose] public section

namespace Erdos959

open EuclideanGeometry Filter

noncomputable section

/-- The unordered index pairs, represented uniquely by the orientation `i < j`. -/
def indexPairs (n : ℕ) : Finset (Fin n × Fin n) :=
  (Finset.univ ×ˢ Finset.univ).filter fun ij => ij.1 < ij.2

/-- The finite set of distinct distances determined by a configuration. -/
def distanceValues {n : ℕ} (P : Fin n → ℝ²) : Finset ℝ :=
  (indexPairs n).image fun ij => dist (P ij.1) (P ij.2)

/-- $f(d)$: the number of unordered pairs in $P$ determining distance $d$. -/
def frequency {n : ℕ} (P : Fin n → ℝ²) (d : ℝ) : ℕ :=
  ((indexPairs n).filter fun ij => dist (P ij.1) (P ij.2) = d).card

/-- For a fixed distance $d$, the largest multiplicity among all *other*
represented distances (`Finset.sup` returns $0$ when there is no other value). -/
def runnerUpFrequency {n : ℕ} (P : Fin n → ℝ²) (d : ℝ) : ℕ :=
  ((distanceValues P).erase d).sup (frequency P)

/-- $f(d_1) - f(d_2)$: the gap between the largest and second-largest distance
multiplicities. The supremum over $d$ handles both a unique winner and a tie:
non-winners contribute $0$ by truncated subtraction, and tied winners also
contribute $0$. -/
def multiplicityGap {n : ℕ} (P : Fin n → ℝ²) : ℕ :=
  (distanceValues P).sup fun d => frequency P d - runnerUpFrequency P d

/-- A configuration represents a set of size $n$ (injective) and has at least
two distinct distances, so that $d_2$ exists. -/
def Admissible {n : ℕ} (P : Fin n → ℝ²) : Prop :=
  Function.Injective P ∧ 2 ≤ (distanceValues P).card

/-- A natural number occurs as the top-two multiplicity gap of some admissible
$n$-point configuration. -/
def AttainableGap (n g : ℕ) : Prop :=
  ∃ P : Fin n → ℝ², Admissible P ∧ multiplicityGap P = g

/-- The extremal quantity of the problem, $\max_{|A| = n} (f(d_1) - f(d_2))$. There
are `Nat.choose n 2` unordered pairs, so this is a valid finite search interval. -/
def extremalGap (n : ℕ) : ℕ := by
  classical
  exact Nat.findGreatest (AttainableGap n) (Nat.choose n 2)

def erdos_959.answer : ℕ → ℝ := sorry

/--
Let $A\subseteq \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, ordered so that
$f(d_1)\geq f(d_2)\geq \cdots \geq f(d_k)$. Estimate
$$\max (f(d_1)-f(d_2)),$$
where the maximum is taken over all $A$ of size $n$ (this is `extremalGap n`).
-/
@[category research open, question value, AMS 52]
theorem erdos_959 :
    (fun n ↦ (extremalGap n : ℝ)) =Θ[atTop] erdos_959.answer := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
A superlinear lower bound: there is a $c>0$ with
$$\text{extremalGap}(n)\geq n^{1 + c/\log\log n}$$
for all large $n$, so $\max (f(d_1)-f(d_2))$ grows faster than any linear function
of $n$. Determining the exact order remains open, which is `erdos_959`.
-/
@[category research solved, AMS 52, formal_proof using lean4 at "https://github.com/williamjblair/lean-proofs/blob/4f915a323443bfb1709a6805a013812016dca88a/starfleet/erdos-959/Research/FinalLowerBound.lean"]
theorem erdos_959.lower_bound :
    ∃ c : ℝ, 0 < c ∧ ∃ N : ℕ, ∀ n ≥ N,
      (n : ℝ) ^ (1 + c / Real.log (Real.log n)) ≤ extremalGap n := by
  sorry

end

end Erdos959

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

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