/-
Copyright 2025 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.
-/importFormalConjecturesUtil
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}})$.
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.
h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/Real.log↑n)=O[atTop]funn↦↑n/√(Real.log↑n)convert!(Asymptotics.isBigO_refl(funn:ℕ↦n/(n:ℝ).log)_).multhis.isBigOusing1e'_7h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/Real.log↑n)=funx↦↑x/Real.log↑x*1e'_8h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/√(Real.log↑n))=funx↦↑x/Real.log↑x*((funx↦x^(1/2))∘Real.log∘Nat.cast)x·e'_7h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/Real.log↑n)=funx↦↑x/Real.log↑x*1simpAll goals completed! 🐙·e'_8h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/√(Real.log↑n))=funx↦↑x/Real.log↑x*((funx↦x^(1/2))∘Real.log∘Nat.cast)xsimp_rw[e'_8h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/√(Real.log↑n))=funx↦↑x/Real.log↑x*((funx↦x^(1/2))∘Real.log∘Nat.cast)xFunction.comp,e'_8h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/√(Real.log↑n))=funx↦↑x/Real.log↑x*Real.log↑x^(1/2)div_mul,e'_8h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/√(Real.log↑n))=funx↦↑x/(Real.log↑x/Real.log↑x^(1/2))←Real.sqrt_eq_rpow,e'_8h:(funn↦↑n/√(Real.log↑n))=O[atTop]funn↦↑(minimalDistinctDistancesn)this:(fun_x↦1)=o[atTop]((funx↦x^(1/2))∘Real.log∘Nat.cast)⊢ (funn↦↑n/√(Real.log↑n))=funx↦↑x/(Real.log↑x/√(Real.log↑x))Real.div_sqrtAll goals completed! 🐙]-- TODO(firsching): formalize any remaining remarks from the erdosproblems.com page.endErdos89