Undecidability by Mapping Reductions
Build a program whose accepted language depends on a source machine’s acceptance and transfer a known undecidability result.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Produce code without deciding whether it halts
Given a machine \(M\) and input \(w\), construct a new machine that ignores its own input and simulates \(M\) on \(w\). If \(M\) accepts, the new machine accepts. If \(M\) rejects or runs forever, the new machine never accepts. The construction writes a finite wrapper containing the given program and input. Constructing that wrapper takes finite time regardless of the behavior it describes.
Read the target answer in the correct direction
The new language is all strings if \(M\) accepts \(w\), and empty otherwise. A decider for nonemptiness of a machine’s language would therefore decide the acceptance problem, which is undecidable. The statement remains about the new machine’s accepted strings even if it never halts on some inputs. Reduction correctness explains the two membership directions. Rice’s theorem generalizes this construction to arbitrary nontrivial properties of accepted languages.[1][2]