This section is optional, and nothing outside it
depends on it.
Every list of premises in this chapter has been
finite, and the proof of completeness needed that: its
Step 1 lists the atoms of and , and there are only
finitely many of them because is a finite list
(Theorem 4.8.4).
But a statement about infinitely many objects can come
with infinitely many premises. Give each an atom , read “the -th lamp is on”, and the
rules “the first lamp is on” and “if the -th lamp is on, so is
the next” are one premise for each . This section defines
and for such
collections of premises, proves completeness for them by
a route different from that of Section 4.8, and deduces
from it the compactness theorem: a collection of
formulas can be made true all at once as soon as each
finite part of it can. The word “collection” keeps its
everyday sense throughout; nothing here needs more.
Infinitely
many premises
A derivation is finite, so from infinitely many
premises it can use only finitely many; a valuation, on
the other hand, gives every formula a value at
once.
Definition
4.10.1 (Derivability and Entailment from
Infinitely Many Premises)
Let be a
collection of formulas, finite or infinite, and a formula. if
is derivable
from some finite list of members of ; is
consistent if .
if every valuation that makes every member of true makes true; is
satisfiable if some valuation makes
every member of true.
In words: a derivation has finitely many lines, so it
can cite only finitely many premises. That is why goes through
finite lists of members, while looks at all of
at once. For
a finite list the new definitions agree with the old. A
derivation from part of a list is a derivation from the
list, by Lemma 2.3.3
(a), so
means what Definition 1.2.3
said, and consistent means what Definition 3.2.1
said. The definitions of and
satisfiable say for a finite list exactly what
Definition 4.5.3
and Definition 4.5.2
said. “Finite list of members” allows repetitions and
any order; neither matters, by Lemma 2.3.3
(a) and by the definitions of and
satisfiable.
An example. Let consist of and every formula
with . Then
:
from the finite list , two lines
give and then
. And for
every : a
valuation making every member of true makes true, and makes true whenever it
makes true, so
it makes every
true, by Axiom 4.2.1
on , started at
.
Quick check. Is the collection
consisting of and every with satisfiable? Is it consistent?
Solution. Satisfiable: the
valuation making true and every other
atom false makes every member true. Hence consistent. A
derivation of
would use some finite list of members; that list is made
true by the same valuation, so it is satisfiable, hence
consistent by Section 4.7, and derives no .
The construction below goes through all formulas one
at a time, so it needs them in one list.
In words: the atoms are listed already (), and each formula is a finite string of
symbols, so the formulas can be listed by size, finitely
many at each stage.
↺Second readingHow
to list every formula
Idea. List by size. At stage , allow only the first
atoms and strings
of at most
symbols. Each stage is finite, and every formula fits
into some stage.
Proof. Write the atoms in one list
(say in this order). For each , consider the
strings of length at most over the symbols There are finitely many such strings (at most
of each
length up to ), so
finitely many of them are formulas. Stage lists, in any order,
the formulas among them that no earlier stage listed.
Write the stages one after another and number the
entries . Each stage lists at least the atom
, which is
available for the first time, so the stages together
list infinitely many formulas.
Every formula occurs. Let have length , and let its atoms
be among (with if it has none). At stage (note
), is a string of
length at most
over the symbols of that stage, so it is listed then, or
earlier.
Lindenbaum’s construction
The new proof of completeness works the other way
round from Section 4.8. It does not build a derivation.
It starts from a consistent collection and builds a row
that makes all of it true. The row is read off a
collection that has made up its mind about every
formula.
A collection is maximal
consistent if it is consistent and, for every
formula ,
is in or is.
The construction rests on one step. Exercise C2 of
Section 3.2 (Exercise (C2: Challenge: Splitting an inconsistency, used later))
proved it for finite lists; here it is again, for
collections, with its proof.
The key step. If is consistent,
then with
added, or
with added, is
consistent. Suppose both were inconsistent. Then
there are finite lists and of members of
with and (if a derivation of
does not use
, or , adding it as
a premise changes nothing, by weakening). By weakening,
both hold with the list in
place of
and of . A
box on
gives , and an box on
gives
(this is Proposition 3.2.2).
Then , by chaining (Lemma 2.3.3
(c)), gives , and would be
inconsistent.
Lemma
4.10.2 (Lindenbaum’s Lemma)
Every consistent collection of formulas is contained
in a maximal consistent collection.
Idea. Go through the list of all
formulas, and add each one or its negation, whichever
keeps the collection consistent. The key step says one
of them always does. At the end, every formula has been
decided, and no contradiction has been let in, because a
contradiction would show up at some finite stage.
Proof. Let be consistent, and
let be the list of Lemma 4.10.1.
Define collections by recursion on , each from the one
before: Every is consistent,
by Axiom 4.2.1:
is; and if
is, then is, by its
definition in the first case and by the key step in the
second. Each contains the one
before.
Let
consist of the formulas that belong to some . Then contains .
is
consistent. A derivation of from uses a finite list
of members of . Each of them is
in some ,
so all of them are in the with the largest
of those indices
( if the list
is empty), since the collections grow. That derivation
would then show , but is
consistent.
is
maximal. Every formula is some , and or is in , hence in
. This proves
the lemma.
Quick check. Start from with a list of formulas beginning . What are and ?
Solution. with added is inconsistent
( and give by ), so
adds , which is already
there: . with added is satisfiable
(,
),
hence consistent (Section 4.7), so adds : .
A row from
a maximal consistent collection
A maximal consistent collection behaves like the
collection of formulas that are true in one row: it
contains a negation exactly when it lacks the negated
formula, a conjunction exactly when it contains both
parts, and so on through the clauses of Definition 4.4.2.
Lemma
4.10.3 (Maximal Consistent Collections)
Let be
maximal consistent, and let , be formulas.
- (a) If ,
then .
- (b) Exactly one of
, is in ; and .
- (c) iff and ; iff or
;
iff or ; iff and are both in or both not in
.
In words: whatever derives, it
already contains; it decides every formula, one way
only; and it treats each connective as the truth table
does.
↺Second readingThe
proof: a maximal collection decides
everything
Idea. For each clause, find the
derivable sequent that says the same thing as the truth
table, and let (a) put what derives into ; where a formula
must be shown missing, derive its negation instead and
use (b).
Proof. Derivations from are combined by Lemma 2.3.3
throughout: two finite lists of members of can be joined into
one, and a sequent already proved can be applied by
chaining.
(a) Suppose and
. By maximality ,
so by a one-line derivation, and gives
,
against consistency.
(b) At least one of , is in , by maximality. If
both were, would give . And
would give at once.
(c) Each clause comes from (a), (b) and a
derivable sequent.
. If , then gives
and , so both are in by (a). If both
are in ,
gives , so it is in by (a).
. If or
,
then gives , so it is in by (a). If neither
is in , then
by (b), and of Lemma 4.8.1
gives ; so by (a), and by (b).
. If and , then gives
,
so
by (a); hence or . Conversely, if ,
then by (b), and gives ; if , then gives it. Either
way by (a).
.
If both ,
are in ,
gives ; if neither, then and
gives it; in both cases by (a). If exactly one is in , the other’s
negation is in by (b), and or
gives ; so by (a), and by (b). (With ,
passes membership from either part to the other, which
is the same fact read from the other side.)
So a maximal consistent collection names a row: make
an atom true exactly when the collection contains
it.
Lemma
4.10.4 (Truth Lemma)
Let be
maximal consistent, and let be the valuation
that makes an atom true exactly when . Then for
every formula : iff .
Idea. Induct on . Each clause of
Definition 4.4.2
has a twin in Lemma 4.10.3:
part (b) for ,
part (c) for the binary connectives. The induction
hypothesis turns “true under ” into “in ” for the parts,
and the twin does the rest.
Proof. By Theorem 4.3.1,
with the property “ iff ”.
Atoms: this is the definition of . : by (V1), and by Lemma 4.10.3
(b), so both sides of the “iff” fail.
: iff , by (V2); iff , by
the induction hypothesis; iff ,
by Lemma 4.10.3
(b).
: iff and , by (V3); iff and
, by
the induction hypothesis; iff , by Lemma 4.10.3
(c). The cases , , are the
same: the clause of Definition 4.4.2
for the connective and the clause of Lemma 4.10.3
(c) for it say the same thing, once “true under ” is read as “in
” for the two
parts, as the induction hypothesis allows. This proves
the lemma.
Completeness again
Theorem
4.10.5 (Completeness for Infinitely Many
Premises)
For every collection of formulas,
finite or infinite, and every formula : if , then
.
Equivalently, every consistent collection is
satisfiable.
Idea. If does not derive
, then adding
cannot
lead to , since
an
box would turn such a derivation into one of . Extend with to a maximal
consistent collection and read off its row: it makes
every member of true and false.
Proof. We prove the contrapositive
of the first sentence. Suppose . Then
with added is
consistent. For suppose some finite list of its members
derived ;
adding to
the list if it is not there (weakening), we have for a finite list of members of
, and an
box
on gives
, so . By Lemma 4.10.2,
with is contained in
a maximal consistent . By Lemma 4.10.4,
makes
every member of true, in
particular every member of , and . So makes false, and .
The equivalence: by Definition 4.10.1
and (V1), is
satisfiable iff , and consistent iff . So
the first sentence with is the second. Conversely, given the
second, if , then with is consistent,
as just shown, hence satisfiable, by a row that refutes
.
Two proofs, two prices. Section 4.8
glued the rows of a truth table into one derivation.
That is a construction one can carry out, from row derivations for
atoms, but only
for finitely many premises. This section never writes a
derivation. It shows that if none exists, then a row
exists, by a construction that passes through infinitely
many formulas, one at a time, and cannot be finished by
hand. The first proof is effective (it writes the
derivation down) and limited to finite lists; the second
reaches infinite collections and produces no derivation.
The second is the route that extends beyond
propositional logic.
↺Second readingA
remark on the list of formulas
Besides the rules, and the structural induction and
recursion of Section 4.3, the proof used one new fact
about the formulas: that they can be listed (Lemma 4.10.1).
The construction then decides the formulas in the order
of the list, and a different list may give a different
and a
different row; any of them refutes . The
proof cites Proposition 2.5.3
nowhere, but its key step uses , and so
does the step from to the consistency of with . It is classical
in the same way as the splitting of Section 4.8, which
used excluded middle.
Compactness
Theorem
4.10.6 (Compactness)
A collection of formulas is
satisfiable if and only if every finite list of members
of is
satisfiable. Consequently, if
and only if some finite list of members of entails .
Proof. “Only if”: a valuation
making every member of true makes every
member of each finite list true. “If”: every finite list
of members of is satisfiable,
hence consistent, by Section 4.7. So is consistent,
since a derivation of from would use a finite
list of members. By Theorem 4.10.5,
is
satisfiable.
For the second sentence: iff
with added is
unsatisfiable (a valuation making true and false is exactly one
making both
and true);
iff, by the first sentence, some finite list of its
members is unsatisfiable; iff some finite list of members of
has
unsatisfiable (adding to an
unsatisfiable list keeps it unsatisfiable, and is
itself such a list); iff , by
Section 4.5’s reduction of entailment to
unsatisfiability.
Example
(Infinitely many premises, finitely many used)
Let
consist of and
every with , the lamps of the opening.
- (a) Show ,
and find a finite list of members of that entails .
- (b) Show that a
finite list of members of that leaves out
does not entail .
Solution. (a) A valuation
making every member of true makes true and passes truth
from each to
, so it
makes every
true (Axiom 4.2.1,
started at ),
among them.
The hundred formulas
already entail : a row making
them all true makes true, one after
another.
(b) Take the valuation making true
and every other atom false. It makes true; it makes true for
(true
conclusion) and for (false hypothesis); only is
false. So it makes every member of the finite list true,
and
false.
Compactness says that this is no accident: an
entailment from infinitely many premises always rests on
finitely many of them. Here every finite list that
entails
must contain all ninety-nine implications up to , since
(b)’s argument works with any , , in place of
,
and it must contain , since the valuation
making every atom false makes all the implications
true.
Warning. Compactness promises
one valuation for the whole collection
when each finite part has one. The valuations of the
finite parts may all differ, and the theorem does not
say how to find the single one: its proof went through a
maximal consistent collection, which nobody writes
down.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Why is
defined through finite lists of members of ?
- (b) True or false:
an infinite collection is consistent iff
every finite list of its members is consistent.
- (c) In the proof of
Lemma 4.10.2,
why can
with
added and
with
added not both be inconsistent?
- (d) is maximal
consistent, and . Is in ? Is ?
- (e) Which result of
Section 4.7 does the proof of Theorem 4.10.6
use?
Solution. (a) A derivation
has finitely many lines, so it uses finitely many
premises.
(b) True, by Definition 4.10.1:
means that some finite list of members derives .
(c) By the key step: and
would derive and from finitely
many members of , and then
, making
inconsistent.
(d) Neither. by Lemma 4.10.3
(c), since and . And by (b), so by (c), so by (b).
(e) That a satisfiable list is consistent
(soundness).
Exercise
(A2: Drill)
The parts run from judging collections, through the
definitions and single stages of the construction, to
the lemmas and the theorem, and end with one more
collection to judge.
- (a) Is the
collection of all with satisfiable?
- (b) Is the
collection of
and every
with
consistent?
- (c) Does the
collection of all with entail ? If so, which finite list of members
does?
- (d) Is the
collection of , , and every with satisfiable?
- (e) For a finite
, does Definition 4.10.1
change what means?
- (f) Run Lindenbaum’s
construction from with a list beginning . What are and ?
- (g) is maximal
consistent and . Is ? When is ?
- (h) and , with
maximal
consistent. Is ?
- (i) Can a maximal
consistent
contain ,
and ?
- (j) How many
formulas of length 1 contain no atom other than and ?
- (k) Can hold
with no finite list of members of entailing ?
- (l) Is the
collection of all with satisfiable?
Solution.
(a) Yes: every
atom true.
(b) Yes: it is
satisfiable (
true, every other atom false), hence
consistent.
(c) Yes; the list
does.
(d) No: its first
three members already have no common row.
(e) No (Lemma 2.3.3
(a)).
(f) ,
which is satisfiable, hence consistent. with is inconsistent,
so .
(g) Yes, by Lemma 4.10.3
(b); and exactly when , by
(c).
(h) Yes, by Lemma 4.10.3
(c).
(i) No: and
would derive .
(j) Three: , , .
(k) No, by Theorem 4.10.6.
(l) Yes: make
true for odd
and false for
even .
B. Practice
Exercise
(B1: Running the construction)
Run the construction of Lemma 4.10.2
on for the first four formulas of a list
beginning . Justify each “consistent” by a
row and each “inconsistent” by a short derivation of
. Then say
which values gives and , whatever the rest of
the list.
Solution. .
: with is inconsistent ( and , then ), so
adds , which is already
there.
: with is consistent, since
the row , makes , , true
(Section 4.7); adds .
: with is inconsistent
( and , then ); adds .
:
with is
inconsistent ( gives
, which clashes
with ); adds .
Whatever the rest of the list, and are in , so by Lemma 4.10.3
(b), and
makes false and
true. Later
stages only add formulas, so they cannot change
this.
Marking scheme. (6 points)
- 4: one per stage, with its justification (a row
checked, or a derivation of ).
- 2: the row of on , , and why later stages
cannot change it.
Exercise
(B2: The clause for implication)
Prove the
clause of Lemma 4.10.3
(c) in full, from parts (a) and (b) and the sequents of
Lemma 4.8.1.
Solution. () Let . If , the two-premise list of members of derives by one line,
so , and by (a). So either or
.
() If
, then by
(b), and ,
, shows ; so by (a). If , then
, , does the same.
Marking scheme. (6 points)
- 3: (), with (a)
cited.
- 3: (), both cases,
with (b) used in the first.
C. Going deeper
Exercise
(C1: Coloring an infinite graph)
A graph on the vertices is given
by saying which pairs of vertices are joined. A
3-coloring gives each vertex one of
three colors so that joined vertices get different
colors. Suppose every finite set of vertices, with the
joins among them, can be 3-colored. Prove that the whole
graph can. Use atoms , read “vertex
gets color ” for , where the
are
distinct atoms (for instance, is ).
Solution. Let consist of three
kinds of formulas:
- , for every vertex ;
- , for every vertex and all ;
- , for every joined pair , and every .
A valuation making every member of true gives each
vertex exactly one color (the first two kinds), and
joined vertices different colors (the third kind): it is
a 3-coloring, coloring with the for which is true.
Every finite list of members of
is
satisfiable. Its members mention finitely many vertices;
call that finite set . By hypothesis, with the joins among
its vertices has a 3-coloring . Let make true exactly when
and . Each
member of
mentions only vertices of , and makes it true: the
first kind because colors every
vertex of , the
second because it gives each one color, the third
because
colors joined vertices of differently.
By Theorem 4.10.6,
is
satisfiable, and a satisfying valuation is a 3-coloring
of the whole graph.
Marking scheme. (10 points)
- 3: the collection , with all three
kinds.
- 2: a valuation making true gives a
3-coloring.
- 4: every finite part satisfiable, with the
restriction to the vertices it mentions.
- 1: Theorem 4.10.6
cited.
Fatal errors (0 for the step): coloring the vertices
one at a time and claiming the choices can always be
continued, with no argument; a “finite part” argument
that colors only the vertices without
checking that every member of mentions only
them.
Exercise
(C2: Challenge: Compactness without derivations)
Suppose the atoms are listed , and
every finite list of members of is satisfiable.
Choose truth values for one at a time, keeping this
property:
every
finite list of members of is made true by
some valuation that agrees with the choices made for
.
- (a) Show that if
holds, a value
for can be
chosen so that holds.
- (b) Show that the
valuation given
by all the choices makes every member of true.
- (c) Which earlier
results does (b) use?
Solution (Hint 1). For (a), suppose
neither value works, and take one finite list witnessing
each failure.
Solution. (a) is the hypothesis.
Suppose holds
and neither value of works. Then there
is a finite list that no valuation
agreeing with the choices and making true satisfies,
and a finite list that no valuation
agreeing with the choices and making false satisfies.
By , the finite
list is
satisfied by some valuation agreeing with the
choices for . If
makes true,
it satisfies ;
if false, it satisfies . Either way a
contradiction. So some value works: choose if works, and
otherwise. This gives , and the rule
defines the values by recursion on .
(b) By (a) and Axiom 4.2.1,
holds for every
. Let , with
its atoms among . By , the one-member list
is made true
by some valuation agreeing with on . By Lemma 4.4.1,
makes true.
(c) Lemma 4.4.1,
Axiom 4.2.1
( for every
, from (a)), and a
definition by recursion on (each choice depends on
the earlier ones). No derivation and no completeness
theorem is used: this proves Theorem 4.10.6
directly.
Marking scheme. (10 points)
- 5: (a), with the joint list and both cases
of .
- 4: (b), with
chosen from the atoms of , obtained from (a) by
Axiom 4.2.1,
and Lemma 4.4.1
cited.
- 1: (c).
Fatal errors (0 for the step): in (a), choosing a
value that works for each finite list separately,
possibly different for different lists.