Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2002/iii/paper-76/3/solution

Let contain all free variables of . The lambda term is a solvable lambda term if there are closed lambda terms such that
Additional arguments beyond the first are allowed. A head normal form is a term with a variable at the head; its arguments need not be beta-normal.
If reduces to this head normal form, close its free variables and supply every resulting initial binder with the same closed projection
(take when ). The head variable becomes and discards all argument terms, even divergent ones, leaving . Thus a head normal form implies solvability.
Conversely suppose a closure and applications of yield . The standardization theorem for beta reduction supplies a finite successful head-reduction sequence. Until exposes a head variable, its head contractions lie within : a closing substitution cannot create a new head redex there, and supplied arguments cannot be used until an initial abstraction is exposed. Each such contraction commutes with the closing capture-avoiding substitution. Project the successful head computation back onto , ignoring contractions in supplied arguments and the consumption of its initial binders. If this projected head computation did not reach a variable-headed spine, the full computation could not reach either. It therefore gives a finite head reduction of to a head normal form. Consequently
The same head-trace argument shows that an unsolvable lambda term stays unsolvable under substitution and application. This also justifies the unsolvability conclusion in the preceding solution.

New to topics? Read the docs here!