Implementation of defmax-nat.
The implementation functions have formal parameters consistently named as follows: