Question: 1. Consider the following lambda expression (lambda~x.~(lambda~y.y+x) ((lambda~z.z+x)x) 3) ( x . ( y . y + x ) ( ( z . z +
1. Consider the following lambda expression (\lambda~x.~(\lambda~y.y+x) ((\lambda~z.z+x)x) 3) ( x . ( y . y + x ) ( ( z . z + x ) x ) 3 ) What is the outcome after the first reduction step that eliminates the right-most lambda?
a. ((\lambda~y.y+3) ((\lambda~z.z+3)3))
b. (\lambda~x.~((\lambda~z.z+x)x)+x) 3)
c. (\lambda~x.~(x+x+x) 3)
d. ((\lambda~y.y+3) (3+3))
e. none of the above
2. Consider the following lambda expression
( x. ( y.y+x)(( z.z+x)x)3)( x. ( y.y+x)(( z.z+x)x)3)
What is the outcome after the first reduction step that eliminates the left-most lambda?
| a. |
| b. |
| c. |
| d. |
| e. none of the above Does using a sequence of left-most or a sequence of right-most reductions of lambda expressions always yields the same normal form (if it exists)?
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts




