Title:Ben Green's Open Problem 66
Statement:Is there always a sum of two squares between and ? We formalize this as an eventual statement for sufficiently large real .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.04173 [math.NT] · NS.04173v1 for this version |
| Declaration: | Green66.green_66 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 3314d9ff72c489b57434ec24979ac9a87795b20bd7a7ecc8ec7bb135b59cebf6 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/GreensOpenProblems/66.lean |
Formal statement
theorem green_66 :
∀ᶠ X : ℝ in atTop,
∃ n : ℕ, IsSumOfTwoSquares n ∧
(n : ℝ) ∈ Set.Icc (X - (1 / 10 : ℝ) * X ^ (1 / 4 : ℝ)) XShow the full Challenge.lean (80 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Ben Green's Open Problem 66
*Reference:* [Ben Green's Open Problem 66](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#section.8)
-/
@[expose] public section
open Filter
namespace Green66
/-- A natural number is a sum of two squares if it can be written as `a ^ 2 + b ^ 2`. -/
def IsSumOfTwoSquares (n : ℕ) : Prop :=
∃ a b : ℕ, n = a ^ 2 + b ^ 2
/--
Is there always a sum of two squares between $X - \frac{1}{10}X^{1/4}$ and $X$?
We formalize this as an eventual statement for sufficiently large real $X$.
-/
@[category research open, question, AMS 11]
theorem green_66 :
∀ᶠ X : ℝ in atTop,
∃ n : ℕ, IsSumOfTwoSquares n ∧
(n : ℝ) ∈ Set.Icc (X - (1 / 10 : ℝ) * X ^ (1 / 4 : ℝ)) X := by
sorry
/--
Green notes that a well-known, almost trivial argument gives an $O(X^{1/4})$ bound on the left.
-/
@[category research solved, AMS 11]
theorem green_66.variants.trivial_bound :
∃ C > (0 : ℝ), ∀ᶠ X : ℝ in atTop,
∃ n : ℕ, IsSumOfTwoSquares n ∧
(n : ℝ) ∈ Set.Icc (X - C * X ^ (1 / 4 : ℝ)) X := by
-- Subtract the greatest square `u ^ 2` below `X`, then the greatest square `v ^ 2`
-- below `X - u ^ 2`.
refine ⟨5, by norm_num, ?_⟩
filter_upwards [eventually_ge_atTop (1 : ℝ)] with X hX
set s : ℝ := X ^ (1 / 4 : ℝ) with hs
have hs1 : 1 ≤ s := Real.one_le_rpow hX (by norm_num)
have hs4 : s ^ 4 = X := by
rw [hs, ← Real.rpow_natCast, ← Real.rpow_mul (by linarith)]
norm_num
obtain ⟨a, ha⟩ : ∃ a : ℕ, a = ⌊s ^ 2⌋₊ := ⟨_, rfl⟩
have ha1 : (a : ℝ) ≤ s ^ 2 := ha ▸ Nat.floor_le (by nlinarith)
have ha0 : (0 : ℝ) ≤ a := Nat.cast_nonneg a
set r : ℝ := X - (a : ℝ) ^ 2 with hr
have hr0 : 0 ≤ r := by nlinarith
obtain ⟨b, hb⟩ : ∃ b : ℕ, b = ⌊Real.sqrt r⌋₊ := ⟨_, rfl⟩
have hbr : (b : ℝ) ^ 2 ≤ r := by
nlinarith [Real.sqrt_nonneg r, Real.sq_sqrt hr0, hb ▸ Nat.floor_le (Real.sqrt_nonneg r)]
have hrb : r < ((b : ℝ) + 1) ^ 2 := by
nlinarith [Real.sqrt_nonneg r, Real.sq_sqrt hr0, hb ▸ Nat.lt_floor_add_one _]
have hb3 : (b : ℝ) < 2 * s := by
suffices (s ^ 2 - a) * (s ^ 2 + a) < 1 * (s ^ 2 + a) by nlinarith
exact mul_lt_mul_of_pos_right (by linarith [ha ▸ Nat.lt_floor_add_one _]) (by nlinarith)
refine ⟨a ^ 2 + b ^ 2, ⟨a, b, rfl⟩, ?_, ?_⟩ <;> grind
end Green66
To prove it: keep every definition of Challenge.lean unchanged and prove Green66.green_66 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_green_66 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch green-66 nosorry submit green-66 nosorry/green-66/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- green-66-variants-trivial-bound — known result
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.