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

3.5. DESCRIPTION OF THE ISOMORPHISM

19

Proof By induction on t; if it is a variable or an abstraction there is nothing to do. If it is an application, t = uv, we apply the induction hypothesis to u, which by normality cannot be an abstraction.

Corollary If the types of the free variables of t are strictly simpler than the type of t, or in particular if t is closed, then it is an abstraction.

3.5Description of the isomorphism

This is nothing other than the precise statement of the correspondence between proofs and functional terms, which can be done in a precise way, now that functional terms have a precise status. On one side we have proofs with parcels of hypotheses, these parcels being labelled by integers, on the other side we have the system of typed terms:

1.

To the deduction

A (A in parcel i) corresponds the variable xiA.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.

To the deduction

 

 

 

 

corresponds

h

u; v

i

where u

and v

A

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

^I

 

 

 

 

 

 

 

 

 

 

A

 

B

 

 

 

 

 

 

 

 

correspond to the deductions^ of A and B.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3.

To the deduction

 

 

 

(respectively

 

 

 

 

 

) corresponds

 

 

A ^ B

 

 

 

 

A ^ B

 

 

 

 

 

 

A

^1E

 

B

 

 

^2E

 

 

1t (respectively 2t), where t corresponds to the deduction of A ^ B.

 

 

 

[A]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4.

To the deduction

 

 

 

 

 

corresponds

 

 

A

 

 

deleted

 

 

 

 

 

xi : v, if the

 

 

 

 

 

B

 

 

 

 

 

 

 

 

 

)I

A ) B

hypotheses form parcel i, and v corresponds to the deduction of B.

 

 

 

 

 

 

 

 

5. To the deduction

 

 

corresponds the term t u, where t

 

A

A ) B

)E

 

 

B

and u correspond to the deductions of A ) B and B.

20

CHAPTER 3. THE CURRY-HOWARD ISOMORPHISM

3.6Relevance of the isomorphism

Strictly speaking, what was de ned in 3.5 is a bijection. We cannot say it is an isomorphism: this requires that structures of the same kind already exist on either side.

In fact the tradition of normalisation exists independently for natural deduction: a proof is normal when it does not contain any sequence of an introduction and an elimination rule:

 

 

 

 

 

 

 

 

 

[A]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A

 

B

A

 

B

 

 

 

 

 

 

 

 

 

 

^I

 

 

 

 

 

^I

 

B

 

 

 

 

 

 

 

 

 

 

 

 

 

 

)I

 

 

 

 

 

 

 

 

 

 

 

 

 

A

^

B

 

A

^

B

 

 

 

 

 

 

 

A ) B

 

 

1

 

 

2

 

A

 

 

 

A

 

^ E

 

 

B

 

^

E

 

 

 

)E

 

 

 

 

 

 

 

 

 

 

 

 

B

For each of these con gurations, it is possible to de ne a notion of conversion. In chapter 2, we identi ed deductions by the word \equals"; we now consider these identi cations as rewriting, the left member of the equality being rewritten to the right one.

That we have an isomorphism follows from the fact that, modulo the bijection we have already introduced, the notions of conversion, normality and reduction introduced in the two cases (and independently, from the historical viewpoint) correspond perfectly. In particular the normal form theorem we announced in 3.4 has an exact counterpart in natural deduction. We shall discuss the analogue of head normal forms in section 10.3.1.

Having said this, the interest in an isomorphism lies in a di erence between the two participants, otherwise what is the point of it? In the case which interests us, the functional side possesses an operational aspect alien to formal proofs. The proof side is distinguished by its logical aspect, a priori alien to algorithmic considerations.

The comparison of the two alien viewpoints has some deep consequences from a methodological point of view (technically none, seen at the weak technical level of the two traditions):

All good (constructive) logic must have an operational side.

Conversely, one cannot work with typed calculi without regard to the implicit symmetries, which are those of Logic. In general, the \improvements" of typing based on logical atrocities do not work.

3.6. RELEVANCE OF THE ISOMORPHISM

21

Basically, the two sides of the isomorphism are undoubtedly the the same object, accidentally represented in two di erent ways. It seems, in the light of recent work, that the \proof" aspect is less tied to contingent intuitions, and is the way in which one should study algorithms. The functional aspect is more eloquent, more immediate, and should be kept to a heuristic r^ole.

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