General Recursive Function

From BusyBeaverWiki
Revision as of 22:26, 9 December 2025 by Sligocki (talk | contribs) (Champions: Pentation example)
Jump to navigation Jump to search

General recursive functions (GRFs), also called µ-recursive functions or partial recursive functions, are the collection of partial functions k 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 k 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:BBμ(n)=max{f()|fGRF0,|f|=n}

where fGRFk means that f:k is a k-ary GRF and |f| 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

Primitive Recursive Functions

TODO

Minimization

TODO

Champions

In order to improve readability we define the following macros:

  • Plus constant. For any n+:Plus[n]GRF1Plus[1]:=SPlus[n+1]:=C(S,Plus[n])|Plus[n]|=2n1Plus[n](x)=x+n
  • Constant. For any n:Kk[n]GRFkKk[0]:=ZkKk[n]:=C(Plus[n],Zk)|Kk[n]|=2n+1Kk[n](x1,xk)=n
  • Unary function iteration. For any fGRF1,n:Rep[f,n]GRF1Rep[f,n]:=R(K0[n],C(f,P22))|Rep[f,n]|=|f|+2n+4Rep[f,n](x)=fx(n)
  • Polygonal numbers. For any n+:Poly[n]GRF1Poly[n]:=R(Z0,R(S,C(Plus[n],P23)))|Poly[n]|=2n+5Poly[n](x)=y=0x1(ny+1)=n2x(x1)+xTri:=Poly[1]|Tri|=7Tri(x)=x(x+1)2Square:=Poly[2]|Square|=9Square(x)=x2
n BBµ(n) Informal Computation Champion Program Champion Found Holdouts Proven
2k+1 ≥ k k K0[k] Trivial
15 ≥ 7 7 K0[7] Trivial
17 ≥ 10 Tri(4) C(Tri,K0[4]) Shawn Ligocki 9 Dec 2025
19 ≥ 16 Square(4) C(Square,K0[4]) Shawn Ligocki 9 Dec 2025
21 ≥ 25 Square(5) C(Square,K0[5]) Shawn Ligocki 9 Dec 2025
23 ≥ 36 Square(6) C(Square,K0[6]) Shawn Ligocki 9 Dec 2025
25 ≥ 256 Square3(2)=223 C(Rep[Square,2],K0[3]) Shawn Ligocki 9 Dec 2025
27 216 Square4(2)=224 C(Rep[Square,2],K0[4]) Shawn Ligocki 9 Dec 2025
29 25 (λxSquarex(2))3(0) C(Rep[Rep[Square,2],0],K0[3]) Shawn Ligocki 9 Dec 2025
2k + 23 2(2k1) (λxSquarex(2))k(0) C(Rep[Rep[Square,2],0],K0[k]) Shawn Ligocki 9 Dec 2025
35 >223 C(Rep[Rep[Rep[Square,2],0],1],K0[3]) Shawn Ligocki 9 Dec 2025