Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-3/12j/e/solution

Choose a language that is not recursively enumerable; such a language exists because there are uncountably many languages but only countably many algorithms. Form as in part (d), which satisfies the pumping lemma.
If a grammar generated , enumerate its terminal derivations and retain precisely words of the form with . Since such a word contains only one separator,
This would enumerate , a contradiction. Hence is the required language.

New to topics? Read the docs here!