Free account · your comment posts right after signup
The term elementary was originally introduced by László Kalmár in the context of computability theory. He defined the class of elementary recursive 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. Not all primitive recursive functions are elementary; for example, tetration grows too rapidly to be included in the elementary class. The elementary recursive functions correspond to the class of the Grzegorczyk hierarchy.
The term elementary was originally introduced by László Kalmár in the context of computability theory. 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,
O
(
2
2
n
)
{\displaystyle O(2^{2^{n}})}
). Not all primitive recursive functions are elementary; for example, tetration grows too rapidly to be included in the elementary class. The elementary recursive functions correspond to the class
E
3
{\displaystyle {\mathcal {E}}^{3}}
of the Grzegorczyk hierarchy.
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:
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.
Contents
Definition
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:
f
(
x
)
=
0
{\displaystyle f(x)=0}
.
Successor function:
f
(
x
)
=
x
+
1
{\displaystyle f(x)=x+1}
. Often this is denoted by
S
{\displaystyle S}
, as in
S
(
x
)
{\displaystyle S(x)}
. Via repeated application of a successor function, one can achieve addition.
Superposition bases for elementary functions
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:
f
(
x
1
,
…
,
x
k
)
{\displaystyle f(x_{1},\dots ,x_{k})}
is a
k
{\displaystyle k}
-ary function, and
g
1
(
x
1
,
…
,
x
n
)
,
…
,
Lower elementary recursive functions
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.
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. Namely, a polynomial-bounded function is lower elementary if and only if it can be expressed using a composition of the following functions: projections,
n
+
1
{\displaystyle n+1}
,
n
m
{\displaystyle nm}
,
n
−
˙
m
{\displaystyle n\mathbin {\dot {-}} m}
,
n
∧
Article from Wikipedia (CC BY-SA 4.0), where it is maintained by volunteer editors.
Projection functions: these are used for ignoring arguments. For example,
f
(
a
,
b
)
=
a
{\displaystyle f(a,b)=a}
is a projection function.
Subtraction function:
f
(
x
,
y
)
=
max
(
x
−
y
,
0
)
{\displaystyle f(x,y)=\max(x-y,0)}
. 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
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:
Mihai Prunescu, Lorenzo Sauras-Altuzarra and Joseph M. Shunia proved that the class of Kalmár elementary functions can be inductively generated from addition (
n
+
m
{\displaystyle n+m}
), integer remainder (
n
mod
m
{\displaystyle n{\bmod {m}}}
) and base-two exponentiation (
2
n
{\displaystyle 2^{n}}
), improving previous results by Mazzanti and Marchenkov. They further proved that the substitution basis defined by these three operations is minimal. An open question is whether
by superposition alone. This shows how functions like squaring can be expressed using only addition, integer remainder, and base-two exponentiation through superposition, without requiring explicit recursion.
Example 2
Another example of an elementary recursive function is the Kronecker delta