| Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|
|||||
| First Prev [ 1 2 ] Next Last |
Many of the functions normally studied in number theory, and approximations to real-valued functions, are primitive recursive. such as addition, division, factorial, finding the nth prime, and so on. In fact, it's quite difficult to devise a function that is not primitive recursive. Thus, by studying them, we can discover properties that have wide-reaching consequences.
Primitive recursive functions take natural numbers or tuples of natural numbers as arguments and produce a natural number. A function which takes n arguments is called n- ary. The basic primitive recursive functions are given by these axioms:
More complex primitive recursive functions can be obtained by applying the operatorThis article is about operators in mathematics, for other kinds of operators see operator (disambiguation). In mathematics, an operator is some kind of function; if it comes with a specified type of operand as function domain, it is no more than another ws given by these axioms:
(Note that the projection functions allow us to get around the apparent rigidity in terms of the arity of the functions above, as via composition we can pass any subset of the arguments.)
A function is primitive recursive if it is one of the basic functions above, or can be obtained from one of the basic functions by applying the operations a finite number of times.
Intuitively we would like to define addition recursively as:
In order to fit this into a strict primitive recursive definition, we define:
(Note: here P13 is a function, which takes 3 arguments and returns the first one.)
Note that P11 is simply the identity functionAn identity function ''f is a function which doesn't have any effect: it always returns the same value that was used as its argument. Formally, if M is a set, we define the identity function id on M to be that function with domain and codomain M which sat; its inclusion is required by the definition of the primitive recursion operator above; it plays the role of f. The composition of S and P13, which is primitive recursive, plays the role of g.