Grzegorczyk hierarchy

The Grzegorczyk hierarchy (/ɡrɛˈɡɔːrək/, Polish pronunciation:[ɡʐɛˈɡɔrt͡ʂɨk]), named after the Polish logician Andrzej Grzegorczyk, is a hierarchy of functions used in computability theory.[1] Every function in the Grzegorczyk hierarchy is a primitive recursive function, and every primitive recursive function appears in the hierarchy at some level. The hierarchy deals with the rate at which the values of the functions grow; intuitively, functions in lower levels of the hierarchy grow slower than functions in the higher levels.

Definition

First we introduce an infinite set of functions, denoted Ei for some natural numberi. We define

E0(x,y)=x+yE1(x)=x2+2En+2(0)=2En+2(x+1)=En+1(En+2(x)){\displaystyle {\begin{array}{lcl}E_{0}(x,y)&=&x+y\\E_{1}(x)&=&x^{2}+2\\E_{n+2}(0)&=&2\\E_{n+2}(x+1)&=&E_{n+1}(E_{n+2}(x))\\\end{array}}}

E0{\displaystyle E_{0}} is the addition function, and E1{\displaystyle E_{1}} is a unary function which squares its argument and adds two. Then, for each n greater than 1, En(x)=En1x(2){\displaystyle E_{n}(x)=E_{n-1}^{x}(2)}, i.e. the x-th iterate of En1{\displaystyle E_{n-1}} evaluated at 2.

From these functions we define the Grzegorczyk hierarchy. En{\displaystyle {\mathcal {E}}^{n}}, the n-th set in the hierarchy, contains the following functions:

  1. Ek for k < n
  2. the zero function (Z(x) = 0);
  3. the successor function (S(x) = x + 1);
  4. the projection functions (pim(t1,t2,,tm)=ti{\displaystyle p_{i}^{m}(t_{1},t_{2},\dots ,t_{m})=t_{i}});
  5. the (generalized) compositions of functions in the set (if h, g1, g2, ... and gm are in En{\displaystyle {\mathcal {E}}^{n}}, then f(u¯)=h(g1(u¯),g2(u¯),,gm(u¯)){\displaystyle f({\bar {u}})=h(g_{1}({\bar {u}}),g_{2}({\bar {u}}),\dots ,g_{m}({\bar {u}}))} is as well);[note 1] and
  6. the results of limited (primitive) recursion applied to functions in the set, (if g, h and j are in En{\displaystyle {\mathcal {E}}^{n}} and f(t,u¯)j(t,u¯){\displaystyle f(t,{\bar {u}})\leq j(t,{\bar {u}})} for all t and u¯{\displaystyle {\bar {u}}}, and further f(0,u¯)=g(u¯){\displaystyle f(0,{\bar {u}})=g({\bar {u}})} and f(t+1,u¯)=h(t,u¯,f(t,u¯)){\displaystyle f(t+1,{\bar {u}})=h(t,{\bar {u}},f(t,{\bar {u}}))}, then f is in En{\displaystyle {\mathcal {E}}^{n}} as well).[note 1]

In other words, En{\displaystyle {\mathcal {E}}^{n}} is the closure of set Bn={Z,S,(pim)im,Ek:k<n}{\displaystyle B_{n}=\{Z,S,(p_{i}^{m})_{i\leq m},E_{k}:k<n\}} with respect to function composition and limited recursion (as defined above).

Properties

These sets clearly form the hierarchy

E0E1E2{\displaystyle {\mathcal {E}}^{0}\subseteq {\mathcal {E}}^{1}\subseteq {\mathcal {E}}^{2}\subseteq \cdots }

because they are closures over the Bn{\displaystyle B_{n}}'s and B0B1B2{\displaystyle B_{0}\subseteq B_{1}\subseteq B_{2}\subseteq \cdots }.

They are strict subsets.[2][3] In other words

E0E1E2{\displaystyle {\mathcal {E}}^{0}\subsetneq {\mathcal {E}}^{1}\subsetneq {\mathcal {E}}^{2}\subsetneq \cdots }

because the hyperoperationHn{\displaystyle H_{n}} is in En{\displaystyle {\mathcal {E}}^{n}} but not in En1{\displaystyle {\mathcal {E}}^{n-1}}.

  • E0{\displaystyle {\mathcal {E}}^{0}} includes functions such as x+1,x+2,{\displaystyle x+1,\;x+2,\;\ldots }
Every unary function f(x){\displaystyle f(x)} in E0{\displaystyle {\mathcal {E}}^{0}} is upper bounded by some x+n{\displaystyle x+n}.
However, E0{\displaystyle {\mathcal {E}}^{0}} also includes more complicated functions like x˙1{\displaystyle x\mathbin {\dot {-}} 1},[4]x˙y{\displaystyle x\mathbin {\dot {-}} y},[4]xmody,{\displaystyle x{\bmod {y}},\;\ldots }
  • E1{\displaystyle {\mathcal {E}}^{1}} provides all addition functions, such as x+y,4x,{\displaystyle x+y,\;4x,\;\ldots }
  • E2{\displaystyle {\mathcal {E}}^{2}} provides all multiplication functions, such as xy,x4,{\displaystyle xy,\;x^{4},\;\ldots }
  • E3{\displaystyle {\mathcal {E}}^{3}} provides all exponentiation functions, such as xy,222x{\displaystyle x^{y},\;2^{2^{2^{x}}}}, and is exactly the elementary recursive functions.
  • E4{\displaystyle {\mathcal {E}}^{4}} provides all tetration functions, and so on.

Notably, both the function U{\displaystyle U} and the characteristic function of the predicate T{\displaystyle T} from the Kleene normal form theorem are definable in a way such that they lie at level E0{\displaystyle {\mathcal {E}}^{0}} of the Grzegorczyk hierarchy. This implies in particular that every computably enumerable set is enumerable by some E0{\displaystyle {\mathcal {E}}^{0}}-function.

Relation to primitive recursive functions

The definition of En{\displaystyle {\mathcal {E}}^{n}} is the same as that of the primitive recursive functions, PR, except that recursion is limited (f(t,u¯)j(t,u¯){\displaystyle f(t,{\bar {u}})\leq j(t,{\bar {u}})} for some j in En{\displaystyle {\mathcal {E}}^{n}}) and the functions (Ek)k<n{\displaystyle (E_{k})_{k<n}} are explicitly included in En{\displaystyle {\mathcal {E}}^{n}}. Thus the Grzegorczyk hierarchy can be seen as a way to limit the power of primitive recursion to different levels.

It is clear from this fact that all functions in any level of the Grzegorczyk hierarchy are primitive recursive functions (i.e. EnPR{\displaystyle {\mathcal {E}}^{n}\subseteq {\mathsf {PR}}}) and thus:

nEnPR{\displaystyle \bigcup _{n}{{\mathcal {E}}^{n}}\subseteq {\mathsf {PR}}}

It can also be shown that all primitive recursive functions are in some level of the hierarchy,[2][3] thus

nEn=PR{\displaystyle \bigcup _{n}{{\mathcal {E}}^{n}}={\mathsf {PR}}}

and the sets E0,E1E0,E2E1,,EnEn1,{\displaystyle {\mathcal {E}}^{0},{\mathcal {E}}^{1}-{\mathcal {E}}^{0},{\mathcal {E}}^{2}-{\mathcal {E}}^{1},\dots ,{\mathcal {E}}^{n}-{\mathcal {E}}^{n-1},\dots }partition the set of primitive recursive functions, PR.

Meyer and Ritchie introduced another hierarchy subdividing the primitive recursive functions, based on the nesting depth of loops needed to write a LOOP program that computes the function. For a natural number i{\displaystyle i}, let Li{\displaystyle {\mathcal {L}}_{i}} denote the set of functions computable by a LOOP program with LOOP and END commands nested no deeper than i{\displaystyle i} levels.[5] Fachini and Maggiolo-Schettini showed that Li{\displaystyle {\mathcal {L}}_{i}} coincides with Ei+1{\displaystyle {\mathcal {E}}_{i+1}} for all integers i>1{\displaystyle i>1}.[6]

Extensions

The Grzegorczyk hierarchy can be extended to transfiniteordinals. Such extensions define a fast-growing hierarchy. To do this, the generating functions Eα{\displaystyle E_{\alpha }} must be recursively defined for limit ordinals (note they have already been recursively defined for successor ordinals by the relation Eα+1(n)=Eαn(2){\displaystyle E_{\alpha +1}(n)=E_{\alpha }^{n}(2)}). If there is a standard way of defining a fundamental sequenceλm{\displaystyle \lambda _{m}}, whose limit ordinal is λ{\displaystyle \lambda }, then the generating functions can be defined Eλ(n)=Eλn(n){\displaystyle E_{\lambda }(n)=E_{\lambda _{n}}(n)}. However, this definition depends upon a standard way of defining the fundamental sequence. Rose (1984) suggests a standard way for all ordinals α < ε0.

The original extension was due to Martin Löb and Stan S. Wainer and is sometimes called the Löb–Wainer hierarchy.[7]

See also

Notes

  1. 12Here u¯{\displaystyle {\bar {u}}} represents a tuple of inputs to f. The notation f(u¯){\displaystyle f({\bar {u}})} means that f takes some arbitrary number of arguments and if u¯=(x,y,z){\displaystyle {\bar {u}}=(x,y,z)}, then f(u¯)=f(x,y,z){\displaystyle f({\bar {u}})=f(x,y,z)}. In the notation f(t,u¯){\displaystyle f(t,{\bar {u}})}, the first argument, t, is specified explicitly and the rest as the arbitrary tuple u¯{\displaystyle {\bar {u}}}. Thus, if u¯=(x,y,z){\displaystyle {\bar {u}}=(x,y,z)}, then f(t,u¯)=f(t,x,y,z){\displaystyle f(t,{\bar {u}})=f(t,x,y,z)}. This notation allows composition and limited recursion to be defined for functions, f, of any number of arguments.

References

  1. Wagner & Wechsung 1986, p. 43.
  2. 12Rose 1984.
  3. 12Gakwaya 1997.
  4. 12where ˙{\displaystyle \mathbin {\dot {-}} } is the monus function defined as x˙y=max(xy,0){\displaystyle x\mathbin {\dot {-}} y=\max(x-y,\,0)}
  5. Meyer & Ritchie 1967.
  6. Fachini & Maggiolo-Schettini 1979, p. 63.
  7. Löb & Wainer 1970.

Bibliography

  • Brainerd, Walter S.; Landweber, Lawrence H. (1974). Theory of computation. Wiley. ISBN 9780471095859.
  • Gakwaya, Jean-Sylvestre (1997). "A survey on the Grzegorczyk Hierarchy and its Extension through the BSS Model of Computability". CiteSeerX 10.1.1.69.4621.
  • Wagner, K.; Wechsung, G. (1986). "Computational Complexity". Mathematics and Its Applications. 21. Springer. ISBN 978-90-277-2146-4.