Projection functions: these are used for ignoring arguments. For example, f = a is a projection function.
Subtraction function: f = 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 = h,..., gm) 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.
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.
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. 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,,,,,, one exponential function with the following restriction on the structure of formulas: the formula can have no more than two floors with respect to an exponent. Here is a bitwise AND of and.
Descriptive characterization
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 exponentiations and is the class of queries that begin with existential quantifiers of th order and then a formula of th order.