Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Primitive recursive function
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Limitations ==<!-- This section is linked from [[Primitive recursive function]] --> Primitive recursive functions tend to correspond very closely with our intuition of what a computable function must be. Certainly the initial functions are intuitively computable (in their very simplicity), and the two operations by which one can create new primitive recursive functions are also very straightforward. However, the set of primitive recursive functions does not include every possible total computable function—this can be seen with a variant of [[Cantor's diagonal argument]]. This argument provides a total computable function that is not primitive recursive. A sketch of the proof is as follows: {{block indent|The primitive recursive functions of one argument (i.e., unary functions) can be [[Recursively enumerable set|computably enumerated]]. This enumeration uses the definitions of the primitive recursive functions (which are essentially just expressions with the composition and primitive recursion operations as operators and the basic primitive recursive functions as atoms), and can be assumed to contain every definition once, even though a same ''function'' will occur many times on the list (since many definitions define the same function; indeed simply composing by the [[identity function]] generates infinitely many definitions of any one primitive recursive function). This means that the <math>n</math>-th definition of a primitive recursive function in this enumeration can be effectively determined from <math>n</math>. Indeed if one uses some [[Gödel numbering]] to encode definitions as numbers, then this <math>n</math>-th definition in the list is computed by a primitive recursive function of <math>n</math>. Let <math>f_n</math> denote the unary primitive recursive function given by this definition. Now define the "evaluator function" <math>ev</math> with two arguments, by <math>ev(i,j) = f_i(j)</math>. Clearly <math>ev</math> is total and computable, since one can effectively determine the definition of <math>f_i</math>, and being a primitive recursive function <math>f_i</math> is itself total and computable, so <math>f_i(j)</math> is always defined and effectively computable. However a diagonal argument will show that the function <math>ev</math> of two arguments is not primitive recursive. Suppose <math>ev</math> were primitive recursive, then the unary function <math>g</math> defined by <math>g(i) = S(ev(i,i))</math> would also be primitive recursive, as it is defined by composition from the successor function and <math>ev</math>. But then <math>g</math> occurs in the enumeration, so there is some number <math>n</math> such that <math>g = f_n</math>. But now <math>g(n) = S(ev(n,n)) = S(f_n(n)) = S(g(n))</math> gives a contradiction.}} This argument can be applied to any class of computable (total) functions that can be enumerated in this way, as explained in the article [[Machine that always halts]]. Note however that the ''partial'' computable functions (those that need not be defined for all arguments) can be explicitly enumerated, for instance by enumerating Turing machine encodings. Other examples of total recursive but not primitive recursive functions are known: *The function that takes ''m'' to [[Ackermann function|Ackermann]](''m'',''m'') is a unary total recursive function that is not primitive recursive. *The [[Paris–Harrington theorem]] involves a total recursive function that is not primitive recursive. *The [[Sudan function]] *The [[Goodstein function]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)