Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Primitive recursive function
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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]]
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Primitive recursive function
(section)
Add topic