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 89 · variants.grid_upper_bound

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:

The square grid construction, going back to Erdős and Moser, shows that nlog⁡n\frac{n}{\sqrt{\log n}} is the correct order if the conjecture is true: there are configurations whose number of distinct distances is O(nlog⁡n)O(\frac{n}{\sqrt{\log n}}).

Subjects:Metric Geometry (math.MG)
MSC classes:52
Cite as:NS.03534 [math.MG] · NS.03534v1 for this version
Declaration:Erdos89.erdos_89.variants.grid_upper_bound
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:7df6d6b528cdf6b50b7d57beaa726a9a765ee27d148c0b445d297521e9baad59
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/89.lean

Formal statement

theorem erdos_89.variants.grid_upper_bound :
    (fun n => (minimalDistinctDistances ℝ² n : ℝ)) =O[atTop]
      (fun (n : ℕ) => n/(n : ℝ).log.sqrt)
Show the full Challenge.lean (96 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 89

*References:*
- [erdosproblems.com/89](https://www.erdosproblems.com/89)
- [Er46] Erdős, Paul. On sets of distances of $n$ points. Amer. Math. Monthly
  53 (1946), 248--250.
- [GuKa15] Guth, Larry and Katz, Nets Hawk. On the Erdős distinct distances
  problem in the plane. Ann. of Math. (2) 181 (2015), 155--190.
- [Mo52] Moser, Leo. On the different distances determined by $n$ points.
  Amer. Math. Monthly 59 (1952), 85--91.

### AI disclosure

Lean 4 code in this file was drafted with assistance from OpenAI Codex.
The mathematical content and references are the author's own work.
-/

@[expose] public section

open Filter
open EuclideanGeometry

namespace Erdos89

/--
Erdős [Er46] asked whether every set of $n$ distinct points in $\mathbb{R}^2$
determines $\gg \frac{n}{\sqrt{\log n}}$ many distinct distances.
-/
@[category research open, AMS 52]
theorem erdos_89 :
    (fun (n : ℕ) => n/(n : ℝ).log.sqrt) =O[atTop]
      (fun n => (minimalDistinctDistances ℝ² n : ℝ)) := by
  sorry

/--
Guth and Katz [GuKa15] proved that there are always $\gg \frac{n}{\log n}$
many distinct distances.
-/
@[category research solved, AMS 52]
theorem erdos_89.variants.n_dvd_log_n :
    (fun (n : ℕ) => n/(n : ℝ).log) =O[atTop]
      (fun n => (minimalDistinctDistances ℝ² n : ℝ)) := by
  sorry

/--
The square grid construction, going back to Erdős and Moser, shows that
$\frac{n}{\sqrt{\log n}}$ is the correct order if the conjecture is true:
there are configurations whose number of distinct distances is
$O(\frac{n}{\sqrt{\log n}})$.
-/
@[category research solved, AMS 52]
theorem erdos_89.variants.grid_upper_bound :
    (fun n => (minimalDistinctDistances ℝ² n : ℝ)) =O[atTop]
      (fun (n : ℕ) => n/(n : ℝ).log.sqrt) := by
  sorry

/--
This theorem provides a sanity check, showing that the main conjecture (`erdos_89`) is strictly
stronger than the solved Guth and Katz result. It proves that, trivially, if the lower bound
$\frac{n}{\sqrt{\log n}}$ holds, then the weaker lower bound $\frac{n}{\log n}$ must also hold.
-/
@[category test, AMS 52]
theorem erdos_89.variants.implies_n_dvd_log_n (h : type_of% erdos_89) :
    type_of% erdos_89.variants.n_dvd_log_n := by
  refine .trans ?_ h
  have := (Asymptotics.isLittleO_one_left_iff ℝ).mpr <| tendsto_norm_atTop_atTop.comp <|
    (tendsto_rpow_atTop (show 0 < 1/2 by norm_num)).comp
    (Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop)
  convert! (Asymptotics.isBigO_refl (fun n : ℕ ↦ n/(n : ℝ).log) _).mul this.isBigO using 1
  · simp
  · simp_rw [Function.comp, div_mul, ← Real.sqrt_eq_rpow, Real.div_sqrt]

-- TODO(firsching): formalize any remaining remarks from the erdosproblems.com page.

end Erdos89

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

nosorry desk erdos-89--erdos-89-variants-grid-upper-bound      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-89--erdos-89-variants-grid-upper-bound
nosorry submit erdos-89--erdos-89-variants-grid-upper-bound nosorry/erdos-89--erdos-89-variants-grid-upper-bound/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.