In this subset, choose a representation for integers (both positive and negative natural numbers). A suitable representation might be a pair of a sign bit, and a natural number.
Then implement the operations: zero?, negative?, zero, add1, sub1, add, minus. The last two operations are the usual binary addition and subtraction operations.
Finally implement the "fib" function, which should return 0 on negative numbers.
As usual, please include tests for all your functions. You may use all of Scheme in your test cases (much like we did in class with the "to-scheme-function").