Title:Determinant of matrix with entries indicating primality of · conjecture2
Statement:Conjecture (Generalization): For every , the determinant
generalDet m nis nonzero for all sufficiently large .
- Zhi-Wei Sun, Aug 26-27 2013
| Subjects: | Number Theory (math.NT); Rings and Algebras (math.RA) |
| MSC classes: | 11, 15 |
| Cite as: | NS.06795 [math.NT] · NS.06795v1 for this version |
| Declaration: | OeisA71524.conjecture2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 264ea5be919707144d9612ed4be0aa928ec371c4204a510a27c2647574f416f7 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/71524.lean |
Formal statement
theorem conjecture2 (m : ℕ) : ∃ N : ℕ, ∀ n : ℕ, N < n → generalDet m n ≠ 0Show the full Challenge.lean (98 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Determinant of matrix with entries indicating primality of $i^2 + j^2$
The sequence $a(n)$ is the determinant of the $n \times n$ matrix $M$ defined by
$M(i,j) = 1$ if $i^2 + j^2$ is prime, and $0$ otherwise, where $1 \le i, j \le n$.
*References:*
- [A071524](https://oeis.org/A071524)-/
@[expose] public section
namespace OeisA71524
open Matrix
/-- Determinant of the $n \times n$ matrix with $(i,j)$ entry $1$ if $(i+1)^2 + (j+1)^2$ is prime,
and $0$ otherwise. -/
def a (n : ℕ) : ℤ :=
let M : Matrix (Fin n) (Fin n) ℤ := fun i j =>
let i_idx : ℕ := i.val + 1
let j_idx : ℕ := j.val + 1
if (i_idx ^ 2 + j_idx ^ 2).Prime then 1 else 0
M.det
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
decide
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = -1 := by
decide
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = -1 := by
decide
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by
decide +kernel
/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 1 := by
decide +kernel
/-- Determinant of the $n \times n$ matrix with $(i,j)$ entry $1$
if $(i+1)^{2^m} + (j+1)^{2^m}$ is prime, and $0$ otherwise. -/
def generalDet (m n : ℕ) : ℤ :=
let M : Matrix (Fin n) (Fin n) ℤ := fun i j =>
let i_idx : ℕ := i.val + 1
let j_idx : ℕ := j.val + 1
if (i_idx ^ (2 ^ m) + j_idx ^ (2 ^ m)).Prime then 1 else 0
M.det
/--
Conjecture: $a(n) = 0$ for no $n > 28$.
- _Zhi-Wei Sun_, Aug 26 2013
-/
@[category research open, AMS 11 15]
theorem conjecture1 (n : ℕ) (hn : 28 < n) : a n ≠ 0 := by
sorry
/--
Conjecture (Generalization): For every $m \in \mathbb{N}$, the determinant `generalDet m n` is
nonzero for all sufficiently large $n$.
- _Zhi-Wei Sun_, Aug 26-27 2013
-/
@[category research open, AMS 11 15]
theorem conjecture2 (m : ℕ) : ∃ N : ℕ, ∀ n : ℕ, N < n → generalDet m n ≠ 0 := by
sorry
end OeisA71524
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA71524.conjecture2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-71524--conjecture2 nosorry submit oeis-71524--conjecture2 nosorry/oeis-71524--conjecture2/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.