I've been playing with Peano Arithmetic and I've got multiplication, division, exponentiation, and logarithms. I can't figure out root extraction but I have a stab at it.
Exponentiation: $a^0 = 1, a^{S(b)} = a\cdot a^b$ Logarithm: $\log_a(1) = 0, \log_a(b) = 1 + \log_a(b/a)$
I'm finding root extraction much more complicated to work out a clean recursive definition for.
This is what I have so far, and I know it's wrong:
$\sqrt[b]{a} = f(1)$, $f(n) = n$ if $n^b = a$, otherwise $f(n+1)$
By using Peano arithmetic, I'm referring (probably incorrectly) to defining addition as $a + 0 = a$ and $a + S(b) = S(a + b)$ and similarly defining subtraction, and then building it up into multiplication, division, exponentiation, root extraction, and logarithms.
I'm not sure I see how the one for logarithms is incorrect. Assuming that there is some natural number $k$, such that $a^k = b$, then $log_a(b)$ should equal $1 + log_a(b/a)$
– David Bandel Aug 08 '13 at 14:27