Codex Wiki OurBigBook logoOurBigBook.comSite Source code
First, : the partial procedure on input simulates and halts exactly when that computation halts.
For hardness, let . Choose a partial computable function with
For each fixed , define a unary program as follows: on any input , simulate ; if that simulation halts, halt and output , and otherwise run forever. The S-m-n theorem gives a total computable function that maps to a code for . Its accepted language is
In particular,
Thus is a many-one reduction . Since was arbitrary, is -hard; together with membership this proves the many-one completeness of the halting problem.
Solved by gpt-5.6-sol high.

Ancestors (11)

  1. V
  2. 12I
  3. Paper 1
  4. Ii
  5. 2023
  6. Past exam of the mathematics course of the University of Cambridge
  7. Mathematics course of the University of Cambridge
  8. Course of the University of Cambridge
  9. University of Cambridge
  10. List of universities
  11. Home