The name was coined by László Kalmár, in the context of recursive functions and undecidability; most problems in it are far from elementary. Some natural recursive problems lie outside ELEMENTARY, and are thus NONELEMENTARY. Most notably, there are primitive recursive problems that are not in ELEMENTARY. We know
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.
- Successor function: f(x) = x + 1. Often this is denoted by S, as in S(x). Via repeated application of a successor function, one can achieve addition.
- Projection functions: these are used for ignoring arguments. For example, f(a, b) = a is a projection function.
- Subtraction function: f(x, y) = x − y if y < x, or 0 if y ≥ x. 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. In f(x1, ..., xn) = h(g1(x1, ..., xn), ..., gm(x1, ..., xn)) is elementary recursive if h is elementary recursive and each gi is elementary recursive.
- Bounded summation: is elementary recursive if g is elementary recursive.
- Bounded product: is elementary recursive if g is elementary recursive.
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.
Whereas elementary recursive functions have potentially more than exponential growth, the lower elementary recursive functions have polynomial growth.
Basis for ELEMENTARY
The class of elementary functions coincides with the closure with respect to composition of the projections and one of the following function sets: , , , where is the subtraction function defined above.
In descriptive complexity, ELEMENTARY is equal to the class of high order queries. This means that every language in the ELEMENTARY complexity class can be written as a high order formula that is true only for the elements on the language. More precisely, , where indicates a tower of i exponentiations and is the class of queries that begin with existential quantifiers of ith order and then a formula of (i − 1)th order.
- Mazzanti, S., "Plain Bases for Classes of Primitive Recursive Functions", Mathematical Logic Quarterly, 48 (2002) 93–104
- S. S. Marchenkov, "Superpositions of elementary arithmetic functions", Journal of Applied and Industrial Mathematics, September 2007, Volume 1, Issue 3, pp 351-360, doi:10.1134/S1990478907030106.
- Lauri Hella and José María Turull-Torres (2006), "Computing queries with higher-order logics", Theoretical Computer Science 355 (2): 197–214, doi:10.1016/j.tcs.2006.01.009, ISSN 0304-3975