- 從外往里
reduction order
- normal order
M N P
left to right 先直接把N給M - applicative order
M N P
left to right
先把M 和N 內(nèi)部可以reduce的先reduce
如果一個(gè)lambda expression 可以被reduce桶唐,那么normal order一定可以reduce到最簡單的模式芯肤,applicative order不一定可以
convention
M N
(λx.xy)(λk.kx)
= (λt.ty)(λk.kx)
=kxy
bound variable in the left side = free variable in the right side