Membership is immediate from the supplied characterization of . Define the partial computable function
Then
so .
Now let . There is a partial computable such that
For each , define a unary partial function
Operationally, its program simulates and returns if that computation halts. By the S-m-n theorem, a total computable map produces an index for . Therefore
Thus every Pi-2 set many-one reduces to . Combined with membership, this proves that the totality problem is -complete.
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.