← All papers
First page of Nilpotent tridiagonal matrices with entries in {-1,0,1}

Nilpotent tridiagonal matrices with entries in {-1,0,1}

Marcel Blattner

math.CO Nov 21, 2026 · v1
Main classification, rigidity theorem, cardinality and modular criterion are formalised in Lean 4 with Mathlib ( 3,000 lines), with a Zenodo artifact.
We determine all nilpotent tridiagonal matrices with entries in $\{-1,0,1\}$. The problem reduces to describing the set $\cN_n$ of pairs $(d,b)\in\{-1,0,1\}^n\times\{-1,1\}^{n-1}$ for which the tridiagonal matrices with diagonal $d$ and with products $b_k$ of opposite off-diagonal entries have characteristic polynomial $λ^n$. We show that $\cN_n$ is obtained from $\cN_{\lfloor n/2\rfloor}$ by one of two explicit “folding” operations, according to the parity of $n$. As a consequence, $\cN_n$ is non-empty precisely when $n=1$ or $3\cdot2^j-1\le n\le2^{j+2}-1$ for some $j\ge0$, in which case it has $2^{\lfloor\log_2n\rfloor}$ elements. This yields a formula for the number of nilpotent $n\times n$ tridiagonal matrices with entries in $\{-1,0,1\}$, which begins $1,9,73,585,4809,39113$. The case $d=0$ is a conjecture of Corless, established in an earlier paper. The main new ingredient is a rigidity phenomenon: a pair as above, of size $n\ge2$, whose characteristic polynomial is congruent to $λ^n$ modulo $4$ is necessarily a fold of a smaller pair. It follows that such a pair is nilpotent as soon as its characteristic polynomial is congruent to $λ^n$ modulo $2^{1+\lfloor\log_2n\rfloor}$. Finally we show that the eigenvalue zero of an $m\times m$ matrix in Corless's skew-symmetric family has multiplicity at most $2^{v_2(m+1)}-1$, with equality attained. The classification, the rigidity statement, the cardinality of the sets $\cN_n$ and the criterion modulo $2^{1+\lfloor\log_2n\rfloor}$ have been formalised in Lean 4.

The paper asks which tridiagonal matrices with entries in {-1,0,1} are nilpotent. This extends Corless's conjecture, which covers the zero-diagonal case.

The problem reduces to pairs (d,b) whose characteristic polynomial is λ^n. Two explicit folding operations, Φ_ε and Ψ_δ, build these pairs recursively from smaller ones. A rigidity result shows that any pair with characteristic polynomial congruent to λ^n mod 4 is a fold of a smaller pair. The main theorems are formalised in Lean 4 using Mathlib, with tridiagonal matrices and an inductive Folded predicate.

N_n is non-empty exactly when n=1 or 3·2^j−1 ≤ n ≤ 2^{j+2}−1, and then has 2^{⌊log2 n⌋} elements. This gives a count of nilpotent matrices starting 1, 9, 73, 585, 4809, 39113. The paper also gives a nilpotency criterion modulo 2^{1+⌊log2 n⌋} and a sharp bound on the multiplicity of the zero eigenvalue in Corless's family. The Lean proofs depend only on the standard axioms.