Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Logic and CS / Girard. Proofs and Types.pdf
Скачиваний:
38
Добавлен:
10.08.2013
Размер:
947.15 Кб
Скачать

Chapter 4

The Normalisation Theorem

This chapter concerns the two results which ensure that the typed -calculus behaves well computationally. The Normalisation Theorem provides for the existence of a normal form, whilst the Church-Rosser property guarantees its

uniqueness. In fact we shall simply state

the

latter without

proof, since it

is not really a matter of type theory and

is

well covered in

the literature,

e.g. [Barendregt].

 

 

 

The normalisation theorem has two forms:

a weak one (there is some terminating strategy for normalisation), which we shall prove in this chapter,

a strong one (all possible strategies for normalisation terminate), proved in chapter 6.

4.1The Church-Rosser property

This property states the uniqueness of the normal form, independently of its existence. In fact, it has a meaning for calculi | such as untyped -calculus | where the normalisation theorem is false.

Theorem If t u; v one can nd w such that u; v w.

t

@

u

R@ v

@

 

@Rw

22

4.1. THE CHURCH-ROSSER PROPERTY

23

Corollary A term t has at most one normal form.

Proof If t u; v normal, then u; v

w for some w, but since u; v are normal,

they cannot be reduced except to themselves, so u = w = v.

 

The Church-Rosser theorem is rather delicate to prove (at least if we try to do it by brute force). It can be stated for a great variety of systems and its proof is always much the same.

An immediate corollary of Church-Rosser is the consistency of the calculus: it is not the case that every equation u = v (with u and v of the same type) is deducible from the equations of 3.2. Indeed, let us note that:

If u v then the equality u = v is derivable from 3.2 and the general axioms for equality.

Conversely, if from 3.2 and the axioms for equality one can deduce u = v,

then it is easy to see that there are terms u = t0; t1; : : : ; t2n 1; t2n = v such that, for i = 0; 1; :::; n 1, we have t2i; t2i+2 t2i+1. By repeated

application of the Church-Rosser theorem, we obtain the existence of w such

that u; v

w.

u = t0

 

t2

: : :

t2n 2

t2n = v

@

 

@

 

 

@

 

R@

 

R@

 

 

R@

 

 

t1

t3

 

t2n 3

t2n 1

 

@

 

 

@

 

 

 

R@

 

 

R@

 

 

 

 

 

 

 

 

 

 

 

@

 

 

 

 

 

 

R@

 

 

 

 

w

Now, if u and v are two distinct normal forms of the same type (for example two distinct variables) no such w exists, so the equation u = v cannot be proved. So Church-Rosser shows the denotational consistency of the system.

Соседние файлы в папке Logic and CS