

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Friday 8 June 2007 9.00 to 12.
Attempt THREE questions.
There are FIVE questions in total.
The questions carry equal weight.
For all m < n, results which you have proved in answering question m (or which would have been proved if you had attempted question m) may be assumed in your answer to question n.
Cover sheet None Treasury Tag Script paper
1 Explain what is meant by a λ-term, and by β-equivalence of two λ-terms. Prove the Church–Rosser theorem, that two λ-terms are β-equivalent if and only if they have a common β-reduct. Deduce that an arbitrary λ-term is β-equivalent to at most one term in normal form. Give an example of a λ-term having no normal form.
2 Explain what is meant by a CL-term (or combinator term) in a given set X of free variables, and by the statement that two CL-terms are weakly equivalent. Show how to associate with each λ-term M a CL-term M ∗, with the same set of free variables, in such a way that x∗^ = x for each variable x, (M N )∗^ = M ∗N ∗^ for all M and N , and M and N are β-equivalent whenever M ∗^ and N ∗^ are weakly equivalent. By considering the λ-terms λx.x and λx.((λy.y)x), or otherwise, show that the converse of the last statement fails.
[You may assume the Church–Rosser property for weak equivalence of CL-terms.]
3 (a) Explain what is meant by a c.p.o. (with least element) and by a continuous map of c.p.o.’s. If D and D′^ are c.p.o.’s, show that the set [D → D′] of continuous maps D → D′^ can be given the structure of a c.p.o. Deduce that the category of c.p.o.’s and continuous maps between them is cartesian closed.
(b) Let C be a cartesian closed category, and D an object of C satisfying DD^ ∼= D. Explain briefly how the set of morphisms D → D in C may be made into a model of the (untyped) λ-calculus satisfying the β- and η-rules (i.e., such that βη-equivalent terms have the same interpretation).
4 Explain what is meant by an embedding–projection pair of continuous maps between c.p.o.’s. Given a c.p.o. D 0 , define Dn = [Dn− 1 → Dn− 1 ] for n > 0; show that if we are given an embedding–projection pair (φ 0 : D 0 → D 1 , ψ 0 : D 1 → D 0 ), we may obtain such pairs (φn : Dn → Dn+1, ψn : Dn+1 → Dn) for all n by setting
φn(f ) = φn− 1 ◦ f ◦ ψn− 1 , ψn(g) = ψn− 1 ◦ g ◦ φn− 1.
Explain briefly how this result may be used to construct a c.p.o. D∞ satisfying D∞ ∼= [D∞ → D∞], equipped with embedding–projection pairs (Dn → D∞, D∞ → Dn) for all n.
Paper 87