• Nenhum resultado encontrado

3 Hilbert Calculi

N/A
N/A
Protected

Academic year: 2023

Share "3 Hilbert Calculi"

Copied!
21
0
0

Texto

(1)

intuitionistic logic

Marcelo E. Coniglio1 Cristina Sernadas2

1GTAL, Departamento de Filosofia, Universidade Estadual de Campinas, Brazil

2CLC/CMA, Departamento de Matem´atica, IST, Portugal

Abstract

Two Hilbert calculi for higher-order logic (or theory of types) are intro- duced. The first is defined in a language that uses just exponential types of power type, and it is obtained by adapting the sequent calculus for local set theory introduced by Bell in [3]. The second one, originally introduced in [5], is defined in a language with arbitrary functional types. Using usual topos semantics we show that both systems are sound and complete.

Introduction

Higher-order logic (a.k.a. hol, or theory of types) is defined in a very rich language which permits to express most of mathematics reasoning. Theory of types was introduced by Russell in 1908 as a solution to paradoxes in set theory (see [19]) and was reformulated by Church in [4]. By G¨odel’s second theorem, it is immediate to show that there is no (reasonable) proof system complete for the standard (set) semantics of hol. On the other hand, Henkin proves in [8] that it is possible to give an axiomatization of hol sound and complete w.r.t. a wider class of models, calledgeneral models, in which types of the form→θ0) are interpreted as subsets of the set of maps from (the carrier of)θ to (the carrier of)θ0. From the works of Lawvere (see for example [14, 15]) it was proved that the usual axiomatizations of hol are sound and complete w.r.t. an extremely elegant topos semantics (see, for instance, [12, 3, 16, 9, 17]).

In this research report we introduce two very simple Hilbert-style axiom- atizations of hol, which are sound and complete w.r.t. topos semantics. The first one is obtained by adapting the sequent calculus-style axiomatization of hol calledlocal set theory, introduced by Bell in [3], defined in a language with power types but without arbitrary functional types. The second one, originally introduced in [5], is a simple extension of the former to a language with arbi- trary functional types. The notions of signature with schema variables and of Hilbert calculus with provisos, as well as the notion of local and global entail- ment used here, are taken and adapted from the forthcoming paper [5], and this technical report should be seen as a companion to that paper.

(2)

1 Higher-Order Languages

In this section we recall the notion of signature introduced in [5]. This is a simplified version, enough for our purposes.

Definition 1.1 Given a setS with distinguished element1, we denote by Θ(S) the set inductively defined as follows: (i)S Θ(S); (ii) ifθ1, . . . , θnΘ(S) for integern≥2 then (θ1× · · · ×θn)Θ(S); (iii) ifθ∈Θ(S) thenP(θ)Θ(S).4 As usual, we write θn for the n-th power of θ (the product of θ with itself n times) and by conventionθ0 is1 and θ1 isθ.

Definition 1.2 Asignatureis a tuple Σ =hS,1,Ξ, X, Fiwhere:

S is a set with distinguished element 1;

Ξ =θ}θ∈Θ(S) where each Ξθ is a denumerable set Ξθ=kθ |k∈N};

X={Xθ}θ∈Θ(S) where eachXθ is a denumerable set Xθ ={xθk |k∈N};

F ={Fθθ0}θ,θ0∈Θ(S) where eachFθθ0 is a set. 4 The elements ofSare known assortsorground types. The elements of Θ(S) are known as types over S. Ground type 1 is called the unit sort. The type P(1), denoted by Ω, is called the truth value type. The elements of each Ξθ and Xθ are called schema variables and variables of type θ, respectively. The elements of eachFθθ0 are called function symbols of typeθθ0.

Definition 1.3 The family ST(Σ) ={ST(Σ)θ}θ∈Θ(S) is inductively defined as follows:

Ξθ∪Xθ ⊆ST(Σ)θ;

ifx∈Xθ0,ξ0 Ξθ0 and ξ∈Ξθ thenxξ0ξ ∈ST(Σ)θ;

iff ∈Fθθ0 andt∈ST(Σ)θ then (f t)∈ST(Σ)θ0;

• hi ∈ST(Σ)1;

ifti∈ST(Σ)θifor 1≤i≤nwithn≥2 thenht1, . . . , tni ∈ST(Σ)1×···×θn);

ift∈ST(Σ)1×···×θn),n≥2 and 1≤i≤nthen (t)i ∈ST(Σ)θi;

ift1, t2∈ST(Σ)θ then (=θht1, t2i)∈ST(Σ);

ift1 ∈ST(Σ)θ and t2 ∈ST(Σ)P(θ) then (∈θht1, t2i)∈ST(Σ);

ifx∈Xθ and t∈ST(Σ) then (setθx t)∈ST(Σ)P(θ). 4

(3)

The elements of each ST(Σ)θ are called schema terms of type θ. Schema terms of type Ω are also known as schema formulae. Schema terms without occurrences of schema variables are called terms: T(Σ)θ denotes the set of terms of typeθ. Note that schema terms with occurrences ofxξ0ξ are not terms.

Schema formulae without schema variables are calledformulae. We writeSL(Σ) and L(Σ) for ST(Σ) and ST(Σ), respectively. As we shall see in Section 3, schema variables are used in Hilbert calculi to express arbitrary terms within rules. Thus, with respect to semantics we are just interested in terms, and schema terms will be useful just as a tool for Hilbert calculi.

Every occurrence of a variablexin a schema term (setθx δ) or in xξ0ξ, inside a schema termt, is said to beboundint. Any other occurrence ofxin a schema termt is said to befree int. In particular, the unique bound occurrences of a variablexin a termtare in the scope of a term (setθx ϕ) occurring int. Ift, t0 are schema terms and x is a variable of the same type that t then txt0 denotes the schema term obtained fromt by substituting every free occurrence of x in tby t0. We say that a termt0 ∈ST(Σ)θ is free for a variable x∈Xθ in a term t if, for every variable y occurring free in t0, every occurrence of y in txt0 not already int is free.

Frequently we will omit the types attached to the symbols. As usual, we will adopt infix notation, writing for example (t1 =t2) instead of (=θ ht1, t2i).

We also write {x : γ} for (setθx γ), and t1 θ t2 (or even t1 t2) instead of (∈θht1, t2i).

Other logical operations can be introduced through abbreviations (cf. [3]):

Equivalence: (δ1⇔δ2) for (δ1 =δ2).

True: tfor (hi=1hi).

Conjunction: (δ1∧δ2) for (hδ1, δ2i=(Ω×Ω)ht,ti).

Implication: (δ1⇒δ2) for ((δ1∧δ2)⇔δ1).

Universal quantification: (∀θxθkδ) for ({xθk : δ}=P(θ) {xθk : t}).

False: f for (∀x1 x1).

Negation: (¬δ) for (δ⇒f).

Disjunction: (δ1∨δ2) for

(∀xi (((δ1⇒xi )2⇒xi ))⇒xi )),

wherexi is the first variable of type Ω not occurring free in1, δ2i.

Existential quantification: (∃θxθkδ) for

(∀xi (∀θxθk((δ⇒xi )⇒xi ))),

wherexi is the first variable of type Ω not occurring free inδ.

(4)

2 Topos Semantics

Higher-order languages can be interpreted in any topos (see, for instance, [12, 3, 16, 9, 17]). In order to interpret Σ-terms in a given topos we need to introduce the notion of context.

By a Σ-contextwe mean a finite sequence~x=x1. . . xnof distinct variables.

We denote by [] the empty context. Given a context ~x = x1. . . xn where the variablesx1. . . xnare of typeθ1, . . . , θn, respectively, we writeθ~xforθ1×· · ·×θn and say thatθ~x is the type of the context~x. By definitionθ[] is 1.

The setST(Σ, ~x)θ is composed by all Σ-schema termst of typeθsuch that every variable occurring free int appears in the context~x. The sets ST(Σ, ~x), SL(Σ, ~x),T(Σ, ~x) andL(Σ, ~x) are defined analogously.

Given a finite set Γ of terms we may refer to its canonical context formed exclusively by the variables occurring free in some term tof Γ (this canonical context is unique once we fix a total ordering of the variables).

Definition 2.1 Let Σ be a signature. A Σ-structureis a pairM =hE,·Misuch thatE is a (non-degenerate) topos and·M is a map such that:

θM is an object of E for all θ Θ(S) such that 1M is terminal 1, (θ1×

· · · ×θn)M is θ1M × · · · ×θnM and P(θ)M is the exponential ΩθM (thus, ΩM is identified with the subobject classifier Ω);

iff ∈Fθθ0 thenfM :θM →θ0M in E. 4 Given a Σ-structureM and a context~xof typeθ~x letθ~xM beθ1M× · · · ×θnM. Definition 2.2 If t∈ T(Σ, ~x)θ and M is a Σ-structure then we define induc- tively a morphism [[t]]M~x :θ~xM →θM as follows:

[[xi]]~xM is the canonical projection over θiM;

[[hi]]M~x is the unique map fromθ~xM to 1;

[[(f t)]]~xM is the composite fM [[t]]M~x ;

[[ht1, . . . , tni]]M~x is ([[t1]]M~x , . . . ,[[tn]]~xM);

[[(t)i]]M~x ispi◦[[t]]M~x , wheretis of type (θ10×· · ·×θm0 ) andpiis the canonical projection overθ0iM;

[[(t1 =θ t2)]]~xM is the characteristic map of m : dom(m) ,→ θ~xM, the monomorphism obtained from the equalizer of{[[ti]]M~x :θ~xM →θM}i=1,2;

[[(t1 θ t2)]]M~x is eval◦([[t2]]M~x ,[[t1]]M~x ), where eval: ΩθM ×θM Ω is the evaluation map associated to the exponential ΩθM.

[[{x : ϕ}]]M~x is the exponential transpose of [[ϕxy]]M~xy:θ~xM×θM Ω with respect to θM, wherey is the first variable free for x in ϕ not occurring

in~x. 4

(5)

Definition 2.3 An interpretation system is a pair S = hΣ,Mi where Σ is a

signature andM is a class of Σ-structures. 4

Using our abbreviations, it can be proved that quantifiers and connectives are interpreted in any topos in the usual way (see for instance [16, 17]). As mentioned in Section 1, schema variables are just used for express rules in Hilbert calculi and we are not interested in interpret them.

In order to define semantic entailment we need to introduce the following notation: given an object A in a topos E, then trueA : A Ω is the char- acteristic map of the monomorphism idA : A A. Recall that Sub(A) is the collection of equivalence classes [m] of monomorphismsm :dom(m),→A, wherem ∼n iff there exists an isomorphismf :dom(m)→ dom(n) such that m = n◦f. Given [mi] Sub(A) (i= 1,2) we say that [m1] [m2] iff there exists a morphism f : dom(m1) dom(m2) such that m1 = m2 ◦f. Then hSub(A),≤i is a Heyting algebra. If X is a finite subset of Sub(A) then ^

X will denote the infimum ofX w.r.t. the Heyting algebra-structure of Sub(A).

Usually, monomorphisms are identified with their equivalence classes (see, for instance, [16]).

Definition 2.4 LetS be an interpretation system. Given a finite subset Ψ {ϕ} of L(Σ, ~x) we say:

Ψglobally entailsϕwithinSand~x, written Ψ²Sp~x ϕ, iff, for everyM ∈ M:

^

ψ∈Ψ

[[ψ]]~xM =trueθ~xM implies [[ϕ]]M~x =trueθ~xM;

Ψ^locally entailsϕwithinS and~x, written Ψ²Sd~x ϕ, iff, for everyM ∈ M,

ψ∈Ψ

[[ψ]]~xM [[ϕ]]M~x . 4

If Ψ∪ {ϕ} ⊆L(Σ, ~x) is finite and~y is the canonical context of Ψ∪ {ϕ}then we write Ψ ²So ϕ instead of Ψ ²So~y ϕ, for o ∈ {p,d}. It is easy to prove that Ψ²So ϕimplies Ψ²So~x ϕ (and the converse is not necessarily true, because the possibly empty domains used in the interpretation of types of Σ).

The usual notion of semantic entailment considered in categorial logic is the local one. On the other hand, we will define two different notions of syntactical inference, one for each concept of semantic entailment. In several contexts it is useful to maintain the distinction between the two notions of (semantic and syntactical) inferences (cf. [21, 22, 5]).

3 Hilbert Calculi

In this section we recall (a simplified version of) the notion of Hilbert calculus introduced in [5]. In order to represent arbitrary terms in rules of Hilbert calculi we will use schema variables. Moreover, some rules will have provisos which control their range of application. Thus we need to introduce the following concepts.

(6)

By a Σ-substitution ρ we mean a Θ(S)-indexed family of maps from Ξθ to T(Σ)θ. As usual we write ξρ instead of ρθ(ξ). Any Σ-substitution ρ induces a map ρb: ST(Σ)−→ T(Σ) defined inductively as usual, with: ρ(bxξ0ξ) = (ξρ)xξ0ρ, where the right-side expression is the Σ-term obtained fromξρ by substituting every free occurrence of x by ξ0ρ. Note that ρ(δ)b ∈T(Σ)θ ifδ ∈ST(Σ)θ. We denoteρ(δ) byb δρ. LetSbs(Σ) be the set of all Σ-substitutions.

By a Σ-provisowe mean a map π:Sbs(Σ)→2. Intuitively,π(ρ) = 1 iff the Σ-substitutionρis allowed. (In [5] it is introduced a different notion of proviso which is suitable to perform fibring of deduction systems.) Provisos are very common in rules of logics. For instance, it is well known that a substitution instanceξρ⇒∀x ξρof the schema formulaξ⇒∀x ξis valid in first-order predicate logicprovided thatx is not free inξρ; in this case we haveπ(ρ) = 1 iffx is not free inξρ. We denote by Prov(Σ) the set of all Σ-provisos. Theunit provisou maps every Σ-substitution to 1. Binary product of provisosπuπ0 is defined as expected: (π0)(ρ) =π(ρ)uπ0(ρ).

Definition 3.1 A Σ-ruleis a triplehΓ, δ, πi where Γ∪ {δ} ⊆SL(Σ) and π is a

Σ-proviso. 4

When Γ = the conclusionδ of the rule is also known as anaxiom. When Γ is finite the rule is said to befinitary.

Definition 3.2 A deduction system is a triple D = hΣ,Rd,Rpi where Σ is a signature and bothRp and Rd are sets of finitary Σ-rules andRd⊆ Rp. 4 The elements of Rp are called proof rules and those of Rd are known as derivation rules.

Definition 3.3 A ~x-proof within a deduction system D of ϕ L(Σ, ~x) from Ψ⊆L(Σ, ~x) is a sequence ϕ1, . . . , ϕn of formulae in L(Σ, ~x) such that ϕn isϕ and for eachi= 1, . . . , n:

eitherϕiΨ;

or there is a rule h{γ1, . . . , γk}, δ, πi ∈ Rp and a Σ-substitution ρ such that:

1. π(ρ) = 1;

2. ϕi =δρ;

3. for eachj = 1, . . . , k, there is aij ∈ {1, . . . , i−1}such thatϕij =γjρ.

When there is such a~x-proof in Dof ϕ from Ψ, we write Ψ`Dp~x ϕ. And when there is a context~xsuch that Ψ`Dp~x ϕwe write Ψ`Dp ϕ. 4 Definition 3.4 A ~x-derivation within a deduction system D of ϕ L(Σ, ~x) from Ψ⊆L(Σ, ~x) is a sequenceϕ1, . . . , ϕn of formulae inL(Σ, ~x) such thatϕn isϕand for each i= 1, . . . , n:

(7)

eitherϕiΨ;

or∅ `Dp~x ϕi;

or there is a rule h{γ1, . . . , γk}, δ, πi ∈ Rd and a Σ-substitution ρ such that:

1. π(ρ) = 1;

2. ϕi =δρ;

3. for eachj = 1, . . . , k, there is aij ∈ {1, . . . , i−1}such thatϕij =γjρ.

When there is such a~x-derivation in D of ϕ from Ψ, we write Ψ `Dd~x ϕ. And when there is a context~xsuch that Ψ`Dd~xϕ we write Ψ`Dd ϕ. 4 As usual, with respect to both proofs and derivations, we may drop the reference to the assumptions when Γ =∅. Note that `Dp~x ϕiff`Dd~x ϕ.

Definition 3.5 A logic system is a tuple L =hΣ,M,Rd,Rpi such that S = hΣ,Miis an interpretation system andD=hΣ,Rd,Rpiis a deduction system.

4 Definition 3.6 A logic system L is said to be sound iff, for o ∈ {p,d}, any context~xand every finite Ψ∪ {ϕ} ⊆L(Σ, ~x):

Ψ`Do~x ϕimplies Ψ²So~xϕ.

A logic systemLis said to becompleteiff, for o∈ {p,d}and finite Ψ∪{ϕ} ⊆ L(Σ):

Ψ²So ϕimplies Ψ`Do ϕ. 4

We say that a Σ-structure M satisfies D if Ψ`Do~x ϕ implies Ψ ²hΣ,{M}io~x ϕ for every Ψ, ϕ,~xand o∈ {p,d}.

Remark 3.7 We recall here the observation made in [5] about the strangeness of Definition 3.6. It is clear that the intended definition of soundness of a logic systemL is, for o∈ {p,d},

Ψ`Do ϕimplies Ψ²So ϕ.

Unfortunately, this definition is not correct in the realm of logic systems, be- cause the (possibly) empty domains interpreting the types of Σ. In fact, from Ψ, ψ²So ϕand Ψ²So ψwe cannot infer Ψ²So ϕ, for o∈ {p,d}(see, for instance, [3]). On the other hand, it is obvious that any deduction system D satisfies the following property: from Ψ, ψ `Do ϕ and Ψ `Do ψ we infer Ψ `Do ϕ, for o ∈ {p,d}. Therefore the standard definition of soundness must be changed, and we must live with the fact that it is possible to have

Ψ`Do ϕbut ΨSo ϕ

even in a sound logic systemL. 4

(8)

4 Local Set Theories

In general, the logic of topoi is expressed through a sequent calculus or in natural deduction-style (see, for instance, [3, 9]). One reason for this is probably related to the problems that the definition of soundness involves for Hilbert calculi (cf.

Remark 3.7 and [5]). In this section we recall the sequent calculus calledlocal set theory introduced by Bell in [3], which is sound (in the usual sense) and complete for topos semantics. And in Section 5 we will rewrite this calculus in a Hilbert-style.

Definition 4.1 Let Σ be a signature as in Definition 1.2 but allowing terms of the formhti, which are identified with t. A Σ-sequent (or simply asequent) is a pairhΨ, ϕi, where Ψ∪ {ϕ} is a finite set of formulae over Σ. 4 A sequent hΨ, ϕi will be denoted by (Ψ :ϕ) or simply Ψ :ϕ. If Ψ =∅then we will write (:ϕ) or :ϕ. As usual,

ϕ,Ψ :ψ Ψ, ϕ:ψ and Φ,Ψ :ψ

will stand for {ϕ} ∪Ψ : ψ and ΦΨ : ψ, respectively. If Ψ is a finite set of formulae then Ψxτ will stands for the finite set xτ |ϕ∈Ψ}.

Definition 4.2 Local Set Theories (cf. [3]) A local set theory is a sequent calculus defined as follows

Tautology ϕ:ϕ Unity :x1 =hi

Equality x=y, ϕzx:ϕzy (x andy free for z inϕ) Product1 : (hx1, . . . , xni)i =xi (1≤i≤n) Product2 x=h(x)1, . . . ,(x)ni (n1) Comprehension :x∈ {x : ϕ}

Thinning

Ψ :ϕ ψ,Ψ :ϕ Cut Ψ :ϕ ϕ,Ψ :ψ

Ψ :ψ (any free variable of ϕfree in Ψ or ψ) Substitution

Ψ :ϕ

Ψxτ :ϕxτ (τ free for xin Ψ and ϕ) Extensionality

Ψ :x∈σ ⇔x∈τ

Ψ :σ=τ (x not free in Ψ, σ, τ)

(9)

Equivalence

ϕ,Ψ :ψ ψ,Ψ :ϕ Ψ :ϕ⇔ψ

4 In [3], the term hti is defined to be t, for every term t. This allows us to prove the sequent (:∀x(x=θ x)) for all θ. Recall from [3] the following: letS be a set of sequents. Then the local set theoryS generated by S is defined as follows: (Ψ :ϕ)∈S iff Ψ`S ϕiff there exists a proof of (Ψ :ϕ) possibly using sequents ofS as assumptions in the rules. IfS =then we write Ψinstead of Ψ`Sϕ. The following result was proved in [3].

Proposition 4.3 The following is true in any local set theory:

1. ϕ,Ψ :ψ

Ψ :ϕ⇒ψ and Ψ :ϕ⇒ψ ϕ,Ψ :ψ

2. Ψ :ψ

Ψ :∀x ψ

provided either (i) x is not free in Ψ or (ii) xis not free inψ.

3.

∀x ψ`ψ providedx is free inψ.

4. ϕxτ,Ψ :ψ

∀x ϕ,Ψ :ψ

provided thatτ is free forx inϕ,xis free inϕand any free variable ofτ is free in∀x ϕ, Ψ or ψ.

In Section 5 we will define a deduction system called HOL and prove that inferences in local set theories correspond to deductions in HOL, obtaining the theorem of adequacy ofHOL w.r.t. topos semantics. Because the different definition of soundness we state in 3.6, we need to extend the notion of inference in local set theories (cf. Definition 4.5).

Remark 4.4 For convenience, we adopt the following notation. Let Ψ be a finite subset ofL(Σ); then (V

Ψ) denotes a formula obtained from Ψ by taking the conjunction of all the formulae in Ψ in an arbitrary order and association (if Ψ = then we take (V

Ψ) to be t). It is easy to prove that, if Ψ∪ {ψ}is a finite subset ofL(Σ) and (V

Ψ)1, (V

Ψ)2 are two conjunctions defined as above then{(V

Ψ)1} `(V

Ψ)2, therefore {(V

Ψ)1⇒ψ} `(V

Ψ)2⇒ψ. 4

(10)

Definition 4.5 LetS be a set of sequents formed by formulae inL(Σ) and let Ψ∪{ϕ}be a finite subset ofL(Σ, ~x) for some context~x=x1. . . xn. Let (~x=~x) be a formula (V

{(x1 =x1), . . . ,(xn =xn)}) obtained as in Remark 4.4. Then

Ψ`S~xϕwill stands for Ψ,(~x=~x)`Sϕ. 4

As usual we omit the reference to the theory S when S=∅.

Let S = hΣ,Mi be the interpretation system such that M is the class of all the Σ-structures M = hE,·Mi. Using the soundness and completeness theorem of local set theory stated in [3] we obtain easily the following theorem of adequacy:

Theorem 4.6 Let~x be a context, Ψ∪ {ϕ} a finite subset of L(Σ, ~x) andS a set of sequents inL(Σ). Then Ψ `S~xϕ iff Ψ²Sd~xS ϕ, where SS =hΣ,MSi and MS is the subclass ofMformed by all the models ofS. In particular: Ψ`~xϕ iff Ψ²Sd~x ϕ, Ψ`S ϕiff Ψ²SdS ϕand Ψiff Ψ²Sd ϕ.

5 Hilbert-style axiomatization of Higher-order logic

In this section we will adapt the sequent calculus-style presentation of local set theory to a Hilbert-style one, defining a deduction system called HOL. The main results to be stated are the following:

Ψ`HOLd~x S ϕ implies Ψ`S~xϕ;

Ψ`Sϕ implies Ψ`HOLd S ϕ,

where HOLS is obtained from HOL by adding the sequents of S as axioms (under an appropriate form). In order to do this, we begin with some notation.

For any schema formulaδ, any typeθ, any variablexof typeθand any schema termδ1 of typeθ we define the following provisos:

1Bx:δ)(ρ) = 1 iff δ1ρ is free for x inδρ;

(x≺δ)(ρ) = 1 iffx occurs free inδρ;

(x6≺δ)(ρ) = 1 iffx does not occur free in δρ.

Definition 5.1 Hilbert calculus for intuitionistic hol.

We define the deduction system HOL = hΣ,Rp,Rdi as follows (here i N, k≥2 and θ,θ1, ...,θk are types):

• Rd is the set composed by:

taut1: h∅, ξ12⇒ξ1),ui;

taut2: h∅,12⇒ξ3))((ξ1⇒ξ2)1⇒ξ3)),ui;

taut3: h∅,1⇒ξ2)((ξ1⇒ξ3)12∧ξ3))),ui;

taut4: h∅, ξ121∧ξ2)),ui;

uni: h∅,∀x1(x1 =hi),ui;

(11)

equai,θ: h∅,1 =ξ2)(xξ1iξ3 xξ2iξ3),(ξ1Bxi:ξ3)u2Bxi :ξ3)i;

refθ: h∅,∀x1(x1 =x1),ui;

projk,θ1,...,θk,i: h∅,∀x1· · · ∀xk((hx1, . . . , xki)i=xi),ui for 1≤i≤k;

prodk,θ1,...,θk: h∅,∀x1(x1 =h(x1)1, . . . ,(x1)ki),ui;

comphθ: h∅,∀x1(x1 ∈ {x1 :ξ1} ⇔ξ1),ui;

subsi,θ: h∅,(∀xiξ2) xξi

1ξ2,1Bxi:ξ2)u(xi≺ξ2)i;

extθ: h∅,(∀x1(x1 ∈ξ1⇔x1∈ξ2)1 =ξ2),(x1 6≺ξ1)u(x1 6≺ξ2)i;

equiv: h∅,1⇒ξ2)((ξ2⇒ξ1)1⇔ξ2)),ui;

MP: h{ξ1, ξ1⇒ξ2}, ξ2,ui;

• Rp is obtained by adding toRd the following rules:

GENi,θ: h{ξ1⇒ξ2}, ξ1(∀xiξ2),(xi 6≺ξ1)i. 4 Of course, rules with subscripts are in fact “schema-rules” (in the usual sense). Thus, eachi∈Nand each typeθdefine a particular instance ofequai,θ, and so on. Since, in contrast with the approach in [3], we do not define terms of the formhti(1-tupling), we need to include the axioms refθ. From now on, we will omit the subscripts in the name of the rules.

Remark 5.2 If Ψ∪{ψ}is a finite subset ofL(Σ, ~x) and (V

Ψ)1, (V

Ψ)2 are two conjunctions defined as in Remark 4.4 then{(V

Ψ)1} `HOLd~x (V

Ψ)2. Therefore {(V

Ψ)1⇒ψ} `HOLd~x (V

Ψ)2⇒ψ. 4

Given a set S of sequents we define the set of rules RS={h∅,(^

Ψ)⇒ϕ,ui | (Ψ :ϕ)∈S}, where (V

Ψ) is defined as in Remark 4.4. The systemHOLS is given by hΣ,Rp∪ RS,Rd∪ RSi.

Proposition 5.3 HOLS satisfies the Metatheorem of Deduction with respect to~x-derivations: for every context~xand finite Ψ∪ {ϕ, ψ} ⊆L(Σ, ~x),

ϕ,Ψ`HOLd~x S ψ iff Ψ`HOLd~x S ϕ⇒ψ.

Proof: By straightforward induction on the length of a~x-derivation of ψfrom Ψ∪ {ϕ} we get Ψ`HOLd~x S ϕ⇒ψ. The converse is immediate by MP. QED

The following useful properties ofHOL can be easily proved.

Lemma 5.4 Letϕ, ψ, ψ0∈L(Σ, ~x). The following holds in HOL.

1. `HOLd[] t.

2. {ϕ} `HOLd~x (t⇒ϕ).

(12)

3. {ϕ} `HOLp~x (∀xϕ).

4. {(ϕ⇒ψ),⇒ψ0)} `HOLd~x⇒ψ0).

5. {(ϕ⇒ψ),⇒ψ0)} `HOLd~x∧ψ0)).

6. {ϕ∧ψ} `HOLd~x ϕ.

7. {ϕ∧ψ} `HOLd~x ψ.

8. {ϕ⇒⇒ψ0)} `HOLd~x ((ϕ∧ψ)⇒ψ0).

Proof: (1) Consider the following []-derivation inHOL:

1. (∀x1(x1 =hi)) (uni)

2. ((∀x1(x1=hi))⇒t) (subs) 3. t(MP1,2).

(2) Consider the following~x-derivation:

1. ϕ(Hyp)

2. (ϕ(t⇒ϕ)) (taut1) 3. (t⇒ϕ) (MP1,2).

(3) Consider the following~x-proof:

1. ϕ(Hyp)

2. (t⇒ϕ) (Item (2), 1) 3. (t(∀xϕ)) (GEN2) 4. t(Item (1))

5. (∀xϕ) (MP4,3).

(4) Straightforward, bytaut1,taut2and MP.

(5) Straightforward, bytaut3and MP.

(6) It is easy to show that {hϕ1, ϕ2i = 1, ψ2i} `HOLd~xi = ψi) for i = 1,2 and 1, ϕ2, ψ1, ψ2} ⊆ L(Σ, ~x). On the other hand, = t} `HOLd~x ϕ, as the following~x-derivation shows.

1. (ϕ=t) (Hyp) 2. (t=ϕ) (1)

3. ((t=ϕ)⇒(xxt⇒xxϕ)) (equa) 4. (t⇒ϕ) (MP2,3)

5. t(Item (1))

(13)

6. ϕ(MP5,4).

From the results above the desired result follows straightforwardly, because (ϕ∧ψ) ishϕ, ψi=ht,ti.

(7) Idem to item (6).

(8) An easy consequence of Items (6),(7) and Proposition 5.3. QED Lemma 5.5 Let ~xbe a context and let ϕ L(Σ, ~x). Then `HOLd~x S ϕ implies

`S~xϕ.

Proof: By induction on the length n of a ~x-derivation of ϕ from within HOLS. Ifn= 0 then we have the following cases:

(1) ϕ is an instance of (taut i) (i = 1, ...,4). The result follows from the completeness of pure local set theory andThinning.

(2) ϕ is an instance (∀x)(x σ ⇔x τ)(σ = τ) of ext. Then x does not occur free in hσ, τi. Consider the following proof fromS in pure local set theory:

1. x∈σ⇔x∈τ :x∈σ⇔x∈τ Tautology

2. (∀x(x∈σ⇔x∈τ)) :x∈σ⇔x∈τ Proposition 4.3(3), 1 3. (∀x(x∈σ⇔x∈τ)) :σ =τ Extensionality, 2

4. (~x=~x),(∀x(x∈σ⇔x∈τ)) :σ=τ Thinning, 3

5. (~x=~x) : (∀x(x∈σ⇔x∈τ))⇒σ =τ Proposition 4.3(1), 4.

(3)ϕis an instance (∀xψ)⇒ψτx ofsubs. Thenτ is free forxinψandxoccurs free in ψ, and we can construct the following proof from S in pure local set theory:

1. ψ:ψ Tautology

2. (∀xψ) :ψ Proposition 4.3(3), 1 3. (∀xψ) :ψτx Substitution, 2 4. (~x=~x),(∀xψ) :ψxτ Thinning, 3

5. (~x=~x) : (∀xψ)⇒ψτx Proposition 4.3(1), 4.

(4) The other cases forn= 0 are easy.

Suppose that the result is true for every ~x-derivation within HOLS in k n steps, and letϕobtained fromthrough a~x-derivation inn+ 1 steps. We have the following cases:

(a)ϕis an instance of an axiom. The proof is as above.

(b)ϕis obtained fromψandψ⇒ϕbyMP. Thus we can construct the following proof fromS in pure local set theory:

1. (~x=~x) :ψ (IH)

(14)

2. (~x=~x) :ψ⇒ϕ (IH)

3. ψ,(~x=~x) :ϕ Proposition 4.3(1), 2 4. (~x=~x) :ϕ Cut 3,1.

Note that the application of Cut is legitimated by the presence of a suitable (~x=~x) which captures all variable occurring free in ψ.

(c)ϕis ψ1(∀xψ2) obtained fromψ1⇒ψ2 by GEN. Thusx does not occur free inψ1. We have the following cases:

CASE 1: x does not occur free in ψ2. Then we construct the following proof fromS in pure local set theory:

1. (~x=~x) :ψ1⇒ψ2 (IH)

2. ψ1,(~x=~x) :ψ2 Proposition 4.3(1), 1 3. ψ1,(~x=~x) : (∀xψ2) Proposition 4.3(2), 2 4. (~x=~x) :ψ1(∀xψ2) Proposition 4.3(1), 3.

CASE 2: xoccurs free inψ2. Then~xis, let’s say,~yx, and we can construct the following proof fromS in pure local set theory:

1. x=x,(~y=~y) :ψ1⇒ψ2 (IH)

2. (∀x(x=x)),(~y =~y) :ψ1⇒ψ2 Proposition 4.3(4), 1 3. : (∀x(x=x))

4. (~y=~y) :ψ1⇒ψ2 Cut 2,3

5. ψ1,(~y=~y) :ψ2 Proposition 4.3(1), 4 6. ψ1,(~y=~y) : (∀xψ2) Proposition 4.3(2), 5 7. (~y=~y) :ψ1(∀xψ2) Proposition 4.3(1), 6 8. (~x=~x) :ψ1(∀xψ2) Thinning, 7.

This concludes the proof. QED

Proposition 5.6 Let ~x be a context and let Ψ ∪ {ϕ} be a finite subset of L(Σ, ~x). Then Ψ`HOLd~x S ϕ implies Ψ`S~xϕ.

Proof: Is an immediate consequence of propositions 5.3 and 4.3(1), and Lemma

5.5. QED

Lemma 5.7 Let Ψ∪ {ϕ} be a finite subset of L(Σ). Then Ψ `S ϕ implies

`HOLd S (V

Ψ)⇒ϕ.

(15)

Proof: Induction on the lengthnof the proof of the sequent (Ψ :ϕ) from S.

Ifn= 0 then we have two possibilities:

(1) (Ψ :ϕ) is an axiom of the pure local set theory. The result follows easily using the axioms ofHOL and Lemma 5.4. For example, any instance of axiom Equalitycan be derived in HOL as follows:

1. ((x=y)⇒xz⇒ψyz)) (equa)

2. (((x=y)∧ψzx)⇒ψyz) (Lemma 5.4(8), 1), provided that bothx, y are free forz inψ.

(2) (Ψ :ϕ) is an instance of a sequent in S. The conclusion is immediate, by the definition ofRS.

Assume that the result is true for any proof of length ≤n, and consider a sequent (Ψ :ϕ) which is proved from S inn+ 1 steps. We have the following new cases:

(a) (Ψ : ϕ) is of the form (ψ,Φ : ϕ), and it is obtained from (Φ : ϕ) by Thinning. Then there exists a context ~x and a ~x-derivation within HOLS of ((V

Φ)⇒ϕ) from ∅, by induction hypothesis. From one of such~x-derivations we can construct the following~x-derivation in HOLS:

1. ((V

Φ)⇒ϕ) (IH) 2. ((ψ(V

Φ))(V

Φ)) (Lemma 5.4(7), Proposition 5.3) 3. ((ψ(V

Φ))⇒ϕ) (Lemma 5.4(4), 2,1).

(b) (Ψ : ϕ) is obtained from (Ψ : ψ) and (ψ,Ψ : ϕ) by Cut. There exists a context~xand~x-derivations inHOLS of ((V

Ψ)⇒ψ) and ((ψ∧(V

Ψ))⇒ϕ), by induction hypothesis and Remark 5.2. From one of such~x-derivations we can construct the following~x-derivation in HOLS:

1. ((V

Ψ)⇒ψ) (IH) 2. ((ψ(V

Ψ))⇒ϕ) (IH) 3. ((V

Ψ)(V Ψ)) 4. ((V

Ψ)(V

Ψ))) (Lemma 5.4(5) 1,3) 5. ((V

Ψ)⇒ϕ) (Lemma 5.4(4), 4,2).

(c) (Ψ : ϕ) is of the form (Φxτ : ψxτ), and it is obtained from (Φ : ψ) by Substitution. Note that τ is free forxin (V

Φ)⇒ψ. Ifxdoes not occur free in (V

Φ)⇒ψ then (Ψ :ϕ) is (Φ : ψ) and there exists a ~x-derivation in HOLS of ((V

Ψ)⇒ϕ), by induction hypothesis. Ifx occurs free in (V

Φ)⇒ψthen there exists a~x-derivation in HOLS of ((V

Φ)⇒ψ), by induction hypothesis. From one of such~x-derivations we can construct the following~y-derivation inHOLS, for some context~y:

1. ((V

Φ)⇒ψ) (IH)

(16)

2. (∀x((V

Φ)⇒ψ)) (Lemma 5.4(3), 1) 3. (∀x((V

Φ)⇒ψ))⇒((V

Φ)⇒ψ)xτ (subs) 4. (V

Φxτ)⇒ψxτ (MP2,3).

(d) (Ψ :ϕ) is of the form (Ψ :σ=τ), and it is obtained from (Ψ :x∈σ⇔x∈τ) byExtensionality. Note thatxdoes not occur free inh(V

Ψ), σ, τi. There exists a~x-derivation in HOLS of (V

Ψ)(x∈σ⇔x∈τ), by induction hypothesis.

From one of such~x-derivations we can construct the following~x-derivation in HOLS:

1. (V

Ψ)(x∈σ⇔x∈τ) (IH) 2. (V

Ψ)(∀x(x∈σ⇔x∈τ)) (GEN1) 3. (∀x(x∈σ⇔x∈τ))(σ=τ) (ext) 4. (V

Ψ)(σ =τ) (Lemma 5.4(4), 2,3).

(e) (Ψ :ϕ) is (Ψ :ψ1⇔ψ2), and it is obtained from (ψ1,Ψ :ψ2) and (ψ2,Ψ :ψ1) byEquivalence. Then there exists~x-derivations inHOLS of ((ψ1∧(V

Ψ))⇒ψ2) and ((ψ2(V

Ψ))⇒ψ1), by induction hypothesis and Remark 5.2. From one of such~x-derivations we can construct the following~x-derivation inHOLS:

1. ((ψ1(V

Ψ))⇒ψ2) (IH) 2. ((ψ2(V

Ψ))⇒ψ1) (IH) 3. ((V

Ψ)1⇒ψ2)) (1) 4. ((V

Ψ)2⇒ψ1)) (2)

5. ((ψ1⇒ψ2)((ψ2⇒ψ1)1⇔ψ2))) (equiv) 6. ((V

Ψ)((ψ2⇒ψ1)1⇔ψ2))) (Lemma 5.4(4), 3,5) 7. (((V

Ψ)((ψ2⇒ψ1)1⇔ψ2)))(((V

Ψ)2⇒ψ1))((V Ψ)1⇔ψ2)))) (taut2)

8. (((V

Ψ)2⇒ψ1))((V

Ψ)1⇔ψ2))) (MP6,7) 9. ((V

Ψ)1⇔ψ2)) (MP 4,8).

QED Proposition 5.8 Let Ψ∪ {ϕ}be a finite subset ofL(Σ). Then Ψ`S ϕimplies Ψ`HOLd S ϕ.

Proof: Immediate by Lemma 5.7 and Proposition 5.3. QED From propositions 5.6 and 5.8 we obtain the desired result.

(17)

Theorem 5.9 (Adequacy of HOL) LetSS =hΣ,MSisuch thatMS is the class of all the Σ-structures satisfyingS. Then:

1. HOLS is d-sound and d-complete w.r.t. SS, that is, for every context ~x and finite Ψ∪ {ϕ} ⊆L(Σ, ~x):

Ψ`HOLd~x S ϕ implies Ψ²Sd~xS ϕ.

Ψ²SdS ϕ implies Ψ`HOLd S ϕ.

2. HOLS is p-sound and p-complete w.r.t. SS, that is, for every context ~x and finite Ψ∪ {ϕ} ⊆L(Σ, ~x):

Ψ`HOLp~x S ϕ implies Ψ²Sp~xS ϕ.

Ψ²SpS ϕ implies Ψ`HOLp S ϕ.

Proof: (1) It is an immediate consequence of Theorem 4.6 and propositions 5.6 and 5.8.

(2) Recall the notation introduced in Remark 4.4 and Definition 4.5. LetHOLΨS be the deduction system obtained fromHOLS by adding the axiom

h∅,(^

Ψ)(~x=~x),ui,

and letSSΨ =hΣ,MΨSi be the corresponding interpretation system. Then, by definition of proofs and derivations and by item (1):

Ψ`HOLp~x S ϕ implies `HOLd~x ΨS ϕ implies [[ϕ]]M~x =trueθ~xM for every M ∈ MΨS. But the last affirmation implies the following: for everyM ∈ MS,

if [[ψ]]M~x =trueθ~xM for every ψ∈Ψ then [[ϕ]]M~x =trueθ~xM.

This means that Ψ²Sp~xS ϕand thenHOLSis p-sound w.r.t. SS. Finally, suppose that Ψ²SpS ϕ. Then, for everyM ∈ MS:

if [[ψ]]M~x =trueθ~xM for every ψ∈Ψ then [[ϕ]]M~x =trueθ~xM, where~xis the canonical context of Ψ∪ {ϕ}. Then

[[ϕ]]~xM = [[ϕ(~x=~x)]]M~x =trueθ~xM

for every M ∈ MΨS, that is, ²SdSΨ(~x =~x)). By item (1) we infer `HOLd ΨS (ϕ∧(~x=~x)). Therefore Ψ`HOLp S ϕand then we obtain the desired result. QED

6 Extending the language

In [5] it is shown that it is possible to extend the set Θ(S) of Definition 1.1 to a wider collection allowing functional types instead of the particular cases P(θ). Of course the logic obtained is the same than HOL, because arbitrary exponentials can be expressed in any topos just using exponentials of the form ΩA, finite limits and the properties of Ω (see for instance [16]).

Referências

Documentos relacionados

In the section 3 the configuration used in the experiment is presented, in the subsection 3.1 the strain gauge is presented, in the sub- section 3.2 the operation and the

We organize the paper as follows: in Section 2 we recall the standard functional framework in which the Cauchy problem for (1.1) is well posed in the sense of the semigroup theory

Neste capítulo procurou-se não só apresentar e analisar as principais tendências no que toca à procura e oferta turística, assim como as ferramentas ligadas ao planeamento

Uma sociedade quando pretende efetuar um IPO e desta forma entrar em bolsa, pode fazê-lo através da emissao de novas ações, aumentando assim o capital da empresa; da

Los antecedentes de esta tradición se remontan a Tucídides, Maquiavelo, Hobbes, Clausewitz, entre otros, quienes han influenciado notablemente en la construcción de una ontología

In section 3 we review the constrution spinorial representation in arbitrary dimensions, in section 4 we discussed the zero mode fermions localization and in section 5 we show

For better comprehension the multivariate indices which are part of this study are introduced in section 2; the multivariate time series models are presented in section 3;

As sessões das quartas-feiras do Projeto do Meio Aquático decorreram, geralmente, das 9h às 12h, incluindo o transporte dos clientes e o tempo passado na preparação para a