on - university of cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i abstract w e pro v the follo...

26

Upload: others

Post on 19-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

On an Interpretation of

Second Order Quanti�cation in

First Order Intuitionistic Propositional Logic

Andrew M. Pitts

University of Cambridge Computer Laboratory

Cambridge CB2 3QG England

[email protected]

Abstract

We prove the following surprising property of Heyting's intuitionistic

propositional calculus, IpC. Consider the collection of formulas, �, built

up from propositional variables (p; q; r; : : :) and falsity (?) using conjunc-

tion (^), disjunction (_) and implication (!). Write ` � to indicate that

such a formula is intuitionistically valid. We show that for each variable p

and formula � there exists a formula A

p

� (e�ectively computable from �),

containing only variables not equal to p which occur in �, and such that for

all formulas not involving p, ` !A

p

� if and only if ` !�. Conse-

quently quanti�cation over propositional variables can be modelled in IpC,

and there is an interpretation of the second order propositional calculus,

IpC

2

, in IpC which restricts to the identity on �rst order propositions.

An immediate corollary is the strengthening of the usual Interpolation

Theorem for IpC to the statement that there are least and greatest in-

terpolant formulas for any given pair of formulas. The result also has a

number of interesting consequences for the algebraic counterpart of IpC,

the theory of Heyting algebras. In particular we show that a model of

IpC

2

can be constructed whose algebra of truth-values is equal to any

given Heyting algebra.

Supported by the ESPRIT Basic Research Action Nr 3003, `CLICS'.

1

Page 2: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

1 Introduction

This paper establishes a new and rather surprising property of Heyting's intuition-

istic propositional calculus, IpC. We show that quanti�cation over propositional

variables can be modelled in IpC, and hence that there is an interpretation of

the second order propositional calculus, IpC

2

, in IpC which restricts to the iden-

tity on �rst order propositions. In order to state this result more precisely, we

brie y recall the syntax and proof theory of �rst and second order intuitionistic

propositional logic.

We will take the �rst order propositions, �, to be given by the following

grammar

� ::= p j ? j � ^ �

0

j � _ �

0

j �! �

0

where p ranges over a set of propositional variables. Negation, truth and bi-

implication can be de�ned in the usual way:

:�

def

= �!? >

def

= :? �$�

0

def

= (�!�

0

) ^ (�

0

!�)

Table 1 gives a collection of natural deduction style rules for IpC. The pre-

misses and conclusion of each rule are sequents, � ) �, which we take to be

speci�ed by a �nite multiset (unordered list) of �rst order propositions, �, and a

single �rst order proposition �. The use of multisets rather than sets in sequents

will be important when we consider the `size' of sequents in section 2. For the

moment, we note that since the order of formulas in � is immaterial, an explicit

structural rule of Exchange is not needed. As usual, we identify formulas with

one-element multisets, and write �� for the union of two multisets � and �. We

will write

IpC ` �) �

to indicate that the sequent is provable using the rules in Table 1. The new

property of IpC which we establish here is:

Theorem 1 Given a propositional variable p, for each �rst order proposition �

there is a �rst order proposition A

p

�, containing only variables not equal to p

which occur in �, and satisfying:

(i) If IpC ` �) �, then IpC ` �) A

p

�, provided p does not occur in �.

(ii) If IpC ` �) A

p

�, then for all , IpC ` � ) �[ =p] (where �[ =p] denotes

the result of substituting for p throughout �).

This theorem will be proved in section 2 using proof-theoretic methods. The

key tool is the use of a Gentzen-style sequent calculus for IpC for which there

is a well-founded relation on sequents making the hypotheses of each rule of the

calculus less than its conclusion. (The �rst order proposition A

p

� will be de�ned

by recursion over this well-founded relation.) The particular sequent calculus

2

Page 3: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

we use is that given (independently) by Hudelmaier [6] and Dyckho� [4]; its

implicational part (the most important part) also occurs in the work of Lincoln,

Scedrov and Shankar [8]. In fact, essentially similar re�nements of the sequent

calculus for IpC were developed by the Russian school of Proof Theory some time

ago|see Vorob'ev [13].

Remark 2 It is perhaps worth pointing out that the analogue of Theorem 1

for classical logic is rather trivially true, since there we may take A

p

� to be

�[>=p] ^ �[?=p].

The existence of �rst order propositions A

p

� satisfying Theorem 1 enables

one to interpret in IpC the second order intuitionistic propositional logic, IpC

2

,

a logic which extends IpC with quanti�cation over propositional variables. As is

well known, in this logic implication and universal quanti�cation su�ce to de�ne

the other connectives and existential quanti�cation|see [11]. However, we will

take the second order propositions to be given by the grammar

� ::= p j ? j � ^ �

0

j � _ �

0

j �!�

0

j 8p�

in order that they be a superset of the �rst order propositions. The natural

deduction rules for 8p� are given in Table 2. Occurrences of p in � become

bound in 8p�; all other types of occurrence of variables are free. We will write

IpC

2

` � ) �

to indicate that a sequent of second order propositions can be proved using the

rules in Tables 1 and 2.

In section 3 we use Theorem 1 to de�ne a translation of second order propo-

sitions, �, into �rst order ones, �

. The translation has the following properties:

(i) If IpC

2

` � ) �, then IpC ` �

) �

(where �

indicates the translation

applied elementwise to the multiset �).

(ii) p

= p, ?

= ?, (�# )

= �

#

(for # = ^;_;!), and hence in

particular �

= � for all �rst order propositions �.

See Proposition 9 below for more details. An immediate corollary of the existence

of such an interpretation is a strengthening of the usual Interpolation Theorem

for IpC. Recall that the latter says that given �rst order propositions � and

for which � ) is provable in IpC, there is some �rst order proposition �

containing only variables common to both � and , and for which both � ) �

and � ) are provable. Here we establish (Proposition 11) that the collection of

such interpolant propositions is not merely non-empty but in fact contains least

and greatest elements (with respect to the provability ordering for IpC).

1

1

The author is grateful to G. R. Renardel de Lavalette for pointing out that this solves his

open problem 6.5 in [RdL].

3

Page 4: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

�)

(Weaken)

��)

���)

(Contract)

��)

(Id)

�) �

�) ?

(?Elim)

�) �

�) � �)

(^Intr)

��) � ^

� ) � ^

(^Elim

1

)

�) �

�) � ^

(^Elim

2

)

� )

� ) �

(_Intr

1

)

�) � _

�)

(_Intr

2

)

�) � _

��) � � ) � �) � _

(_Elim)

���) �

��)

(!Intr)

�) �!

�) �! �) �

(!Elim)

��)

Table 1: Natural deduction rules for IpC

� ) �

(8Intr)

� ) 8p�

�) 8p�

(8Elim)

�) �[ =p]

(

provided p is not free in �)

Table 2: Natural deduction rules for 8

4

Page 5: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Theorem 1 also has interesting consequences for the theory of Heyting alge-

bras, a theory which bears the same relationship to IpC as does the theory of

Boolean algebras to classical propositional logic. In section 4 we establish a form

of `second order completeness' for Heyting algebras: letting H[X] denote the

Heyting algebra obtained by adjoining an indeterminate X to a given Heyting

algebra H, we prove (Theorem 13) that the inclusion

i

H

: H ,! H[X]

possesses both left and right adjoints, i.e. there are monotone functions, a

H

; e

H

:

H[X] ! H, satisfying (e

H

� i

H

) = id

H

= (a

H

� i

H

) and (i

H

� a

H

) � id

H[X]

(i

H

� e

H

). Moreover, these adjoints are natural in H in the category-theoretic

sense. It follows from this that given any Heyting algebra H, the generic model

of the algebraic theory of `Heyting algebras equipped with a morphism from H'

is actually a model of IpC

2

. Since the algebra of truth-values of this model is

just H, we conclude (Proposition 18) that any Heyting algebra can appear as the

algebra of truth-values of a model of IpC

2

. Equivalently, any Heyting algebra can

appear as the Lindenbaum algebra of a second order intuitionistic theory.

The results presented in this paper have had a rather long gestation period.

Some ten or so years ago I tried to prove the negation of Theorem 1 in connection

with the higher order analogue of Proposition 18|the question whether any

Heyting algebra can appear as the algebra of truth-values of an elementary topos.

I established that the free Heyting algebra on a countable in�nity of generators

does not so appear provided the property of IpC given in Theorem 1 does not

hold. It seemed likely to me (and to others to whom I posed the question)

that a �rst order proposition � could be found for which A

p

� does not exist

(although I could not �nd one!), thus settling the original question about toposes

and Heyting algebras in the negative. That Theorem 1 is true is quite a surprise

to me. Unfortunately, it appears that not all the results for second order logic

reported here generalize to the setting of higher order logic. Whilst it is the case

that Theorem 1 remains true if IpC is replaced by a quanti�er-free fragment of

intuitionistic higher order logic, the substitution property of Lemma 8 fails (so

that one does not get an interpretation of full higher order logic in its quanti�er-

free fragment). It remains an open question whether every Heyting algebra can

be the Lindenbaum algebra of a theory in intuitionistic higher order logic.

Acknowledgement I would like to thank R. Dyckho� for bringing to my at-

tention the particular sequent calculus for IpC used in this paper. I would also

like to thank him, A. Scedrov and G. Mints for elucidating its history.

5

Page 6: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

(Atom)

�p) p

(?))

�? ) �

� ) � �)

()^)

�) � ^

�� ) �

(^))

�(� ^ )) �

� ) �

()_

1

)

�) � _

�)

()_

2

)

�) � _

��) � � ) �

(_))

�(� _ )) �

��)

()!)

�) �!

�(�! )) � � ) �

(!))

�(�! )) �

(

where p is any propositional variable)

Table 3: Sequent calculus for IpC

2 Proof of Theorem 1

Our proof will use the methods of Proof Theory. To be more precise, we will

employ a certain re�nement of the cut-free Gentzen sequent calculus for IpC and

we begin by explaining that.

Table 3 contains a fairly standard cut-free sequent calculus for IpC. This

formulation of the sequent calculus has essential uses of the structural rules

(Weaken) and (Contract) of Table 1 built in implicitly: weakening is built in

via the (Atom) axiom, and an essential use of contraction is built in to the

rule (!)) by repeating the active proposition �! in the �rst premiss of the

rule. We refer the reader to [3, Part 1,x3] for a proof of the fact that (Weaken),

(Contract), (Id) and the Cut Rule

�) � ��)

(Cut)

��)

are all derivable from the rules in Table 3, and hence that these rules determine

the same provable sequents as do those in Table 1.

Note that (!)) is the only rule in Table 3 which fails to have the property

that its premisses are structurally simpler than its conclusion. Following Dyck-

ho� [4] and Hudelmaier [6], we can overcome this defect by replacing (!)) by

6

Page 7: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

�p�)

(!)

1

)

�p(p! �))

�(�

1

!(�

2

!�

3

)))

(!)

2

)

�((�

1

^ �

2

)!�

3

))

�(�

1

!�

3

)(�

2

!�

3

))

(!)

3

)

�((�

1

_ �

2

)!�

3

))

�(�

2

! �

3

)) �

1

! �

2

��

3

)

(!)

4

)

�((�

1

!�

2

)!�

3

))

(

where p is any propositional variable)

Table 4: Replacements for (!))

the four rules shown in Table 4. The new rules correspond to the possible forms

of the antecedent of the introduced implication|except that a separate rule is

not needed for the case when the antecedent is ? (since the appropriate rule is

an instance of weakening).

We will refer to the system of rules obtained from Table 3 by relacing (!)) by

the rules in Table 4 as LJ

. Clearly any sequent provable in LJ

is intuitionistically

valid, since the rules in Table 4 are all derivable in IpC; the converse is also true,

so that one has:

Theorem 3 IpC ` �) � if and only if the sequent is provable in LJ

We refer the reader to [4, Theorem 1] for a proof of this result.

De�nition 4 The weight, wt(�), of a �rst order proposition � is a positive integer

de�ned by induction on the structure of � as follows:

wt(p) = wt(?) = 1

wt(� _ ) = wt(�! ) = wt(�) + wt( ) + 1

wt(� ^ ) = wt(�) + wt( ) + 2

This weight function de�nes a well-ordering, �, on �rst order propositions via

the de�nition

� � if and only if wt(�) < wt( )

7

Page 8: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Now extend � to a relation between �nite multisets of propositions via the

multiset ordering construction of Dershowitz and Manna. Thus

� � �

holds if and only if � = �

1

2

and � = �

1

2

, for some �

1

, �

2

and �

2

with

2

non-empty and such that for all 2 �

2

there exists � 2 �

2

with � �. As

shown in [2], this relation between multisets is well-founded because the original

relation on propositions is.

Finally, de�ne a well-founded relation on sequents by declaring

(�) �) � (�) )

to hold just in case �� � � . Note that each rule in LJ

has the property that

a (premiss,conclusion)-pair lies in this relation between sequents.

We turn now to the proof of Theorem 1. Recall that in second order intuition-

istic propositional logic, existentially quanti�ed propositions, 9p�, are de�nable

in terms of 8 and !:

9p�

def

= 8q(8p(�! q)! q)

(where q is not free in �). It follows that the existence of the �rst order proposi-

tions A

p

� for all �, with properties as in Theorem 1, entails the existence of �rst

order propositions E

p

� which model the existentially quanti�ed proposition 9p�.

In fact to prove the theorem, we will need to de�ne A

p

� and E

p

� simultaneously

via mutual recursion. Moreover, we will need to give the de�nitions for multisets

of formulas rather than for single formulas �, in order to utilize LJ

to prove the

required properties of the construction.

Proposition 5 Let � be a �nite multiset of �rst order propositions and � a single

�rst order proposition. For each variable p there are �rst order propositions

E

p

(�) and A

p

(�;�)

satisfying:

(i) (a) V ar(E

p

(�)) � V ar(�) n fpg

(b) V ar(A

p

(�;�)) � V ar(��) n fpg

where V ar(�) denotes the �nite set of propositional variables in �.

(ii) (a) IpC ` �) E

p

(�)

(b) IpC ` �A

p

(�;�)) �

Moreover, for all �nite multisets of �rst order propositions � not containing p, if

IpC ` ��) �, then:

8

Page 9: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

(iii) (a) IpC ` �E

p

(�)) �, provided p 62 V ar(�)

(b) IpC ` �E

p

(�)) A

p

(�;�)

Theorem 1 follows immediately from Proposition 5 if we make the de�nition

A

p

def

= A

p

(;;�) (1)

For if IpC ` �) � with p 62 V ar(�), then by 5(iii)(b)

IpC ` �E

p

(;)) A

p

(;;�)

and by 5(ii)(a)

IpC ` ; ) E

p

(;)

which together give IpC ` �) A

p

�, as required for part (i) of the theorem. For

part (ii) of the theorem, note that 5(ii)(b) gives

IpC ` A

p

�) �

Hence the sequent obtained from this one by substituting a proposition for p

throughout, is also provable; but by 5(i)(b) p 62 V ar(A

p

�), so the result of such

a substitution is IpC ` A

p

� ) �[ =p]. So IpC ` � ) �[ =p] holds whenever

IpC ` �) A

p

� does, as required.

Remark 6 Properties (i)(a), (ii)(a) and (iii)(a) together imply that E

p

(�) acts

like the existentially quanti�ed formula 9p(^�) (where ^� denotes the conjunc-

tion of the formulas in �). However, properties (i)(b), (ii)(a), (ii)(b) and (iii)(b)

imply that it is E

p

(�)!A

p

(�;�), rather than just A

p

(�;�), which acts like

the universally quanti�ed formula 8p(^�!�). This is because of the appear-

ance of E

p

(�) in (iii)(b)|a complication which is needed to carry through the

proof of (iii). This proof proceeds by induction on the structure of the proof

of �� ) � in LJ

, and it is the case where the proof ends with the active for-

mula an implication contained in � which requires us to prove (iii)(b) rather than

IpC ` �) A

p

(�;�).

The rest of this section will be devoted to the proof of Proposition 5.

The formulas E

p

(�) and A

p

(�;�) are de�ned simultaneously by �-induction

on �� (where � is the well-founded relation of De�nition 4). At each stage, we

de�ne E

p

(�) as the conjunction of a �nite set of formulas E

p

(�) and A

p

(�;�) as

the disjunction of a �nite set of formulas A

p

(�;�):

E

p

(�)

def

= ^E

p

(�)

A

p

(�;�)

def

= _A

p

(�;�)

9

Page 10: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

The elements of the �nite sets E

p

(�) and A

p

(�;�) are given by Table 5, with

one element for each match of � and �;� to the patterns listed in the left-hand

column of the table. It is quite possible that in a particular case there are no

matches, so that E

p

(�) or A

p

(�;�) is empty|in which case E

p

(�) = ^;

def

= >

and A

p

(�;�) = _;

def

= ?.

It follows easily by �-induction on �� that E

p

(�) and A

p

(�;�) are built up

from subformulas of �� and that they do not contain p. So 5(i) holds.

The validity of the sequents in 5(ii) is proved simultaneously by �-induction

on ��. At each stage we have to show that

IpC ` �) " and IpC ` ��) �

hold for each " 2 E

p

(�) and each � 2 A

p

(�;�). For each of the cases (E0){

(E8) and (A1){(A13) of Table 5, this follows from the induction hypothesis by

straightforward proofs in IpC.

Turning now to 5(iii), this is proved by induction on the structure of a proof

of ��) � in LJ

, with one case for each proof rule:

Case (Atom): So � is a propositional variable and is an element of ��, i.e. � 2 �

or � 2 �. We will split the argument into two subcases according to whether �

is the variable p or not.

Subcase � = p: In this case we just have to check that (b) holds for ��) �.

Since p 62 �, we must have � = �

0

p. Then case (A10) of Table 5 gives

IpC ` > ) A

p

(�

0

p; p), from which (b) follows.

Subcase � 6= p : We know that either � 2 � or � 2 �. In the �rst case (a)

holds for �� ) � by (Atom), and (b) follows from (a) because by case

(A9) of Table 5, IpC ` � ) A

p

(�;�). On the other hand, if � 2 �, say

� = �

0

�, case (E1) of Table 5 gives IpC ` E

p

(�

0

�) ) E

p

(�

0

) ^ �, from

which (a) for �� ) � follows; and as before (b) follows from (a) by case

(A9).

Case (?)): So ? 2 ��. If ? 2 � then (a) and (b) hold by (?)). If ? 2 �,

then by case (E0) of Table 5 ` E

p

(�))? from which (a) and (b) follow.

Case ()^): So � = �

1

^�

2

, ` ��) �

i

(i = 1; 2) and (a) and (b) hold for these

sequents by induction hypothesis.

(a) If p 62 V ar(�) then p 62 V ar(�

i

), so by (a) for ��) �

i

we have

IpC ` �E

p

(�)) �

i

for i = 1; 2, from which (a) for ��) � follows.

10

Page 11: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

� matches E

p

(�) contains

(E0) �

0

? ?

(E1) �

0

q E

p

(�

0

) ^ q

(E2) �

0

(�

1

^ �

2

) E

p

(�

0

1

2

)

(E3) �

0

(�

1

_ �

2

) E

p

(�

0

1

) _ E

p

(�

0

2

)

(E4) �

0

(q! �) q!E

p

(�

0

�)

(E5) �

0

p(p! �) E

p

(�

0

p�)

(E6) �

0

((�

1

^ �

2

)! �

3

) E

p

(�

0

(�

1

!(�

2

! �

3

)))

(E7) �

0

((�

1

_ �

2

)! �

3

) E

p

(�

0

(�

1

! �

3

)(�

2

! �

3

))

(E8) �

0

((�

1

! �

2

)! �

3

) [E

p

(�

0

(�

2

! �

3

))!A

p

(�

0

(�

2

! �

3

); �

1

! �

2

)]

!E

p

(�

0

3

)

�;� matches A

p

(�;�) contains

(A1) �

0

q;� A

p

(�

0

;�)

(A2) �

0

(�

1

^ �

2

);� A

p

(�

0

1

2

;�)

(A3) �

0

(�

1

_ �

2

);� [E

p

(�

0

1

)!A

p

(�

0

1

;�)]

^ [E

p

(�

0

2

)!A

p

(�

0

2

;�)]

(A4) �

0

(q! �);� q ^A

p

(�

0

�;�)

(A5) �

0

p(p! �);� A

p

(�

0

p�;�)

(A6) �

0

((�

1

^ �

2

)! �

3

);� A

p

(�

0

(�

1

!(�

2

! �

3

));�)

(A7) �

0

((�

1

_ �

2

)! �

3

);� A

p

(�

0

(�

1

! �

3

)(�

2

! �

3

);�)

(A8) �

0

((�

1

! �

2

)! �

3

);� [E

p

(�

0

(�

2

! �

3

))!A

p

(�

0

(�

2

! �

3

); �

1

! �

2

)]

^ A

p

(�

0

3

;�)

(A9) �; q q

(A10) �

0

p; p >

(A11) �;�

1

^ �

2

A

p

(�;�

1

) ^A

p

(�;�

2

)

(A12) �;�

1

_ �

2

A

p

(�;�

1

) _A

p

(�;�

2

)

(A13) �;�

1

!�

2

E

p

(��

1

)!A

p

(��

1

;�

2

)

(q denotes any propositional variable not equal to p)

Table 5: De�nition of E

p

(�) and A

p

(�;�)

11

Page 12: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

(b) By (b) for ��) �

i

we have

` �E

p

(�)) A

p

(�;�

i

)

for i = 1; 2 and hence

IpC ` �E

p

(�)) A

p

(�;�

1

) ^A

p

(�;�

2

)

But by case (A11) of Table 5

IpC ` A

p

(�;�

1

) ^A

p

(�;�

2

)) A

p

(�;�)

So (b) for ��) � follows.

Case (^)):

Subcase: � = �

0

(

1

^

2

), IpC ` �

0

1

2

�) �, and (a) and (b) hold for this

sequent by induction hypothesis. Hence (a) and (b) hold for �� ) � by

an application of (^)).

Subcase: � = �

0

(�

1

^ �

2

), IpC ` ��

0

1

2

) �, and (a) and (b) hold for this

sequent by induction hypothesis. From this it follows that (a) and (b) hold

for ��) � since by cases (E2) and (A2) of Table 5 we have

IpC ` E

p

(�)) E

p

(�

0

1

2

)

IpC ` A

p

(�

0

1

2

;�)) A

p

(�;�)

Case ()_

i

): This case is analagous to that for ()^), using case (A12) of Table 5.

Case (_)):

Subcase: � = �

0

(

1

_

2

), IpC ` �

0

i

�) � (i = 1; 2) and (a) and (b) hold for

these sequents by induction hypothesis. Hence (a) and (b) hold for ��) �

by an application of (_)).

Subcase: � = �

0

(�

1

_ �

2

), IpC ` ��

0

i

) � (i = 1; 2) and (a) and (b) hold

for these sequents by induction hypothesis.

(a) If p 62 V ar(�), then by (a) for ��

0

i

) � we have

IpC ` �E

p

(�

0

i

)) �

for i = 1; 2, and thus

IpC ` �(E

p

(�

0

1

) _ E

p

(�

0

1

))) �

But by case (E3) of Table 5

IpC ` E

p

(�)) E

p

(�

0

1

) _ E

p

(�

0

1

)

and hence (a) holds for ��) �.

12

Page 13: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

(b) By (b) for ��

0

i

) � we have

IpC ` �E

p

(�

0

i

)) A

p

(�

0

i

;�)

for i = 1; 2, and thus

IpC ` � ) (E

p

(�

0

1

)!A

p

(�

0

1

;�)) ^ (E

p

(�

0

2

)!A

p

(�

0

2

;�))

But by case (A3) of Table 5

IpC ` (E

p

(�

0

1

)!A

p

(�

0

1

;�)) ^ (E

p

(�

0

2

)!A

p

(�

0

2

;�))

) A

p

(�;�)

so that IpC ` � ) A

p

(�;�), and hence in particular (b) holds for

��) �.

Case ()!): So � = �

1

!�

2

, IpC ` ���

1

) �

2

and (a) and (b) hold for this

sequent by induction hypothesis.

(a) If p 62 V ar(�) then p 62 V ar(�

i

) for i = 1; 2. So by (a) for ���

1

) �

2

we

have

IpC ` ��

1

E

p

(�)) �

2

and hence by an application of ()!), (a) holds for ��) �.

(b) By (b) for ���

1

) �

2

we have

IpC ` �E

p

(��

1

)) A

p

(��

1

;�

2

)

But since

IpC ` (E

p

(��

1

)!A

p

(��

1

;�

2

))) A

p

(�;�)

holds by case (A13) of Table 5, we get IpC ` � ) A

p

(�;�), and so in

particular (b) holds for ��) �.

Case (!)

1

): For this rule there are four subcases to consider according to how

the active formula and its atomic antecedent occur in ��.

Subcase: � = �

0

q(q! ) with q 6= p (because p 62 V ar(�)), IpC ` �

0

q �)

�, and (a) and (b) hold for this sequent by induction hypothesis. Conse-

quently (a) and (b) hold for ��) � as well, by an application of (!)

1

).

Subcase: � = �

0

q, � = �

0

(q! �), IpC ` �

0

q�

0

� ) �, and (a) and (b) hold

for this sequent by induction hypothesis.

13

Page 14: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

(a) If p 62 V ar(�), then by (a) for �

0

q�

0

�) � we have

IpC ` �

0

qE

p

(�

0

�)) �

and hence

IpC ` �(q!E

p

(�

0

�))) �

by an application of (!)

1

). But by case (E4) of Table 5 we also have

IpC ` E

p

(�)) q!E

p

(�

0

�)

and hence (a) holds for ��) �.

(b) By (b) for �

0

q�

0

� ) � we have

IpC ` �

0

qE

p

(�

0

�)) A

p

(�

0

�;�)

and hence

IpC ` �(q!E

p

(�

0

�))) q ^A

p

(�

0

�;�)

But by cases (E4) and (A4) of Table 5, we also have

IpC ` E

p

(�)) q!E

p

(�

0

�)

IpC ` q ^ A

p

(�

0

�;�)) A

p

(�;�)

and hence (b) holds for ��) �.

Subcase: � = �

0

(q! ), � = �

0

q, IpC ` �

0

q �

0

) �, and (a) and (b) hold

for this sequent by induction hypothesis.

(a) If p 62 V ar(�) then by (a) for �

0

q �

0

) � we have

IpC ` �

0

q E

p

(�

0

)) �

and hence

IpC ` �(q ^ E

p

(�

0

))) �

But by case (E1) of Table 5 we have

IpC ` E

p

(�)) q ^ E

p

(�

0

)

and hence (a) holds for ��) �.

(b) By (b) for �

0

q �

0

) � we have

IpC ` �

0

q E

p

(�

0

)) A

p

(�

0

;�)

and hence

` �(q ^ E

p

(�

0

))) A

p

(�

0

;�)

But by cases (E1) and (A1) of Table 5, we have

IpC ` E

p

(�)) q ^ E

p

(�

0

)

IpC ` A

p

(�

0

;�)) A

p

(�;�)

and hence (b) holds for ��) �.

14

Page 15: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Subcase: � = �

0

d(d! �) with d a propositional variable, IpC ` ��

0

d� ) �

and (a) and (b) hold for this sequent by induction hypothesis.

Subsubcase d = p:

(a) If p 62 V ar(�), then by (a) for ��

0

p� ) � we have

IpC ` �E

p

(�

0

p�)) �

But by case (E5) of Table 5 we also have

IpC ` E

p

(�)) E

p

(�

0

p�)

and hence (a) holds for ��) �.

(b) By (b) for ��

0

p� ) � we have

IpC ` �E

p

(�

0

p�)) A

p

(�

0

p�;�)

Hence using cases (E5) and (A5) of Table 5 we get (a) for ��) �.

Subsubcase d 6= p:

(a) If p 62 V ar(�), then by (a) for ��

0

d� ) � we have

IpC ` �dE

p

(�

0

�)) �

But by cases (E1) and (E4) of Table 5 we have

IpC ` E

p

(�) ) E

p

(�

0

(d! �)) ^ d

) (d!E

p

(�

0

�)) ^ d

) E

p

(�

0

�) ^ d

and hence (a) holds for ��) �.

(b) By (b) for ��

0

d� ) � we have

IpC ` �dE

p

(�

0

�)) A

p

(�

0

�;�)

and hence

IpC ` �E

p

(�

0

�) ^ d) d ^A

p

(�

0

�;�)

But as above, by cases (E1) and (E4) of Table 5 we have IpC `

E

p

(�) ) E

p

(�

0

�) ^ d; and similarly, by cases (A4) and (A1) we

have

IpC ` d ^A

p

(�

0

�;�) ) A

p

(�

0

(d! �);�)

) A

p

(�

0

d(d! �);�)

Hence (b) holds for ��) �.

15

Page 16: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Case (!)

2

): This case is analogous to that for (^)), using cases (E6) and

(A6) of Table 5.

Case (!)

3

): This case is analogous to that for (^)), using cases (E7) and

(A7) of Table 5.

Case (!)

4

):

Subcase: � = �

0

((

1

!

2

)!

3

), IpC ` �

0

(

2

!

3

)� )

1

!

2

, IpC `

0

3

�) � and (a) and (b) hold for these sequents by induction hypothesis,

i.e.

IpC ` �

0

(

2

!

3

)E

p

(�))

1

!

2

IpC ` �

0

3

E

p

(�)) A

p

(�;�)

and

IpC ` �

0

3

E

p

(�)) �

when p 62 V ar(�). Then (a) and (b) for �� ) � follow from these by an

application of (!)

4

).

Subcase: � = �

0

((�

1

! �

2

)! �

3

), IpC ` ��

0

(�

2

! �

3

) ) �

1

! �

2

, IpC `

��

0

3

) � and (a) and (b) hold for these sequents by induction hypothesis,

i.e.

IpC ` �E

p

(�

0

(�

2

! �

3

))) A

p

(�

0

(�

2

! �

3

); �

1

! �

2

) (2)

IpC ` �E

p

(�

0

3

)) A

p

(�

0

3

;�) (3)

and

IpC ` �E

p

(�

0

3

)) � (4)

when p 62 V ar(�)|in which case combining (2), (4) and case (E8) of Table 5

we have that (a) holds for ��) �. For (b), from (2) we get

IpC ` �) E

p

(�

0

(�

2

! �

3

))!A

p

(�

0

(�

2

! �

3

); �

1

! �

2

) (5)

and this together with (3) and case (E8) of Table 5 yield

IpC ` �E

p

(�)) A

p

(�

0

3

;�) (6)

Then (5), (6) and case (A8) of Table 5 together give that (b) holds for

��) �.

This completes the proof of Proposition 5.

16

Page 17: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

3 Interpreting IpC

2

in IpC

Using the propositions A

p

� de�ned in the previous section, we can translate

second order propositions into �rst order ones.

De�nition 7 For each second order proposition �, de�ne a �rst order proposi-

tion, �

, by induction on the structure of � as follows:

p

def

= p

?

def

= ?

(�# )

def

= �

#

(# = ^;_;!)

(8p�)

def

= A

p

In order to see that this translation sends IpC

2

-provable sequents to IpC-

provable ones, we need to establish a crucial property of the mapping � 7! A

p

�,

namely that it commutes with substitution. It is a peculiarity of second order

logic (compared with third, or higher, order logic) that this follows automatically

from the properties of A

p

� established in Theorem 1

Lemma 8 Given distinct propositional variables p; q, and �rst order propositions

� and with p; q 62 V ar( ), one has

IpC ` ; ) A

p

(�[ =q])$(A

p

�)[ =q]

Proof By part (ii) of Theorem 1 we have IpC ` A

p

� ) � and hence IpC `

(A

p

�)[ =q] ) �[ =q]; but since p does not occur in (A

p

�)[ =q], we can apply

part (i) of the theorem to conclude that IpC ` (A

p

�)[ =q]) A

p

(�[ =q]).

To prove the converse, we use the following congruence property of $ in IpC:

IpC ` ( $

0

)) �[ =q]$ �[

0

=q] (7)

From part (ii) of Theorem 1 we have

IpC ` A

p

(�[ =q])) �[ =q]

and so using (7), we also have

IpC ` ( $ q)A

p

(�[ =q])) �

Since p does not occur in the left-hand side of this sequent, part (i) of the theorem

implies that we also have

IpC ` ( $ q)A

p

(�[ =q])) A

p

On substituting for q throughout this sequent, we obtain

IpC ` A

p

(�[ =q])) (A

p

�)[ =q]

as required. �

17

Page 18: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Proposition 9 The translation � 7! �

has the following properties:

(i) For all sequents of second order propositions, if IpC

2

` � ) �, then IpC `

) �

(where �

indicates the translation applied elementwise to the

multiset �).

(ii) If � is a �rst order proposition then �

= �.

Thus ( )

gives an interpretation of IpC

2

into IpC which restricts to the identity

on �rst order propositions.

Proof Part (i) is proved by induction on the structure of the proof of � ) �

from the rules in Tables 1 and 2. The induction step for rule (8Intr) uses part (i)

of Theorem 1. The induction step for rule (8Elim) uses part (ii) of the theorem

in conjunction with Lemma 8.

Part (ii) is immediate from the de�nition of ( )

. �

Since IpC-provability is decidable whereas IpC

2

-provability is not (see [5], for

example), the interpretation ( )

cannot be conservative. Here is an interest-

ing example of an unprovable second order proposition whose interpretation is

provable.

Example 10 For all second order propositions � and

IpC ` ; ) [8p(� _ )$(8p� _ 8p )]

For combining De�nition 7 with the de�nition of A

p

in (1), we have

(8p(� _ ))

= A

p

(;;�

_

)

The construction of A

p

according to Table 5 then gives

A

p

(;;�

_

) = A

p

(;;�

) _A

p

(;;

)

= (8p�)

_ (8p )

Second order intuitionistic propositional logic has an interpolation property

which is a trivial consequence of quanti�cation over propositions. Using the

interpretation ( )

we can transfer this to a non-trivial interpolation property for

IpC which strengthens the usual Interpolation Theorem for this logic.

Proposition 11 Let � and be �rst order propositions for which IpC ` �)

holds. Call a �rst order proposition � an interpolant for (�; ) if

� V ar(�) � V ar(�) \ V ar( )

� IpC ` �) � and IpC ` �)

18

Page 19: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

There exist �rst order propositions " and � which are respectively least and

greatest interpolants for (�; ), in the sense that any interpolant � satis�es

IpC ` ") � and IpC ` �) �

Proof Suppose that

V ar(�) = fp

1

; : : : ; p

u

; q

1

; : : : ; q

v

g

V ar( ) = fq

1

; : : : ; q

v

; r

1

; : : : ; r

w

g

with the variables p

i

; q

j

; r

k

pairwise distinct. Since IpC ` � ) , it is also the

case that IpC

2

` �) and hence

IpC

2

` 9p

1

� � � 9p

u

�)

IpC

2

` �) 8r

1

� � � 8r

w

since p

1

; : : : ; p

u

62 V ar( ) and r

1

; : : : ; r

w

62 V ar(�). Furthermore, one always has

IpC

2

` �) 9p

1

� � � 9p

u

IpC

2

` 8r

1

� � � 8r

w

)

So setting

"

def

= (9p

1

� � � 9p

u

�)

def

= (8r

1

� � � 8r

w

)

properties (i) and (ii) in Proposition 9 applied to the above sequents imply that

" and � are indeed interpolants for (�; ) in IpC. Moreover, if � is any other

�rst order interpolant, from IpC ` � ) we get IpC

2

` � ) and hence

IpC

2

` � ) 8r

1

� � � 8r

w

(since r

1

; : : : ; r

w

62 V ar(�)); and then on applying ( )

we get IpC ` �) �. Similarly, IpC ` �) � implies IpC ` ") �.

4 Heyting Algebra Applications

Recall that a Heyting algebra, H, is a (distributive) lattice in which every pair of

elements h; h

0

2 H possesses a relative pseudocomplement, h!h

0

(the greatest

element whose meet with h lies underneath h

0

in the ordering on H). Amorphism

of Heyting algebras is a function preserving all �nite meets, �nite joins and relative

pseudocomplements. We will denote by Heyt the category of Heyting algebras

and morphisms. As their name suggests, Heyting algebras are the models of

an algebraic theory: see for example Balbes and Dwinger [1, Chapter IX] for

19

Page 20: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

an equational presentation and further information on the theory of Heyting

algebras.

The relationship between Heyting algebras and intuitionistic logic is exactly

analagous to that between Boolean algebras and classical logic. In particular,

there is a correspondence between Heyting algebras and �rst order intuitionistic

propositional theories, induced by the process of forming the Lindenbaum algebra

of a theory. Thus for each set G, let FhGi denote the set of �rst order propositions

built up from the elements of G regarded as propositional variables. Given a

subset R � FhGi, let

FhGi

-

FhG;Ri

� 7! [�]

denote the quotient of FhGi by the equivalence relation identifying two �rst order

propositions � and if and only if IpC ` � ) �$ holds for some �nite � � R.

Endowing FhG;Ri with the partial order

[�] � [ ] if and only if for some �nite � � R, IpC ` �) �!

one obtains a Heyting algebra|the Lindenbaum algebra of the IpC-theory (de-

termined by) R over the language G. Moreover, every Heyting algebra, H, can

be presented in this way: for example, take G to be the set H itself and R to be

those propositions mapped to > by the obvious evaluation function FhGi ! H

induced by the identity function G! H.

Theorem 1 can be rephrased as a statement about the relationship between

a Heyting algebra H and the algebra obtained from it by freely adjoining an

indeterminate X.

De�nition 12 Given a Heyting algebra H, a Heyting polynomial algebra over

H is a Heyting algebra H[X] equipped with a distinguished element X and a

morphism i

H

: H

-

H[X] with the following universal property:

For each morphism f : H

-

K in Heyt and each element k 2 K,

there is a unique morphism g : H[X]

-

K such that g � i

H

= f

and g(X) = k.

As usual, the universal property in the de�nition determines H[X] uniquely up

to isomorphism (over H). Given a presentation of H as FhG;Ri, one can present

H[X] as FhG[fpg;Ri, where p is any element not contained in G; the morphism

i

H

is induced by the inclusion FhGi � F; hG[fpgi, and the distinguished element

X is the equivalence class [p].

When R = ;,H = FhG;Ri is the free Heyting algebra on the set of generators

G and H[X] is free on G [ fpg. Except for the case of a single generator, the

structure of free Heyting algebras is not well understood. The following theorem

sheds some new light on this structure.

20

Page 21: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Theorem 13 For any Heyting algebra H, the morphism i

H

: H

-

H[X]

possesses both left and right adjoints. In other words there exist functions

e

H

: H[X]

-

H and a

H

: H[X]

-

H

satisfying

e

H

(P ) � h if and only if P � i

H

(h) (8)

h � a

H

(P ) if and only if i

H

(h) � P (9)

for all P 2 H[X] and h 2 H.

These adjoints are natural in H. In other words, for each morphism f :

H

-

H

0

in Heyt the following squares commute

H[X]

f [X]

-

H

0

[X]

e

H

?

?

e

H

0

H

f

-

H

0

H[X]

f [X]

-

H

0

[X]

a

H

?

?

a

H

0

H

f

-

H

0

(where f [X] is the unique morphism g satisfying (g�i

H

) = (i

H

0

�f) and g(X) = X

whose existence is guaranteed by the universal property of H[X] in De�nition 12).

Proof As remarked above we can assume H = FhG;Ri for some G and R,

and then take H[X] = FhG [ fpg;Ri. Thus each element h 2 H is of the form

h = [ ], where is some �rst order proposition with variables in G. Similarly,

each P 2 H[X] is of the form P = [�] where � may involve p as well variables in

G. Moreover, i

H

(h) � P in H[X] if and only if IpC ` �) !� holds for some

�nite � � R. But by Theorem 1 we have

IpC ` �) ! � i� IpC ` � ) �

i� IpC ` � ) A

p

i� IpC ` � ) !A

p

So de�ning a

H

(P ) = [A

p

�] we get (9). (Clearly the de�nition of a

H

(P ) is in-

dependent of the choice of representative for P .) The naturality of a

H

follows

from Lemma 8, because any morphism FhG;Ri

-

FhG

0

;R

0

i is induced by a

function FhGi

-

FhG

0

i of the form

7! [

0

g

=g j g 2 G]

for some G-indexed family (

0

g

2 FhG

0

i j g 2 G). Alternatively, the naturality of

a

H

can be deduced from an interpolation property of pushout squares inHeyt|

see [9, Theorem B].

21

Page 22: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

The existence of the left adjoints e

H

(and their naturality), follows from the

existence of the natural right adjoints by an algebraic version of the proof that

9 is de�nable from 8 and ! in IpC

2

. Alternatively, we can use Proposition 5 to

give a direct de�nition:

e

H

([�]) = [E

p

(�)]

Remarks 14 (i) The morphism i

H

: H

-

H[X] is always a monomor-

phism (since the universal property of H[X] implies that i

H

has a left

inverse sending X to, for example, the top element of H). Consequently

the adjoints to i

H

satisfy

e

H

� i

H

= id

H

= a

H

� i

H

(Of course they also satisfy i

H

� a

H

� id

H[X]

� i

H

� e

H

.)

(ii) (Cf. Remark 2.) The analogue of Theorem 13 for Boolean algebras is rather

trivial. This is because a Boolean polynomial in a single indeterminate X

with coe�cients in a given Boolean algebra B, can always be put in the

normal form

(b ^X) _ (b

0

^ :X) (b; b

0

2 B)

Then the inclusion of B into its algebra of Boolean polynomials is given by

b 7! (b ^X) _ (b ^ :X)

and it is easy to see that this has left and right adjoints, given respectively

by (b ^X) _ (b

0

^ :X) 7! (b _ b

0

) and (b ^X) _ (b

0

^ :X) 7! (b ^ b

0

).

Consider the morphism

k : FhG;Ri

-

FhG [ fpg;R [ f�gi

induced by the inclusion FhGi � FhG [ fpgi, where as before p is some new

element not in G and now we have also extended R by adding in some � 2

FhG[fpgi. The proof of Theorem 13 extends to show that this morphism k also

has left and right adjoints, e

k

; a

k

, given by:

e

k

([�]) = [E

p

(� ^ �)]

a

k

([�]) = [A

p

(�!�)]

Iterating, we get adjoints for the morphism induced by extending G and R by

�nitely many elements. Such morphisms are precisely the �nitely presented ob-

jects in the locally �nitely presentable category H=Heyt of Heyting algebras

equipped with a morphism from H( = FhG;Ri) (and whose morphisms are com-

mutative triangles). So we get the following corollary (the second paragraph of

which follows from the �rst and the interpolation property [9, Theorem B] of

pushout squares in Heyt):

22

Page 23: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

Corollary 15 Any morphism k : H

-

K in Heyt which makes K �nitely

presented over H, possesses both left and right adjoints, e

k

; a

k

: K

-

H.

Furthermore, given any morphism f : H

-

H

0

, forming the pushout square

K

f

0

-

K

0

6 6

k k

0

H

f

-

H

0

in Heyt, (k

0

necessarily makes K

0

�nitely presented over H

0

and) the adjoints

satisfy f � e

k

= e

k

0

� f

0

and f � a

k

= a

k

0

� f

0

.

These results enables us to construct for each Heyting algebra H, a model

of the second order calculus IpC

2

. To explain further, we must describe what is

needed to specify such a model. The particular notion of model we will use is

the specialization from categories to partial orders of the notion of model of the

second order lambda calculus described in [10, 12].

First note that since the notion of Heyting algebra is algebraic, it makes sense

to speak of a Heyting algebra object, U , in any category C with �nite products:

such an object comes equipped with morphisms

>;? : 1

-

U ^;_;! : U � U

-

U

making various diagrams (derived from the de�ning equations of the theory of

Heyting algebras) commute in C. As usual, this structure induces an ordinary

Heyting algebra structure on the hom-sets C(I; U); and precomposition with f :

I

-

I

0

gives a morphism of Heyting algebras, f

: C(I

0

; U)

-

C(I; U).

De�nition 16 Say that a Heyting algebra object U in C possesses internal U-

indexed meets if for each object I 2 C there is a right adjoint

V

I

: C(I � U;U)

-

C(I; U)

to the morphism �

1

induced by composition with the �rst projection morphism

1

: I � U

-

I, and moreover these right adjoints are natural in I.

Remark 17 The import of this condition on U becomes more apparent from the

point of view of the internal higher order logic of the topos [C

op

;Set] of presheaves

on C. Identifying the objects I of C with their corresponding presheaves C( ; I),

the functions

V

I

constitute a morphism U

U

-

U giving the meet of an internal

U -indexed family of elements of U .

23

Page 24: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

A Heyting algebra object U possessing internal U -indexed meets in a cate-

gory C with �nite products, determines a model of IpC

2

. For each second order

proposition � with free variables in the list ~p = p

1

; : : : ; p

n

of distinct variables,

we get a morphism

[[�(~p)]] : U

n

-

U

de�ned by induction on the structure of � as follows:

[[p

i

(~p)]]

def

=

U

n

i

-

U

[[?(~p)]]

def

=

U

n

-

1

?

-

U

[[(�# )(~p)]]

def

=

U

n

h[[�(~p)]];[[ (~p)]]i

-

U � U

#

-

U

!

[[(8p�)(~p)]]

def

=

V

U

n

U

n

� U

[[�(~pp)]]

-

U

!

(where # = ^, _, or !). In particular, when � contains no free variables we can

take ~p to be empty and obtain a global element

[[�]] 2 C(1; U)

of U for each closed second order proposition �. We will call the Heyting algebra

C(1; U) the algebra of truth-values of the model (C; U).

Say that (C; U) satis�es such a closed proposition � and write (C; U) j= � if [[�]]

is the top element of C(1; U). This notion of satisfaction is sound for provability

in IpC

2

: if IpC

2

` ; ) � then (C; U) j= �. Conversely, it is not hard to prove

(by a term model construction) that it is also complete: IpC

2

` ; ) � holds if �

is satis�ed by all (C; U).

Returning now to Theorem 13, given H 2 Heyt, let C be the opposite of the

full subcategory of H=Heyt consisting of the �nitely generated free objects. More

concretely, we can take the objects of C to be �nite ordinals, [n], and the mor-

phisms [n]

-

[m] to bem-tuples of elements of the polynomial Heyting algebra

in n indeterminates, H[X

1

; : : : ;X

n

]. Composition is given by substitution and

the identity on [n] is (X

1

; : : : ;X

n

). Lawvere's categorical treatment of algebraic

theories (see [7], for example) tells us that C (has �nite products and) contains the

generic model of the algebraic theory of `Heyting algebras equipped with a mor-

phism from H'. In particular, C does contain a Heyting algebra object, namely

U = [1]: its top and bottom elements are (>); (?) : [0]

-

[1] and its meet, join

and pseudocomplementation operations are (X

1

#X

2

) : [1]�[1] = [2]

-

[1] (for

# = ^;_;!).

For this Heyting algebra object we have for each object [n] 2 C that

C([n]; U) = C([n]; [1]) = H[X

1

; : : : ;X

n

]

C([n]� U;U) = C([n+ 1]; [1]) = H[X

1

; : : : ;X

n

;X

n+1

]

=

H[X

1

; : : : ;X

n

][X]

24

Page 25: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

and �

1

is i

H[X

1

;:::;X

n

]

. Consequently, Theorem 13 implies that U has internal U -

indexed meets and hence determines a model of IpC

2

. Note that the algebra of

truth-values of this model is C(1; U) = C([0]; [1]) = H, the given Heyting algebra.

We have thus proved:

Proposition 18 Given a Heyting algebra H, the algebraic theory of `Heyting

algebras equipped with a morphism from H' has the property that its generic

model U has internal U-indexed meets, and hence provides a model of second

order intuitionistic propositional logic. Since the algebra of truth-values of this

model is just H, we conclude that every Heyting algebra appears as the algebra of

truth-values of some model of IpC

2

.

There is a correspondence between instances of the notion of model of IpC

2

as we have de�ned it, and IpC

2

-theories. (By such a theory we mean a suitable

language together with a collection of axioms|second order propositions over the

language.) Under this correspondence, the algebra of truth-values of a model is

identi�ed with the Lindenbaum algebra of the theory (i.e. the collection of closed

second order propositions over the given language, quotiented by provability in

IpC

2

augmented with the given axioms). Consequently, Proposition 18 implies:

Every Heyting algebra is the Lindenbaum algebra of some IpC

2

-theory.

In fact one can see this without recourse to the correspondence between models

and theories, using the interpretation of IpC

2

into IpC developed in section 3.

For given a Heyting algebra H, choose a presentation for it as H = FhG;Ri.

Then the set of second order propositions over G

f� j IpC ` �) �

, for some �nite � � Rg

determines an IpC

2

-theory over G whose Lindenbaum algebra is isomorphic to

FhG;Ri (the isomorphism being induced by ( )

).

25

Page 26: On - University of Cambridgeamp12/papers/intsoq/intsoq.pdf · ac. uk i Abstract W e pro v the follo w ing surprising prop ert y of Heyting's in tuiti onisti c prop ositional calculus,

References

[1] R. Balbes and P. Dwinger, Distributive Lattices (University of Missouri Press,

1974).

[2] N. Dershowitz and Z. Manna, Proving Termination with Multiset Orderings,

Communications of the ACM 22(1979) 465{476.

[3] A. G. Dragalin, Mathematical Intuitionism, Transl. Math. Monographs,

Vol.69 (Amer. Math. Soc., Providence RI, 1988).

[4] R. Dyckho�, Contraction-free Sequent Calculi for Intuitionistic Logic,

preprint, University of St.Andrews, 1990.

[5] D. M. Gabbay, Semantical Investigations in Heyting's Intuitionistic Logic,

Synthese Library Vol. 148 (D. Reidel, Dordrecht, 1981).

[6] J. Hudelmaier, Bounds for Cut Elimination in Intuitionistic Propositional

Logic, PhD Thesis, University of T�ubingen, 1989.

[7] A. Kock and G. E. Reyes, Doctrines in categorical logic. In: J. Barwise

(ed.), Handbook of Mathematical Logic (North-Holland, Amsterdam, 1977),

Chapter A.8.

[8] P. Lincoln, A. Scedrov and N. Shankar, Linearizing intuitionistic implication,

Proceedings of the 6th Annual Symposium on Logic in Computer Science,

Amsterdam, July 1991, IEEE Computer Society Press, Washington, 1991.

[9] A. M. Pitts, Amalgamation and Interpolation in the Category of Heyting

Algebras, Jour. Pure Applied Algebra 29(1983) 155-165.

[10] A. M. Pitts, Polymorphism is Set Theoretic, Constructively. In: D. Pitt et al

(eds), Category Theory and Computer Science, Proceedings Edinburgh 1987,

Lecture Notes in Computer Science Vol. 283 (Springer-Verlag, Berlin, 1987),

pp 12{39.

[11] D. Prawitz, Natural Deduction (Almqvist & Wiksell, Stockholm, 1965).

[12] R. A. G. Seely, Categorical Semantics for Higher Order Polymorphic Lambda

Calculus, Jour. Symbolic Logic 52(1987) 969{989.

[13] N. Vorob'ev, A New Algorithm for Derivability in the Constructive Proposi-

tional Calculus, Amer. Math. Soc. Transl. (2) 94(1970) 37{71. (Translation

from Russian of Trudy Mat. Inst. Steklov 52(1958) 193{225.)

[14] G. R. Renardel de Lavalette, Interpolation in fragments of intuitionistic

propositional logic, this Journal, vol. 54 (1989), pp. 1419{1430.

26