You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
What does this function do defined on the set of natural numbers :
f(a,0) = a , f (a,s(n)) = s(f(p(a),n))
where is the functions s and p are the successor and predecessor functions respectively .
the function seems to give the max based of couple of trials , but how do we formally prove this for all N ? can we construct such a function using primitive language ?
What is f(0,s(n))?
From context, probably p(0) = 0.
Okay. I suggest separating the a = 0 and a = s(m) cases. Then it should be easy to prove this is max by induction.
Graham Manuell said:
Okay. I suggest separating the a = 0 and a = s(m) cases. Then it should be easy to prove this is max by induction.
Thanks for the answer, but can we describe the maximum function using only the definition of addition subtraction and multiplication ?
Not using ordinary subtraction (since max is not a polynomial function), but there is such a thing as truncated subtraction given by . Here one has . Since this is the category theory zulip, it's worth pointing out that this truncated subtraction is the internal hom for the poset equipped with as the tensor product, one of the main characters of Lawvere's paper Metric Spaces, Closed Categories, and Generalized Logic (hope I'm remembering the title correctly).