Lably
Skip to content

Elementary recursive function

Concept in computability theory

  • 3 min read
  • 3 chapters

Related on Lably

Through Exponentiation, Natural number and Function composition

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:

ELEMENTARY=⋃k∈NDTIME(expk⁡(nc))
where expk⁡(n) denotes a k-level exponential tower (e.g., 22⋅⋅n).

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.

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)=max(x−y,0). 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. The function f defined as the composition 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,…,xn)=∑i=0mg(i,x1,…,xn) is elementary recursive if g is elementary recursive.
  3. Bounded product: f(m,x1,…,xn)=∏i=0mg(i,x1,…,xn) is elementary recursive if g is elementary recursive.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics