Fix an effective enumeration of the -ary partial recursive functions.
The S-m-n theorem says that program inputs can be compiled into an index: for every there is a total recursive such that
Here means that either both sides are undefined or both are defined and equal.
The recursion theorem says that every total recursive transformation of program indices has a semantic fixed point: some satisfies
The Rice theorem says that every nontrivial extensional property of programs computed by partial recursive functions is undecidable.
By the S-m-n theorem, there is a total recursive function such that
for all . Apply the recursion theorem to . It supplies an index for which
Consequently
Fix an acceptable effective enumeration of the -ary partial computable functions. The S-m-n theorem states that for every there is a total computable function such that
where means that both sides have the same value when defined and are otherwise both undefined.
The recursion theorem states that every total computable transformation of program indices has a semantic fixed point: there is an such that
Apply the S-m-n theorem to . It gives a total computable function such that
The recursion theorem supplies an index satisfying . Consequently
For each , let be an effectively obtained index of the partial function
The existence of the total computable index transformation follows from the S-m-n theorem. By the recursion theorem, some satisfies . Therefore its domain is
and hence
Kleene's recursion theorem says that for every total recursive map on program indices there is an index with the same partial function as program .