Title:Sum of four squares with square conditions
Statement:Zhi-Wei Sun's Conjecture (A281976): Any integer can be written as with nonnegative integers and , such that both and are squares.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06102 [math.NT] · NS.06102v1 for this version |
| Declaration: | OeisA281976.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 9ec0ffed0d50efe2678ded098db063c8b372c62b018466b9fb211f8f2922848d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/281976.lean |
Formal statement
theorem conjecture (n : ℕ) : A nShow the full Challenge.lean (90 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Sum of four squares with square conditions
Any integer $n \geq 0$ can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative
integers and $z \leq w$, such that both $x$ and $x + 24y$ are squares.
Zhi-Wei Sun has offered a \$2,400 prize for the first proof.
*References:*
- [A281976](https://oeis.org/A281976)
- Z.-W. Sun, "Refining Lagrange's four-square theorem," *J. Number Theory* **175** (2017), 167-190.
https://doi.org/10.1016/j.jnt.2016.11.008
- Z.-W. Sun, "Restricted sums of four squares," *arXiv:1701.05868* [math.NT], 2017.
https://arxiv.org/abs/1701.05868
-/
@[expose] public section
namespace OeisA281976
/-- The predicate that `n` can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative
integers, $z \leq w$, such that both $x$ and $x + 24y$ are squares. -/
def A (n : ℕ) : Prop :=
∃ x y z w : ℕ, n = x ^ 2 + y ^ 2 + z ^ 2 + w ^ 2 ∧ z ≤ w ∧ IsSquare x ∧ IsSquare (x + 24 * y)
@[category test, AMS 11]
theorem a_0 : A 0 :=
⟨0, 0, 0, 0, by norm_num⟩
@[category test, AMS 11]
theorem a_1 : A 1 :=
⟨1, 0, 0, 0, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨1, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_2 : A 2 :=
⟨1, 0, 0, 1, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨1, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_3 : A 3 :=
⟨1, 0, 1, 1, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨1, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_4 : A 4 :=
⟨0, 0, 0, 2, by norm_num, by norm_num, ⟨0, by norm_num⟩, ⟨0, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_8 : A 8 :=
⟨0, 0, 2, 2, by norm_num, by norm_num, ⟨0, by norm_num⟩, ⟨0, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_12 : A 12 :=
⟨1, 1, 1, 3, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨5, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_23 : A 23 :=
⟨1, 2, 3, 3, by norm_num, by norm_num, ⟨1, by norm_num⟩, ⟨7, by norm_num⟩⟩
@[category test, AMS 11]
theorem a_24 : A 24 :=
⟨4, 0, 2, 2, by norm_num, by norm_num, ⟨2, by norm_num⟩, ⟨2, by norm_num⟩⟩
/--
**Zhi-Wei Sun's Conjecture (A281976)**: Any integer $n \geq 0$ can be written as $x^2 + y^2 + z^2 + w^2$
with $x, y, z, w$ nonnegative integers and $z \leq w$, such that both $x$ and $x + 24y$ are squares.
-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) : A n := by
sorry
end OeisA281976
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA281976.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-281976 nosorry submit oeis-281976 nosorry/oeis-281976/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.