Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Determinant of prime sum indicator matrix

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Conjecture: Let M(n)M(n) be the n×nn \times n matrix with (i,j)(i,j)-entry equal to 11 or 00 according as i+ji + j is prime or not. For each n=24,25,…n = 24, 25, \dots, the characteristic polynomial of M(n)M(n) is irreducible over the field of rational numbers.

  • Zhi-Wei Sun, Aug 25 2013
Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.06759 [math.NT] · NS.06759v1 for this version
Declaration:OeisA69191.conjecture_1
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:0dd358e62998b16f9fd509ba59788dbe54423178df94a7dc77c15b6a85483a03
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/69191.lean

Formal statement

theorem conjecture_1 (n : ℕ) (hn : 24 ≤ n) :
    Irreducible (primeMatrix ℚ n).charpoly
Show the full Challenge.lean (127 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Determinant of prime sum indicator matrix

Determinant of the $n \times n$ matrix with $(i,j)$-entry ($1 \le i, j \le n$) equal to $1$
if $i + j$ is prime, and $0$ otherwise.

*References:*
- [A069191](https://oeis.org/A069191)
-/

@[expose] public section

namespace OeisA69191

open Matrix

/-- The $n \times n$ matrix $M(n)$ with $(i,j)$-entry ($1 \le i, j \le n$) equal to $1$
if $i + j$ is prime, and $0$ otherwise. -/
def primeMatrix (R : Type*) [Zero R] [One R] (n : ℕ) : Matrix (Fin n) (Fin n) R :=
  fun i j => if Nat.Prime (i.val + j.val + 2) then 1 else 0

/-- Determinant of the $n \times n$ matrix with $(i,j)$-entry ($1 \le i, j \le n$) equal to $1$
if $i + j$ is prime, and $0$ otherwise. -/
def a (n : ℕ) : ℤ :=
  (primeMatrix ℤ n).det

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by decide

@[category test, AMS 11]
theorem a_2 : a 2 = -1 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = -1 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 0 := by decide

@[category test, AMS 11]
theorem a_5 : a 5 = 1 := by
  have hM : primeMatrix ℤ 5 =
      !![1, 1, 0, 1, 0;
         1, 0, 1, 0, 1;
         0, 1, 0, 1, 0;
         1, 0, 1, 0, 0;
         0, 1, 0, 0, 0] := by
    ext i j
    fin_cases i <;> fin_cases j <;> simp [primeMatrix] <;> norm_num
  rw [a, hM]
  eval_det

@[category test, AMS 11]
theorem a_6 : a 6 = -1 := by
  have hM : primeMatrix ℤ 6 =
      !![1, 1, 0, 1, 0, 1;
         1, 0, 1, 0, 1, 0;
         0, 1, 0, 1, 0, 0;
         1, 0, 1, 0, 0, 0;
         0, 1, 0, 0, 0, 1;
         1, 0, 0, 0, 1, 0] := by
    ext i j
    fin_cases i <;> fin_cases j <;> simp [primeMatrix] <;> norm_num
  rw [a, hM]
  eval_det

@[category test, AMS 11]
theorem a_7 : a 7 = -4 := by
  have hM : primeMatrix ℤ 7 =
      !![1, 1, 0, 1, 0, 1, 0;
         1, 0, 1, 0, 1, 0, 0;
         0, 1, 0, 1, 0, 0, 0;
         1, 0, 1, 0, 0, 0, 1;
         0, 1, 0, 0, 0, 1, 0;
         1, 0, 0, 0, 1, 0, 1;
         0, 0, 0, 1, 0, 1, 0] := by
    ext i j
    fin_cases i <;> fin_cases j <;> simp [primeMatrix] <;> norm_num
  rw [a, hM]
  eval_det

/--
Conjecture: Let $M(n)$ be the $n \times n$ matrix with $(i,j)$-entry equal to $1$ or $0$ according as
$i + j$ is prime or not. For each $n = 24, 25, \dots$, the characteristic polynomial of $M(n)$ is
irreducible over the field of rational numbers.
- _Zhi-Wei Sun_, Aug 25 2013
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) (hn : 24 ≤ n) :
    Irreducible (primeMatrix ℚ n).charpoly := by
  sorry

/--
Conjecture: Let $M(n)$ be the $n \times n$ matrix with $(i,j)$-entry equal to $1$ or $0$ according as
$i + j$ is prime or not. For each $n = 24, 25, \dots$, the $n$ eigenvalues of $M(n)$ can be listed as
$\lambda(1), \dots, \lambda(n)$ such that
$\lambda(1) > -\lambda(2) > \lambda(3) > -\lambda(4) > \dots > (-1)^{n-1} \lambda(n) > 0$.
- _Zhi-Wei Sun_, Aug 25 2013
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) (hn : 24 ≤ n) :
    ∃ ev : Fin n → ℝ,
      (primeMatrix ℝ n).charpoly = ∏ i : Fin n, (Polynomial.X - Polynomial.C (ev i)) ∧
      StrictAnti (fun i : Fin n => (-1 : ℝ) ^ (i : ℕ) * ev i) ∧
      ∀ i : Fin n, 0 < (-1 : ℝ) ^ (i : ℕ) * ev i := by
  sorry

end OeisA69191

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA69191.conjecture_1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-69191
nosorry submit oeis-69191 nosorry/oeis-69191/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.