ArticleslgStudy

mathematics

Elementary recursive function

Elementary recursive function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Elementary recursive function rather than just read about it. In short: 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.

Key takeaways

  • Elementary recursive function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Elementary recursive function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Elementary recursive function from memory before moving on to harder problems.

Reference excerpt

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(22n)). 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 ℰ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:

𝖤𝖫𝖤𝖬𝖤𝖭𝖳𝖠𝖱𝖸=⋃k∈ℕDTIME(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:

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)=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 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. Bounded summation: f(m,x1,…,xn)=∑i=0mg(i,x1,…,xn) is elementary recursive if g is elementary recursive. Bounded product: f(m,x1,…,xn)=∏i=0mg(i,x1,…,xn) is elementary recursive if g is elementary recursive.

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(x1,…,xk) is a k-ary function, and g1(x1,…,xn),…,gk(x1,…,xn) are n-ary functions. Then the superposition of these functions yields a new n-ary function:

h(x1,…,xn)=f(g1(x1,…,xn),…,gk(x1,…,xn)). 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:

{n+m,n−˙m,⌊n/m⌋,2n} {n+m,n−˙m,⌊n/m⌋,nm,nm} {n+m,nmodm,n2,2n} {n+m,nmodm,2n} where n−˙m=max⁡(n−m,0) denotes truncated subtraction (monus). 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), integer remainder (nmodm) and base-two exponentiation (2n), 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 {n+m,⌊n/m⌋,2n} is an alternative basis.

Example 1

Let f(a,b)=amodb,g1(n)=2n+n,g2(n)=2n+n. Then the function h(n)=f(g1(n),g2(n))=2n+nmod(2n+n) defines the square function h(n)=n2 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 δij=2(2imod(2j+1))+(2jmod(2i+1))mod(2i+2j)mod2, which satisfies δij=1 if i=j and 0 otherwise.

Further examples x−˙y=((2x+y+x)mod(2x+y+y))mod(2x+y+x). 2xy=(x+y)2−˙(x2+y2). ⌊x/y⌋=(2(x+1)(x−˙(xmody)))mod(2(x+1)y−˙1). xy=⌊2xy/2⌋. xy=2(xy+x+1)ymod(2xy+x+1−˙x).

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, nm, n−˙m, n∧m, ⌊n/m⌋, 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, 22x has 3 floors). Here n∧m is a bitwise AND of n and m.

See also ELEMENTARY Elementary function arithmetic Primitive recursive function Grzegorczyk hierarchy LOOP (programming language) EXPTIME

Notes

References

Further reading

External links

Worked examples

Example 1 — a first encounter with Elementary recursive function

Start with the simplest possible case. Write down what Elementary recursive function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Elementary recursive function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Elementary recursive function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Elementary recursive function

In research
Elementary recursive function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Elementary recursive function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Elementary recursive function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Complexity classes, Computability theory, so understanding it makes those chapters shorter.
In everyday life
Look for Elementary recursive function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Elementary recursive function” →

How to study Elementary recursive function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Elementary recursive function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Elementary recursive function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Elementary recursive function in simple terms?

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 s…

Why does Elementary recursive function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Elementary recursive function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Elementary recursive function.

Tags

  • Complexity classes
  • Computability theory

Keep exploring