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
Home > Primitive recursive function
In computability theory, primitive recursive functions are a class of functions which form an important building block on the way to a full formalization of computability. They are defined using recursion and composition as central operations and are a strict subset of the recursive functions, which are exactly the computable functions. The broader class of recursive functions are defined by additionally allowing partial functions and introducing an unbounded search operator.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.
1 Definition
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:
- The constant function 0 is primitive recursive.
- The successor function S, which takes one argument and returns the succeeding number as given by the Peano postulates, is primitive recursive.
- The projection functions Pin, which take n arguments and return their ith argument, are primitive recursive.
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:
- Composition: Given f, a k-ary primitive recursive function, and k l-ary primitive recursive functions g0,...,gk-1, the composition of f with g0,...,gk-1, i.e. the function h(x0,...,xl-1) = f(g0(x0,...,xl-1),...,gk-1(x0,...,xl-1)), is primitive recursive.
- Primitive recursion: Given f a k-ary primitive recursive function and g a (k+2)-ary primitive recursive function, the (k+1)-ary function defined as the primitive recursion of f and g, i.e. the function h where h(0,x0,...,xk-1) = f(x0,...,xk-1) and h(S(n),x0,...,xk-1) = g(h(n,x0,...,xk-1),n,x0,...,xk-1), is primitive recursive.
(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.
Read more »