In computability theory, a primitive recursive function is, roughly speaking, a function that can be computed by a computer program whose loops are all "for" loops (that is, an upper bound of the number of iterations of every loop is fixed before entering the loop). Primitive recursive functions form a strict subset of those general recursive functions that are also total functions.
The importance of primitive recursive functions lies in the fact that most computable functions that are studied in number theory (and more generally in mathematics) are primitive recursive. For example, addition and division, the factorial and exponential function, and the function which returns the nth prime are all primitive recursive.[1] In fact, for showing that a computable function is primitive recursive, it suffices to show that its time complexity is bounded above by a primitive recursive function of the input size.[2] It is hence not particularly easy to devise a computable function that is not primitive recursive; some examples are shown in section § Limitations below.
The set of primitive recursive functions is known as PR in computational complexity theory.
^Brainerd and Landweber, 1974
^Hartmanis, 1989
and 21 Related for: Primitive recursive function information
In computability theory, a primitiverecursivefunction is, roughly speaking, a function that can be computed by a computer program whose loops are all...
function, a computable partial function from natural numbers to natural numbers Primitiverecursivefunction, a function which can be computed with loops...
Primitiverecursive arithmetic (PRA) is a quantifier-free formalization of the natural numbers. It was first proposed by Norwegian mathematician Skolem...
In mathematics, primitiverecursive set functions or primitiverecursive ordinal functions are analogs of primitiverecursivefunctions, defined for sets...
= 2 and S(2) = 3. The successor function is one of the basic components used to build a primitiverecursivefunction. Successor operations are also known...
functions and the general recursivefunctions. According to the Church–Turing thesis, computable functions are exactly the functions that can be calculated...
functions used in computability theory. Every function in the Grzegorczyk hierarchy is a primitiverecursivefunction, and every primitiverecursive function...
function can be chosen to be injective. The set S is the range of a primitiverecursivefunction or empty. Even if S is infinite, repetition of values may be...
The definitions of elementary recursivefunctions are the same as for primitiverecursivefunctions, except that primitive recursion is replaced by bounded...
switching function, used especially in older computer science literature, and truth function (or logical function), used in logic. Boolean functions are the...
and recursive rule, one can generate the set of all natural numbers. Other recursively defined mathematical objects include factorials, functions (e.g...
construct such as a recursivefunction call, it is no longer capable of full μ-recursion, but only primitive recursion. Ackermann's function is the canonical...
reverse mathematics (Simpson 2009). Elementary recursive arithmetic (ERA) is a subsystem of primitiverecursive arithmetic (PRA) in which recursion is restricted...
multivariate functions may involve several other functions as arguments, as in the definition of primitiverecursivefunction. Given f, a n-ary function, and...
differentiating. Prime number Infinitude of the prime numbers Primitiverecursivefunction Principle of bivalence no propositions are neither true nor false...
In mathematics, an injective function (also known as injection, or one-to-one function ) is a function f that maps distinct elements of its domain to...
surjective function (also known as surjection, or onto function /ˈɒn.tuː/) is a function f such that, for every element y of the function's codomain, there...