Decision problems for matrix semigroups: mortality, membership and reachability
Which questions about products of a finite set of integer matrices can an algorithm answer? Undecidable since 1970 in dimension 3; a November 2026 preprint claims the same for dimension 2.
On this page16 sections
These are standard hardness sources for questions about switched linear systems, linear loops and weighted automata, and the smallest undecidable instance marks the border of what verification tools can promise.
Questions about all products of a few matrices, such as whether some product gives zero, and when no program can answer them.
- 1Pick a few matrices
- 2Multiply them in any order
- 3Ask: can some product be zero?
- 4Hide a halting program inside
- 5No program can always answer
Setup. Fix a finite set of integer matrices . Their semigroup is every finite product (any order, repeats allowed, ). You know from linear algebra that matrix multiplication is associative but not commutative, so order matters. Three classic questions:
- Mortality: is the zero matrix in the semigroup?
- Membership: is a given matrix in it?
- Vector reachability: can a given vector be carried to another by some product?
Why they might be unanswerable. A question is decidable if some program always halts with the right yes/no. The first undecidable problem is the halting problem: Turing (1936) showed that no program can decide, for every program, whether it eventually stops. A Turing machine is the standard idealised computer (a tape, a head, a finite rulebook) used to state this precisely. To show a new problem is undecidable you reduce the halting problem to it: show how to turn any machine into an instance so that the answer to the new problem reveals whether the machine halts.
Paterson's reduction (1970). The usual starting point is the Post correspondence problem: given pairs of words , is there a sequence of indices with ? It is undecidable. Encode a word as an integer in a positional numeral system (like reading a binary string as a number). Then multiplying by a suitable matrix appends a letter, and a matrix has room to store a pair of words. Build the matrices so that a product reaches zero exactly when a matching sequence exists. Hence mortality is undecidable for and larger.
Why was hard. A matrix has too little room to hold two words at once, and the group of integer matrices with determinant 1 is close to a free group, which makes products much easier to analyse. Partial results are positive: mortality is decidable for two rational matrices (2002), and membership is decidable for nonsingular integer matrices (2017), though mortality is NP-hard for some cases (2012).
The 2026 claim. Quartz, Shevchenko, De Sterck and Liu posted a preprint (arXiv:2611.06562) claiming undecidability for integer matrices, with a Lean formalization. It is unrefereed, and DARC has not verified it.
Where it shows up. The set of matrices is a switched linear system: at each step a controller picks one, and mortality asks whether some choice sequence drives every state to zero. Undecidability here is why general reachability questions for such systems have no complete algorithm.
Go deeper
The full technical text.
The problems
Take a finite set of integer matrices and let the semigroup they generate be all finite products, in any order and with repetition. Three classic questions are asked about it. Mortality: is the zero matrix in the semigroup? Membership: is a given matrix in it? Identity: is the identity matrix in it? Variants ask for a zero in a particular corner of some product, or whether a given vector can be moved to another by some product (vector reachability). Over the rationals, clearing denominators multiplies each product by a nonzero scalar, so mortality for rational and integer matrices is the same problem.
Paterson's reduction
Paterson (1970) showed that mortality is undecidable for integer matrices. The idea, as it is usually described, is to encode words as integers in a positional numeral system so that multiplying matrices appends letters to a pair of words, and to build the set so that a zero product exists exactly when a Post correspondence instance (a list of word pairs, asked whether some sequence of pairs spells the same word on both sides) has a solution. Post correspondence is undecidable, so mortality is too, and the argument transfers to every dimension . Later work lowered the number of matrices: Cassaigne, Halava, Harju and Nicolas (2014) give undecidable cases with six , four , three and two matrices.
Why dimension 2 is special
Dimension 2 resisted this approach for more than fifty years. A matrix has too little room to store a pair of words, and is virtually free, which makes products of nonsingular matrices comparatively tractable. Positive results are known for restricted cases. Bournez and Branicky (2002) show that mortality is decidable for two rational matrices, and Potapov and Semukhin (2017) show that membership of a nonsingular matrix in the semigroup generated by nonsingular integer matrices is decidable. Bell, Hirvensalo and Potapov (2012) show mortality NP-hard for integer matrices with determinants in . General decidability for stayed open until the November 2026 preprint of Quartz and co-authors, which claims undecidability and is unrefereed (see the open question on this site).
Connections
A set of matrices is a switched linear system: at each step a controller picks a matrix, and mortality asks whether some choice sequence drives every state to zero. Bournez and Branicky posed the low-dimensional cases in a 1999 problem book on systems and control theory. The joint spectral radius of a finite set is zero exactly when every long enough product vanishes, which is stronger than mortality. Undecidability results of this kind are one reason that reachability and stability questions for switched systems, and for linear loops with nondeterministic updates, have no general algorithm, so program-analysis tools restrict to special cases or sound approximations.
Relation to the rest of computability
Every undecidability proof in this area is a many-one reduction from a halting-type problem (Post correspondence, tag systems, counter machines), so this entry depends on computability and diagonalization. The quantity to watch is how small the instance can be made: in dimension, in the number of matrices, and in the size of the entries.
Words on this page (11)
- matrix
- A rectangular grid of numbers; multiplying two grids of the same size gives another grid of that size.
- zero matrix
- The matrix whose entries are all 0; multiplying anything by it gives the zero matrix again.
- semigroup
- A set of things closed under a product that is associative; here, all finite products of the chosen matrices.
- decidable / undecidable
- A question is decidable if one program always answers it correctly in finite time for every input; undecidable if no such program can exist.
- Turing machine
- A simple model of a computer: a tape, a head that reads and writes symbols, and a fixed rulebook. Anything a real computer can compute, it can too.
- halting problem
- Asking whether a given program eventually stops or runs forever. Turing proved no program can answer this correctly for all programs.
- computability and diagonalization
- DARC's entry on what can and cannot be computed, and the diagonal argument that proves the halting problem unsolvable.
- Post correspondence problem
- Given pairs of words, decide whether some sequence of pairs spells the same word along the top and along the bottom. Undecidable.
- joint spectral radius
- How fast the largest product of a set of matrices can grow; it is zero exactly when all long enough products vanish.
- many-one reduction
- A recipe turning every instance of problem A into an instance of problem B with the same yes/no answer, so B is at least as hard as A.
- switched linear system
- A system that follows one of several linear update rules (matrices), with a controller choosing which at each step.
New to this? Read first (4)
- Undecidable problem (Wikipedia)Plain overview of what undecidable means and the standard examples.
- Post correspondence problem (Wikipedia)The puzzle that Paterson-style matrix proofs start from, with examples you can try by hand.
- Mortality Is Undecidable for 2x2 Integer Matrices (arXiv:2611.06562)The November 2026 preprint making the dimension-2 claim; unrefereed, so read it as a claim.
- Halting problem (Wikipedia)The root of every undecidability proof in this area.
Understanding map
map of the whole wiki →What to read before Decision problems for matrix semigroups: mortality, membership and reachability (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Then
- Decidability of mortality for 2×2 integer matricesOpen problem · D18
Open problems & questions
Progress timeline
- Nov 4, 2026Preprint claims undecidability for 2x2 integer matricesRelated to: Decidability of mortality for 2×2 integer matricessource
Quartz, Shevchenko, De Sterck and Liu claim a reduction from a fixed universal machine using 5,799 matrices and cite a Lean 4 formalization. Unrefereed; not yet checked by DARC.
- Nov 4, 2026Preprint claims mortality undecidable for 2x2 integer matricessource
Quartz, Shevchenko, De Sterck and Liu claim undecidability with 5,799 fixed matrices, using a rank-one matrix to carry the input, and cite a Lean 4 formalization. Unrefereed; DARC has not checked it.
- Jan 1, 2017Membership decidable for nonsingular 2x2 integer matricessource
Potapov and Semukhin proved membership of a given nonsingular matrix in the semigroup generated by nonsingular 2x2 integer matrices is decidable.
- Apr 2, 2014Fewer matrices needed in dimensions 3 and upsource
Cassaigne, Halava, Harju and Nicolas gave undecidable mortality cases with six 3x3, four 5x5, three 9x9 and two 15x15 integer matrices (arXiv v1).
- Jan 1, 2012Mortality NP-hard for 2x2 with determinants 0 and plus or minus 1source
Bell, Hirvensalo and Potapov proved NP-hardness for 2x2 integer matrices with determinants in {0,1,-1}.
- Jan 1, 2012NP-hard for determinants 0, 1, -1Related to: Decidability of mortality for 2×2 integer matricessource
Bell, Hirvensalo and Potapov proved NP-hardness for 2x2 integer matrices with determinants in {0,1,-1}.
- Jan 1, 2002Mortality decidable for two rational 2x2 matricessource
Bournez and Branicky showed the problem is decidable for two rational 2x2 matrices (as cited in the 2026 preprint, which refers to their Theorem 4).
- Jan 1, 2002Two rational 2x2 matrices: decidableRelated to: Decidability of mortality for 2×2 integer matricessource
Bournez and Branicky showed decidability for two rational 2x2 matrices, as cited in the 2026 preprint.
- Jan 1, 1970Mortality undecidable for 3x3 integer matricesRelated to: Decidability of mortality for 2×2 integer matricessource
Paterson showed undecidability in dimension 3, leaving dimension 2 open.
- Jan 1, 1970Mortality undecidable for 3x3 integer matricessource
Paterson proved that deciding whether some product of matrices from a finite set is zero is undecidable already for 3x3 integer matrices (year given; month unknown).