Elementary recursive function
Template:Short description Script error: No such module "about". Template:DMCA The term elementary was originally introduced by László Kalmár in the context of computability theory.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. 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.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. These functions grow no faster than a fixed-height tower of exponentiation (for example, ). 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 of the Grzegorczyk hierarchy.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
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:
- where denotes a k-level exponential tower (e.g., ).
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.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. All functions work over the natural numbers. The basic functions, all of them elementary recursive, are:
- Zero function. Returns zero: .
- Successor function: . Often this is denoted by , as in . Via repeated application of a successor function, one can achieve addition.
- Projection functions: these are used for ignoring arguments. For example, is a projection function.
- Subtraction function: . 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 defined as the composition is elementary recursive if is elementary recursive and each is elementary recursive.
- Bounded summation: is elementary recursive if is elementary recursive.
- Bounded product: is elementary recursive if 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:
- is a -ary function, and
- are -ary functions.
Then the superposition of these functions yields a new -ary function:
- .
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:
- Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- [1]
where denotes truncated subtraction (monus).
In 2025 Mihai Prunescu, Lorenzo Sauras-Altuzarra and Joseph M. Shunia proved that the class of Kalmár elementary functions can be inductively generated from addition (), integer remainder () and base-two exponentiation (), improving previous results by MazzantiLua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. and Marchenkov.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. They further proved that the substitution basis defined by these three operations is minimal.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. An open question is whether is an alternative basis.
- Example 1
Let Then the function defines the square function by superposition alone.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. 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 which satisfies if and otherwise.
- Further examples
- .Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- .Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- .Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- .Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- .[2]
Lower elementary recursive functions
Lower elementary recursive functions follow the definitions as above, except that bounded product is disallowed.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. 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.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
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.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found. 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 ( or ) 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, has 1 floor, has 2 floors, has 3 floors). Here is a bitwise AND of n and m.
See also
- ELEMENTARY
- Elementary function arithmetic
- Primitive recursive function
- Grzegorczyk hierarchy
- LOOP (programming language)
- EXPTIME
Notes
Page Template:Reflist/styles.css has no content.
- ^ Lua error in package.lua at line 80: module 'Module:Footnotes/anchor_id_list' not found.
- ^ Page Module:Citation/CS1/styles.css has no content."Can superposition alone generate the Kalmár elementary function xy from <x + y, x mod y, 2x >?". StackExchange. Retrieved 14 February 2026.
References
Page Template:Refbegin/styles.css has no content.
- Page Module:Citation/CS1/styles.css has no content.Kalmár, László (1943). "Egyszerű példa eldönthetetlen aritmetikai problémára" [Ein einfaches Beispiel für ein unentscheidbares arithmetisches Problem]. Matematikai és Fizikai Lapok (in magyar). 50. Budapest: 1–23.
Hungarian with German abstract.
- Page Module:Citation/CS1/styles.css has no content.Kleene, Stephen Cole (1952). Introduction to Metamathematics. New York: Van Nostrand. OCLC 523942., Page Module:Citation/CS1/styles.css has no content.reprint. Ishi Press. 13 March 2009 [1952]. ISBN 9780923891572.
- Page Module:Citation/CS1/styles.css has no content.Marchenkov, S. S. (1980). "A Superposition Basis in the Class of Kalmar Elementary Functions". Mathematical Notes of the Academy of Sciences of the USSR. 27 (3): 161–166. doi:10.1007/BF01140159. ISSN 0001-4346.
- Page Module:Citation/CS1/styles.css has no content.Marchenkov, S. S. (September 2007). "Superpositions of Elementary Arithmetic Functions". Journal of Applied and Industrial Mathematics. 1 (3): 351–360. doi:10.1134/S1990478907030106. ISSN 1990-4789.
- Page Module:Citation/CS1/styles.css has no content.Mazzanti, Stefano (2002). "Plain Bases for Classes of Primitive Recursive Functions". Mathematical Logic Quarterly. 48 (1): 93–104. doi:10.1002/1521-3870(200201)48:1<93::AID-MALQ93>3.0.CO;2-8. ISSN 0942-5616. OCLC 5154649764.
- Page Module:Citation/CS1/styles.css has no content.Prunescu, Mihai; Sauras-Altuzarra, Lorenzo (5 June 2025). "On the representation of C-recursive integer sequences by arithmetic terms". arXiv:2405.04083 [math.LO].
- Page Module:Citation/CS1/styles.css has no content.Prunescu, Mihai; Sauras-Altuzarra, Lorenzo; Shunia, Joseph M. (7 November 2025). "A Minimal Substitution Basis for the Kalmar Elementary Functions". arXiv:2505.23787 [math.LO].
- Page Module:Citation/CS1/styles.css has no content.Rose, H. E. (1984). Subrecursion: Functions and Hierarchies. Oxford University Press. ISBN 0-19-853189-3.
- Page Module:Citation/CS1/styles.css has no content.Skolem, Th. (1962). "Proof of some theorems on recursively enumerable sets". Notre Dame Journal of Formal Logic. 3 (2): 65–74. doi:10.1305/ndjfl/1093957149.
- Page Module:Citation/CS1/styles.css has no content.Tourlakis, George (2022). Computability. Cham, Switzerland: Springer. ISBN 978-3-030-83202-5.
- Page Module:Citation/CS1/styles.css has no content.Volkov, S. A. (2010). "On the class of Skolem elementary functions". Journal of Applied and Industrial Mathematics. 4 (4): 588–599. doi:10.1134/S1990478910040149.
- Page Module:Citation/CS1/styles.css has no content.Volkov, Sergey (2016). "Finite Bases with Respect to the Superposition in Classes of Elementary Recursive Functions [dissertation]". arXiv:1611.04843 [cs.CC].
Further reading
Page Template:Refbegin/styles.css has no content.
- Page Module:Citation/CS1/styles.css has no content.Avigad, Jeremy (2003). "Number theory and elementary arithmetic". Philosophia Mathematica. 11 (3): 257–284. doi:10.1093/philmat/11.3.257.
External links
Page Template:Refbegin/styles.css has no content.
- Page Module:Citation/CS1/styles.css has no content.Lysikov, Vladimir (7 September 2025). "Can superposition alone generate the Kalmár elementary function xy from ⟨x+y, x mod y, 2x⟩?". Math Stack Exchange. Retrieved 8 September 2025.