example of bounded recursion - coqart section 15.1