Rice's Theorem

Definition. Rice's theorem says that for every nontrivial property P\mathcal{P} of Turing-recognizable languages, the language LP={⟨M⟩:L(M)∈P}L_{\mathcal{P}} = \{\langle M \rangle : L(M) \in \mathcal{P}\} is undecidable. A property is nontrivial if some recognizable language has it and some does not.

The theorem covers exactly the sets of machine descriptions whose membership depends only on L(M)L(M), such as emptiness, finiteness, regularity, or containing a particular string. It does not cover questions about a machine's text (its number of states) or its behaviour on an input (the halting problem), and those need a direct argument or a reduction. A complete proof by Rice names P\mathcal{P} and exhibits one recognizable language in it and one outside it. Proved in Lecture 8.

Updated
Copyright © 2026 Jared Coleman. All rights reserved.