General Recursive Function: Difference between revisions
→Champions: New BBµ(14) champ again |
→Champions: BBµ(14) ≥ 32! |
||
| Line 201: | Line 201: | ||
|- | |- | ||
|14 | |14 | ||
|≥ | |≥ 32 | ||
|<math>M^{0}(C^{1}(R^{2}(P^{1}_{1}, R^{3}(P^{2}_{1}, C^{4}(R^{2}( | |<math>M^{0}(C^{1}(R^{2}(P^{1}_{1}, R^{3}(P^{2}_{1}, C^{4}(R^{2}(P^{1}_{1}, P^{3}_{1}), P^{4}_{2}, P^{4}_{1}))), P^{1}_{1}, S))</math> | ||
|Shawn Ligocki [https://discord.com/channels/960643023006490684/1447627603698647303/1499137558695641189 29 Apr 2026] | |Shawn Ligocki [https://discord.com/channels/960643023006490684/1447627603698647303/1499137558695641189 29 Apr 2026] | ||
| | | | ||
Revision as of 02:58, 30 April 2026
General recursive functions (GRFs), also called µ-recursive functions or partial recursive functions, are the collection of partial functions that are computable. This definition is equivalent using any Turing complete system of computation. See Wikipedia:general recursive function for background.
Historically it was defined as the smallest class of partial functions that is closed under composition, recursion, and minimization, and includes zero, successor, and all projections (see formal definitions below). In the rest of this article, this is the formulation that we focus on exclusively. In this way, it can be considered to be a Turing complete model of computation. In fact, it is one of the oldest Turing complete models, first formalized by Kurt Gödel and Jacques Herbrand in 1933, 3 years before λ-calculus and Turing machines.
BBµ(n) is a Busy Beaver function for GRFs:
where means that is a k-ary GRF and is the "structural size" of f (defined below). In other words, it is the largest number computable via a 0-ary function (a constant) with a limited "program" size. It is more akin to the traditional Sigma score for a Turing machine rather than the Step function in the sense that it maximizes over the produced value, not the number of steps needed to reach that value.
Definition
Structure
Define inductively based on the following construction rules, start with Atoms and combine them using Combinators.
Atoms
- Zero: is the constant 0 function
- Successor: is the successor function
- Projection: is a projection function
Combinators
- Composition: is the composition or substitution of the gs into h:
- Primitive Recursion: is primitive recursion using g as the base case and h as the inductive step.
- Minimization / Unlimited Search: is the µ-operator which allows unlimited search.
Primitive Recursion
models a typical iterative function definition over ℕ.
Base case:
Iterative case (for ): where .
can be recursively evaluated following its definition directly. Or it can be iterated over its first argument, starting with 0 (and thus a call to ), then 1, 2, 3, etc. until is reached, each time calling with the prior iteration count for its first argument and the result of the prior call for its second.
Minimization
In computational language, when M(f) is evaluated it can be considered to calculate with , then , then etc. until one of the calls to returns 0, at which point it returns the value of which first gave a result of 0. If no first argument causes to return 0, doesn't return. (This is the only way for a GRF to not halt.)
Macros
In order to improve readability we define the following macros. For all
| Macro | arity | Definition | Size | Function | |
|---|---|---|---|---|---|
| Constant | k | ||||
| Plus constant | 1 | ||||
| Triangular numbers | 1 | ||||
| Iteration | 2 | ||||
| Diagonalization & Iteration | 2 | ||||
| Diagonalization | 1 | ||||
| Ackermann iteration | 2 | ||||
| 1 |
Champions
| n | BBµ(n) | Champion | Champion Found | Holdouts Proven |
|---|---|---|---|---|
| 1 | = 0 | Shawn Ligocki 8 Dec 2025 By hand | ||
| 2 | = 0 | Shawn Ligocki 8 Dec 2025 By hand | ||
| 3 | = 1 | Shawn Ligocki 8 Dec 2025 By hand | ||
| 4 | = 1 | Jacob Mandelson 3 Apr 2026 | ||
| 5 | = 2 | Jacob Mandelson 3 Apr 2026 | ||
| 6 | = 2 | Jacob Mandelson 3 Apr 2026 | ||
| 7 | = 3 | Jacob Mandelson 3 Apr 2026 | ||
| 8 | ≥ 3 | |||
| 9 | ≥ 4 | |||
| 10 | ≥ 4 | |||
| 11 | ≥ 5 | |||
| 12 | ≥ 5 | |||
| 13 | ≥ 6 | |||
| 14 | ≥ 32 | Shawn Ligocki 29 Apr 2026 | ||
| 15 | ||||
| 16 | ||||
| 17 | ≥ 15 | Shawn Ligocki 12 Apr 2026 | ||
| 18 | ≥ 21 | Jacob Mandelson 9 Apr 2026 | ||
| 19 | ≥ 39 | Shawn Ligocki 12 Apr 2026 | ||
| 20 | ≥ 1540 | Jacob Mandelson 9 Apr 2026 | ||
| 21 | ||||
| 22 | Shawn Ligocki 13 Apr 2026 | |||
| 23 | Shawn Ligocki 13 Apr 2026 | |||
| 24 | ||||
| 25 | Shawn Ligocki 13 Apr 2026 | |||
| 26 | ||||
| 27 | Shawn Ligocki 13 Apr 2026 | |||
| 28 | Shawn Ligocki 13 Apr 2026 | |||
| 29 | Shawn Ligocki 13 Apr 2026 | |||
| 30 | Shawn Ligocki 13 Apr 2026 | |||
| 31 | Shawn Ligocki 13 Apr 2026 | |||
| ... | ||||
| 5k+17 | > | Shawn Ligocki 13 Apr 2026 | ||
| 5k+18 | > | Shawn Ligocki 13 Apr 2026 | ||
| 5k+19 | > | Shawn Ligocki 13 Apr 2026 | ||
| 5k+20 | > | Shawn Ligocki 13 Apr 2026 | ||
| 5k+21 | > | Shawn Ligocki 13 Apr 2026 | ||
| ... | ||||
| 94 | > | Shawn Ligocki 13 Apr 2026 | ||
| 95 | Omega() from example_ack.rs | Shawn Ligocki 16 Apr 2026 | ||
| 96 | ||||
| 97 | Omega3() from example_ack.rs | Shawn Ligocki 22 Apr 2026 | ||
| 98 | ||||
| 99 | Omega4() from example_ack.rs | Shawn Ligocki 22 Apr 2026 | ||
| 100 | Graham() from example_ack.rs | Shawn Ligocki 16 Apr 2026 |
Cryptids
Jacob Mandelson constructed a size 141 Cryptid on 8 Apr 2026 [1], shrunk to 139 by 17 Apr 2026.[2]
Macro Bounds
Let
AckDiag[k, S]
Let
- (for )
- (for )
- (for and )
AckDiag[k, Tri]
Let
- , ,
- (for )
- ,
- (for )
- ,
- (for )
Utilizing Minimization
All the current champions are primitive recursive functions. In other words none use the minimization combinator M. This fundamentally limits their growth rate. In fact, no primitive recursive function can grow faster than the Ackermann function and we can see that above where the assymtotic growth of the known BBµ bound is Ackermann growth: .
But, like the traditional BB function, BBµ grows uncomputably fast, so eventually it must surpass primitive recursive functions. In order to do that, it needs to use the M combinator. However, in order to do arbitrary computation, you need a way to store arbitrarily large amounts of data into a single integer and extract it back out. In other words, you need to implement a pairing function. Thus there is value in finding small pairing/unpairing functions. A set of pairing functions is a triple Pair,Left,Right such that for all a,b: Left(Pair(a,b)) = a and Right(Pair(a,b)) = b. When functions consume both the left and right values, common subexpression elimination can be used to reduce the number of operations below that from calling Left and Right individually. The smallest known pairing functions are:
| Macro | arity | Definition | Size | Function |
|---|---|---|---|---|
| 2 | 20 | |||
| 1 | 38 | |||
| 1 | 36 | |||
| 1 |
Where these are based on the following definitions:
| Macro | arity | Definition | Size | Function | |
|---|---|---|---|---|---|
| Addition | Add | 2 | 5 | ||
| AddXA | 3 | 5 | |||
| AddS | 2 | 5 | |||
| Predecesor | Pred | 1 | 3 | ||
| Monus | RMonus | 2 | 7 | ||
| Triangular numbers | Tri | 1 | 7 | ||
| TriP | 1 | 7 | |||
| TriPXA | 2 | 7 | |||
| Inverting Tri | RMonusTri | 2 | 18 | ||
| InvTriCeil | 1 | 19 | |||
| Combined LRCall | RightPiece | 3 | 7 | ||
| LeftPiece | 3 | 12 | |||
| LRpart1[f] | 3 | ||||
| LRpart2[f] | 3 | ||||
| LRpart3[f] | 2 |