/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 756

References:

    erdosproblems.com/756

    [Bh24] Bhowmick, K., A problem of Erdős about rich distances. arXiv:2407.01174 (2024).

    [CDL25] Clemen, F., Dumitrescu, A. and Liu, D., On multiplicities of interpoint distances. arXiv:2505.04283 (2025).

    [Er97b] Erdős, Paul, Some old and new problems in various branches of combinatorics. Discrete Math. (1997), 227-231.

    [ErPa90] Erdős, P. and Pach, J., Variations on the theme of repeated distances. Combinatorica (1990), 261-269.

    [HoPa34] Hopf, H. and Pannwitz, E., Aufgabe 167. Jber. Deutsch. Math. Verein. (1934), 114.

open Filteropen scoped EuclideanGeometry Asymptoticsnamespace Erdos756

The distances determined by A which occur for at least k many pairs of points of A.

noncomputable def richDistances (A : Finset ℝ²) (k : ) : Finset := (distanceSet A).filter fun d => k distanceMultiplicity A d

The largest number of distinct distances that a set of n points in $\mathbb{R}^2$ can determine, each of which occurs for more than n many pairs of points of the set.

noncomputable def maxRichDistances (n : ) : := sSup {(richDistances A (n + 1)).card | (A : Finset ℝ²) (_ : A.card = n)}

Let $A\subset \mathbb{R}^2$ be a set of $n$ points. Can there be $\gg n$ many distinct distances each of which occurs for more than $n$ many pairs from $A$?

The answer is yes: Bhowmick [Bh24] constructs a set of $n$ points in $\mathbb{R}^2$ such that $\lfloor\frac{n}{4}\rfloor$ distances occur at least $n+1$ times.

@[category research solved, AMS 52] theorem erdos_756 : answer(True) (fun n : => (n : )) =O[atTop] (fun n : => (maxRichDistances n : )) := True (fun n n) =O[atTop] fun n (maxRichDistances n) All goals completed! 🐙

Bhowmick [Bh24] constructs a set of $n$ points in $\mathbb{R}^2$ such that $\lfloor\frac{n}{4}\rfloor$ distances occur at least $n+1$ times.

@[category research solved, AMS 52, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos756.lean"] theorem erdos_756.variants.bhowmick (n : ) : A : Finset ℝ², A.card = n n / 4 (richDistances A (n + 1)).card := n: A, A.card = n n / 4 (richDistances A (n + 1)).card All goals completed! 🐙

More generally, they construct, for any $m$ and large $n$, a set of $n$ points such that $\lfloor \frac{n}{2(m+1)}\rfloor$ distances occur at least $n+m$ times.

@[category research solved, AMS 52] theorem erdos_756.variants.bhowmick_general (m : ) : ∀ᶠ n : in atTop, A : Finset ℝ², A.card = n n / (2 * (m + 1)) (richDistances A (n + m)).card := m:∀ᶠ (n : ) in atTop, A, A.card = n n / (2 * (m + 1)) (richDistances A (n + m)).card All goals completed! 🐙end Erdos756