primitive recursive number


A special of computable numbersMathworldPlanetmath is so-called the primitive recursive numbers. Informally, these are numbers that can be measured by primitive recursive functionsMathworldPlanetmath to an arbitrary degree of precision.

Definition. A non-negative real number r is said to be primitive recursive if there is a primitive recursive function f:ℕ→ℕ such that

f⁢(n)={[r]⁢ ⁢(the integer part of ⁢r),if ⁢n=0,nth⁢ digit of ⁢r⁢ when ⁢r⁢ is expressed in its decimal representation,if ⁢n≠0.

A real number r is primitive recursive if |r| is, and a complex numberMathworldPlanetmathPlanetmath x+y⁢i is primitive recursive if both x and y are.

Clearly, any integer is primitive recursive. It is easy to see that all rational numbers are primitive recursive too, as the decimal representation of a rational number is periodic, so if

r=[r].a1⁢⋯⁢ak¯,

we can define f so that

f⁢(n)={[r],if ⁢n=0,aiif ⁢n≠0⁢ and ⁢n≡i(modk).

Here, we assume that r is non-negative.

In additionPlanetmathPlanetmath, we can show that n is primitive recursive for any non-negative integer n.

Proof.

Suppose r=n. Write r in its decimal representation

r=n0.n1⁢n2⁢⋯⁢nk⁢⋯

Then n0=[n]. Multiply r by 10 to get its decimal representation

10⁢r=n0⁢n1.n2⁢⋯⁢nk⁢⋯

Then 10⁢n0+n1=[10⁢r]=[100⁢n], so that n1=[100⁢n]-10⁢n0 By inductionMathworldPlanetmath, we see that

nk+1=[100k+1⁢n]-10⁢(10k⁢n0+10k-1⁢n1+⋯+nk).

Define f:ℕ2→ℕ by f⁢(n,m)=nm. Then f⁢(n,0) is primitive recursive. Next,

f⁢(n,m)=[100m⁢n]-10⁢∑i=0m-110m-1-i⁢f⁢(n,i)=h⁢(n,m,f¯⁢(n,m)),

where

h⁢(x,y,z)=[100x⁢y]⁢-˙⁢10⁢∑i=0y⁢-˙⁢110y⁢-˙⁢s⁢(i)⁢(z)i

which is primitive recursive (all of the operationsMathworldPlanetmath, including the bounded sum are primitive recursive). Since f is defined by course-of-values recursion via h, f is primitive recursive also. ∎

Remark. It can be shown that π is primitive recursive. A proof of this can be found in the link below.

References

Title primitive recursive number
Canonical name PrimitiveRecursiveNumber
Date of creation 2013-03-22 19:06:06
Last modified on 2013-03-22 19:06:06
Owner CWoo (3771)
Last modified by CWoo (3771)
Numerical id 13
Author CWoo (3771)
Entry type Definition
Classification msc 03D25
Classification msc 68Q05
Related topic BombellisMethodOfComputingSquareRoots