ELEMENTARY explained

In computational complexity theory, the complexity class ELEMENTARY of elementary recursive functions is the union of the classes

\begin{align} ELEMENTARY&=cupkk-EXP\\ &=DTIME\left(2n\right)\cupDTIME\left(2

2n

\right)\cup

2n
2
DTIME\left(2

\right)\cup \end{align}

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

LOWER-ELEMENTARY ⊊ EXPTIME ⊊ ELEMENTARY ⊊ PRR

Whereas ELEMENTARY contains bounded applications of exponentiation (for example,

2n
O(2

)

), PR allows more general hyper operators (for example, tetration) which are not contained in ELEMENTARY.

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:

  1. Zero function. Returns zero: f(x) = 0.
  2. 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.
  3. Projection functions: these are used for ignoring arguments. For example, f(a, b) = a is a projection function.
  4. Subtraction function: f(x, y) = xy if y < x, or 0 if yx. This function is used to define conditionals and iteration.

From these basic functions, we can build other elementary recursive functions.

  1. 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.
  2. Bounded summation:

f(m,x1,\ldots,xn)=

mg(i,
\sum\limits
i=0

x1,\ldots,xn)

is elementary recursive if g is elementary recursive.
  1. Bounded product:

f(m,x1,\ldots,xn)=

mg(i,
\prod\limits
i=0

x1,\ldots,xn)

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:

\{n+1,n\stackrel{.}{-}m,\lfloorn/m\rfloor,nm\}

,

\{n+m,n\stackrel{.}{-}m,\lfloorn/m\rfloor,2n\}

,

\{n+m,n2,n\bmodm,2n\}

, where

n\stackrel{.}{-}m=max\{n-m,0\}

is the subtraction function defined above.[1] [2]

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.[3] [4]

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.[5] 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

,

nm

,

n\stackrel{.}{-}m

,

n\wedgem

,

\lfloorn/m\rfloor

, one exponential function (

2n

or

nm

) 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,

xy(z+1)

has 1 floor,

(x+y)yz+x+zx+1

has 2 floors,
2x
2
has 3 floors). Here

n\wedgem

is a bitwise AND of and .

Descriptive characterization

In descriptive complexity, ELEMENTARY is equal to the class HO of languages that can be described by a formula of higher-order logic. This means that every language in the ELEMENTARY complexity class corresponds to as a higher-order formula that is true for, and only for, the elements on the language. More precisely,

{2O(n)
2
NTIME\left(2
}\right) = \exists\mathsf^i, where ⋯ indicates a tower of exponentiations and

\exists{}HOi

is the class of queries that begin with existential quantifiers of th order and then a formula of th order.

See also

References

Notes and References

  1. Mazzanti . S . 2002 . Plain Bases for Classes of Primitive Recursive Functions . Mathematical Logic Quarterly . 48 . 93–104 . 10.1002/1521-3870(200201)48:1<93::aid-malq93>3.0.co;2-8.
  2. S. S. Marchenkov, "Superpositions of elementary arithmetic functions", Journal of Applied and Industrial Mathematics, September 2007, Volume 1, Issue 3, pp 351-360, .
  3. [Thoralf Skolem|Th. Skolem]
  4. S. A. Volkov, "On the class of Skolem elementary functions", Journal of Applied and Industrial Mathematics, 2010, Volume 4, Issue 4, pp 588-599, .
  5. Volkov . Sergey . 2016 . 1611.04843 . Finite Bases with Respect to the Superposition in Classes of Elementary Recursive Functions [dissertation] . cs.CC .