Top Qs
Timeline
Chat
Perspective
Elementary recursive function
From Wikipedia, the free encyclopedia
Remove ads
The term elementary was originally introduced by László Kalmár in the context of computability theory.[citation needed][1] He defined the class of elementary recursive functions ("Kalmár elementary functions") as a subset of the primitive recursive functions — specifically, those that can be computed using a limited set of operations such as composition, bounded sums, and bounded products. These functions grow no faster than a fixed-height tower of exponentiation (for example, ). Not all primitive recursive functions are elementary; for example, tetration grows too rapidly to be included in the elementary class.
In computational complexity theory, the term ELEMENTARY refers to a class of decision problems solvable in elementary time — that is, within time bounded by some fixed number of exponentials. Formally:
- where denotes a k-level exponential tower (e.g., ).
Although the name comes from the same historical origin, the ELEMENTARY complexity class deals with decision problems and Turing machine runtime, rather than total functions.
Remove ads
Definition
Summarize
Perspective
The definitions of elementary recursive functions are the same as for primitive recursive functions, except that primitive recursion is replaced by bounded summation and bounded product. All functions work over the natural numbers. The basic functions, all of them elementary recursive, are:
- Zero function. Returns zero: .
- Successor function: . Often this is denoted by , as in . Via repeated application of a successor function, one can achieve addition.
- Projection functions: these are used for ignoring arguments. For example, is a projection function.
- Subtraction function: if , or 0 if . This function is used to define conditionals and iteration.
From these basic functions, we can build other elementary recursive functions.
- Composition: applying values from some elementary recursive function as an argument to another elementary recursive function. The function defined as the composition is elementary recursive if is elementary recursive and each is elementary recursive.
- Bounded summation: is elementary recursive if is elementary recursive.
- Bounded product: is elementary recursive if is elementary recursive.
Remove ads
Superposition bases for elementary functions
Summarize
Perspective
In the context of computability theory, superposition is a method of constructing new functions from existing ones by functional composition. It allows the outputs of one or more functions to serve as the inputs to another function.
More formally, suppose:
- is a -ary function, and
- are -ary functions.
Then the superposition of these functions yields a new -ary function:
- .
The class of elementary recursive functions coincides with the closure under superposition of the projection functions and one of the following sets of initial functions:
where denotes truncated subtraction (monus).
Example 1
Let
- , and .
Then the function
defines the square function by superposition alone.
This shows how functions like squaring can be expressed using only addition, exponentiation, and modulo through superposition, without requiring explicit recursion.
Example 2
Remove ads
Lower elementary recursive functions
Summarize
Perspective
Lower elementary recursive functions follow the definitions as above, except that bounded product is disallowed. That is, a lower elementary recursive function must be a zero, successor, or projection function, a composition of other lower elementary recursive functions, or the bounded sum of another lower elementary recursive function.
Lower elementary recursive functions are also known as Skolem elementary functions.[6][7]
Whereas elementary recursive functions have potentially more than exponential growth, the lower elementary recursive functions have polynomial growth.
The class of lower elementary functions has a description in terms of composition of simple functions analogous to that we have for elementary functions.[7][8] Namely, a polynomial-bounded function is lower elementary if and only if it can be expressed using a composition of the following functions: projections, , , , , , one exponential function ( or ) with the following restriction on the structure of formulas: the formula can have no more than two floors with respect to an exponent (for example, has 1 floor, has 2 floors, has 3 floors). Here is a bitwise AND of n and m.
Remove ads
See also
Notes
References
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads