User:IssaRice/Computability and logic/S–m–n theorem: Difference between revisions

From Machinelearning
No edit summary
No edit summary
Line 2: Line 2:


In other words, the theorem states that if we start out with a computable partial function <math>\varphi_e</math> of <math>m+n</math> variables, then we can fill in <math>m</math> of the variables with actual values. When we do this, the resulting <math>n</math>-place partial function continues to be computable. Moreover, we can find the index of this new partial function in terms of the old index and the values in a primitive recursive way.
In other words, the theorem states that if we start out with a computable partial function <math>\varphi_e</math> of <math>m+n</math> variables, then we can fill in <math>m</math> of the variables with actual values. When we do this, the resulting <math>n</math>-place partial function continues to be computable. Moreover, we can find the index of this new partial function in terms of the old index and the values in a primitive recursive way.
To give an example, suppose we start out with the function <math>\varphi_e (x,y) = x+y</math>. Then we can "fill in" one of the variables with a value, e.g. by taking <math>y=3</math>. Now we have <math>\varphi_e(x,3) = x+3</math>. The ''s''–''m''–''n'' theorem claims that this resulting function is also computable. It also says that we can find the source code of this new function using <math>e</math> (the original source code) and 3 (the value we are substituting).


The ''s''–''m''–''n'' theorem is essentially the same thing as currying in functional programming languages.<ref>https://cs.stackexchange.com/questions/80837/is-smn-theorem-the-same-concept-as-currying</ref>
The ''s''–''m''–''n'' theorem is essentially the same thing as currying in functional programming languages.<ref>https://cs.stackexchange.com/questions/80837/is-smn-theorem-the-same-concept-as-currying</ref>

Revision as of 20:18, 22 May 2019

The smn theorem (also called the parametrization theorem) states that if is an place computable partial function and are natural numbers, then there exists a primitive recursive function such that .

In other words, the theorem states that if we start out with a computable partial function of variables, then we can fill in of the variables with actual values. When we do this, the resulting -place partial function continues to be computable. Moreover, we can find the index of this new partial function in terms of the old index and the values in a primitive recursive way.

To give an example, suppose we start out with the function . Then we can "fill in" one of the variables with a value, e.g. by taking . Now we have . The smn theorem claims that this resulting function is also computable. It also says that we can find the source code of this new function using (the original source code) and 3 (the value we are substituting).

The smn theorem is essentially the same thing as currying in functional programming languages.[1]

The smn theorem, together with the universal function, is useful for proving other theorems and also to avoid the arbitrariness of the specific encoding used.

Different kinds of proofs:

  • Tape/register-based way
  • Using recursive functions and ways of encoding them

Etymology

The name "smn" comes from the notation (denoted in some texts) for the function that finds the new index.

References