arXiv:2611.06562cs.CCNov 2026

Manuscript Offprint

arXiv:2611.06562

Mortality Is Undecidable for 2×22 \times 2 Integer Matrices

Thanin Quartz, Ivan O. Shevchenko, Hans De Sterck, Jun Liu

Abstract

The matrix mortality problem asks whether a given finite family of matrices can be multiplied, in any order and with possible repetition, to get the zero matrix. It is one of the most basic decision problems about matrix products, and it arises naturally in the study of switched linear systems and of finite automata. Mortality is trivially decidable in dimension one and has been known to be undecidable for integer matrices in dimensions three and higher since 1970; only the problem in dimension 2 is left open. We resolve this problem by proving that mortality is undecidable for families of 5,799 distinct 2×22 \times 2 integer matrices. All but one of the matrices are fixed and nonsingular, with determinants ±p\pm p for a single fixed prime pp. The input affects only the remaining rank-one matrix, which encodes this input into its kernel.

Our proof encodes the computation of a fixed universal machine into products of 2×22 \times 2 matrices. We represent each configuration of the computation by a single rational number, which we identify with a line through the origin in Q2\mathbb{Q}^2, and each nonsingular matrix carries out a small piece of one computation step. The main difficulty is that the matrices may be multiplied in any order, so we design them to check their own work: a “wrong” step puts a factor of a prime number pp into the denominator of the rational number corresponding to the current computation step, where no later matrix can remove it. As a result, products of these matrices can go from one encoded configuration to another only by following a valid computation. The rank-one matrix then turns the question of whether the machine halts into the question of whether some product equals zero. A companion formalization in the Lean proof assistant verifies the complete reduction.

† Email: tquartz@uwaterloo.ca ‡ Email: i3shevch@uwaterloo.ca § Email: hans.desterck@uwaterloo.ca ¶ Email: j.liu@uwaterloo.ca

Contents

Part I. Main results and technical overview 1
1 Introduction and main result 1
2 Overview of the proof 2
3 Rank-one conversion of reachability into mortality 3
4 From two counters to a reversed one-counter program 4
4.1 The fixed universal two-counter machine ..... 4
4.2 Prime-exponent simulation by a one-counter program ..... 5
4.3 Reachability from a fixed configuration ..... 5
5 Encoding configurations and enforcing control with matrices 6
5.1 Periodic counter encoding and digit checks ..... 7
5.2 State encoding and matrix generators ..... 7
5.3 Conditions for preserving program reachability ..... 8
6 Implementing the arithmetic instructions with matrices 9
6.1 Increment and congruence tests using digit scans ..... 9
6.2 Division by comparing period lengths ..... 10
6.3 Contractions by block removal and output recovery ..... 10
6.4 Correct updates and residue bound ..... 11
7 Completing the proof of the main result 12
Part II. Detailed proofs and constructions 13
A Proof of the rank-one conversion lemma 13
B The fixed machine and reversed program 13
C Valuations, scans, and elementary instruction modules 16
D Contraction instruction modules 23
E Generator count and padding to an exact family size 29
F Related decidability and membership results 30
G Formal verification 31
H Conclusion and open problems 31
I AI methodology 32

ii

Part I. Main results and technical overview