Undecidability and reductions
An undecidability proof rules out an algorithm for all inputs. It does not say that every instance is difficult, or that a positive instance can never be recognised.
8.1 Fundamental undecidable problems
Write for an effective encoding of a machine and its input. Invalid encodings can be rejected by a finite syntactic check. The acceptance problem asks whether accepts ; the halting problem asks whether it halts, either accepting or rejecting.
A Post Correspondence Problem (PCP) instance is a finite list of string pairs . It asks for a nonempty sequence of indices, with repetition allowed, such that the concatenated upper and lower strings agree. PCP is RE (enumerate index sequences), but undecidable. A bound on sequence length makes the search finite. Matching individual pairs is sufficient but not necessary for a solution.
8.2 Mapping reductions
Past papers · CS 2014–2026 (23 papers): 2 questions, 3 marks
| Known fact when | Forced conclusion |
|---|---|
| undecidable | undecidable |
| not RE | not RE |
| decidable | decidable |
| RE | RE |
| decidable | No general classification of |
| undecidable or not RE | No general classification of |
8.3 Rice's theorem and finite witnesses
Past papers · CS 2014–2026 (23 papers): 3 questions, 6 marks
Examples include whether is empty, finite, infinite, regular, context-free, decidable, universal, contains a specified string, or has at least a fixed positive number of members. These properties are nontrivial among RE languages. “Is RE?” is trivial: every TM language is RE.
Rice's theorem proves undecidability, not recognisability. For nonemptiness, “contains a fixed string”, “accepts some string of a fixed length”, and “has at least strings” for fixed , dovetail simulations until enough accepting witnesses appear: these properties are RE and undecidable. Their complements are not RE. Finiteness, infiniteness, universality and equivalence of arbitrary TM languages require stronger classification arguments if RE/co-RE status is requested; undecidability alone does not settle that status.
8.4 Bounded observations versus unbounded behaviour
Past papers · CS 2014–2026 (23 papers): 2 questions, 4 marks
A fixed finite simulation answers whether reaches a state in exactly steps on a specified input, whether it accepts within steps, or whether it halts by then. Here is a supplied finite integer, not an unbounded existential time variable.
Even quantification over all input strings is decidable for a fixed time bound. In moves a standard head starting at the first input cell can inspect only a bounded initial segment. Enumerate all strings up to length ; every longer input has the same first symbols as one of these, hence the same first steps. This covers both “some input” and “every input” bounded-time questions.
8.5 Decision-problem comparison
Past papers · CS 2014–2026 (23 papers): 4 questions, 6 marks
The entries concern arbitrary finite descriptions in the named representation. D means decidable and U means undecidable. In the CFG column, NPDA is an equivalent input representation.
| Problem | DFA/NFA/regex | CFG/NPDA | TM recogniser |
|---|---|---|---|
| Membership of a given word | D | D | U |
| Emptiness | D | D | U |
| Finiteness | D | D | U |
| Universality | D | U | U |
| Equivalence of two descriptions | D | U | U |
| Inclusion of one language in another | D | U | U |
| Disjointness of two languages | D | U | U |
| Is the generated language regular? | Always yes | U | U |
CFG–regular mixed tests require care. and are decidable, because CFL intersection with REG and CFL emptiness are effective. and are undecidable in general, since choosing includes CFG universality. Equivalence of two DPDAs is decidable, but that deeper result does not extend to arbitrary PDAs; no DPDA equivalence algorithm is needed for revision here.
For a promised TM decider, membership is decidable by running it, but emptiness, universality and equivalence remain undecidable as properties of its language. A finite input does not make an unbounded computation search finite.
Last-minute recall
- Acceptance and halting are different questions; both are undecidable for TMs.
- Their positive instances are recognisable by simulation.
- Hardness travels forward along a reduction; decidability travels backward.
- A reduction preserves no-instances as well as yes-instances.
- Rice requires a nontrivial property of the language itself.
- A finite positive witness can establish recognisability.
- Fixed-time questions admit finite simulation, including quantification over inputs.
- CFG membership is decidable while CFG equivalence is undecidable.