The Compactness Theorem

The compactness theorem is a fundamental theorem for the model theory of (classical) propositional and first-order logic. As well as having importance in several areas of mathematics, such as algebra and combinatorics, it also helps to pinpoint the strength of these logics, which are the standard ones used in mathematics and arguably the most important ones in philosophy.

The main focus of this article is the many different proofs of the compactness theorem, applying different Choice-like principles before later calibrating the strength of these and the compactness theorems themselves over Zermelo-Fraenkel set theory ZF. Although the article’s focus is mathematical, much of the discussion keeps an eye on philosophical applications and implications.

We first introduce some standard logics, detailing whether the compactness theorem holds or fails for these. We also broach the neglected question of whether natural language is compact. Besides algebra and combinatorics, the compactness theorem also has implications for topology and foundations of mathematics, via its interaction with the Axiom of Choice. We detail these results as well as those of a philosophical nature, such as apparent ‘paradoxes’ and non-standard models of arithmetic and analysis. We then provide several different proofs of the compactness theorem based on different Choice-like principles.

In later sections, we discuss several variations of compactness in logics that allow for infinite conjunctions / disjunctions or generalised quantifiers, and in higher-order logics. The article concludes with a history of the compactness theorem and its many proofs, starting from those that use syntactic proofs before moving to the semantic proofs model theorists are more accustomed to today.

Table of Contents

  1. Introduction
  2. Compactness: Common Logics and Natural Language
    1. Common Logics
    2. Natural Language
  3. Implications of Compactness
  4. Some Non-Topological Proofs
    1. Deductive: Proofs via Soundness and Completeness
    2. Syntactic: Henkin-Style Proofs
    3. Semantic: Ultraproduct Proofs
  5. Connection to Topology
  6. Extensions and Generalisations
  7. Relative Strength
    1. ZF-Equivalents
    2. Principles Strictly ZF-Stronger Than the Compactness Theorem
    3. Principles Strictly ZF-Weaker Than the Compactness Theorem
  8. History of the Compactness Theorem
  9. References and Further Reading

1. Introduction

A logic consists of a language, grammar, semantics, and consequence relation ⊧ . If Γ is a set of sentences of this logic and δ one of its sentences, Γ ⊧ δ means that any model of Γ is a model of δ. (A model of Γ is a model of all sentences in Γ.) Informally, a logic is called compact if it is determined by its behaviour on finite sets of sentences; there may be infinitely many sentences in the language, but we can always reduce our considerations to finitely many in any given situation. More formally, a logic is compact just when:

  • If every finite subset Γfin of Γ is satisfiable then Γ is also satisfiable.
  • If Γ is an unsatisfiable set of sentences then so is Γfin for some finite subset Γfin of Γ.

Some authors take the compactness of a logic to be its satisfaction of these statements’ biconditional versions. We have chosen to omit the reverse implication from the definition as it easily follows from the meaning of Γ ⊧ δ. These two characterisations of compactness are equivalent, since the second statement is effectively the contrapositive of the first. In a logic containing a classical negation connective (by which we mean for each sentence δ there is a sentence ¬δ such that 𝔐 ⊧ ¬δ if and only if 𝔐  ⊭ δ), both statements are equivalent to:

  • If Γ ⊧ δ then Γfinδ for some finite subset Γfin of Γ.

This equivalence follows from

Γ ⊧ δ if and only if Γ ∪ {¬ δ}  is unsatisfiable.

The compactness theorem is said to hold for a logic precisely when the logic is compact.

Alongside its close cousin, the completeness theorem for first-order logic, the compactness theorem for first-order logic is one of the most important theorems in contemporary logic. In this article, we give a few examples of compact and incompact logics and briefly discuss whether natural languages such as English are compact (Section 2). We then mention some mathematical and philosophical implications of the compactness of first-order logic (Section 3). Following that, we give some non-topological proofs of the compactness of propositional and first-order logic (Section 4), followed by a topological proof of the propositional case, which gives the compactness theorem its name (Section 5). We continue with a sketch of some generalisations of the usual notion of compactness (Section 6), a calibration of the strength of the compactness theorems relative to the ZF axioms (Section 7), and end with some notes on the history of the compactness theorems (Section 8). Our discussion concerns the logics philosophers are most familiar with.

2. Compactness: Common Logics and Natural Language

a. Common Logics

Propositional logic is usually taken to consist of a set of sentential atoms  {p1, . . . , pn, … } and some truth-functionally complete set of Boolean connectives, for instance {¬,   ⋁ , ⋀  }   . If we denote by PLκ a propositional logic with κ sentential atoms, PLω is a propositional logic with a countable infinity of atoms. (κ will usually be taken to be an infinite cardinal in what follows.) Any propositional logic PLκ is compact, whatever its set of truth-functional connectives may be. Notice that when κ = n is finite, the compactness of any PLn is a trivial consequence of the fact that any sentence is logically equivalent to a sentence drawn from a fixed set of size no greater than 22n. (This set is of size exactly 22n just when the set of connectives is truth-functionally complete.)

First-order logic with standard semantics is also compact. This fact is of tremendous importance for logic and its applications, since first-order logic remains the canonical logic to this day, the widespread interest in higher, supplementary and alternative logics notwithstanding. By ‘first-order logic’, we understand throughout first-order logic with identity. First-order logic without identity is of course also compact, since it is a sublogic of first-order logic with identity.

By second-order logic we mean second-order logic with standard or full semantics, in which second-order n-place predicate variables range over all the n-tuples from the domain of interpretation (and similarly for functional variables).

In contrast to first-order logic, second-order logic is not compact. To see this, let ∃≥ n be a sentence of first-order logic satisfied in all and only models with domain of size   n;   ∃≥1 may thus be taken as  ∃ x(x = x),    ∃≥2    as ∃x  ∃y ¬  (x  =  y), and so on. Since first-order logic is a sublogic of second-order logic,  ∃ n is a sentence of second-order logic too. Consider next the sentence

R (R is functional  ∧ R is injective  ∧ ¬R is surjective)

where R is a binary predicate variable, ‘R is functional’ abbreviates ∀ x ∃!yRxy, ‘R is injective’ abbreviates  ∀ x∀y∀z ((Rxz∧  Ryz)    x = y) and ‘R is surjective’ abbreviates ∀y∃xRxy.  Any interpretation of this sentence states that the domain is Dedekind-infinite. The following second-order argument is then valid:




R(R is functional  ∧ R is injective  ∧ ¬R is surjective)

However, no finite subset of the premisses entails the conclusion. For let the finite subset be   { ∃≥1 ,  ∃≥2 , … , ∃ik  } and take m  ≥  max {i1, i2, . . . , ik }. Then there is a model of size m in which the k premisses  ∃≥1 ,  ∃≥2 , … , ∃ik are true but the argument’s conclusion is false. Hence second-order logic is not compact.

The compactness theorem also typically, but not invariably, fails for infinitary logics. Any logic which allows infinite disjunctions, for example, is incompact, since the set of sentences   { c ≠ ci : i  ∊  ω }  ∪  { ⋁ i∊ω c = ci } is finitely-satisfiable (every finite subset is satisfiable) but unsatisfiable. We return to infinitary logics and to generalisations of the notion of compactness in Section 6.

b. Natural Language

Natural languages are languages such as English, Mandarin, French, and Arabic. Formal languages in contrast are logical languages such as those of propositional, first-order and second-order logic. Although of great mathematical and philosophical importance, the latter are not ‘natural’  in  the  intended  sense  because they are not anyone’s native language and are only ever ‘spoken’, if at all, in limited contexts.Is natural language, say English, compact? We must first clarify what the question means. Assume there is such a thing as the relation of logical consequence in natural language. For example, consider these two natural-language arguments:

Hypatia is a woman.                                                   Hypatia is mortal.
All women are mortal.                                              All women are mortal.

Hypatia is mortal.                                                    Hypatia is a woman.

The argument on the left is logically valid, whereas the argument on the right is invalid. These two examples, of a logically valid English argument and a logically invalid one respectively, help us home in on the notion we are interested in, namely English logical validity, but they do not, of course, provide definitions of it. Next, let’s say that a natural language is compact just when, for any logically valid argument in this language, there is a logically valid argument whose conclusion remains the same, yet the premiss set is a finite subset of the original argument’s premiss set. This definition is the analogue of our last definition of compactness above for a formal language: if Γ ⊧ δ then Γfinδ  for some finite subset Γfin of Γ. An equivalent definition could be given based on the other definition of compactness for a formal language.

The overwhelming majority of linguists, philosophers, and other theorists of language take natural language to consist of infinitely many sentences. The idea is that since such sentences are of finite, but arbitrary, length, there must be infinitely many of them. The set of these sentences may be specified by a set of recursive procedures, which generate sentences of arbitrary length. For example, all the following are sentences of English:

My grandfather was tall;
My great-grandfather was tall;
My great-great-grandfather was tall;

Now as a matter of empirical fact, there is some finite number N such that I do not have a greatN -grandfather (which N is the least such may be vague). That does not affect the point at issue, which is that these infinitely many sentences are bona fide sentences of English.

Consider now an English argument roughly analogous to the following English analogue of the second-order-logic argument presented earlier:

There is at least one planet.
There are at least two planets

There are at least n planets

There are infinitely many planets.

This argument appears to be valid. Clearly, no finite subset of the premiss set entails the conclusion. If this is right, the English consequence relation is incompact. The moral carries over to any natural language into which the argument is translatable.

Resistance to the argument for the incompactness of English may take several forms. One line of resistance, for instance, would query whether any natural language has a single consequence relation. According to this objection, there are only various consequence relations that arise from looking at, say, English through a particular theoretical lens; none is the correct one. Logical pluralists would all take this view, as would some other philosophers of logic: Beall and Restall (2006) and Shapiro (2014) defend different versions of logical pluralism. The objection, then, is that the argument for the incompactness of English given above assumes that there is a determinate notion: the English consequence relation.

This objection, and others, must be addressed before we can conclude that English is incompact. Here we do not take sides but flag the issue as an important one. For more discussion, see Paseau and Griffiths (2021), and Griffiths and Paseau (2022, chap. 5).

3. Implications of Compactness

This section draws some implications of the compactness of first-order logic. The sample below is a small selection from a list that could fill volumes. Our choices are mostly guided by their philosophical implications, although there are a few examples of primarily mathematical interest. From  this  point  on,  we  assume some knowledge of elementary model theory (Chang and Keisler 1990; Hodges 1997).

(i) Any compact logic extending first-order logic cannot express the notions of finitude or infinitude (of a model). Suppose towards a contradiction that ϕF is satisfied by all and only finite Then {ϕF }  ∪  {∃≥n :n ∊  ω}  is unsatisfiable, and hence by compactness it must have an unsatisfiable finite subset, which must be a subset of {ϕF }∪{∃≥i1 , . . . , ∃≥ik } for some i1< . . . < ik. But any finite model with domain of size ≥ ik satisfies (any subset of) {ϕF }∪{∃≥i1 , . . . , ∃≥ik } , thereby contradicting our hypothesis.

And if there were a sentence ϕI satisfied by all and only infinite models then  ¬ϕI   would be satisfied by all and only finite models, a hypothesis we have just refuted.

This application of the compactness theorem is entirely typical. Schematically, one shows by contradiction that the class of models with some ω-property (expressible by the conjunction of an infinite set S of first-order sentences) is not definable by a single sentence ϕ. In these arguments, ¬ϕ together with any finite subset of S is satisfiable, but  {¬ϕ} ∪ S is not, contradicting compactness. Informally speaking, in these applications the ω-property is the conjunction of the n-properties; in our example, the n-property was having size at least n and the ω-property was having infinite size.

However, it is possible that (depending on the language) there is a sentence which implies that any of these models must be infinite. As an example, take the first-order language with a single unary function symbol, and take the sentence

ϕ := ∀x∀y(f (x) = f (y) → x = y) ∧∃x∀y¬(f (y) = x)

The models of this sentence are sets endowed with an injective, but non-surjective function. By the pigeonhole-principle, each such model must be infinite. Since this sentence cannot express infinitude, there must be an infinite model not satisfying ϕ. An example is the domain of natural numbers, over which f is interpreted as the identity function on the natural numbers. As a further illustration of  this  technique,  compactness  implies  that  the class of torsion-free abelian groups is not finitely-axiomatisable in first-order logic. (A group is torsion-free if the identity is the only element with finite order. The prototypical example of a torsion-free abelian group is (ℤ, +).) For if it were, by the single sentence ϕ say, then the set

{abelian group axioms} ∪ {¬ϕ} ∪ {∀x ≠ 0(x +· · · + x ≠ 0) : n = 1, 2, . . . }

(x +· · · + x)   n t im  es

would be finitely-satisfiable (for finite sets where the sums are bounded by n in the sentences from the rightmost set, take the integers under addition modulo p for some prime p > n). But the set itself is unsatisfiable, since

{abelian group axioms} ∪ {∀x = 0((x +· · · + x ≠ 0) : n = 1, 2, . . . }

(x +· · · + x)   n t im  es

is satisfied by all and only torsion-free abelian groups. This contradicts compactness. Note that here the ω-property is that all non-identity elements of the model have infinite order, and the n-property that all non-identity elements have order ≠ n (all these properties incorporate the abelian group axioms too).

As a still further illustration, the same type  of  argument  shows  that  the class of algebraically-closed fields is also not finitely-axiomatisable. The relevant ω-property is that the field is algebraically-closed, and the relevant n-property is

∀y1∀y2. . . ∀yn∃x(xn + y1· xn1 + ··· + yn1· x + yn = 0)

This style of argument is easily applied to many other domains.

(ii) Suppose Σ1 and Σ2 are two sets of sentences of a compact logic (in which conjunction and negation are definable) with the property that every model satisfies either Σ1 or Σ2 but not Then there is a sentence σ such that Σ1 is logically equivalent to σ (meaning that {σ }and Σ1  have  the  same models) and Σ2 is logically equivalent to  ¬σ (Chang and Keisler 1990, 12, cor. 1.2.15).

(iii) The compactness theorem may be used to show that any first-order theory of arithmetic TAR satisfied by the standard model has a non-standard (By the standard model of arithmetic, for the theory TAR in question, we mean the structure of natural numbers with the standard interpretation of the non-logical symbols in the language of TAR; the constant 0 denotes 0, the two-place symbol + denotes addition,  · denotes multiplication, and so forth. A nonstandard model can have ‘infinite’ elements: objects greater than those denoted by the terms n for all n. As an ordered set, a nonstandard model looks like N followed by blocks of ℤ, which themselves form a dense linear order without endpoints.) Assuming that each numeral n is definable in TAR, consider

T+AR = TAR ∪ {c ≠ n : n ∈ ω}

where c is any constant not in the language of TAR. Any finite subset of T+AR is satisfied by the standard model, because we may interpret c as anumber distinct from those n where  c ≠ n occurs in the given finite sub-set. Hence by compactness, T+AR  has a model 𝔐. The reduct of 𝔐 to thelanguage of TAR is non-standard since it contains an element c𝔐  (the denotation of c in 𝔐) not identical to any natural number.

Supplementing the argument just given with an appeal to the downward Löwenheim-Skolem Theorem (Chang and Keisler 1990, p. 66, cor. 2.1.4; Hodges 1997, p. 72, cor. 3.1.4) shows that any such first-order theory of arithmetic TAR is not even   ℵ0-categorical, since it has a countably infinite non-standard model. (For an infinite cardinal κ, a theory is κ-categorical if it has exactly one model, up to isomorphism, of cardinality κ.) Observe that a theory may be complete even if it is not  ℵ0-categorical. To see this, run the previous argument supplemented by an application of the down- ward Löwenheim-Skolem Theorem for a complete theory of arithmetic TAR. More generally, a theory may fail to be λ-categorical for every infinite cardinal λ and still be complete—in other words the converse of the Łoś-Vaught test (Chang and Keisler 1990, p. 139, prop. 3.1.7) fails.

The same general idea can be used to demonstrate the existence of non-standard models of real analysis. Let TAN be a first-order theory of analysis satisfied by the standard model (the ordered field of real numbers). As above, consider T+AN     = TAN ∪ {0 < c < n1  : n = 1, 2, . . .} where c is any constant not in TAN ’s language. Any finite subset of T+AN  is satisfied by the standard model, because we may interpret c as a positive real number smaller than  1/n , where n is the largest number for which the sentence 0 < c < n1 is in the given finite subset. Hence by compactness, T+AN  has a model 𝔐. The reduct of 𝔐 to the language of TAN is non-standard since it contains an element c𝔐 not identical to any real number. Indeed, this element must be a positive infinitesimal, meaning that it is a numbergreater than 0 𝔐 but smaller than every (n1 )𝔐. As well as infinitesimals,our non-standard model also contains infinite elements, since the the model satisfies ∀x ≠ 0 ∃y(x y = 1) and thus any non-zero element has an inverse. From these foundations, a consistent theory of the calculus that revives to a degree the use of infinitesimals in early modern mathematics may be constructed, called non-standard analysis: see Goldblatt (1998) or the original Robinson (1966). Furthermore, since ℝ and  𝔐 have the same theory, any sentence in the language of TAN that can be proven from T+AN  will hold in 𝔐 and thus automatically holds in ℝ . This is the transfer principle of non-standard analysis.

Since second-order logic is incompact, the arguments just given fail for second-order theories of arithmetic and analysis. Indeed, there are categorical second-order axiomatisations of arithmetic (for example, Peano Arithmetic with second-order induction  (Shapiro  1991,  p.  82,  thm.  4.8))  and real analysis (for example, the axioms for a complete ordered field (p. 84, thm. 4.10)). For more on second-order theories, consult (chap. 3–6).

(iv) Assuming the downward Löwenheim-Skolem theorem, another corollary of the compactness of first-order logic is the upward Löwenheim-Skolem theorem (Chang and Keisler 1990, p. 67, cor. 2.1.6; Hodges 1997, p. 127, 5.1.4). This upward version of the theorem states that if a first-order language 𝓛 has cardinality  ⩽ λ and 𝔐 is an infinite model with domain of cardinality  ⩽ λ then 𝔐 has an elementary extension of cardinality λ. For the proof, we consider the set of sentences consisting of the elementary diagram (the set {𝜙 ∈  𝓛 (𝔐)  : 𝔐 ⊨ 𝜙 } , where    𝓛 (𝔐)  is  the  extension of   𝓛     obtained by adding constant symbols cm for each m in the domain of 𝔐, and the interpretation of cm in 𝔐 is simply m) together with the sentences cα cβ for all distinct α, β  ∈  λ, where the cα are new constants. This set is finitely-satisfiable (because the infinite model 𝔐 satisfies any finite subset), and hence by compactness it is satisfiable. Say that it is satisfied by a model 𝔑, which must be of size ≥ λ as it satisfies {cα cβ : α, β  ∈   λ s.t. α ≠ β }. Since 𝔑 also satisfies the elementary diagram of 𝔐, an elementary embedding of 𝔐 into 𝔑 exists, and thus there is an elementary extension 𝔒 of 𝔐 with domain of size    ≥  λ (𝔒 is an isomorph of 𝔑 whose domain includes that of 𝔐). To find an elementary extension of 𝔐 of size exactly λ, now apply the downward Löwenheim-Skolem theorem to 𝔒.

The upward Löwenheim-Skolem theorem may be applied to show not only that theories of arithmetic  and  analysis  satisfied  by  their  respective  standard models have non-standard models, but also that they have non-standard models of every infinite cardinality. More generally, any first-order theory in a countable language satisfied by an infinite model has models of every cardinality. Applying this to ZF or ZFC, we obtain Skolem’s paradox: if there exists a model of set theory, then there exists  a  countably-infinite  model, which will nonetheless model the  existence  of  uncountable  sets  (Skolem 1922, 295–96).

The upward and downward Löwenheim-Skolem theorems and the so-called Skolem paradox have generated much philosophical debate. The most  famous philosophical use of these results is found in Putnam (1980). Wielding the theorems, Putnam argued  that  our  mathematical-scientific  theories  do not admit a determinate intepretation. In particular,  he  claimed  that  set theory augmented with any theoretical principles from science and scientific data we care to add admits  a  countable  model.  This  argument  has  given rise to an extensive literature. The responses to Putnam’s argument, and
to other versions, include technical discussion of exactly what Putnam’s argument requires mathematically speaking, as well as philosophical com-mentary.

(v) The compactness theorem may be used to prove the Order-Extension Principle (also known as Szpilrajn’s Extension Theorem): any partial order may be extended to a linear A partial order (A, <) consists of a domain A with an irreflexive and transitive relation <. A linear order is a partial or- der satisfying the additional linearity axiom  ∀x∀y(x < y x = y ∨ y < x). A linear order (A, <  ) extends the partial order (A, <) just when for all a1, a2 in A, if a1 < a2 then a1 <* a2; in other words, the identity map from (A, <) into (A, <*) is  a  homomorphism.  The  notions  of  partial  and  linear  order are first-order definable in the language consisting of a single two-place non-logical predicate, which is what permits the application of the compactness theorem.

Unusually for applications of the compactness theorem, this result is of potential importance outside mathematics, logic, and  philosophy.  A  standard assumption in economics  is  that  a  subject’s  preferences  over  goods are linearly ordered. Empirically, however, we find that people’s preferences tend at best to be partially ordered: I may prefer going out  for  a Japanese meal rather than an Italian meal, but I may have no preference between going to the cinema and going out for a Japanese meal.  In light of the Order-Extension Principle, one might try to argue  that  preferences being linearly ordered is a justifiable idealisation of the empirical data. See Szpilrajn (1930) for the first proof of this theorem and Richter (1966) for an early economic application, as well as Gonczarowski, Kominers, and Shorrer (2019) for more applications of the compactness theorem in economics.How does one prove the Order-Extension Principle? A relatively straight-forward proof by induction on the size of the domain shows that every partial order with a finite domain can be extended to a linear order. We may then use the compactness theorem to prove that every partial order can be extended to a linear order, whatever the size of the domain, be it finite or infinite. Given a partial order (A, <), let ΣA be a set of sentences consisting of the (Robinson) diagram of (A, <) (the diagram of an   𝔏-structure 𝔄 is the set of literals—atomic sentences or negations of atomic sentences—in the language 𝔏’ = 𝔏 ∪ {ca : a ∈ A}, where ca are new constant symbols, satisfied in the expansion 𝔄’  of 𝔄 where we interpret c𝔄’a  := a for each a A.), together with the axioms ca < cb   cb < cfor all distinct a,    A. Since every partial order with a finite domain can be extended to a linear order, it follows that any finite subset of ΣA is satisfiable. By compactness, ΣA is therefore satisfiable. If 𝔐 is a model of ΣA then (A, <) embeds into the 𝔏<-reduct of 𝔐, which we call (B, <B), via f : (A, <) (B, <B) say. The required linear order extending (A, <) is the inverse under f of the restriction of the order <B to f (A), that is a1< a2 if and only if f (a1) <B f (a2). Note in passing that the Order-Extension Principle implies that every set A can be linearly ordered: simply consider a linear order that extends the empty partial order on A.

The compactness theorem for first-order logic has a great many other applications to model theory—as Keisler (1965, 113) puts it, “the most useful theorem in model theory is probably the compactness theorem”—as well as to set theory, other parts of logic, combinatorics, algebra, algebraic geometry; see Hodges
(1997), especially chapter 5, for more.

4. Some Non-Topological Proofs

In this section, we give three styles of proofs of the compactness of propositional and first-order logic that do not draw on topology. These three proofs illustrate some important techniques, and could be broadly classified as deductive, syntac tic, and semantic methods of proof.

a. Deductive: Proofs via Soundness and Completeness

We recall the definitions of soundness and completeness for a logic   𝓛   equipped with semantic consequence relation ⊨ and deductive consequence relation   ⊦   . The logic is complete iff for any set of well-formed formulas Γ and any well-formed formula δ, if Γ ⊨ δ then Γ   ⊦   δ; and it is sound iff the converse obtains: if Γ  ⊦ δ then Γ ⊨ δ.

If a logic has a sound and complete proof procedure, it is compact. A simple argument demonstrates this:

  1. Γ ⊨ δ                                                Assumption
  2. Γ ⊦δ                                                  From (1) by Completeness
  3. Γfinδ                                             From (2) by the finiteness of proofs
  4. Γfinδ                                            From  (3) by Soundness

Here Γfin is some finite subset of Γ. Anything deserving of the name of ‘proof procedure’ usually satisfies a host of syntactic requirements. Given soundness and completeness the only such requirement needed for the validity of the inference above is that the step from (2) to (3) be valid, namely that proofs draw only on finitely many premisses. The argument just given therefore applies to any logic which has a sound and complete proof procedure in this liberal sense. Thus, no incompact logic can be completable by a sound proof procedure; second-order logic in particular cannot.The proof of compactness via completeness is in an important respect unsatisfactory because it is based on properties incidental to the semantic property of interest. The proof derives compactness, a semantic property, from a property of the logic relating its syntax to its semantics. Thus Keisler (1965, 113): “unlike the completeness theorem, the compactness theorem does not involve the notion of a formal deduction, and so it is desirable to prove it directly without using that notion”. Indeed, from the perspective of a model theorist who sees talk of syntax as a heuristic for the study of certain relations between structures that happen to have syntactic correlates, proving compactness via completeness is tantamount to heresy (Poizat 2000, 53).

b. Syntactic: Henkin-Style Proofs

This proof is modelled on Henkin’s (1949b) proof of the completeness theorem for first-order logic, with its deductive core replaced by a semantic one. We begin with a relatively concrete argument for the simplest case of PLω before passing to more abstract versions. Unlike the usual versions of the proof, our argument does not assume any particular set of truth-functional connectives, only that the set of sentences is countably-infinite (and thus the set of connectives is countable); the argument is usually simpler (but less general) when a particular set of connectives has been specified.Let   { si  : i   ∊  ω } be an enumeration of the set of sentences of PLω. Given a finitely-satisfiable set Γ, define a denumerable sequence of sets Γn as follows:

By definition, Γn is finitely-satisfiable for all n, hence Γω is finitely-satisfiable since any finite subset of Γω must be drawn from some Γn.

From Γω, define the valuation v by letting v(p) = 1 if and only if p∊ Γω, where p is a sentence letter. We now prove that v is a valuation in which all the sentences in Γω (not just the sentence letters) are true. Suppose towards a contradiction that v(𝛷) = 0 for some 𝛷  ∊  Γω. Without loss of generality (renumbering sentence letters if necessary), let p1, . . . , pk be all the sentence letters in 𝛷 with truth-value 1 under v and pk+1, . . . , pn all the sentence letters in 𝛷 with truth-value 0 under v (one of these sets may be empty, in which case the argument to follow is easily modified). By the definition of v, none of pk+1, . . . , pn is in Γω so for each of these, let ∆i be a finite subset of Γω such that ∆  {p} is unsatisfiable (k + 1 ≤ i ≤ n); some such ∆i must exist given that pi was omitted in the construction of Γω. Now consider the set

Any valuation in which all the elements of  ⋃n i=k+1  i  are true is one in which each of pk+1, . . . , pn is false, since ∆i {pi} is unsatisfiable, and so any valuation in which p1, . . . , pk and all elements of ⋃n i=k+1  i  are true is one in which the sentence letters pk+1, . . . , pn have truth-value 0. It follows that any such valuation is one in which 𝛷 is false, since 𝛷 contains no sentence letters other than p1, . . . , pk, pk+1, . . . , pn and v(𝛷)  =  0.  Hence S is unsatisfiable, contradicting the fact that this set is a finite subset of Γω. Having proved by reductio that any sentence in Γω is true under v, it follows that Γ, which is a subset of Γω, is satisfiable. It is obvious from its construction that Γω is a maximal finitely-satisfiable set, meaning that it is finitely-satisfiable and none of its proper extensions are finitely-satisfiable.

A more abstract version of the argument just presented runs as follows. Suppose Γ is finitely-satisfiable. Order by inclusion the set FΓ of finitely-satisfiable sets of sentences of the language containing Γ. FΓ is non-empty, since it contains at least Γ. Any chain in FΓ has an upper bound, obtained by taking the union of the elements in the chain: this union contains Γ as a subset since all the members of the chain do, and it is finitely-satisfiable since any of its finite sub-sets must come from some element of the chain, which by hypothesis is finitely- satisfiable. Zorn’s Lemma, provable in ZFC, states precisely that every partial order with the property that every chain has an upper bound has a maximal element. Since the conditions of Zorn’s Lemma are satisfied, we deduce from it that FΓ has a maximal element, that is to say, a maximal finitely-satisfiable set extending Γ. We then reason as in the previous paragraph to show that all the elements of Γ are true under the valuation v defined on sentence letters by v(p) = 1 if and only if p is a member of this maximal finitely-satisfiable set. Nowhere did we rely on the fact that the sentence letters are denumerably many, or on any assumption about the set of connectives. So this more general argument shows that PLκ is compact for any cardinal κ whatsoever.The abstract argument just given invoked Zorn’s Lemma, well known to be equivalent to the Axiom of Choice in ZF. Is this use of a ZF-equivalent of Choice necessary? No. A weaker principle than Zorn’s Lemma, namely the Ultrafilter Lemma, will do. (Section 7 has more on the relative strengths in ZF of the Ultrafilter Lemma and Zorn’s Lemma. Consult Moore (1982) for more on the Axiom of Choice and its foundational significance.) To explain what the Ultrafilter Lemma is, we must first define the notion of a filter on a Boolean algebra. We denote the bottom, top, join, meet and complement in a Boolean algebra (with which we assume basic familiarity, see Givant and Halmos (2009) for an introduction) by the symbols 0, 1, ∨, ∧, ¬; the derived strong and weak inequality symbols have their customary meanings (x ≤ y means that x ∧ y = x and so on). A filter on a Boolean algebra B is then a subset F of B such that:

(i)  1 F; 0 ∉ F;

(ii)  ∀x, y F, x y F;

(iii) ∀x, y B, if x y and x F then y F.

An ultrafilter   is a maximal filter on B, or alternatively a filter on B that contains exactly one of b or  ¬ b for each b  ∊   B. The Ultrafilter Lemma, sometimes called the ‘Ultrafilter Theorem’ or ‘Ultrafilter Principle’, states that any filter on a Boolean algebra may be extended to an ultrafilter.

Armed with the notion of an ultrafilter, we may now modify the abstract proof of PLκ’s compactness to rely not on Zorn’s Lemma but on the ZF-weaker Ultrafilter Lemma instead. (Henceforth we assume that the set of propositional connectives is truth-functionally complete.) Consider the Boolean algebra B whose domain is the set of equivalence classes of sentences of PLκ under logical equivalence, 0 and 1 being the equivalence class of a contradiction and tautology respectively, ∨, ∧ and ¬  respectively denoting disjunction, conjunction and negation on the equivalence class representatives (easy check: this is well-defined); such a Boolean algebra is usually called a Lindenbaum algebra. To simplify notation, we denote the equivalence class of 𝜙 by 𝜙 itself; observe that the equivalence of ψ  ≤   𝜙 and ψ ⊨ 𝜙  follows from the fact that 𝜙 ∧  ψ and ψ are logically equivalent if and only if ψ ⊨ 𝜙.

Given a finitely-satisfiable set Γ, form the set Γ+ consisting of all the sentences entailed by some finite subset of Γ, that is,

Γ+ = : ∃Γfin Γ finite s.t. Γfin ⊨ 𝜙 }.

Clearly, Γ is a subset of Γ+, and Γ+ also has the following three properties:

(i) 1 Γ+ but 0 ∉ Γ+  (since Γ is finitely-satisfiable);

(ii) ∀x, y Γ+, x y Γ+;

(iii) ∀x, y B, if x y and x Γ+ then y Γ+.

In other words, Γ+ is a filter on the Boolean algebra of sentences of PLκ. It is the smallest filter containing Γ, that is to say, Γ is a filter-base for Γ+. By the Ultrafilter Lemma, Γ+ may be extended to an ultrafilter. The alternative definition
of an ultrafilter shows that this ultrafilter is a maximal finitely-satisfiable set of sentences containing Γ. The rest of the proof proceeds as above. We have thus proved the compactness of PLκ using the Ultrafilter Lemma rather than Zorn’s Lemma.

The compactness of first-order logic may be demonstrated by a similar argument. We give two versions of the argument: the first and slightly more direct version uses the Axiom of Choice; the second uses only the weaker Ultrafilter Lemma. For the first version, let κ be the size of WFF(𝓛)   x   Var(𝓛 ) where 𝓛 is the first-order language in which each of the sentences in our given finitely-satisfiable set Γ is expressed, WFF( 𝓛 ) is the set of formulas of   𝓛  ,  and  Var( 𝓛  ) is   ’s set of variables. Add a distinct set of constants of size κ to the language (usually known as nullary Skolem functions), disjoint from  𝓛   and to be used asa source of witnesses. Then 𝓛 + also has size κ (since κ<0   = κ for infinite κ),and so we can well-order both the set of formulas 𝓛 +     and the set of new constant symbols in order-type κ. We now augment the set Γ recursively by exploiting the well-ordering of  𝓛 +  and the well-ordering of the set of new constants (each well-ordering being of type κ). Let Γ0 = Γ and Γλ =  U α<λ Γα for λ a limit. For the successor case, let

Γα+1 := Γα ∪ {∃x𝜙 → 𝜙[c\x]},

where 𝜙[c\ x] denotes 𝜙  with c substituted for any free occurrences of x in𝜙, if  ∃x𝜙 is the αth formula in the ordering of WFF( 𝓛 +) and c is the first constant in the ordering of the set of constants not to appear in any element of Γα nor in φ; otherwise (if the αth formula is not existential) let Γα+1 := Γα. Finally, let Γκ := U α<λ Γα and define Γ+ as the set of sentences entailed by any finite subset of Γκ, that is,

Γ+ := {𝜙 ∈ 𝓛 + : ∃Γfin⊆ Γκ  finite s.t. Γfin F ⊨ 𝜙}.

An identical argument to the one in the propositional case now shows that Γ+ is a filter on the Boolean algebra of the first-order 𝓛+ sentences quotiented by logical equivalence. The only difference lies in the verification that 0Γ+, in other words, that Γ+ is finitely-satisfiable. For if

1, . . . , γn, ∃xi1 𝜙j1   → 𝜙j1 [ck1 \xi1 ],…,∃xim 𝜙jm→ 𝜙jm [ckm \xim ]}

were unsatisfiable, with γ1, . . . , γn ∈ Γ and ckm    is the greatest constant subject to their well-order (m and n here are natural numbers, and the i, j and k-indices are ordinals smaller than κ),then

1, . . . , γn}∪{∃xil 𝜙jl   → 𝜙jl [ckl \xil ]: l = 1 . . . ,m-1} ⊨∃xim 𝜙jm   → φjm [ckm\xim ]}

But if the premisses

γ1, . . . , γn, ∃xi1 𝜙j1 → 𝜙j1 [ck1 \xi1 ],…,∃xim-1 𝜙jm-1→ 𝜙jm-1 [ckm-1 \xim-1 ]}

are jointly satisfiable then they cannot entail both  ∃xim 𝜙jm and  ¬𝜙jm [ckm \xim ].  The reason is that if there is a model in which this premiss set and ∃xim 𝜙jm are satisfied, then there is a model in which the interpretation of ckm may be chosen to witness the truth of  ∃xim 𝜙jm, since ck does not appear in any other sentence than 𝜙jm [ckm \xim ]. Having verified that Γ+ is a filter, we invoke the Ultrafilter Lemma as before to extend Γ+ to an ultrafilter Γ++. Note that Γ++ contains Γκ and hence is witness-complete—every existential statement is satisfied by some constant.

To show that Γ++ (and hence Γ) is satisfiable, we construct a term model  . The term model’s domain consists of the closed terms of   𝓛+ , quotiented by the relation of appearing in an identity statement of Γ++, that is to say τ1 ~ τif and only if τ1 = τ2       Γ++. The interpretation aT of the constant a is a’s equivalence class, [a]; the interpretation f T of the function symbol f applied to[τ1], . . . , [τn] is [f (τ1, . . . , τn)]; and for any n-place relation symbol R and closed terms τ1, . . . , τn, R([τ1], . . . , [τn]) holds in the model if and only if R(τ1, . . . , τn) is an element of Γ++. A routine argument shows that this interpretation is well-defined and that the term model   T  is a model of Γ++. It is an instructive exercise to determine where exactly the arguments just given break down in the case of second-order logic: see Paseau (2010a, 75–76) for details.

To see how to avoid the use of the Axiom of Choice, we show that turning Γ into a Skolem set (a set containing a witness for every existential statement) does not in fact require the Well-Ordering Principle. In this alternative argument for the compactness of first-order logic, we construct a set  {c φ,x   : 𝜙   ∈  𝓛  ,  x  ∈ Var(𝓛  ) of constants disjoint from the set of constants of   𝓛     , one for each ordered pair in WFF( 𝓛 )   X   Var( 𝓛 ). (If we were to formalise this argument in our set-theoretic metatheory, say ZF, we may for instance code each constant c φ,x   as φ, x, WFF(  )    Var( ) . The point is that no Choice principles are required for this recursive definition.) Then add Skolem sentences    xφ                    φ[c φ,x    x]  for every such ordered pair  φ, x . This gives us a new set of sentences Γ1  Γ0 = Γ in a language   1                       0  =                   . Iterate this process ω-times, constructing a chain of sets of sentences Γ0   Γ1                            Γn                   , and a corresponding chain of languages         0                      1                                      n           . By an inductive argument, each Γn is readily seen to be finitely-satisfiable (there is no need to assume the well-ordering of      n+1n at this point), hence so is         n ω Γn. Finally, define Γ+ as the filter generated by Γω. The rest of the argument, which defines a term model from the ultrafilter extending the filter Γ+ proceeds as above. The version of the argument sketched in this paragraph invoked the Ultrafilter Lemma and at no point did it use the Axiom of Choice.The set Γ++ is an example of a Hintikka set, which is a set of first-order sentences T that satisfies the following axioms. (For brevity, we use take                          ,   ,    as primitive symbols in our first-order logic.)

  • For every atomic sentence φ, if φ T then ¬φ ∈/ T ,
  • For every closed term t, t = t ∈ T ,
  • If φ(x) is an atomic formula with a single free variable x, and s, t are closed terms such that φ(s), s = t ∈ T , then φ(t) ∈ T ,
  • If φ is a sentence and ¬¬φ ∈ T , then φ ∈ T ,
  • If Φ is a finite set of sentences, then
  • Φ T implies Φ T ,
  • ¬ Φ ∈ T implies ¬φ ∈ T for some φ Φ,
  • If φ(x) is a formula with a single free variable x, then
    • ∀xφ(x) T implies φ(t) T  for every closed term t,
    • ¬∀xφ(x) ∈ T implies ¬φ(t) ∈ T for some closed term t.

Given a Hintikka set T , we can construct a term model (using the same definition given above) that satisfies T (Hodges 1997, 40–42).c. Semantic: Ultraproduct ProofsIn this subsection, we prove the compactness theorem for first-order logic from Łoś’ Theorem. We recall the definition of an ultraproduct and state the theorem. For a proof, see Chang and Keisler (1990, p. 217, thm. 4.1.9) or Hodges (1997, p. 241–242, thm. 8.5.3).Let (Ai)i I be a collection of first-order structures of the same signature, indexed by I, and U an ultrafilter over this indexing set I. In this context, the Boolean algebra is     (I) with the subset ordering                    , so a filter F                        (I)  is   a set of subsets of I which does not contain the empty set and which is closed under finite intersection and upward containment. Denote the domain of each Ai by Ai. When U is an ultrafilter over I, defining a      U b by  i           I : a(i) = b(i)                                 U yields an equivalence relation over the productIT Ai = ff  : I   Ai |∀i I, f (i) Ail.(We tend to view elements of the product as generalised sequences (xi)i I.) The characteristic function µU of U is a finitely-additive full measure on I and thus intuitively the elements of U are ‘large subsets of I’: two functions in                                                          i I Ai are identified by this relation precisely when they agree ‘U-almost-everywhere’. We define a new structure B =        i I Ai/U as follows:

  • Domain of B = i I Ai quotiented by    U ; [a] denotes the equivalence class of a;
  • cB = [( · · , cAi, · · · )];
  • f B([a1], · · , [ak]) = [(· · · , f Ai (a1(i), · · · , , ak(i)), · · · )];
  • RB([a1], · · , [ak]) if and only if {i ∈ I : Ai F R(a1(i), · · · , ak(i))} ∈ U .

for any k-place function and relation symbols f and R and any constant c of the first-order language in question. As may be checked, the fact that U is a filter means that the definitions just given do not depend on the choice of representatives from          iI Ai. For φ atomic we have by definition:B F φ(a1, · · · , an) if and only if {i ∈ I : Ai F φ(a1(i), · · · , an(i))} ∈ U.Łoś’ theorem, which is proved by induction on the complexity of φ, extends this to all φ:for all φ, B F φ(a1, · · · , an) if and only if {i ∈ I : Ai F φ(a1(i), · · · , an(i))} ∈ U .The induction step for the universal / existential quantifier step does require some Choice. In fact, the Ultrafilter Lemma together with Łoś’ theorem imply the full Axiom of Choice (Howard 1975).To prove the compactness theorem for first-order logic from Łoś’ Theorem,let Σ be a finitely-satisfiable set of first-order sentences. Let I be the set of finite subsets of Σ and suppose we are given for each i ∈ I  a model Ai  for the sentences in i. For i ∈ I let
Ji := {j ∈ I : i ⊂ j},F := {J ⊂ I : Ji ⊂ J for some i ∈ I}.The collection of Ji is closed under finite intersection because Ji1          Ji2 = Ji1 i2 , hence F is also closed under finite intersection; by definition, F is closed under
upward containment, and clearly F does not contain the empty set. Thus F satisfies the conditions for being a filter and may therefore be extended to an ultra- filter U . Now for any σ      Σ, we have  σ                                          I and J σ              i   I : Ai F σ , from which it follows that  i               I : Ai F σ                        U . By Łoś’ theorem, B F  σ.  This is true for every σ  Σ, so B F Σ, in other words if Σ is satisfiable. Intuitively, the model B was designed so as to agree with Ai on the ‘large subset’ Ji of I and in particular to agree with Ai on the truth-value of each element of i; as this is true for all i, B satisfies Σ. This completes the ultraproduct proof of the compactness of first-order logic.For particular applications, we may not need the full strength of the Axiom of Choice to apply then ultraproduct method. For example, suppose we wish to use the ultraproduct method to construct  a  non-standard  model  of  arithmetic (see Section 2c) with language        and standard model A with domain ω. We extend the language to               by introducing a new constant symbol c and for each n                           ω, let An be the                -expansion of A given by interpreting cAn    := n. Let F be the filter of cofinite subsets of ω and let U be an ultrafilter that extends F . Then the particular instance of Łoś’ Theorem can be proven for (An)n  ω and U , utilising the well-foundedness of ω in place of the Axiom of Choice. ThusB =      nω An/U satisfies the same L-sentences as A, and for all m ∈ ω,{n ∈ ω : An F c = 1 + · · · + 1} = ω \ {m} ∈ F ⊆ U,m ti mes .,so by Łoś’ Theorem it follows that B F c  = 1 + · · · + 1. Therefore B is a non-

standard model of arithmetic.5. Connection to TopologyThe Tarski (1952) article gives the compactness theorem its name (see theorems 13 and 17), observing its similarity with the finite-intersection-property definition of compactness in topologies. Here we will demonstrate the topological connection in two stages. First, we show that the compactness theorem for a propositional logic is equivalent to the claim that its associated valuation space is compact. (Recall that an open cover of a topological space X is a collection     of open subsets of X whose union is X, and that a space X is compact if every open cover has a finite subcover—a finite subset that is also a cover. Equivalently, every collection of closed subsets with the finite-intersection property—every finite subset has non-empty intersection—has  non-empty  intersection.  Intuitively,  you  cannot ‘escape’ a compact space; every collection of points will accumulate som where.) Second, we show that this space is indeed compact. We assume some basic knowledge of topology (Sutherland 2009; Willard 1970).In this section, we spell out this reasoning for the case of propositional logic. We start with an argument that demonstrates the compactness of any PLκ, initially assuming for the sake of simplicity that the version of PLκ in question is equipped with a truth-functional set of connectives.Let Vκ be the set of all valuations of PLκ. For each sentence φ of PLκ define U (φ) = {v  ∈ Vκ  : v(φ) = 1}, the set of valuations in which φ is true. Since U (φ1)                     U (φ2) =   v          Vκ : v(φ1) = 1                       v                              Vκ : v(φ2) = 1   = U (φ1             φ2)the sets U (φ) form a basis for a topology on Vκ; call this basis     . (A basis     for a topology     is a collection of open sets with the property that                                           if andonly if U = LJ C for some C ⊂ B. Given a collection B of subsets of X, if its
union is X and for all B1, B2         , B1     B2  =         for some            , then there exists a unique topology on X with basis              (Willard 1970, p. 38, thm. 5.3).) The topological space we shall be interested in has domain Vκ and topology generated by the basis       =    U (φ) : φ is a sentence of PLκ ; with this topology, Vκ is the dual space of the Boolean algebra of sentences of PLκ. Thus properties of this space are determined only by the logical properties of valuations.Now consider any set of sentences Σ of PLκ. Σ is unsatisfiable if and only if any valuation assigns truth-value 0 to at least one of its members, or equivalently any valuation assigns truth-value 1 to at least one sentence                   s such that s                              Σ. It follows that Σ is unsatisfiable if and only if each valuation is in some open set of the form U (  s) where s         Σ, or equivalently that   U (  s) : s                                Σ is an open cover of the topological space Vκ. The compactness of PLκ is therefore equivalent to the following claim:if {U (¬s) : s Σ} is an open cover of Vκ then there is a finite subsetΣfin of Σ such that {U (¬s) : s Σfin} is an open cover of Vκ.Thus PLκ is compact if and only if Vκ is compact. (Note that any open set is the union of some basis sets and that any basis set U (φ) is identical to U ( s) fors  =     φ. Also, a space is compact if every open cover drawn from a fixed basis has a finite subcover.) It suffices, then, to show that Vκ is compact in the usual topological sense.The last claim is immediate from the fact that Vκ is homeomorphic to  0, 1  κ = f : κ           0, 1                with the (Tychonoff) product topology, when 0, 1  is given the discrete topology            . Recall that the product topology on the product             iI Xi of a family of topological spaces (Xi, τi) indexed by I takes asments i in I. (For a finite collection (X1, τ1), …, (Xn, τn), the product topology on X1   Xn has basis   U1                   Un :   i, Ui                         τi . In general, the product topology is determined by the following universal property: for any space Y and

we remove the restriction that all-but-finitely-many Oi’s are equal to Xi, we obtain the box product topology. This coincides with the product topology for finite indexes, but varies drastically for infinite products.) Since 0, 1 κ with the product topology is homeomorphic to the Vκ (if the sentence letters in PLκ are pα for α                                                   κ, then f (v)(α) := v(pα) defines a homeomorphism f : Vκ                                                                      0, 1 κ) the latter is compact if and only if the former is. Now  0, 1   with the discrete topology is compact because finite spaces are trivially compact. Tychonoff’s Theorem, a ZF-equivalent of the Axiom of Choice, states that the product of compact spaces is compact. Putting the pieces together, it follows that 0, 1 κ with the product topology is compact. This proves the compactness of PLκ.We do not in fact need the full power of Tychonoff’s Theorem. The weaker principle that the product of compact Hausdorff spaces is compact will do, because 0, 1 with the discrete topology is Hausdorff (any two of its elements—0 and 1—are contained in disjoint open sets 0 and 1 ). This weaker version of Tychonoff’s Theorem is in fact equivalent to the compactness theorem for propositional logic (and first-order logic), as discussed in Section 7.The topological proof of PLκ’s compactness just given assumed that PLκ’s set of connectives is truth-functionally complete. Without this assumption, there isno guarantee that the set B is a basis for the product topology; for example, if a propositional logic cannot define negation, no element of B may correspond to
the open set consisting of all elements of 0, 1 κ with first coordinate 0, and if it cannot define conjunction then                            will not be closed under intersection and thus cannot be a basis. The compactness of a propositional logic with κ sentence letters but without a truth-functional set of connectives is of course immediate from the fact that it is a sublogic of a truth-functionally complete propositional logic with the same κ sentence letters. The topological way of seeing this is to endowthe space Vκ with the topology which has B as a subbase and denote it by Y . (Asubbase for a topological space (X, τ ) is a collection of open sets S ⊂ τ such that=   X                 :                                              (X, τ )lection     of subsets of a set X, there is a unique topology τ on X which hasas a subbase. (Willard 1970, p. 39, thm. 5.6).) This topology is coarser than thedual space topology on Vκ: every open set in Y is open in the dual space topology. In general, if the topology τ  on some set X is coarser than the topology τ on X and (X, τ) is compact, then so is (X, τ ). Intuitively, there are fewer means of ‘escaping’ (via the finite-intersection property) in τ than in τ, so if τ is compact then there are no such routes in τ .  It follows that the topological space Y is compact, and thus any propositional logic is compact, whether or not its set of connectives is truth-functionally complete.A ‘bare hands’ argument that avoids anything as strong as either the general Tychonoff Theorem or its compact Hausdorff version above may also be given for the compactness of Vω. We present this argument, since PLω is the most common propositional logic.Suppose that some open cover     of the space A =    0, ω  with the product topology lacks a finite subcover. We reduce this supposition to absurdity by constructing an element a of A with the following property: the set of all elements of A extending an arbitrary finite initial segment of a cannot be coveredby any finite subset of C . If f is a finite sequence of 0’s and 1’s, define Af as the set of elements of A extending f . Let a0 = (0) if A(0) does not admit a finite subcover from C, and a0 = (1) otherwise. More generally, if am has beendefined, let am+1 = am  (0) if Aa     (0) does not admit a finite subcover fromC, and am+1 = am 1 otherwise. Since by the assumption to be reduced to absurdity A = A does not admit a finite subcover from                                        , an easy inductive argument shows that Aam  does not admit a finite subcover from                          either, for any

  • m. Letting a be the element of A whose restriction to m is am (more formally,

=      m  ω am), it follows from the fact that     is an open cover of A that a is an element of some basis set B          O, where O is an open set in    . From a               B and the definition of the product topology, it further follows that for some m, Aam                                 B, so that Aam  does in fact admit a finite subcover from                             , namely the open set O           which contains B as a subset. This contradicts our supposition and shows that A = 0, 1 ω with the product topology is compact.The argument just given, which constructs an infinite branch through a binary branching tree, did not require any version of Choice. The reason is that at each stage in the construction of a we used the ordering on   0, 1   to extend am by 0 if possible and 1 if not. An alternative argument for the compactness of 0, 1  ω uses the fact that a countable product n ω (Xn, dn) of bounded (by 1) metric spaces (Xi, di), is metrisable via the metric
d  (x, y) =        dn(xn, yn) .ω                                  2nnωTo say that                         is metrisable in this way is to say that the metricdω induces the product topology on ITnω (Xn, dn).  The rest of the argument
turns on showing that the metric space (  0, 1  ω, dω) is compact, by exploiting the space’s metric properties.  This argument cannot be generalised to show that PLκ’s valuation space is compact for any κ                                                                  ω1: the uncountable product of metric spaces, each having at least two points, is not metrisable, as no point has a countable neighbourhood base.Moving to arbitrary logics    , we construct the space X  of theories Th(M) of-structures M, topologised by the subbasic open sets Uφ :=   T     X   : φ / T for each formula φ in . The compactness of is then easily seen to be equivalent to the compactness of X with this topology (see Figure 1). In the case ofpropositional logic, XPLκ = Vκ. (Note that unlike for bases, the implication that compactness of a space follows from every open cover drawn from a fixed subbase has a finite subcover requires the Axiom of Choice. This is the Alexander sub-base theorem (Willard 1970, p. 129, problem 17S).) However, the argument for first-order logic is more complicated than that for propositional logic and not as elementary as exhibiting a simple homeomorphism.

Γ is unsatisfiable
is compact
∆ is unsatisfiable for some finite ∆ Γ

Definition of XL{Uγ : γ Γ} is an open cover of XLXL is compact
{Uγ : γ } is an open cover of XLfor some finite ∆ Γ

Figure 1: The connection between compactness of logics and its space of theories.6. Extensions and GeneralisationsThe discussion of the compactness theorem in the most common logics, our concern here, could now ramify in several directions. There are two main dimensions of variation when considering a proof of compactness for a logic: we could vary the notion of compactness, or we could vary the logic. As an example of the latter, we might consider, for example, modal logics (K, T, S4, S5); infinitary logicsκλ ( κλ being the extension of first-order logic which allows for conjunctions and disjunctions of length less than κ and existential and universal quantifications of length less than λ. Usually κ                                                                 λ: we use      to represent no bound on the connectives / quantifiers respectively.); other extensions of first-order logic, such as logics with cardinality quantifiers.A rough rule of thumb is that infinitary logics are not compact. In particular,as demonstrated in Section 2 with the example of  c = ci : i     ω          i  ω c = ci  ,κλ is not compact whenever κ > ω. In contrast, logics extending first-order logicwith generalised quantifiers tend to be compact, but not if they contain cardinality quantifiers.  Roughly speaking, the quantifiers Qκ , Q>κ , Q<κ , Q≥ℵκ , Q≤ℵκ
are interpretable as ‘there are exactly    κ’, ‘there are more than    κ’, ‘there are fewer than       κ’, ‘there are at least                             κ’, and ‘there are no more than    κ’. Consider the set{¬Q≥ℵκx(x = x)} ∪ {cα = cβ : α, β ∈ κ s.t. α  = β}in an infinitary logic containing Q    ; this set is finitely-satisfiable but unsatisfiable. (The arguments involving the other cardinality quantifiers are similar.) However, such logics tend to satisfy weaker notions of compactness. In particular, the logic that extends first-order logic with the quantifier Q>    , interpreted as ‘there are uncountably many’, is countably-compact: that is, a countable set of sentences is satisfiable if and only if it is finitely-satisfiable (Keisler 1970).As an aside, it is worth observing that not all logics with higher-order (second-order or above) quantifiers are incompact. Second-order logic with non-standard (Henkin) semantics is compact (Enderton 2001, chap. 4), as is existential second-order logic, whose sentences are of the form S1. . . Snφ, where S1, . . . , Sn are second-order functions / relations, and φ is a first-order sentence in a language with symbols for S1, . . . , Sn. (Via embeddings, this logic is equivalent to many first-order logics extended with extra quantifiers and game-theoretic semantics, such as Henkin’s quantifier, Hintikka-Sandu’s independence-friendly logic, and Väänänen’s dependence logic. However, these logics do not have a classical negation and the alternative form of compactness given in the introduction of this article is false: see section 2a of this article. For further details on these logics, consult Väänänen (2007) and Mann, Sandu, and Sevenster (2011)). As another example, consider what has been called pure second-order logic with identity, that is, second-order logic with neither functional nor  first-order  variables but with both second-order and first-order identity (as well as predicate variables and quantifiers). Pure second-order logic may be thought of as the complement of first-order logic relative to second-order logic in the following sense: first-order logic has object but not predicate quantifiers, pure second-order logic has predicate but not object  quantifiers,  and  second-order  logic  combines  the two. In other words, second-order logic merges first-order and pure second-order logic. As Paseau (2010b) shows, pure second-order logic with identity is compact; Denyer (1992) gives an argument that applies to pure second-order logic without identity. The moral is that the incompactness of second-order logic is not owed solely to the presence of second-order quantifiers, but to the combination of both first- and second-order quantifiers. Lindström’s Theorem tells us that any regular logical system weakly extending first-order logic satisfying both the downward Löwenheim-Skolem property (if a sentence is satisfiable, it is satisfiable in an at most countable model) and the compactness theorem is in fact identical to first- order logic itself (Lindström 1969, p. 8, thm. 2).The other natural dimension of generalisation is the notion of compactness. A fairly obvious generalisation is:a logic is (κ, λ)-compact, where κ is an infinite cardinal or and λ is an infinite cardinal ≤ κ, just when: whenever Γ is an unsatisfiable set of sentences of cardinality ≤ κ there is an unsatisfiable Γλ Γ of cardinality < λ. (By convention κ < for every cardinal κ.)The ordinary notion of compactness is (∞, 0)-compactness: whenever Γ is any unsatisfiable set of sentences (of any cardinality) there is an unsatisfiable Γ0 Γ of cardinality < 0, in other words of finite cardinality. A special case arises when κ = λ+ and the logic is Lλλ. If this logic satisfies (λ, λ)-compactness, that is, if whenever Γ is an unsatisfiable set of sentences of cardinality ≤ λ then Γ has
an unsatisfiable subset of cardinality < λ, we say that it satisfies the Weak Compactness Theorem. One can show that for infinite cardinals, having the tree property is equivalent to satisfying the Weak Compactness Theorem, and either imply the weak inaccessibility of the cardinal. Cardinals satisfying the Weak Compactness  Theorem  are  exactly  those  satisfying  the  combinatorial  partition  property κ           (κ)2, and indeed the latter is the usual definition of a weakly-compact cardinal. For the definitions of the tree property and the partition property, and more on weakly-compact cardinals, consult chapters 9 and 17 of Jech (2003).Another generalisation of the notion of compactness is strong compactness. An uncountable cardinal κ is strongly-compact if for any set S, any κ-completefilter on S can be extended to a κ-complete ultrafilter on S. (A filter F on a setκ                                                                               < κthat κ is strongly-compact if and only if the logic     κω (or    κκ) has  the  property of (    , κ)-compactness, that is, if Γ is an unsatisfiable set of sentences then it has an unsatisfiable subset of cardinality < κ. (p. 366, lemma 20.2)Both weakly- and strongly-compact cardinals are large cardinal properties. (A sentence φ(κ) is a large cardinal property if it satisfies the following: ZFCκφ(κ)  is equiconsistent with ZFC, ZFC        κ(φ(κ)        κ is a  cardinal),  and the consistency strength of ZFC                                  κφ(κ) is strictly larger than ZFC, by which we mean the consistency of the former implies that of the latter, but there is no finitistic argument for the reverse implication, for example, if ZFC        κφ(κ) implies the arithmetised consistency of ZFC, by Gödel’s second incompleteness theorem.) Another large cardinal property is the extendible  cardinal  property, which is defined in terms of elementary embeddings of levels in the von Neumann cumulative hierarchy. However, it was later discovered that extendibility of acardinal κ is equivalent to (∞, κ)-compactness of L2  , or the (∞, κ)-compactnessof Ln  for each positive integer n (Kanamori 2009, p. 315, thm. 23.4). Ln   is thenth-order extension of   κλ.Generalising the argument in Section 5 above, it is easily shown that a logic is (κ, λ)-compact precisely when every subbasic open cover   Uφ : φ                                  Γ ofX , where Γ is a set of    -sentences of cardinality at most κ, has a subcover of cardinality less than λ. This is weaker than stating that X is (κ, λ)-compact, meaning every cover of cardinality at most κ has a subcover of cardinality less than λ. For example, if                       is the extension of first-order logic with the quantifier Q>   , then         is ( 0, 0)-compact, but X  is not (  0,  0)-compact. See Ebbing- haus (1985, sec. 5.1), Makowsky (1985, sec. 1.1), Mannila (1983), and Stephenson (1984) for more on (κ, λ)-compact logics and spaces.These remarks do no more than gesture at an extensive literature generalising the notion of compactness and connecting it to topics of set-theoretic interest. We would be remiss if we did not at least mention in passing the Barwise compactness theorem, which is as an important theorem in generalised recursion theory (Keisler and Knight 2004). The interested reader is invited to explore the references contained within this section.7. Relative Strength
As we saw, the compactness theorem for both propositional and first-order logic may be proven in ZFC; but as also indicated, all that is required for its proof, in the case of both propositional and first-order logic, is the Ultrafilter Lemma, which is in fact weaker than Choice relative to ZF. Indeed, the Ultrafilter Lemma turns out to be equivalent to the compactness theorem in ZF. By the capitalised
name ‘Compactness Theorem’ we hereafter understand the compactness theorem for both propositional and first-order logic, since these are of equivalent strength relative to ZF. The relative strength of these and related principles has been well-studied; in this section we report several of these results.a. ZF-EquivalentsTychonoff’s Theorem states that every product of compact spaces  (with  the product topology) is compact. In proving compactness earlier, we only required Tychonoff’s Theorem in the case when the product consisted of Hausdorff spaces. This weakened version is in fact equivalent to the Compactness Theorem. Some other equivalents are:

  • The Boolean Prime Ideal Theorem: every Boolean algebra has a prime
  • The Ultrafilter Lemma: every filter on a Boolean algebra can be extended to an
  • Stone’s Representation Theorem: every Boolean algebra is isomorphic to a field of
  • Alexander subbase theorem: if X is a  topological  space  with  a  subbase and every open cover has a finite subcover, then X is compact (Rubin and Scott 1954).
  • For every graph G, if every finite subgraph of G is 3-colourable then G is also 3-colourable (Cowen 1990).
  • If Σ is a set of propositional sentences consisting of a disjunction of at most three literals and every finite subset is satisfiable, then Σ is also satisfiable (Cowen 1990).

The equivalences of the first three statements with the Compactness Theorem can be found in Jech (1973, chap. 2). For more information, consult Howard and Rubin (1998, form 14).b. Principles Strictly ZF-Stronger Than the Compactness TheoremIt is known that the full Tychonoff Theorem is equivalent to the Axiom of Choice in ZF (Kunen 2011, 72). To show that the Compactness Theorem does not imply Choice, we will briefly sketch the construction of a model where Choice fails but the Compactness Theorem holds. Suppose we are working in ZFA + AC with a countably infinite set of atoms A (objects which do not contain any elements and are different from the empty set); ZFA is a variant of ZF with atoms (Jech 1973, sec. 4.1). We can develop all of our standard theory in this system, with some minor modifications (for example, the Axiom of Extensionality states that two sets are equal if they have the same elements). Let <l be a dense linear ordering on A without endpoints.  Every permutation π of A has an extension π˜  to the entire universe, define recursively by π˜(X) :=   π˜(x) : x         X    for each set x.  Let G be the group of order-preserving permutations of A and for every set x definefix(x)  :=  {π   G  :  ∀y   x, π˜(y)  =  y} and sym(x)  :=  {π   G  :  π˜(x)  =  x}.We shall say that an object x is symmetric if there is a finite set of atoms E such that fix(E) sym(x). Denote the class of hereditarily symmetric objects by M .
If V denotes the standard cumulative hierarchy in this theory, then it is easily seen that V                M . We may also show  that  ZFA holds  in  M .  As  the  Axiom of Choice holds in V , a set X              M is well-orderable, according to M , precisely when there is a symmetric function mapping to  some  set  in  V .  This turns out to be the case precisely when there is a finite set of atoms E such that fix(E)      fix(X). Since for every finite set of atoms E, there is a non-identity order-preserving permutation of A fixing E, it follows that A is not well-orderable according to M . However, the Compactness Theorem still holds in M .Although we worked in a theory with atoms, it is possible to translate this model to a model without atoms where Choice fails but the Compactness Theorem holds. The interested reader should consult (Jech 1973, pp. 44–54, chap. 4) for details of this proof. It now follows that, working in ZF, Tychonoff’s Theorem is not implied from the Compactness Theorem.Here are some more examples of theorems equivalent to Choice (a principle we restate for the sake of completeness), and thus unprovable from the Compact- ness Theorem:

  • Axiom of Choice: every family of non-empty sets has a choice
  • Axiom of Multiple Choice: every collection of non-empty sets has a multiple choice function—a function that picks out a non-empty, finite subset from each set in the collection (Chapter 9).
  • Well-Ordering Principle: every set can be well-ordered (Kunen 2011, 68).
  • Zorn’s Lemma: every partial order in which every chain has an upper bound has a maximal element (68).
  • Every vector space has a basis (Blass 1984).
  • Every non-empty set can be endowed with a group operation (Hajnal and Kertész 1972).

See Howard and Rubin (1998, form 1) for more statements equivalent to the Axiom of Choice.c. Principles Strictly ZF-Weaker Than the Compactness TheoremThe following is a small selection of Choice-like principles that are weaker than the Compactness Theorem. See Jech (1973) for the construction of models satisfying one of these statements but not the Compactness Theorem.

  • Order-Extension Principle, and consequently the statement that every set can be linearly-ordered.
  • Hahn-Banach theorem: If p is a sublinear functional on a set X and φ is a linear functional defined on a subspace V X such that φ(v) p(v) for all v              V , then there exists a linear extension ψ of φ to all of X such that ψ(x)                                      p(x) for all x    X. In fact, the Hahn-Banach theorem is  equivalent to the existence of a finitely-additive probability measure on every Boolean algebra (28). It is easily seen that a prime ideal gives rise to a finitely-additive, 0, 1 -valued probability measure on every Boolean algebra, and thus the Hahn-Banach theorem follows from the Boolean Prime Ideal
  • Every infinite set has a non-principal

8. History of the Compactness TheoremThe first proof of a compactness theorem was published by Gödel:Theorem X.  For a denumerably infinite system of formulas to be satisfiable it is necessary and sufficient that every finite subsystem be satisfiable. (Gödel 1930, 118–19)The formulas of the logic, called restricted (functional) calculus (103n3) or first-order predicate logic (Mal’cev 1936, 1), are those from first-order logic that do not contain any function, constant, nor equality symbols, but do contain propositional variables; these variables can only be interpreted as 1 (true) or 0 (false) in any model. Thus, this system extends that of propositional logic PLω.The central idea behind Gödel’s proof is to create an equivalent sequence (φn) of satisfiable formulas, where each φn+1 is a conjunction, with one of the conjuncts being φn, for each n.  The models for each φn (in the language restricted to only those non-logical  symbols  that  occur  in  φn)  form  a  finitely-branching tree of height ω, ordered by extension, which by König’s lemma must contain a branch. (Whilst König’s lemma in general requires some Choice to prove, if the tree is countable then it can be proven in ZF. A finitely-branching tree of height ω is a countable union of finite sets, which is not necessarily countable in ZF, even if the finite sets are  pairs  (Pincus  1974,  224).)  The  interpretations  along this branch are consistent and form a model of the whole sequence (φn), which in turn models the original sequence. We have not included this approach to the compactness theorem in this article—for details, see Paseau (2010a, 84).This result also proves the corresponding result for first-order logic with a countable infinity of symbols. Indeed, Gödel does extend his result to allow for equality symbols (Gödel 1930, p. 117, thm. VIII). To allow for constant and function symbols, we introduce new predicate symbols Rc and Rf of arity 1 and n + 1 for each constant symbol c and n-ary function symbol f , and make the following substitutions:

  • For a constant symbol c occuring in a sentence φ, replace each occurrence of c with a variable y that does not occur in φ to obtain the If φ

denotes this new sentence, we then replace φ with ∃y(φ Rc(y)).

  • For an n-ary function symbol f in a sentence φ, replace each occurrence of

R(σ1, . . . , σk1, f (τ1, . . . , τn), σk+1, . . . , σm)with∃y(R(σ1, . . . , σk1, y, σk+1, . . . , σm) Rf (τ1, . . . , τn, y)),where R is an m-ary predicate symbol, σ1, . . . , σk 1, σk+1, . . . , σm, τ1, …, τn are terms and y is a variable that does not occur in φ. Viewing equality as a binary predicate, we can perform the same procedure on subformulas of this form.Repeating this procedure until there are no occurrences of constant nor function symbols, we obtain a new set of sentences Γ. Appending to this set sentences of the form    !zRc(z) for each constant symbol c and    x1, . . . , xn                                                              !zRf (x1, . . . , xn, z) for each n-ary function symbol f , we find that the satisfiability of this new set is equivalent to the satisfiability of Γ, thus extending Gödel’s result to encompass languages with constant and function symbols.
Note that Gödel’s result is only applicable to the countable versions of  propositional and first-order logic. In Gödel’s (1932) short paper, he proves the compactness theorem for propositional logic for arbitrary languages. Given a deductively-closed, consistent set Γ of propositional formulas and a well-order on the set of propositional formulas, Gödel defines by transfinite recursion:

  • Γ0 := Γ,
  • for all ordinals α, if there is a formula φ such that neither φ nor φ belong to Γα, let φα be the least such φ and define

Γα+1 := : (φα → ψ) Γα}.Otherwise, define Γα+1 := Γα.

  • for all limit ordinals λ, Γλ := α<λ Γα.

For an ordinal α where Γα+1 = Γα, it follows that the valuation v defined as follows satisfies every formula in Γ: for all propositional letters p,v(p) = 1 ⇐⇒ p Γα.Independently, Mal’cev (1936, thm. 1) also proved the compactness theorem for propositional logic, again using the full strength of the Axiom of Choice. His proof relies on transfinite induction, letting κ be an uncountable cardinal and assuming that the compactness theorem holds for sets of propositional sentences with cardinality strictly less than κ. Let Γ be a  finitely-satisfiable  set  of  sentences with cardinality κ and well-ordered in this order type. At each non-limit stage α, he substitutes the αth sentence φα for a conjunction of literals. Supposing this has been done up to, but not including, stage α < κ, so we have a setΓα =   φβ : β < α        φβ : α     β < κ . The αth substitution is made according to the following rule: as the initial segments of Γα are satisfiable, we have a collection of κ-many models. One of the truth-value assignments to the variables that occur in φα must coincide with κ-many of the assignments for these models. Replace φα with φα, which is the conjunction of the letters in φα that are assigned true, together with the negation of the letters that are assigned false. By construction, the final set Γκ =  φα : α < κ  is satisfiable, and any satisfying model is also a model of the original Γ.Mal’cev claimed to have extended this result to first-order logic in the same paper. However, his terminology is slightly ambiguous. What seems to be at issue is the claim that every sentence is ‘equivalent’ to a                                                               -sentence; one of the form  x1. . .  xm  y1. . .   ynφ, where φ is an atomic formula. This is patently false: for instance, the arithmetical hierarchy does not collapse, so there exists a sentence that is not equivalent to a Π2-sentence, even over Peano Arithmetic. However, by ‘equivalent’ Mal’cev appears to mean equisatisfiable:as is well known, every formula of FOPL can be replaced with an equivalent formula in the Skolem normal form for satisfiability. (4)This is also noted in a review of Mal’cev’s later articles (Henkin and Mostowski 1959, 57). Under this interpretation, the statement is true. Skolem’s normal form for satisfiability can be found in (Skolem 1920):Theorem 1. If U is an arbitrary first-order proposition, there exists a first-order proposition U in normal form with the property that U is satisfiable in a given domain whenever U is, and conversely. (255)
Note that the languages of U and U are  not  in  general  the  same.  This  result readily extends to sets of sentences and is a well-known tool in model theory. (Nowadays, Skolemisation of a theory usually refers to the introduction of function symbols directly in order to prove, amongst other things, the downward Löwenheim-Skolem theorem (Skolem 1920, 257–59). As we do not require this theorem, the predicate approach has the added advantage of not requiring Choice.)The first explicit, publshed proofs of a compactness theorem from completeness were given independently by Henkin (1948, 1949b, 1950) and Robinson (1949, 1951). The logics considered in these dissertations are first-order logic / theory of simple types for Henkin, and restricted functional calculus for Robinson. However, the proof relies only upon the finitary nature of  the  deductive system and completeness of the logic. (The completeness theorem for propositional logic is independently proven by Bernays (1918, sec. 3)—see Zach (1999, 340–48) for a discussion on authorship—and Post (1921, 169). For the restricted functional calculus, it was first asked, for an empty set of premisses, in Hilbert and Ackermann (1928, 68). It was proven in the form of the model existence theorem—consistency implies satisfiability, which is also the form Henkin uses to prove compactness—for countable sets in Gödel (1929, 96–101) and for arbitrary sets, using the Axiom of Choice, in Henkin (1949b, p. 164, cor. 2) and Robinson (1951, chap. 3). As noted above, this easily extends to completeness of first order logic.)The compactness theorem finally receives its name in Tarski (1952) in two forms. The second form (p. 467, thm. 17) is the form we are familiar with. By AC, Tarski denotes the collection of arithmetical classes, which are classes of the formCL(φ) := {M : M |= φ}where φ is a formula over a fixed first-order language     , and the M range over-structures. In his terminology, the compactness theorem is the statement thatΓ is a collection of L-formulas and    {CL(φ) : φ Γ} = (which means Γ is(which means Γ is not finitely-satisfiable). The first form (p. 466, thm. 13) is a generalisation that applies to types (Chang and Keisler 1990, 78–79; Hodges 1997, 130–31).Whilst Tarski does not provide a topological argument for these theorems, relying upon completeness instead, he does draw some connection between a topological space based on AC and first-order logic. By defining a closure operator and then quotienting by equivalence of models, he obtains a space homeomorphic to the one constructed at the end of section 5 of this article. (There are some foundational issues at play here, since each equivalence class is a proper class, as are the open sets. Tarski takes only a set of models as opposed to the whole class. We avoided this issue in our construction by considering the space of theories. As the class of theories is a set, by taking enough representatives (using, for example, the Axiom of Collection) we find that Tarski’s space will be homeomorphic to our construction in section 5.) As he observes, the resulting space is a Stone space, noting that compactness of the space follows from the compactness of the logic. (Tarski uses the term bicompact for what we call compact. Compact used to refer to the countable compactness property (Willard 1970, 304).)The ultraproduct proof is given in Frayne, Morel, and Scott (1962, p. 216, thm. 2.10), which is based on Łoś’ Theorem (p. 213, lemma 2.1)—see Łoś (1971, 105, “(2.6)”) for the original statement (without proof). The argument is similar to the one given in Section 4c. Frayne, Morel, and Scott (1962, 195) acknowledge that Alfred Tarski suggested the use of ultraproducts, which had several applications in the literature already, in proving the compactness theorem. David Gale gave a topological proof of the compactness theorem for propositional logic (as credited by Henkin (1949a, 48n4)), whilst Beth (1951) gives a topological proof of the completeness theorem before deriving compactness as a corollary. A direct topological proof is given by Frayne, Morel, and Scott (1962, p. 225, ex. 2), using a combination of ultraproducts and Stone spaces.More details on this history can be found in Dawson (1993) and the references therein.9. References and Further Reading

  • Barwise, J., and Solomon Feferman, eds. 1985. Model-Theoretic Logics. Perspectives in Mathematical Logic. New York: Springer.
    • A book on the model-theory of many logics that extend first-order logic.
  • Beall, J. C., and Greg Restall. 2006. Logical Pluralism. Oxford: Clarendon Press.
    • The book that started the contemporary debate on whether there is one correct foundational logic (logical monism) or more than one (logical pluralism). The authors defend logical pluralism.
  • Bernays, Paul. 1918. “Beiträge zur axiomatischen Behandlung des Logik-Kalküls.” In Ewald and Sieg 2013, 231–68.
    • Bernays’ habilitiation thesis, in which he proves the completeness theorem for propositional logic, amongst other results related to the chosen propositional calculus.
  • Beth, E. W. 1951. “A Topological Proof of the Theorem of Löwenheim-Skolem-Gödel.” Indagationes Mathematicae (Proceedings) 54:436–44.
    • Beth presents a proof of the Löwenheim-Skolem-Gödel theorem: a set of first-order sentences Γ has a countable model if and only if Γ is consistent.
  • Blass, Andreas. 1984. “Existence of Bases Implies the Axiom of Choice.” In Axiomatic Set Theory, edited by James E. Baumgartner, Donald A. Martin, and Saharon Shelah, 31–33. Contemporary Mathematics 31. Providence, RI: American Mathematical Society.
    • Blass proves that if every vector space has a basis, then the Axiom of Choice holds, via the Axiom of Multiple Choice.
  • Chang, C. C., and H. Jerome Keisler. 1990. Model Theory. 3rd ed. Studies in Logic and the Foundations of Mathematics 73. Amsterdam: North-Holland.
    • A classic model theory text.
  • Cowen, Robert H. 1990. “Two Hypergraph Theorems Equivalent to BPI.” Notre Dame Journal of Formal Logic 31 (2): 232–40. 10.1305/ndjfl/1093635418.
    • Cowen proves that the Boolean Prime Ideal theorem (and thus the Compactness Theorem) is equivalent to the Compactness Theorem restricted to propositional formulas formed from a disjunct of at most 3 literals, and is also equivalent to the statement “a graph G is 3-colourable if every finite subgraph is 3-colourable”.
  • Dawson, John W., Jr. 1993. “The Compactness of First-Order Logic: From Gödel to Lindström.” History and Philosophy of Logic 14 (1): 15–37.
    • Another article detailing the development and history of the compactness theorems.
  • Denyer, Nicholas. 1992. “Pure Second-Order Logic.” Notre Dame Journal of Formal Logic 33 (2): 220–24.
    • Denyer proves that pure second-order logic (where formulas only have predicate variables) without identity is compact, whilst the corresponding logic with only functional variables is not.
  • Ebbinghaus, H.-D. 1985. “Extended Logics: The General Framework.” In Barwise and Feferman 1985, chap. 2.
    • Ebbinghaus presents a general framework for logics extending first-order logic and discusses various model-theoretic properties of these logics, in particular compactness and variations thereof.
  • Enderton, Herbert B. 2001. A Mathematical Introduction to Logic. 2nd ed. San Diego: Harcourt/Academic Press.
    • An introductory textbook on propositional, first-order, and second-order logic, as well as Gödel’s incompleteness theorems.
  • Ewald, William, and Wilfried Sieg, eds. 2013. David Hilbert’s Lectures on the Foundations of Arithmetic and Logic: 1917–1933. Vol. 3 of David Hilbert’s Lectures on the Foundations of Mathematics and Physics: 1891–1933. Heidelberg: Springer.
    • A collection of Hilbert’s works in the foundations of mathematics, with additional commentary and historical background, as well as a reproduction of Bernays’ habilitation thesis.
  • Feferman, Solomon, John W. Dawson Jr., Stephen C. Kleene, Gregory H. Moore, Robert M. Solovay, and Jean van Heijenoort, eds. 1986. Publications 1929–1936. Vol. 1 of Kurt Gödel Collected Works. Oxford: Oxford University Press.
    • A collection of many of Gödel’s important works, including his famous results on completeness, incompleteness, and compactness.
  • Frayne, T., A. C. Morel, and Dana S. Scott. 1962. “Reduced Direct Products.” Fundamenta Mathematicae 51:195–228.
    • This paper presents several results on properties reduced products and ultraproducts.
  • Givant, Steven, and Paul Halmos. 2009. Introduction to Boolean Algebras. Undergraduate Texts in Mathematics. New York: Springer.
    • An introductory textbook on algebraic, order-theoretic, and topological aspects of Boolean algebras.
  • Gödel, Kurt. 1929. “Über die Vollständigkeit des Logikkalküls.” Translated by Stefan Bauer-Mengelberg and Jean van Heijenoort. In Feferman, Dawson, Kleene, Moore, Solovay, and Van Heijenoort 1986, 60–101.
    • Gödel’s doctoral dissertation, in which he proves the completeness of the restricted functional calculus.
  • Gödel, Kurt. 1930. “Die Vollständigkeit der Axiome des logischen Funktionenkalküls.” Translated by Stefan Bauer-Mengelberg. In Feferman, Dawson, Kleene, Moore, Solovay, and Van Heijenoort 1986, 102–23.
    • Based on his 1929 doctoral dissertation, Gödel proves the compactness (for countable sets of sentences) of restricted functional calculus from the completeness theorem.
  • Gödel, Kurt. 1932. “Eine Eigenshaft der Realisierungen des Aussagenkalküls.” Translated by John W. Dawson Jr. In Feferman, Dawson, Kleene, Moore, Solovay, and Van Heijenoort 1986, 238–41.
    • Gödel presents his proof of the compactness theorem in general for propositional logic.
  • Goldblatt, Robert. 1998. Lectures on the Hyperreals: An Introduction to Nonstandard Analysis. Graduate Texts in Mathematics 188. New York: Springer.
    • A graduate-level textbook on the subject of non-standard analysis, including the foundational and model-theoretic justification for its methods.
  • Gonczarowski, Yannai A., Scott Duke Kominers, and Ran I. Shorrer. 2019. “To Infinity and Beyond: Scaling Economic Theories via Logical Compactness.” Harvard Business School Entrepreneurial Management Working Paper, no. 19–127, revised November 9, 2020. 2139/ssrn.3409828.
    • This substantial working paper demonstrates several applications of the compactness theorem in economics.
  • Griffiths, O., and A. C. Paseau. 2022. One True Logic. Oxford: Oxford University Press.
    • The authors argue that there is one correct foundational logic, and that it is highly infinitary.
  • Hajnal, A., and A. Kertész. 1972. “Some New Algebraic Equivalents of the Axiom of Choice.” Publicationes Mathematicae Debrecen 19:339–40.
    • The equivalence, under ZF, of the Axiom of Choice with the existence of groups structures (or other algebraic structures) on any set is proven in this short article.
  • Henkin, Leon A. 1948. “The Completeness of Formal Systems.” PhD diss., Princeton University.
    • Henkin’s doctoral dissertation which contains his proof of the completeness and compactness theorems for first-order functional calculus and the simple theory of types, as well as applications of the compactness theorem to algebra among other results. These results were published in Henkin (1949b, 1950).
  • Henkin, Leon A. 1949a. “Fragments of the Propositional Calculus.” Journal of Symbolic Logic 14:42–48.
    • Henkin demonstrates how to obtain complete axiomatisations for fragments of propositional logic.
  • Henkin, Leon A. 1949b. “The Completeness of the First-Order Functional Calculus.” Journal of Symbolic Logic 14:159–66. 2307/2267044.
    • This article contains Henkin’s proof of the completeness and compactness theorems of first-order functional calculus, based on his doctoral dissertation.
  • Henkin, Leon A. 1950. “Completeness in the Theory of Types.” Journal of Symbolic Logic 15:81–91.
    • This article contains Henkin proves the completeness theorem for the theory of simple types, based on his doctoral dissertation.
  • Henkin, Leon A., and Andrzej Mostowski. 1959. Review of Anatoliĭ Ivanovič Mal’cev. 1941. “Ob odnom obščém métodé polučéniá lokal’nyh téorém téorii grupp.” Ivanovskij Gosudarstvénnyj Pédagogičéskij Institut, Učényé zapiski, Fiziko-matématičéskié nauki 1 (1): 3–9 and “O prédstavléniáh modéléj.” 1956 by Anatoliĭ Ivanovič Mal’cev. Doklady Akadémii Nauk SSSR 108:27–29. Journal of Symbolic Logic 24 (1): 55–57. https://doi. org/10.2307/2964581.
    • Henkin and Mostowski’s review of two of Mal’cev’s important papers on applications of the compactness theorems in algebra. English translations of these article are found in Mal’cev (1971, 15–26).
  • Hilbert, D., and W. Ackermann. 1928. “Grundzüge der theoretischen Logik.” In Ewald and Sieg 2013, 809–915.
    • A collection of Hilbert’s works in the foundations of mathematics, with additional commentary and historical background, as well as a reproduction of Bernays’ habilitation thesis.
  • Hodges, Wilfrid. 1997. A Shorter Model Theory. Cambridge: Cambridge University Press.
    • A comprehensive textbook on model theory.
  • Howard, Paul E. 1975. “Łoś’ Theorem and the Boolean Prime Ideal Theo- rem Imply the Axiom of Choice.” Proceedings of the American Mathematical Society 49:426–28.
    • In this paper, Howard proves the title statement and discusses the possibility of assumption of the Boolean Prime Ideal Theorem.
  • Howard, Paul E., and Jean E. Rubin. 1998. Consequences of the Axiom of Choice. Mathematical Surveys and Monographs 59. Providence, RI: American Mathematical Society.
    • A comprehensive source of the myriad Choice principles that occur throughout mathematics, organised by equivalence as well as topic. It also includes descriptions of the many models of set theory that demonstrate non-provable implications between the different forms of Choice.
  • Jech, Thomas J. 1973. The Axiom of Choice. Studies in Logic and the Foundations of Mathematics 75. Amsterdam: North-Holland.
    • A textbook on the Axiom of Choice and other Choice-like principles, which covers the standard permutation models used for proving the independence of one statement from another.
  • Jech, Thomas J. 2003. Set Theory. 3rd ed. Springer Monographs in Mathematics. Berlin: Springer.
    • A graduate-level textbook on axiomatic set theory, covering infinitary combinatorics, large cardinals, inner models, and forcing.
  • Kanamori, Akihiro. 2009. The Higher Infinite: Large Cardinals in Set Theory from Their Beginnings. 2nd ed. Springer Monographs in Mathematics. Berlin: Springer.
    • A graduate-level textbook on the large cardinal heirarchy.
  • Keisler, H. Jerome. 1965. “A Survey of Ultraproducts.” In Logic, Methodology and Philosophy of Science II: Procedings of the 1964 International Congress, edited by Yehoshua Bar-Hillel, 112–26. Studies in Logic and the Foundations of Mathematics. Amsterdam: North-Holland.
    • A survey on the use of ultraproducts in mathematics, including its relationship with the compactness theorem for first-order logic via Łoś’ theorem.
  • Keisler, H. Jerome. 1970. “Logic with the Quantifier ‘There Exist Uncountably Many’.” Annals of Pure and Applied Logic 1:1–93. 10.1016/S0003-4843(70)80005-5.
    • An extensive paper on the model-theoretic properties of logics that include the quantifier ‘there exist uncountably many’.
  • Keisler, H. Jerome, and Julia F. Knight. 2004. “Barwise: Infinitary Logic and Admissible sets.” The Bulletin of Symbolic Logic 10 (1): 4–36. http s://
    • A survey of the Barwise compactness theorem of infinitary logic.
  • Kunen, Kenneth. 2011. Set Theory. Studies in Logic 34. London: College Publications.
    • A textbook on axiomatic set theory, covering infinitary combinatorics and forcing.
  • Lindström, Per. 1969. “On Extensions of Elementary Logic.” Theoria 35:1– 11.
    • Lindström proves his famous theorem characterising first-order logic via the (countable) compactness and Löwenheim-Skolem theorems.
  • Łoś, Jerzy. 1971. “Quelques remarques, théorèmes et problèmes sur les classes définissables d’algèbres.” In Mathematical Interpretation of Formal Systems, 2nd ed., 16:98–113. Studies in Logic and the Foundations of Mathematics. Amsterdam: North-Holland.
    • In this article (originally published in 1955), Łoś states without proof the theorem which bears his name.
  • Makowsky, J. A. 1985. “Compactness, Embeddings and Definability.” In Barwise and Feferman 1985, chap. 18.
    • Makowsky presents results on several model-theoretic properties of abstract logics, including generalised compactness properties.
  • Mal’cev, Anatoliĭ Ivanovič. 1936. “Investigations in the realm of mathematical logic.” In Mal’cev 1971, 1–14.
    • In this article, Mal’cev proves the compactness theorems for propositional and first-order logic.
  • Mal’cev, Anatoliĭ Ivanovič. 1971. The Metamathematics of Algebraic Systems: Collected papers: 1936–1967. Edited and translated by Benjamin Franklin Wells III. Amsterdam: North-Holland.
    • Translations of most of Mal’cev’s works on algebraic applications of mathematical logic.
  • Mann, Allen L., Gabriel Sandu, and Merlijn Sevenster. 2011. Independence-Friendly Logic: A Game-Theoretic Approach. London Mathematical Society Lecture Note Series 386. Cambridge: Cambridge University Press.
    • This monograph provides an introduction to independence-friendly logic, a logic with game-theoretic semantics.
  • Mannila, Heikki. 1983. “A Topological Characterization of (λ, µ)-Compactness.” Annals of Pure and Applied Logic 25 (3): 301–5.
    • Mannila gives a model-theoretic characterisation of the (λ, µ)-compactness of the model space of a logic.
  • Moore, Gregory H. 1982. Zermelo’s Axiom of Choice: Its Origins, Development, and Influence. Studies in the History of Mathematics and Physical Sciences 8. New York: Springer-Verlag.
    • A comprehensive book detailing the history of Zermelo’s explication of the Axiom of Choice and the consequent controversy surrounding it in the early twentieth century.
  • Paseau, A. C. 2010a. “Proofs of the Compactness Theorem.” History and Philosophy of Logic 31 (1): 73–98. 03495340. Corrected in “Proofs of the Compactness Theorem.” History and Philosophy of Logic 32, no. 4 (2011): 407.
    • This article examines different proofs of the compactness theorem, including some of the ones included in the present article, and draws some philosophical conclusions.
  • Paseau, A. C. 2010b. “Pure Second-Order Logic with Second-Order Identity.” Notre Dame Journal of Formal Logic 51 (3): 351–60. https://doi. org/10.1215/00294527-2010-021.
    • Pure second-order logic is second-order logic without first-order or functional variables. In the context of second-order logic, it is therefore, in a sense, the complement of first-order logic. The article states and proves some metalogical results for this logic.
  • Paseau, A. C., and Owen Griffiths. 2021. “Is English Consequence Compact?” Thought: A Journal of Philosophy 10 (3): 188–98. https://doi. org/10.1002/tht3.492.
    • A detailed investigation of the validity of the ‘planets’ argument discussed in section 2b of the present article.
  • Pincus, David. 1974. “The Strength of the Hahn-Banach Theorem.” In Victoria Symposium on Nonstandard Analysis: University of Victoria 1972, edited by Albert Hurd and Peter Loeb, 203–48. Lecture Notes in Mathematics 369. Berlin: Springer-Verlag.
    • Pincus shows the consistency (relative to ZF) of the Hahn-Banach theorem holding whilst the Boolean Prime Ideal Theorem failing.
  • Poizat, Bruno. 2000. A Course in Model Theory. Translated by Moses Klein. Universitext. An Introduction to Contemporary Mathematical Logic. New York: Springer.
    • A graduate-level textbook on model theory.
  • Post, Emil L. 1921. “Introduction to a General Theory of Elementary Propositions.” American Journal of Mathematics 43 (3): 163–85. https://doi. org/10.2307/2370324.
    • Based on his doctoral dissertation, Post proves the completeness theorem for propositional calculus, as well as some results on many-valued logics.
  • Putnam, Hilary. 1980. “Models and Reality.” Journal of Symbolic Logic 45 (3): 464–82.
    • In this article, Putnam sets out the argument mentioned in section 3 of the present article.
  • Richter, Marcel K. 1966. “Revealed Preference Theory.” Econometrica 34 (3): 635–45.
    • Richter characterises the representability and rationality of consumers, where the latter proof uses the Order-Extension Principle.
  • Robinson, Abraham. 1949. “On the Metamathematics of Algebraic Systems.” PhD diss., Birkbeck College, University of London.
    • Robinson’s doctoral dissertation, which includes his proof of the completeness and compactness theorems for first-order functional calculus. These results were later published in Robinson (1951).
  • Robinson, Abraham. 1951. On the Metamathematics of Algebra. Studies in Logic and the Foundations of Mathematics 4. Amsterdam: North-Holland.
    • A monograph largely based on Robinson’s doctoral dissertation.
  • Robinson, Abraham. 1966. Non-Standard Analysis. Studies in Logic and the Foundations of Mathematics 42. Amsterdam: North-Holland.
    • A foundational text in non-standard analysis, providing a rigorous justification of its methods.
  • Rubin, Herman, and Dana S. Scott. 1954. Some Topological Theorems Equivalent to the  Boolean  Prime  Ideal  Theorem. Presented at 503rd meeting of the American Mathematical Society, May 1, 1954. Abstract in W. Green. “The May Meeting in Yosemite.” Bulletin of the American Mathematical Society 60 (1954): 386–99. S0002-9904-1954-09827-0.
    • At this talk, several topological theorems are proven to be equivalent to the Boolean Prime Ideal Theorem.
  • Shapiro, Stewart. 1991. Foundations without Foundationalism: A Case for Second-Order Logic. Oxford Logic Guides 17. Oxford: Clarendon Press.
    • A detailed and extensive account of second-order logic, taking in its historical, mathematical and philosophical aspects.
  • Shapiro, Stewart. 2014. Varieties of Logic. Oxford: Oxford University Press.
    • The author defends a more radical form of logical pluralism (the thesis that there is more than one correct foundational logic) than that of Beall and Restall (2006).
  • Skolem, Thoralf. 1920. “Logico-Combinatorial Investigations in the Satisfiability or Provability of Mathematical Propositions: A Simplified Proof of a Theorem by L. Löwenheim and Generalizations of the Theorem.” Translated by Stefan Bauer-Mengelberg. In From Frege to Gödel: A Source Book in Mathematical Logic, 1879–1931, edited by Jean van Heijenoort, 254–63. Cambridge, MA: Harverd University Press.
    • A translated extract from Skolem’s 1920 paper, in which he presents his normal form for formulas in first-order logic as well as presenting a fully-correct proof of the downward Löwenheim-Skolem theorem for countable sets of sentences, which uses his Axiom of Choice.
  • Skolem, Thoralf. 1922. “Some Remarks on Axiomatized Set Theory.” Translated by Stefan Bauer-Mengelberg, 290–301.
    • A translated transcript of Skolem’s address at the Fifth Congress of Scandinavian Address held in Helsinki 4th–7th July 1920, in which he discusses several foundational aspects of set theory, and in particular demonstrates his ‘paradox’.
  • Stephenson, R. M., Jr. 1984. “Initially κ-Compact and Related Spaces.” In Handbook of Set-Theoretic Topology, edited by Kenneth Kunen and Jerry E. Vaughan, 603–32. Amsterdam: North-Holland.
    • This article presents a survey of results on (κ, λ)-compactness of topological spaces.
  • Sutherland, Wilson A. 2009. Introduction to Metric and Topological Spaces. 2nd ed. Oxford: Oxford University Press.
    • An introductory textbook to topology. Chapter 13 on compactness is particularly relevant to this article.
  • Szpilrajn, Edward. 1930. “Sur l’extension de l’ordre partiel.” Fundamenta Mathematicae 16:386–89.
    • In this short paper, Szpilrajn (also known as Marczewski) proves his Order Extension Principle.
  • Tarski, Alfred. 1952. “Some Notions and Methods on the Borderline of Algebra and Metamathematics.” In Proceedings of the International Congress of Mathematicians: Cambridge, Massachussetts, U.S.A., August 30–September 6, 1950, 1:705–20. Providence, RI: American Mathematical Society.
    • Tarski presents several results in the language of arithmetical classes (the classes of structures that satisfy a particular first-order sentence). Theorem 13 gives the compactness theorem its name.
  • Väänänen, Jouko. 2007. Dependence Logic: A New Approach to Independence Friendly Logic. 70. Cambridge: Cambridge University Press.
    • A monograph on dependence logic, and other logics with game-theoretic semantics.
  • Willard, Stephen. 1970. General Topology. Reading, MA: Addison-Wesley.
    • An introductory textbook on topology. Chapter 6 on compactness is particularly relevant to this article.
  • Zach, Richard. 1999. “Completeness Before Post: Bernays, Hilbert, and the Development of Propositional Logic.” Bulletin of Symbolic Logic 5 (3): 331–66.
    • A historical article on Bernays and Hilbert’s role in development of mathematical logic, particularly focused on propositional logic.

Author InformationA. C. Paseau
University of Oxford
United KingdomandRobert Leek
University of Birmingham
United Kingdom

{∃   ∃         ∃ k }                   {               }
{             ∈   } ∪ { ∈             }
{   } ∪ {∃        ∈   }
{ }
∀       ∃     ·
{   ∈ L                   }          L
{                  ∈                }
∀ ∀         ∨        ∨
f-                                                             f-
{        ∈   }
≤   ≤
{ }
≤                                                     ∧
∨ ∧      ¬
L ×      L           L
L                                 L             L
∃                                                          L
∈           m
∃                    m
∃               ¬        m \
L      \ L                                    LJ 
L ⊂ L ⊂ · · · ⊂ L   ⊂ · · ·
⊂      ⊂ · · · ⊂      ⊂ · · ·
L  ⊃ L      L
(    )                                                    ⊃
{∃   →     (   )\ }
(              L ×       L )
(    )
L ×      L
L }                                                               L
{ (   )       ∈ L    ∈
¬ ∧ ∀
/\     ∈                ⊆
P                                     ⊂                  ⊂ P
∼         { ∈                  }
{ ∈               } ∈
                {  } ∈                ⊂ {  ∈              }{ }
∈                      L
∩             {   ∈                    } ∩ {   ∈                    }            ∧
τ                                                                                  U ∈ τ
B             B
B     {                                     }
∈ B      ∩           C            C ⊂ B
¬                  ∈
¬              ∈                               {   ¬        ∈   }
ITits basic open sets         O , where O    τ , and O   =  X   for all but finitely ele-i                                       i                   i       i            iiI
{∅, {0}, {1}, {0, 1}}
{       → {    }}                                                          {    }
{    }
× · · · ×                  {    × · · · ×       ∀     ∈   }
function f  : Y  ITITiI Xi, f  is continuous if and only if πi ◦f  is continuous for all
{    }
{    }
{    }
∈                                                                           → {    }
i ∈ I, where πi :
j∈I Xj → Xi is the projection map onto the i-th coordinate. If
{ }      { }
{    }
{    }
n:                                         finite   is a basis for           .  Given an arbitrary col-
B     { } ∪ {   F    F ⊂ S        }
S                                                                                       S
C                         {    }
( )
{    }
⊂                                                                          C
⊂                                       C           
{    }
IT{   }                                                        
ITnω (Xn, dn)
{    }
L                                  L
L                            L
L                                                                             {   ∈           ∈   }L
L     L
≥              ∞
{           ∈  } ∪ {              }
ℵ                           ℵ                                        
nis    -complete if                  for every              with               .)  One may then show
A F             A F        |A|
L         L
∪ {∃       }
∪ {∃       }
{¬∃       }                                           f- ∀         →
L                                                                             {          ∈   }
L                          L
0                    L     ℵ ℵ                       L          
{           ∈   }
≤                    ∈
≤                        ≤
{    }
∃                                                  ∀            
{               }
{               } ∪ {         ≤        }
∀       ∀    ∃      
unsatisfiable) then there exists a finite set ∆ Γ such that n{CL(φ) : φ } =