Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 1 12G a Solution Created 2026-09-24 Updated 2026-10-03
Fix an effective enumeration of unary partial computable functions. The diagonal halting set isIt is a computably enumerable set: on input , simulate and accept if that computation halts.
Suppose were a computable set. A program could then halt on input exactly when the decider says . Let be its own index. If , the program does not halt, while if , it halts. Both alternatives contradict the definition of . Thus is computably enumerable but not computable.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 1 12G d ii Solution Created 2026-09-24 Updated 2026-10-03
Let be the diagonal halting set and putIf were a computably enumerable set, then would many-one reduce to , making the complement of computably enumerable. Together with the computable enumerability of , that would make a computable set, a contradiction.
MoreoverIf this complement were computably enumerable, would again make computably enumerable. Thus neither nor its complement is computably enumerable.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 12H b Solution Created 2026-09-24 Updated 2026-10-03
Rice theorem says that every nontrivial extensional property of programs computing partial functions is undecidable. Equivalently, a nontrivial index set cannot be a computable set.
Let be such an index set. Replacing by its complement if necessary, assume that the nowhere-defined function has no index in . Since the property is nontrivial, choose an index . If membership in were decidable, we could decide the diagonal halting problem as follows. For each , defineBy the S-m-n theorem, a total computable function produces an index for . If diverges, then is nowhere defined and . If it halts, then and extensionality gives . A decider for would therefore decide whether halts, a contradiction. Hence is undecidable.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 12H e Solution Created 2026-09-24 Updated 2026-10-03
No. The propertyis an index set: it depends only on the domain of the partial function computed, not on the syntax of its program. It is nontrivial. For example, an index whose domain is a singleton belongs to , whereas an index whose domain has two elements does not. The Rice theorem therefore shows that is not a computable set, so no algorithm can decide the requested property for arbitrary .
Invoking the Church–Turing thesis, this also rules out any effective procedure in the informal sense, because such a procedure would be represented by a computable function.