Comparing bindings after renaming

A compiler's comparison routine checks alpha-equivalence: two terms agree up to consistent renaming of bound variables, with the same binding structure and free variable names. For each pair below, enter yes or no. A dot extends a lambda's scope through the rest of its body, and application associates to the left. Compare binding structure without performing beta reductions.

Original termCandidate termAlpha-equivalent: yes or no
λx.λy.x yλa.λb.a b
λx.λy.x yλa.λa.a a
λx.x zλz.z z
λx.λx.xλa.λb.b

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Lambda Calculus Questions: