Reading preferences
Optional display controls need JavaScript. All reading content and navigation work without it.
Source file content/second-order-logic/metatheory/metatheory.tex
Source file content/second-order-logic/metatheory/introduction.tex
Introduction
First-order logic has a number of nice properties. We know it is not decidable, but at least it is axiomatizable. That is, there are proof systems for first-order logic which are sound and complete, i.e., they give rise to a derivability relation source with the property that for any set of sentences source and sentence source, source iff source. This means in particular that the validities of first-order logic are computably enumerable. There is a computable function source such that the values of source are all and only the valid sentences of source. This is so because derivations can be enumerated, and those that derive a single sentence are then mapped to that sentence. Second-order logic is more expressive than first-order logic, and so it is in general more complicated to capture its validities. In fact, we'll show that second-order logic is not only undecidable, but its validities are not even computably enumerable. This means there can be no sound and complete proof system for second-order logic (although sound, but incomplete proof systems are available and in fact are important objects of research).
First-order logic also has two more properties: it is compact (if every finite subset of a set source of sentences is satisfiable, source itself is satisfiable) and the Löwenheim--Skolem Theorem holds for it (if source has an infinite model it has a denumerable model). Both of these results fail for second-order logic. Again, the reason is that second-order logic can express facts about the size of domains that first-order logic cannot.
Source file content/second-order-logic/metatheory/second-order-arithmetic.tex
Second-order Arithmetic
Recall that the theory source of Peano arithmetic includes the eight axioms of source,
The latter is a “schema,” i.e., a pattern that generates infinitely many sentences of the language of arithmetic, one for each formula source. We call this schema the (first-order) axiom schema of induction. In second-order Peano arithmetic source, induction can be stated as a single sentence. source consists of the first eight axioms above plus the (second-order) induction axiom:
It says that if a subset source of the domain contains source and with any source also contains source (i.e., it is “closed under successor”) it contains everything in the domain (i.e., source.
The induction axiom guarantees that any structure satisfying it contains only those elements of source the axioms require to be there, i.e., the values of source for source. A model of source contains no non-standard numbers.
Every element of a second order arithmetic model is named by a numeral
Proof
Let source, and suppose source. Of course, for any source, source, so source.
Now for inclusion in the other direction. Consider a variable assignment source with source. By assumption,
Consider the antecedent of this conditional. source, and so source. The second conjunct, source is also satisfied. For suppose source. By definition of source, source for some source. That gives source. So, source.
We have that source. Consequently, source. But that means that for every source we have source. So, source.
Categoricity of second order Peano arithmetic
Any two models of source are isomorphic.
Proof
By the theorem that second order arithmetic models contain only numeral values, the domain of any model of source is exhausted by source. Any such model is also a model of source. By the proposition about standard models of Q, any such model is standard, i.e., isomorphic to source.
Above we defined source as the theory that contains the first eight arithmetical axioms plus the second-order induction axiom. In fact, thanks to the expressive power of second-order logic, only the first two of the arithmetical axioms plus induction are needed for second-order Peano arithmetic.
Definability of arithmetic from successor and second order induction
Let source be the second-order theory containing the first two arithmetical axioms (the successor axioms) and the second-order induction axiom. Then source, source, and source are definable in source.
Proof
To show that source is definable, we have to find a formula source such that source iff source. Consider the formula
Clearly, source is satisfied by a set source iff source, so we can take source.
To see that addition is definable observe that source iff there is a function source such that source, source for all source, and source. We can use this equivalence to define addition in source by the following formula:
Exercise completing the definability proof
Complete the proof of the proposition defining arithmetic from successor and second order induction.
Source file content/second-order-logic/metatheory/undecidability-and-axiomatizability.tex
Second-order Logic is not Axiomatizable
Undecidability of second order logic
Second-order logic is undecidable.
Proof
A first-order sentence is valid in first-order logic iff it is valid in second-order logic, and first-order logic is undecidable.
No sound and complete effective second order proof system
There is no sound and complete derivation system for second-order logic.
Proof
Let source be a sentence in the language of arithmetic. source iff source. Let source be the conjunction of the nine axioms of source. source iff source, i.e., source. Now consider the sentence source resulting by replacing source by source, source by the one-place function variable source, source and source by the two-place function-variables source and source, respectively, and source by the two-place relation variable source and universally quantifying. It is a valid sentence of pure second-order logic iff the original sentence was valid iff source iff source. Thus if there were a sound and complete proof system for second-order logic, we could use it to define a computable enumeration source of the sentences true in source. This function would be representable in source by some first-order formula source. Then the formula source would define the set of true first-order sentences of source, contradicting Tarski's Theorem.
Source file content/second-order-logic/metatheory/compactness.tex
Second-order Logic is not Compact
Explain
Call a set of sentences source finitely satisfiable if every one of its finite subsets is satisfiable. First-order logic has the property that if a set of sentences source is finitely satisfiable, it is satisfiable. This property is called compactness. It has an equivalent version involving entailment: if source, then already source for some finite subset source. In this version it is an immediate corollary of the completeness theorem: for if source, by completeness source. But a derivation can only make use of finitely many sentences of source.
Compactness is not true for second-order logic. There are sets of second-order sentences that are finitely satisfiable but not satisfiable, and that entail some source without a finite subset entailing source.
Failure of compactness for second order logic
Second-order logic is not compact.
Proof
Recall that
is satisfied in a structure iff its domain is infinite. Let source be a sentence that asserts that the domain has at least source elements, e.g.,
Consider the set of sentences
It is finitely satisfiable, since for any finite subset source there is some source so that source but no source for source. If source has source elements, source. But, source is not satisfiable: if source, source must be finite, say, of size source. Then source.
Exercise on noncompact entailment
Give an example of a set source and a sentence source so that source but for every finite subset source, source.
Source file content/second-order-logic/metatheory/loewenheim-skolem.tex
The Löwenheim--Skolem Theorem Fails for Second-order Logic
Explain
The (Downward) Löwenheim--Skolem Theorem states that every set of sentences with an infinite model has an enumerable model. It, too, is a consequence of the completeness theorem: the proof of completeness generates a model for any consistent set of sentences, and that model is enumerable. There is also an Upward Löwenheim--Skolem Theorem, which guarantees that if a set of sentences has a denumerable model it also has a non-enumerable model. Both theorems fail in second-order logic.
Failure of downward Loewenheim Skolem in second order logic
The Löwenheim--Skolem Theorem fails for second-order logic: There are sentences with infinite models but no enumerable models.
Proof
Recall that
is true in a structure source iff source is enumerable, so source is true in source iff source is non-enumerable. There are such structures---take any non-enumerable set as the domain, e.g., source or source. So source has infinite models but no enumerable models.
Failure of upward Loewenheim Skolem in second order logic
There are sentences with denumerable but no non-enumerable models.
Proof
source is true in source but not in any structure source with source non-enumerable.
Source disclosures
- TR040-SAR-002: Source caveat. Containing every natural number at least n does not by itself require the whole set Y to be closed under successor below n. The preceding formula B includes that closure requirement. The asserted if and only if in this prose is preserved as a source claim, not silently strengthened or weakened. source
- TR040-SAR-003: Source variable caveat. The displayed addition formula universally quantifies w but its successor equation uses x, not w. Its universal quantifier is therefore vacuous. This differs from the all n condition in the preceding prose. The printed formula and claim are preserved rather than silently repaired. source
- TR040-SAR-004: Source scope caveat. Validity of the conditional requires satisfaction in every structure M. The following satisfaction notation does not explicitly quantify M. The universal requirement is not inserted into that formula as an unmarked change. source
- TR040-SAR-001: Reader notation correction. The closing brace of the satisfaction expression has been put inside its math delimiter. The formula still says that structure M satisfies if P then A; no quantifier or mathematical condition is added. source
- TR040-SAR-005: Source indexing caveat. In choosing a bound for a finite subset, the text twice writes Gamma where the argument needs to refer to that finite subset, Gamma subscript zero. Gamma itself contains size requirements for arbitrarily large n. The wording is preserved and the mismatch is identified here. source