In mathematical logic, second-order logic is an extension of first-order logic, which itself is an extension of propositional logic. In addition to the structure of first-order logic, second-order logic also contains variables in predicate positions (rather than only in term positions, as in first-order logic), and quantifiers binding them. The most general second order logic includes these variables and quantifiers for all finitary relations on the domain and for all functions in a finite number of variables taking values in the domain. A more restricted version of second order logic includes only quantifiers and variables for unary relations on the domain.
So:
which might express the principle of bivalence with respect to Jones: For every property, either Jones has it or he doesn't.
As another example, we can write in first-order logic a sentence like:
but we cannot do the same with the predicate. That is, the following expression:
is not a sentence of first-order logic. But this is a legitimate sentence of second-order logic.
Thus, for example, if the domain is the set of all real numbers, one can assert in first-order logic the existence of an additive inverse of each real number by writing
but one needs second-order logic to assert the least-upper-bound property for sets of real numbers:
and insert in place of the dots a statement that if A is nonempty and has an upper bound in R then A has a least upper bound in R.
In a second order logic that permits quantifying over functions, it is possible to write formal sentences which mean "the domain is finite" or "the domain is of countable cardinality." To say that the domain is finite, use the sentence which says that every injective function on the domain is surjective. To say that the domain has countable cardinality, use the sentence which says that there is a bijection between every two infinite subsets of the domain. It is not possible to characterize finiteness or countability in first-order logic.
(table of mathematical symbols)
But notice that the domain was asserted to include all sets of real numbers. That requirement has not been reduced to a first-order sentence! Might there be some way to accomplish the reduction? The classic Löwenheim-Skolem theorem entails that there is not. That theorem implies that there is some countably infinite subset of R, whose members we will call internal numbers, and some countably infinite set of sets of internal numbers, whose members we will call "internal sets", such that the domain consisting of internal numbers and internal sets satisfies all of the first-order sentences satisfied by the domain of real-numbers-and-sets-of-real-numbers. In particular, it satisfies a sort of least-upper-bound axiom that says, in effect:
Countability of the set of all internal numbers (in conjunction with the fact that those form a densely ordered set) necessarily implies that that set does not satisfy the full least-upper-bound axiom. Countability of the set of all internal sets necessarily implies that is not the set of all subsets of the set of all internal numbers (since Cantor's theorem implies that the set of all subsets of a countably infinite set is an uncountably infinite set).
Thus the second order theory of the real numbers cannot be reduced to a first order theory, in the sense that the second order theory of the real numbers has only one model but the corresponding first order theory has many models.
A more extreme example: there is a finite second order theory whose only model is the real numbers if the continuum hypothesis holds and which has no model if the continuum hypothesis does not hold. This theory consists of a finite theory characterizing the real numbers as a complete Archimedean ordered field plus an axiom saying that the domain is of the first uncountable cardinality. This example illustrates that the question of whether a sentence in second order logic is consistent is extremely subtle.
Additional limitations of second order logic are described in the next section.
This is sometimes expressed by saying that second-order logic does not admit a complete proof theory.
In this respect second-order logic differs from first-order logic, and this is at least one of the reasons logicians have shied away from its use. (Quine occasionally pointed to this as a reason for thinking of second-order logic as not logic, properly speaking.) As George Boolos has pointed out, though, this incompleteness enters only with polyadic second-order logic: logic quantifying over n-place predicates, for n > 1. But monadic second-order logic, restricted to one-place predicates, is not only complete and consistent but decidable--that is, a proof of every true theorem is not only possible but determinately accessible by a mechanical method. In this respect, monadic second-order logic fares better than polyadic first-order logic: monadic second-order logic is complete, consistent and decidable, but polyadic first-order logic, though consistent and complete, is no longer decidable (See halting problem).
In 1950, Leon Henkin gave adequacy (i.e. completeness and soundness) and compactness proofs for second-order logic with a Henkin semantics. The only difference between standard and Henkin semantics is that in Henkin semantics the domain of predicate variables may be an arbitrary set of subsets of the domain (subject to certain closure conditions), and not necessarily the set of all subsets of the domain. His proof proceeds as it does for the first-order functional calculus. Both results were contained in his dissertation.
It was found that set theory could be formulated as an axiomatized system within the apparatus of first-order logic (at the cost of several kinds of completeness, but nothing so bad as Russell's paradox), and this was done (see Zermelo-Fraenkel set theory), as sets are vital for mathematics. Arithmetic, mereology, and a variety of other powerful logical theories could be formulated axiomatically without appeal to any more logical apparatus than first-order quantification, and this, along with Gödel and Skolem's adherence to first-order logic, led to a general decline in work in second (or any higher) order logic.
This rejection was actively advanced by some logicians, most notably W. V. Quine. Quine advanced the view that in predicate-language sentences like Fx the "x" is to be thought of as a variable or name denoting an object and hence can be quantified over, as in "For all things, it is the case that . . ." but the "F" is to be thought of as an abbreviation for an incomplete sentence, not the name of an object (not even of an abstract object like a property). For example, it might mean " . . . is a dog." But it makes no sense to think we can quantify over something like this. (Such a position is quite consistent with Frege's own arguments on the concept-object distinction). So to use a predicate as a variable is to have it occupy the place of a name which only individual variables should occupy. This reasoning has been rejected by Boolos.
In recent years second-order logic has made something of a recovery, buoyed by George Boolos' interpretation of second-order quantification as plural quantification over the same domain of objects as first-order quantification. Boolos furthermore points to the nonfirstorderizability of sentences such as "Some critics admire only each other" and "Some of Fianchetto's men went into the warehouse unaccompanied by anyone else." which can only be expressed by the full force of second-order quantification. (This is in fact not true as generalized quantification and partially-ordered, or branching, quantification suffices to express a certain class of nonfirstorderizable sentences as well and it does not appeal to second-order quantification.)
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Second-order logic".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world