/- 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. -/ import FormalConjecturesUtil

Hall's conjecture

There exists a positive number $C$ such that for any integer $x, y$ with $y^2 \ne x^3$, $|y^2 - x^3| > C \sqrt{|x|}$.

References:

    Wikipedia

    L. Danilov, The Diophantine equation $x^3 - y^2 = k$ and Hall's conjecture, Mathematical notes of the Academy of Sciences of the USSR 32 (1982): 617-618

open Real namespace Hall def HallIneq (C : ) (e : ) : Prop := x y : , y ^ 2 x ^ 3 |y ^ 2 - x ^ 3| > C * (|x| : ) ^ e def HallConjectureExp (e : ) : Prop := C : , C > 0 HallIneq C e

Original Hall's conjecture with exponent $1/2$.

@[category research open, AMS 11] theorem declaration uses 'sorry'hall_conjecture : HallConjectureExp 2⁻¹ := HallConjectureExp 2⁻¹ All goals completed! 🐙

Elkies' example $(x, y) = (5853886516781223, 447884928428402042307918)$ shows that such $C$ must be less than $0.0215$. Note that simple linarith does not work here.

@[category test, AMS 11] theorem elkies_bound (C : ) : HallIneq C 2⁻¹ C < 0.0215 := C:HallIneq C 2⁻¹ C < 215e-4 C:h:HallIneq C 2⁻¹C < 215e-4 C:h:HallIneq C 2⁻¹hC:C 0C < 215e-4C:h:HallIneq C 2⁻¹hC:¬C 0C < 215e-4 C:h:HallIneq C 2⁻¹hC:C 0C < 215e-4 All goals completed! 🐙 C:h:HallIneq C 2⁻¹hC:¬C 0C < 215e-4 C:h: (x y : ), y ^ 2 x ^ 3 |y ^ 2 - x ^ 3| > C * |x| ^ 2⁻¹hC:¬C 0C < 215e-4 C:hC:¬C 0h:447884928428402042307918 ^ 2 5853886516781223 ^ 3 |447884928428402042307918 ^ 2 - 5853886516781223 ^ 3| > C * |5853886516781223| ^ 2⁻¹C < 215e-4 C:hC:¬C 0h:C * 5853886516781223 ^ 2⁻¹ < 1641843C < 215e-4 have h1 : 76510695 < (5853886516781223 : ) ^ (2 : )⁻¹ := C:HallIneq C 2⁻¹ C < 215e-4 C:hC:¬C 0h:C * 5853886516781223 ^ 2⁻¹ < 164184376510695 < 5853886516781223 ^ (1 / 2) C:hC:¬C 0h:C * 5853886516781223 ^ 2⁻¹ < 164184376510695 < 5853886516781223 C:hC:¬C 0h:C * 5853886516781223 ^ 2⁻¹ < 164184376510695 ^ 2 < 5853886516781223 All goals completed! 🐙 have h2 : C * 76510695 < 1641843 := C:HallIneq C 2⁻¹ C < 215e-4 All goals completed! 🐙 All goals completed! 🐙

Danilov proved that one cannot replace the exponent $1/2$ with larger number. In other words, for any $\delta > 0$, there is no positive constant $C$ such that $|y^2 - x^3| > C |x| ^ {1/2 + \delta}$ for all integers $x, y$ with $y^2 \ne x^3$.

@[category research solved, AMS 11] theorem declaration uses 'sorry'danilov (δ : ) (h : δ > 0) : ¬ HallConjectureExp (2⁻¹ + δ) := δ:h:δ > 0¬HallConjectureExp (2⁻¹ + δ) All goals completed! 🐙

Weak form of Hall's conjecture: relax the exponent from $1/2$ to $1/2 - \varepsilon$.

@[category research open, AMS 11] theorem declaration uses 'sorry'weak_hall_conjecture (ε : ) ( : ε > 0) : HallConjectureExp (2⁻¹ - ε) := ε::ε > 0HallConjectureExp (2⁻¹ - ε) All goals completed! 🐙 end Hall