I'm trying to beta-reduce the following: $$\lambda xy.y((\lambda xyz.xyz)(\lambda u.u)(\lambda u.uu))$$ Anyway I think that I didn't understand terms' scope.
Considering the application in the shape of $ (\lambda x.y)M $ and evaluating by leftmost outermost, at the first step, I have that my $ (\lambda x.y)M $ is:
- $ (\lambda xyz.xyz)(\lambda u.u), $ or
- $ (\lambda xyz.xyz)(\lambda u.u)(\lambda u.uu)$?
How should I choose M?
Thank you.