Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 2 4H a Solution Created 2026-09-24 Updated 2026-10-03
A recursive set has an indicator function computed by a register machine that halts on every input. A recursively enumerable set is the exact halting set of some register machine; equivalently, it is the domain of a partial computable function.
If is recursive, its decider immediately gives machines that halt exactly on and on , so both sets are recursively enumerable. Conversely, suppose machines and recognize the two sets. On input , use dovetailing to run one step of and one step of alternately. Exactly one must eventually halt. Return one if halts first and zero if halts first. This is a total decider for , so is recursive.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 2 4H b Solution Created 2026-09-24 Updated 2026-10-03
Encode each -tuple of nonnegative integers by one nonnegative integer using a computable pairing function. Define a unary partial procedure on input as follows: use dovetailing on the computations of over all encoded -tuples, and halt as soon as one of them halts with output . ThenBy the Church–Turing thesis, this effective procedure is implemented by a register machine with some fixed code , soThus is the domain of a partial computable function and is recursively enumerable.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 4F i Solution Created 2026-09-24 Updated 2026-09-29
A subset is recursive when its indicator function is a total computable function. It is recursively enumerable when it is the domain of a partial computable function, equivalently when an algorithm can enumerate its members.
If is recursive, its indicator decides both and its complement, so both sets are recursively enumerable. Conversely, suppose programs enumerate and . On input , run the two enumerations in parallel by dovetailing. Exactly one must eventually print ; accept in the first case and reject in the second. This algorithm always halts and decides . Hence
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 120 3 c Solution 2026-09-28
By assumption the set of combinators is recursively enumerable. Finite beta reduction sequences, and hence finite certificates of beta equivalence, are also recursively enumerable.
For a closed term , choose a fresh variable . The term is a fixed-point combinator exactly whenIndeed, substitution then gives the required equivalence for every , and the forward direction follows by taking . Dovetail the enumeration of closed terms with all finite beta-equivalence certificates. Whenever a certificate of the displayed equivalence is found, output . This enumerates exactly the fixed-point combinators, proving recursively enumerable fixed-point combinators.