Smn theorem

from Wikipedia, the free encyclopedia

The -theorem is a central result of the computability theory . It represents a tool in computer science with which the code of a program can be calculated depending on parameters, and was first proven by Stephen C. Kleene (see recursion theorem ). A result of this is that a programming language that can execute code generated at runtime can support currying .

Formal definition

Let an effective numbering of all partially calculable functions (e.g. the Gödel numbering of all deterministic Turing machines ) be.

Assuming that the corresponding function is of the type for a fixed index , there is a total and computable function with

for everyone .

Non-formal declaration

The property says that there is a code that is executed (or can be executed) with the parameters and , a transformation program that outputs , and a program that calculates the same on input as it does on input from and .

Examples

The -theorem is a possibility to construct new functions from functions whose predictability is already known.

For example, let to show that a total and computable function exists, so for the following applies: .

To do this, define . The function can be calculated, so there is an index , such that: . From the -Theorem the existence of a total computable function now follows with for all . Now we define , is then obviously also totally calculable and the following applies:

In particular, the theorem is often used to construct reduction functions :

As an example, the general holding problem should be reduced to the epsilon holding problem . More precisely, so the existence of a total computable function to show, so for all true .

Analogous to the above one defines that the function is obviously calculable and its value does not depend on . So let it be an index so that . The -theorem now yields the existence of a totally computable function , so that . If you sit down and choose , it results