27.04.2015 Views

Computability and Logic

Computability and Logic

Computability and Logic

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

280 SECOND-ORDER LOGIC<br />

just sets, one-place relation variables may be called set variables.) We suppose that<br />

no symbol of any sort is also a symbol of any other sort. We extend the definition of<br />

formula by allowing relation or function variables to occur in those positions in formulas<br />

where previously only relation symbols (a.k.a. predicates) or function symbols<br />

(respectively!) could occur, <strong>and</strong> also by allowing the new kinds of variable to occur<br />

after ∀ <strong>and</strong> ∃ in quantifications. Free <strong>and</strong> bound occurrences are defined for<br />

the new kinds of variable exactly as they were for defined for individual variables.<br />

Sentences, as always, are formulas in which no variables (individual, relation, or<br />

function) occur free. A second-order formula, then, is a formula that contains at least<br />

one occurrence of a relation or function variable, <strong>and</strong> a second-order sentence is a<br />

second-order formula that is a sentence. A formula or sentence of a language, whether<br />

first- or second-order, is, as before, one whose nonlogical symbols all belong to the<br />

language.<br />

22.1 Example (Second-order sentences). (In the following examples we use u as a oneplace<br />

function variable, <strong>and</strong> X as a one-place relation variable.)<br />

In first-order logic we could identify a particular function as the identity function:<br />

∀x f(x) = x. But in second-order logic we can assert the existence of the identity function:<br />

∃u ∀x u(x) = x.<br />

Similarly, where in first-order logic we could assert that two particular indviduals share<br />

a property (Pc & Pd), in second-order logic we can assert that every two individuals share<br />

some property or other: ∀x∀y∃X(Xx & Xy).<br />

Finally, in first-order logic we can assert that if two particular individuals are identical,<br />

then they must either both have or both lack a particular property: c = d → (Pc↔ Pd).<br />

But in second-order logic we can define identity through Leibniz’s law of the identity of<br />

indiscernibles: c = d ↔∀X (Xc↔ Xd).<br />

Each of the three second-order sentences above is valid: true in each of its interpretations.<br />

When is a second-order sentence S true in an interpretation M? We answer this<br />

question by adding four more clauses (for universal <strong>and</strong> existential quantifications<br />

involving relation <strong>and</strong> function variables) to the definition of truth in an interpretation<br />

given in section 9.3. For a universal quantification ∀XF(X) involving a relation<br />

variable, the clause reads as follows. First we define what it is for a relation R<br />

(of the appropriate number of places) on the domain of M to satisfy F(X): R does<br />

so if, on exp<strong>and</strong>ing the language by adding a new relation symbol P (of the appropriate<br />

number of places) to the language, <strong>and</strong> exp<strong>and</strong>ing the interpretation M to an<br />

interpretation MR P of the exp<strong>and</strong>ed language by taking R as the denotation of P, the<br />

sentence F(P) becomes true. Then we define ∀XF(X) to be true in M if <strong>and</strong> only if<br />

every relation R (of the appropriate number of places) on the domain of M satisfies<br />

F(X). The clauses for existential quantifications <strong>and</strong> for function symbols are similar.<br />

The definitions of validity, satisfiability, <strong>and</strong> implication are also unchanged for<br />

second-order sentences. Any sentence, first- or second-order, is valid if <strong>and</strong> only if<br />

true in all its interpretations, <strong>and</strong> satisfiable if <strong>and</strong> only if true in at least one of them.<br />

A set Ɣ of sentences implies a sentence D if <strong>and</strong> only if there is no interpretation in<br />

which all the sentences in Ɣ are true but D false.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!