If you perform a single beta reduction on expression (λxy.xxy)(λz.zz), what do you get?

  1. λyz.zz (λz.zz) y
  2. xy.xxy) (λxy.xxy)
  3. λxy.(xxy) (xxy)
  4. λy.(λz.zz) (λz.zz) y

λy.(λz.zz) (λz.zz) y

(Note that answer (a) is wrong because standard precedence rules says that it is the same as λyz.(zz (λz.zz) y), which is not correct.)