Use structural induction on the construction of , with the stronger induction claim that is an invertible lambda term: there is a lambda term satisfying both
The base constructor has exactly the two-sided inverse proved in part (c). Strengthening the claim is useful because the inductive construction needs inverses of its constituent lambda terms in both orders.
For the inductive constructor, let be the two-sided inverse supplied for . Thus, for a fresh variable , beta-eta equivalence gives
For , define
This lambda term reverses the cyclic permutation and applies the appropriate inverse to each argument. First use beta reduction to expand one order of composition of lambda terms:
For the other order, beta reduction gives
These computations close the stronger induction. For , each formula has the single argument involving and ; for , the constructor is and its inverse is . Every construction is finite, so the inverse is a finite lambda term. There is no requirement that this inverse itself belong to .