{
  "id": "3563",
  "ident": "NS.03563",
  "slug": "erdos-90",
  "title": "Erdős Problem 90: The unit distance problem",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Does every set of $n$ distinct points in $\\mathbb{R}^2$ contain at most\n$n^{1+O(\\frac{1}{\\log\\log n})}$ many pairs which are distance $1$ apart?\n\nThis was\n[disproved](https://cdn.openai.com/pdf/74c24085-19b0-4534-9c90-465b8e29ad73/unit-distance-proof.pdf)\nby an internal model at OpenAI, which constructed (for infinitely many $n$) a set $P$ of $n$ points\nin $\\mathbb{R}^2$ such that the number of unit distance pairs in $P$ is at least $n^{1+c}$, where\n$c > 0$ is an absolute constant.",
  "subjects": [
    "math.MG",
    "msc:52"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/90",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos90.erdos_90",
  "statement_lean": "theorem erdos_90 : ¬ ∃ (O : ℕ → ℝ) (hO : O =O[atTop] (fun n => 1 / (n : ℝ).log.log)),\n    (fun n => (maxUnitDistances n : ℝ)) =ᶠ[atTop] fun (n : ℕ) => (n : ℝ) ^ (1 + O n)",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 90: The unit distance problem\n\n*Reference:* [erdosproblems.com/90](https://www.erdosproblems.com/90)\n\nThe conjecture asks whether every set of $n$ points in $\\mathbb{R}^2$ determines at most\n$n^{1 + O(1/\\log\\log n)}$ unit distances. It was **disproved** in May 2026: an internal model at\nOpenAI produced a construction beating the conjectured bound, with the proof digested and\nhuman-verified in two arXiv papers:\n\n* W. Sawin, [*An explicit lower bound for the unit distance problem*](https://arxiv.org/abs/2605.20579)\n  (2026), giving $u(n) \\ge n^{1.014114}/C$ for infinitely many $n$;\n* N. Alon, T. F. Bloom, W. T. Gowers, D. Litt, W. Sawin, A. Shankar, J. Tsimerman, V. Wang and\n  M. Matchett Wood, [*Remarks on the disproof of the unit distance conjecture*](https://arxiv.org/abs/2605.20695)\n  (2026), giving the qualitative form $u(n) \\ge n^{1+\\varepsilon}$ for some $\\varepsilon > 0$.\n\nThis file records the main statement (`erdos_90`), the two constructive disproof variants, the\nlogical implications between them, and the load-bearing reductions of Sawin's proof\n(`sawin_lattice_reduction` and `sawin_totally_real_tower`) as further benchmark challenges.\n-/\n\n@[expose] public section\n\nopen Filter EuclideanGeometry NumberField\nopen scoped EuclideanGeometry\n\nnamespace Erdos90\nopen Finset\n\n/--\nThe set of all possible numbers of unit distances for a configuration of $n$ points.\n-/\nnoncomputable def unitDistanceCounts (n : ℕ) : Set ℕ :=\n  {unitDistNum points | (points : Finset ℝ²) (_ : points.card = n)}\n\n/--\nThis lemma confirms that the set of possible unit distance counts is bounded above, which\nensures that taking the supremum (`sSup`) is a well-defined operation. The trivial upper bound is\nthe total number of pairs of points, $\\binom{n}{2}$.\n-/\n@[category test, AMS 52]\ntheorem unitDistanceCounts_BddAbove (n : ℕ) : BddAbove <| unitDistanceCounts n := by\n  use n.choose 2\n  rintro _ ⟨points, rfl, rfl⟩\n  exact unitDistNum_le_choose_two points\n\n\n/--\nThe **maximum number of unit distances** determined by any set of $n$ points in the plane.\nThis function is often denoted as $u(n)$ in combinatorics.\n-/\nnoncomputable def maxUnitDistances (n : ℕ) : ℕ :=\n  sSup (unitDistanceCounts n)\n\n\n/--\nDoes every set of $n$ distinct points in $\\mathbb{R}^2$ contain at most\n$n^{1+O(\\frac{1}{\\log\\log n})}$ many pairs which are distance $1$ apart?\n\nThis was\n[disproved](https://cdn.openai.com/pdf/74c24085-19b0-4534-9c90-465b8e29ad73/unit-distance-proof.pdf)\nby an internal model at OpenAI, which constructed (for infinitely many $n$) a set $P$ of $n$ points\nin $\\mathbb{R}^2$ such that the number of unit distance pairs in $P$ is at least $n^{1+c}$, where\n$c > 0$ is an absolute constant.\n-/\n@[category research solved, question, AMS 52]\ntheorem erdos_90 : ¬ ∃ (O : ℕ → ℝ) (hO : O =O[atTop] (fun n => 1 / (n : ℝ).log.log)),\n    (fun n => (maxUnitDistances n : ℝ)) =ᶠ[atTop] fun (n : ℕ) => (n : ℝ) ^ (1 + O n) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n**Constructive form of the disproof.** There is an absolute constant $c > 0$ such that\ninfinitely many $n$ admit a configuration realising at least $n^{1+c}$ unit distances.\n\nThis is the qualitative content of Theorem 1.1 of Alon–Bloom–Gowers–Litt–Sawin–Shankar–\nTsimerman–Wang–Matchett Wood, [*Remarks on the disproof of the unit distance conjecture*](https://arxiv.org/abs/2605.20695)\n(2026). An explicit bound $c \\ge 0.014114$ is given by Sawin, [*An explicit lower bound for the\nunit distance problem*](https://arxiv.org/abs/2605.20579) (2026); see\n`erdos_90.variants.sawin_explicit` below.\n-/\n@[category research solved, AMS 52,\n  formal_proof using lean4 at \"https://github.com/plby/Erdos90/blob/2062b0e6c9770c81e397bfe41148e90b92ca0567/src/submission/Solution.lean#L6\"]\ntheorem erdos_90.variants.polynomial_lower_bound :\n    ∃ c > (0 : ℝ),\n      {n : ℕ | (n : ℝ) ^ (1 + c) ≤ (maxUnitDistances n : ℝ)}.Infinite := by\n  sorry\n\n/--\n**Sawin's explicit exponent.** The constructive disproof can be realised with $c \\ge 0.014114$\n(absorbing the implicit constant $C$ of Sawin's Theorem 1 into a slightly smaller exponent for\nall large enough $n$). Reference: Theorem 1 of Sawin, [arXiv:2605.20579](https://arxiv.org/abs/2605.20579)\n(2026).\n-/\n@[category research solved, AMS 52]\ntheorem erdos_90.variants.sawin_explicit :\n    {n : ℕ | (n : ℝ) ^ (1.014114 : ℝ) ≤ (maxUnitDistances n : ℝ)}.Infinite := by\n  sorry\n\n/-- Sawin's explicit bound implies the qualitative polynomial lower bound, by taking\n$c = 0.014114$. -/\n@[category test, AMS 52]\ntheorem erdos_90.variants.sawin_explicit_implies_polynomial_lower_bound :\n    type_of% erdos_90.variants.sawin_explicit →\n    type_of% erdos_90.variants.polynomial_lower_bound := by\n  intro h\n  exact ⟨0.014114, by norm_num, by convert h; norm_num⟩\n\n/-- The polynomial lower bound implies the answer to Erdős 90 is `False`: a fixed positive\nexponent $c$ is incompatible with the conjectured $O(1 / \\log \\log n)$ growth. -/\n@[category test, AMS 52]\ntheorem erdos_90.variants.polynomial_lower_bound_implies_erdos_90 :\n    type_of% erdos_90.variants.polynomial_lower_bound →\n    type_of% erdos_90 := by\n  rintro ⟨c, hc, hInf⟩ ⟨O_fn, hO_bigO, hO_eq⟩\n  -- 1/log(log(n)) → 0, so O_fn = O(1/log log n) implies O_fn → 0\n  have hg : Tendsto (fun n : ℕ => (1 : ℝ) / (↑n : ℝ).log.log) atTop (nhds 0) := by\n    simp_rw [one_div]\n    exact tendsto_inv_atTop_zero.comp\n      (Real.tendsto_log_atTop.comp (Real.tendsto_log_atTop.comp tendsto_natCast_atTop_atTop))\n  have hO_zero : Tendsto O_fn atTop (nhds 0) :=\n    (Asymptotics.isLittleO_one_iff ℝ).mp\n      (hO_bigO.trans_isLittleO ((Asymptotics.isLittleO_one_iff ℝ).mpr hg))\n  -- Eventually u(n) < n^{1+c}, contradicting the infinitely-often lower bound\n  have hLt : ∀ᶠ (n : ℕ) in atTop, ¬((n : ℝ) ^ (1 + c) ≤ (maxUnitDistances n : ℝ)) := by\n    filter_upwards [hO_eq, hO_zero.eventually (Iio_mem_nhds hc), eventually_ge_atTop 2]\n      with n hEq hOLt hn\n    rw [not_le, hEq]\n    exact Real.rpow_lt_rpow_of_exponent_lt (by exact_mod_cast (by omega : 1 < n)) (by linarith)\n  rw [← cofinite_eq_atTop] at hLt\n  exact hInf.frequently_cofinite hLt\n\n/--\n**Sawin's Lemma 2: lattice geometry of unit distances** (Sawin, [arXiv:2605.20579](https://arxiv.org/abs/2605.20579)).\n\nLet $d \\ge 1$, $R > 1$, and suppose $\\Lambda \\subset \\mathbb{R}^{2d}$ is an additive subgroup\nall of whose nonzero vectors have norm at least $\\rho > 0$ (so $\\Lambda$ is a lattice; Sawin takes\n$\\rho$ to be the norm of a shortest nonzero vector of $\\Lambda$), equipped with an additive\nembedding $\\pi : \\Lambda \\to \\mathbb{R}^2$. Suppose $S \\subseteq \\Lambda$ is a finite set of\n\"matching\" vectors satisfying $\\|v\\| \\le 1$ and $\\|\\pi v\\| = 1$ for every $v \\in S$. Then there\nis a finite point set $U \\subset \\mathbb{R}^2$ of size $\\#U \\le (2R/\\rho + 1)^{2d}$ whose\nunit-distance density is at least $(1 - 1/R)^{2d}\\,\\#S$, i.e.\n$(1-1/R)^{2d}\\,\\#S\\,\\#U \\le \\#\\{(u_1, u_2) \\in U^2 : |u_1 - u_2| = 1\\}$. The right-hand side\ncounts ordered pairs, so it equals twice `unitDistNum U`.\n\nThis pure geometry-of-numbers reduction is the elementary heart of the disproof.\n-/\n@[category research solved, AMS 52]\ntheorem sawin_lattice_reduction\n    (d : ℕ) (hd : 1 ≤ d) (R : ℝ) (hR : 1 < R)\n    (Λ : Submodule ℤ (EuclideanSpace ℝ (Fin (2*d))))\n    (ρ : ℝ) (hρ : 0 < ρ) (hΛ : ∀ v : Λ, v ≠ 0 → ρ ≤ ‖(v : EuclideanSpace ℝ (Fin (2*d)))‖)\n    (π : Λ →+ ℝ²) (hπ : Function.Injective π)\n    (S : Finset Λ)\n    (hS_norm : ∀ v ∈ S, ‖(v : EuclideanSpace ℝ (Fin (2*d)))‖ ≤ 1)\n    (hS_proj : ∀ v ∈ S, ‖π v‖ = 1) :\n    ∃ U : Finset ℝ², 0 < U.card ∧ (U.card : ℝ) ≤ (2 * R / ρ + 1) ^ (2*d) ∧\n      ((1 : ℝ) - 1/R) ^ (2*d) * (S.card : ℝ) * (U.card : ℝ) ≤\n        2 * (unitDistNum U : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\n**Sawin's Lemmas 11–12 / Remarks Proposition 2.3: the totally real tower.**\n\nThere exist $rdBound : \\mathbb{R}$ and a *single* infinite set $Q$ of rational primes\n$q \\equiv 1 \\pmod 4$ such that for every $N$ one can find a totally real number field $F/\\mathbb{Q}$\nof degree $\\ge N$ with bounded root discriminant $|disc F|^{1/[F:\\mathbb{Q}]} \\le rdBound$ in which\n*every* prime $q \\in Q$ splits completely.\n\nThe load-bearing feature is the quantifier order: $Q$ is fixed *before* $F$, so the same primes\nsplit completely in fields of *unbounded* degree. (For a single fixed $F$, Chebotarev already\ngives infinitely many completely split primes $\\equiv 1 \\pmod 4$, so a per-field statement would\nbe vacuous.) This uniform splitting in an unbounded tower is the key arithmetic input to the\ndisproof. It is proved as Lemmas 11–12 of Sawin, [arXiv:2605.20579](https://arxiv.org/abs/2605.20579),\nand as Proposition 2.3 of the [Remarks](https://arxiv.org/abs/2605.20695) paper, via the\nGolod–Shafarevich inequality for pro-$2$ groups together with the Hajir–Maire–Ramakrishna (2003)\ntower construction.\n\nA \"completely split\" rational prime $q$ in $F$ is one for which $(q)$ is the product of exactly\n$[F:\\mathbb{Q}]$ distinct maximal ideals.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/n-yamaguchi-0729/SawinTotallyRealTowers/blob/3a455e1aa9140dbbe7b7d68f508392a69c86d0f4/Lean4/SawinTotallyRealTowers/SawinTotallyRealTower.lean#L31\"]\ntheorem sawin_totally_real_tower :\n    ∃ (rdBound : ℝ) (Q : Set ℕ), Q.Infinite ∧ (∀ q ∈ Q, q.Prime ∧ q % 4 = 1) ∧\n      ∀ N : ℕ, ∃ (F : Type) (_ : Field F) (_ : CharZero F) (_ : NumberField F)\n        (_ : IsTotallyReal F),\n        N ≤ Module.finrank ℚ F ∧\n        (|(NumberField.discr F : ℝ)|) ^ ((1 : ℝ) / Module.finrank ℚ F) ≤ rdBound ∧\n        ∀ q ∈ Q, ∃ (factors : Finset (Ideal (𝓞 F))),\n          factors.card = Module.finrank ℚ F ∧\n          ∀ p ∈ factors, p.IsMaximal ∧ (q : 𝓞 F) ∈ p := by\n  sorry\n\nend Erdos90\n",
  "statement_hash": "481249ce88cd87023cb18edc740e5d3b7ea2fd6e1bf5e8a24a70c5c77ed414e4",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}