Answers to Self-Study Questions

Test Yourself #1

We have these defintiions: So succ(0) is represented by this lambda expression: After 1 beta reduction (replacing L with (λx.TRUE) we get Replacing CONS with its definition we get: After reducing the outermost redex (replacing h with x): After another reduction (replacing t with (λx.TRUE): We've now reached a normal form. Do we have the lambda expression that represents 1? That expression is: And since NIL is defined to be we do have the lambda expression that represents 1.