When applying Beta reduction does the function also affect on the $\lambda$ term? (If same value)
For example
$\lambda$ z.$\lambda$ z (z z) t
What is the correct reduction?
$\lambda$z (t t) or
$\lambda$t (t t)
The beta contraction of $(\lambda x . M)\, N$ is defined as $[N/x]\, M$, and recall that the substitution is done by replacing every free instance of $x$ by $N$.
Explicitly, $(\lambda z. (\lambda z. zz))t \triangleright_\beta [t/z]\,(\lambda z. zz)$, but as there is no free occurence of $z$ no substitution is performed.
λz.λz (z z) tparsed? Is itλz.(λz (z z) t)or(λz.λz (z z)) t? $\endgroup$(λz.λz (z z)) t$\endgroup$