7.2  Counter-models

Section 7.1 gave every formula a meaning in a structure. This section uses it to answer the question Chapters 5 and 6 left open: when a search for a derivation stalls, is there no derivation, or only no derivation found yet? The answer is a counter-model, a structure with an assignment in which the premises are true and the conclusion false (Definition 7.1.4), together with one statement, soundness for predicate logic, that turns it into a proof that no derivation exists.

Remark (Looking back). Sections 4.5 and 4.6 refuted a propositional claim by a row that made its counterexample set true, and searched for that row systematically; Section 4.7 proved that a refuting row rules out every derivation. This section does the same with structures: the counter-model is the row, the procedure below is the search, and the side-condition table plays the part of Section 4.7’s rule-by-rule table.

7.2.1. Three pictures

Section 5.3 called a reading in which the premises are true and the conclusion false a counter-reading. Here are three, drawn as in Section 7.1.

Diagram. Labels: small is above, (A), (B), (C)

Three counter-readings. (A) P holds at a and Q at b: ∃xP(x)∧∃xQ(x) is true, with the witnesses a and b, and ∃x(P(x)∧Q(x)) is false, since no dot has both labels; so the converse of Proposition 5.6.1 does not follow (Section 5.6 asked). (B) The integers, with R(x,y) read as x>y. Only the arrows to the next integer down are drawn; R is the whole order >, so R(x,y) holds whenever a chain of arrows leads from x to y. ∀y∃xR(x,y) is true, since every integer y has y+1 above it, and ∃x∀yR(x,y) is false, since an integer above every integer would be above itself; so the converse of Proposition 5.6.2 does not follow. (C) P holds at b, and the constant c names a: ∃xP(x) is true, at b, and P(c) is false (Exercise (C2: A witness is not a name, used later) asked why no derivation was found).

Each picture is a structure in the sense of Section 7.1: a domain with a meaning for every symbol. The rest of this section checks such pictures by the clauses, finds them by a procedure, and shows why one of them rules out every derivation.

Quick check. Draw two dots that make ∀x(P(x)∨Q(x)) true and ∀xP(x)∨∀xQ(x) false.

Solution. Picture (A) again: each dot has P or Q; ∀xP(x) fails at b, and ∀xQ(x) fails at a.

Quick check. In picture (C), which clauses of Definition 7.1.3 decide ∃xP(x), and at which element?

Solution. (S7) asks for some d∈D with M,ℓ[x↦d]⊨P(x); at d=b, (S1) asks whether b∈PM, and it is.

7.2.2. Counter-models

A counter-model is found the way a refuting row was found in Chapter 4, by working backwards from what must fail. The conclusion must be false, so read off what that demands; the premises must be true, so read off what they demand; and then build the smallest structure meeting both. The worked examples that follow (the swap, the converses of Proposition 5.6.1 and of the ∀/∨ law, ∃xP(x)⊢P(c), and P(x0)⊢∀xP(x)) are sequents whose derivations stalled or were blocked in earlier sections.

Example (The swap of ∃ and ∀)

Show that ∀y∃xR(x,y)⊭∃x∀yR(x,y), first by a structure on Z, then by a structure with two elements.

Solution. Both formulas are sentences, so by Lemma 7.1.1 we need only a structure; any assignment will do.

A structure on Z. Let M have domain Z and RM={(x,y):x>y}, so that R(x,y) says “x>y”. The premise says “every integer has an integer above it”. To check it by (S6) and (S7): for each e∈Z we need some d∈Z with (d,e)∈RM, that is, d>e; d=e+1 works. The conclusion says “some integer is above every integer”. By (S7) and (S6) it would need a d∈Z with d>e for every e∈Z; but e=d gives d>d, which is false. So M⊨∀y∃xR(x,y) and M⊭∃x∀yR(x,y).

A structure with two elements. Let D={a,b} and RM={(a,a),(b,b)}, so that R(x,y) says “x is y”. Premise: for e=a take d=a, and for e=b take d=b; both pairs are in RM. Conclusion: d=a fails at e=b, since (a,b)∉RM, and d=b fails at e=a. So the premise is true and the conclusion false.

The pattern is the one Section 5.1 read as a game. In the premise the witness x is chosen after y and may depend on it (x=y+1, or x=y); the conclusion asks for one x that works for every y in advance. A one-element structure cannot separate the two sentences: with D={a}, both are true if (a,a)∈RM and both false otherwise. Two elements are the least that will do.

The two-element structure is the Z structure’s idea at its smallest: each element is related to something, and nothing is related to everything.

Picture (A), checked by the clauses. With D={a,b}, PM={a}, QM={b}, the premise of the converse of Proposition 5.6.1 holds by (S5) and (S7), with witnesses a and b, and the conclusion fails, since a∉QM and b∉PM: ∃xP(x)∧∃xQ(x)⊭∃x(P(x)∧Q(x)). The same structure refutes the converse of the ∀/∨ law of Proposition 6.2.6, since each element is in PM or in QM, and neither set is all of D: ∀x(P(x)∨Q(x))⊭∀xP(x)∨∀xQ(x). Picture (C): with cM=a and PM={b}, ∃xP(x) holds with the witness b, and P(c) fails, since a∉PM. So ∃xP(x)⊭P(c). In Z, with P and Q read as “even” and “odd”: some integer is even and some integer is odd, but no integer is both; and every integer is even or odd, but it is false that every integer is even, and false that every integer is odd.

The assignment is part of a counter-model. Section 5.4 showed why ∀I may not generalize over a name in a premise: from P(x0) one would “derive” ∀xP(x). Here x0 is a variable, free in the premise, so a counter-model needs an assignment as well as a structure. Let M have domain Z with PM the set of even integers, and let ℓ(x0)=2. Then M,ℓ⊨P(x0), since 2 is even, and M,ℓ⊭∀xP(x), since (S6) fails at d=1. So P(x0)⊭∀xP(x). Under the assignment with ℓ(x0)=1 the premise is false, and that assignment refutes nothing; the counter-model is the structure with ℓ(x0)=2.

Warning. A “counter-model” that falsifies a premise refutes nothing. For ∀y∃xR(x,y)⊢∃x∀yR(x,y), the structure (N,<), with R(x,y) read as “x<y”, makes the conclusion false, since no natural number is below every natural number; but it also makes the premise false, since nothing in N is below y=0. It is not a counter-model, and it proves nothing about the sequent. As with rows in Chapter 4, check the premises first.

A model of a list of sentences. Counter-models are one use of structures; describing a whole kind of object is another. Consider the three sentences ∀x¬(x<x),∀x∀y∀z((x<y∧y<z)→x<z),∀x∃y(x<y), which say that < is a strict order (never x<x; x<y and y<z give x<z) with no largest element. The structure (N,<) is a model of all three: no number is less than itself, the order is transitive, and d+1>d is a witness for the third sentence. It is the one the sentences were written with in mind, but not the only one: in (Z,<) and (Q,<) all three are true, by the same checks.

Second readingFinite and infinite models

Finite counter-models are convenient because every clause can be checked by listing. They are not always available: Exercise C1 below gives a sentence that is true in every finite structure and false in an infinite one, and Exercise C2 a sentence with only infinite models.

These models differ in ways the three sentences cannot see: Z has no least element, and Q has a third element between any two. And the one-element structure D={a} is not a model of the three sentences: if (a,a)∈<M the first sentence fails, and if not, the third fails at d=a. Exercise C2 shows that no finite structure is a model of them.

Quick check. Give a counter-model to ∀xP(x)→∀xQ(x)⊨∀x(P(x)→Q(x)). (Think about what makes an implication with a universal hypothesis true cheaply.)

Solution. Take D={a,b}, PM={a}, QM=∅. The premise is an implication whose hypothesis ∀xP(x) is false (it fails at b), so by (S5) the premise is true. The conclusion fails at d=a: a∈PM and a∉QM, so P(x)→Q(x) is not satisfied under ℓ[x↦a]. (Any structure with PM≠D and some element in PM but not in QM works.)

7.2.3. Finding a counter-model

A counter-model is a structure with an assignment under which every member of the counterexample set Γ,¬φ (Definition 1.1.3) is true. Section 4.6 searched for a row; here is the search for a structure, the named move search for a counter-model.

  1. Write the counterexample set, and push each ¬ inward (Section 6.2), so that every demand is visible as a ∀ or an ∃.
  2. Meet the existential demands first: each ∃xψ asks for an element; try one already present, and add a new one only if every present one clashes.
  3. Then impose each universal constraint on every element so far, deciding the atomic facts it forces.
  4. Add only forced elements. If a constraint creates a new existential demand, return to step 2.
  5. If every attempt at size n clashes, try size n+1; if each new element forces another, look for a familiar infinite structure (N, Z, Q) with that pattern.
  6. Check: premises first (the warning above), then the conclusion, clause by clause.
Diagram. Labels: new demand, the counterexample set Gamma , neg varphi ,\\neg pushed inward, meet each exists demand:\reuse an element, else add one, impose each forall constraint\on every element so far, a clash, or a\new exists demand?, neither: check the premises,\then the conclusion, a clash: one element more,\or try nN , nZ , nQ

The search for a counter-model. The procedure need not stop: Exercise C1 below gives a claim whose counter-models are all infinite, and Exercise C2 a sentence whose models are all infinite.

Example (A Counter-model, Found by the Procedure)

Show that ∀x(P(x)→∃yR(x,y)), ∃xP(x)⊭∃x∃y(R(x,y)∧P(y)).

Solution. Step 1. The counterexample set, with the negated conclusion pushed inward: ∀x(P(x)→∃yR(x,y)),∃xP(x),∀x∀y(R(x,y)→¬P(y)).

Step 2. The demand ∃xP(x) asks for an element: call it a, with P(a).

Step 3. The first member, at a, now demands some y with R(a,y).

Step 2 again. Try y=a, already present: then the third member, at x=a, y=a, forces ¬P(a), a clash. So add b, with R(a,b), and, by the third member, ¬P(b).

Step 3 again. The constraints at b: the first member at b demands nothing, since P(b) is false; the third member holds for every pair, since the only related pair is (a,b) and b lacks P. No new demand: stop adding.

Step 6. Take D={a,b}, PM={a}, RM={(a,b)}. The first premise holds at a, with the witness b, and at b, whose hypothesis is false. The second holds at a. The conclusion fails: its only candidate pair (a,b) has b∉PM.

In numbers: on N, read P(x) as “x is even” and R(x,y) as “y=2x+1”. Every even number x has the number 2x+1 related to it, some number is even, and every number 2x+1 is odd, so no pair (x,y) has R(x,y) with y even.

Quick check. In the example, why was y=a tried before adding b?

Solution. Step 2: a demand is met by an element already present when possible, since every new element brings new constraints. Here a clashed, so b was forced.

7.2.4. Small domains, by expansion

Over a domain with few elements, say D={a,b}, the clauses can be unwound to the end. By (S6), M,ℓ⊨∀xφ exactly when φ is satisfied under ℓ[x↦a] and under ℓ[x↦b]; by (S7), M,ℓ⊨∃xφ exactly when φ is satisfied under ℓ[x↦a] or under ℓ[x↦b]; (S4) and (S5) treat the connectives as before; and at the bottom each atomic formula is decided by (S1) as a fact about elements, such as “the pair (a,b) is in RM”.

The expansion is the record of that check: ∀x is written as a long ∧ over the elements and ∃x as a long ∨, the long ∧ and ∨ of Section 5.1, and R(a,b) is written for the fact (a,b)∈RM. Here a and b are the elements themselves, not new constants, and no formula φ[a/x] is formed: the expansion is notation for the finite table of (S6) and (S7) cases, so it is true exactly when the sentence is, by (S6), (S7) and (S1) alone. After the expansion only facts like R(a,b) remain, each true or false, and the search for a counter-model of that size is a search for a row (Section 4.6).

Example (Size One Fails, Size Two Works)

Find the least size of a counter-model to ∀x∃yR(x,y), ∀x∀y(R(x,y)→R(y,x))⊨∃xR(x,x).

Solution. Size 1, D={a}. The first premise expands to R(a,a), which is also the conclusion’s expansion. Whenever the first premise is true, so is the conclusion: no counter-model.

Size 2, D={a,b}. The conclusion is false exactly when ¬R(a,a)∧¬R(b,b). The first premise expands to (R(a,a)∨R(a,b))∧(R(b,a)∨R(b,b)), which then forces R(a,b) and R(b,a). The second premise expands to four implications, R(a,a)→R(a,a), R(a,b)→R(b,a), R(b,a)→R(a,b), R(b,b)→R(b,b), all true with RM={(a,b),(b,a)}.

So the least size is 2: two elements, each related to the other and neither to itself. In numbers: on {0,1}, read R(x,y) as x≠y.

Remark. If a claim uses only one-place predicate symbols, k of them, and no constants, function symbols or =, and it has a counter-model at all, then it has one with at most 2k elements: merge any two elements that have the same predicates. This book does not prove it. Once a two-place predicate symbol is allowed, no such bound exists: by Exercise C2 below, the claim ⊨¬τ, in which only the two-place symbol < occurs, has counter-models (the models of τ, such as (Z,<)), and every one of them is infinite. A function symbol with = does the same: the claim ⊨σ of Exercise C1 has no finite counter-model at all.

Quick check. Expand ∃x∀yR(x,y) over {a,b}.

Solution. (R(a,a)∧R(a,b))∨(R(b,a)∧R(b,b)): the outer ∃x becomes the ∨, and the inner ∀y the ∧ inside each disjunct.

7.2.5. Each side condition, broken

Chapter 5 introduced each side condition with a step that breaks it and a reading in which that step leads from truth to falsehood; here they are together, each reading now a counter-model.

Side condition WRONG (breaks it) RIGHT (keeps it) Counter-model to the WRONG sequent
∀E: t free for x (5.3) from ∀x∃y(y≠x), ∃y(y≠y) from the renamed premise ∀x∃z(z≠x), ∃z(z≠y) D={0,1}: the premise holds; ∃y(y≠y) never does
∀I: flag in no premise (5.4) P(x0)⊢∀xP(x) P(x0)⊢∃xP(x), by ∃I Z, P “even”, ℓ(x0)=2
∀I: flag in no open assumption (5.4) ⊢x0>0→∀x(x>0) ⊢∀x(x>0→x+1>0), the boxes nested the other way Z, ℓ(x0)=1
∀I: flag not in the conclusion (5.4; 5.5, Exercise (C1: The conclusion clause of for-all-introduction, used later)) from ∀x(x≤x), a box flagged y0 ending in y0≤y0 gives ∀x(x≤y0), then ∃y∀x(x≤y) by ∃I from the same box, ∀y(y≤y) N with ≤: the premise holds, and no number is at least every number (y+1 exceeds y)
∃I: t free for x (5.5) from ∀yR(y,y), ∃x∀yR(x,y) from the same line, ∃xR(x,x) (∀E at x0, then ∃I) Z, R as ≤: no least integer
∃E: x0 not in χ (5.6) ∃x(x>5)⊢∀x(x>5), through an ∃E line that keeps x0 ∃x(x>5)⊢∃x(x>6) N: the premise holds at 6, the conclusion fails at 0
∃E: x0 in no premise or open assumption (5.6) ∃xP(x),¬P(x0)⊢⊥ ∃xP(x),∀x¬P(x)⊢⊥ D={1,2}, PM={2}, ℓ(x0)=1
∃E: x0 not in ∃xφ (5.6) ∀y∃xR(x,y)⊢∃zR(z,z) ∀y∃xR(x,y)⊢∃z∃xR(x,z) three dots, a→b→c→a
=E: terms free for x (5.7) a=y,∃y(y<a)⊢∃y(y<y) a=y,∃z(z<a)⊢∃z(z<y), after renaming the premise Z, a and y both naming 0

Each counter-model makes the WRONG sequent’s premises true and its conclusion false, so, by the statement in the next subsection, no correct derivation reaches that conclusion: the side condition is not a fussy extra, it is what keeps the rule from leading from truth to falsehood. Each RIGHT step is legal, and its sequent has no counter-model, with one proviso. The RIGHT derivations of the rows “flag in no open assumption” and “x0 not in χ”, taken from Sections 5.4 and 5.6, use an “arith” line, which records an arithmetic fact and is not a rule. Those two sequents hold in every structure in which that fact (∀x(x>0→x+1>0), or ∀x(x>5→x+1>6)) is true, such as N or Z with the usual meanings, and not in every structure: read + as subtraction on Z, and ∀x(x>0→x+1>0) fails at 1. Section 7.3 (optional) shows the same thing from the other side: each side condition is used in exactly one case of the soundness proof.

7.2.6. From counter-models to non-derivability

A counter-model shows Γ⊭φ. The stalled searches asked something else: whether Γ⊢φ. The bridge is the same as in Chapter 4, where Theorem 4.7.2 turned a refuting row into a proof that no derivation exists (Corollary 4.7.3). For predicate logic it reads:

Soundness for predicate logic. If Γ⊢φ with the rules of Chapters 1 and 2 and the quantifier and equality rules of Sections 5.3 to 5.7, then Γ⊨φ in the sense of Definition 7.1.4. Consequently, a counter-model to Γ⊨φ shows Γ⊬φ.

This statement is not proved in this section. Its proof extends Chapter 4’s to the new rules, and it is the subject of Section 7.3, which is optional. The proof is where each side condition of the quantifier rules is used: the fresh-name conditions of ∀I and ∃E, and “free for” in ∀E, ∃I, and =E. A reader who skips Section 7.3 may take the statement on trust, as the rest of the book does; a reader who reads it will see why the side conditions are exactly as strict as they are.

With the statement, the examples above and the three pictures at the start of this section become non-derivability results. ∀y∃xR(x,y)⊬∃x∀yR(x,y): the converse search of Proposition 5.6.2 had to stall, and the two lines where it stalled, the blocked ∀I and the blocked close of the ∃E box, are not a lack of cleverness. Likewise the converse of Proposition 5.6.1, the converse of the ∀/∨ law, ∃xP(x)⊢P(c), and P(x0)⊢∀xP(x) have no derivations. And the same reasoning is the semantic side of Section 6.4: there, Example (The square function on the real line) showed that x2 on R is continuous and not uniformly continuous, so the arithmetic structure on R, with f read as squaring, is a counter-model to “continuous entails uniformly continuous”.

Quick check. Which row of the side-condition table does picture (C) belong to, if ∃xP(x)⊢P(c) is “derived” by an ∃E box with witness c?

Solution. None exactly: c is a constant, not a variable, so it cannot be the name of an ∃E box at all. With a variable x0 in its place, the box would end in P(x0), and the derivation would break the row “x0 not in χ”. Either way, picture (C) shows that no derivation exists.

Warning. A counter-model proves non-derivability; it never proves derivability, and a structure in which a sentence is true says nothing about whether the sentence is derivable. ∀x∃y(x<y) is true in (N,<), yet it is not derivable: it is false in ({1,2,3},<). To show Γ⊢φ, write a derivation.

What this certifies. Chapters 5 and 6 said, at every stall, that a counter-reading would settle the question and that Section 7.2 would explain why. Each of those readings is a structure, and the statement above turns each into a theorem:

None of them was used as a reason before now; each is now a proof that no derivation exists.

7.2.7. Three classes of sentences

Fix the symbols of arithmetic: the constant 0, the one-place function symbol S, the two-place function symbols + and ⋅, and the two-place predicate symbol <. A sentence in these symbols is

  • an instance of a tautology if its propositional skeleton (Definition 6.3.1) is a tautology (Definition 4.5.1);
  • valid if it is true in every structure for these symbols (⊨σ);
  • true in N if it is true in the structure (N;0,S,+,⋅,<), with S the successor, S(n)=n+1.

Each class lies inside the next, and neither inclusion is an equality.

Example (Three Classes of Sentences)

Place each sentence in the narrowest class it belongs to.

  • (a) ∀x(x<S(x))∨¬∀x(x<S(x)).
  • (b) ∀x(x=x).
  • (c) ∀x¬(S(x)=0).
  • (d) ∃x(S(x)=0).

Solution. (a) An instance of a tautology: its skeleton is p∨¬p.

(b) Valid, by (S2) and (S6): every element equals itself. Not an instance of a tautology: its skeleton is one letter, p.

(c) True in N: no successor is 0. Not valid: in the structure with D={a}, 0M=a, SM(a)=a (and +, ⋅, < read in any way), S(0)=0 holds.

(d) False in N, so in none of the three classes.

Why the inclusions hold: a valid sentence is true in N because N is one structure; an instance of a tautology whose different prime formulas have different letters (every sentence classified here) is valid because (S3)–(S5) compute a formula’s truth from the truth of the prime formulas its skeleton’s letters stand for, exactly as a truth table does (the first fold below gives the argument); that every instance is valid, including those where renamed prime formulas share a letter, is shown in the optional Section 7.3. The classes meet derivations as follows: an instance of a tautology is derivable (by TAUT, Proposition 6.3.1); a valid sentence need not be derivable by TAUT alone; and a sentence true in N but not valid is never derivable, by the statement of this section.

Diagram. Labels: (1), forall x\,(x = x), forall x\,neg (S(x) = 0), exists x\,(S(x) = 0), sentences of 0, S, +, cdot , <, true in nN, instances of\tautologies

The three classes, each inside the next. The point (1) is ∀x(x<S(x))∨¬∀x(x<S(x)); the other three points are labeled with their sentences.

Quick check. Classify ∀x(x<S(x))→(0<S(0)).

Solution. Valid: if ∀x(x<S(x)) holds in a structure, then by (S6) at d=0M so does 0<S(0), and (S5) makes the implication true; if it fails, (S5) makes the implication true anyway. Not an instance of a tautology: its skeleton is p→q.

Second readingWhy an instance of a tautology is valid

Let σ be a sentence whose skeleton is a tautology and in which different prime formulas get different letters, and fix a structure M and an assignment ℓ. Give each letter of the skeleton the truth value, under M and ℓ, of the prime formula it stands for. This is one row of the skeleton’s truth table. By induction on the skeleton, the skeleton’s value in that row is T exactly when M,ℓ⊨σ: at a letter this is how the row was chosen, and at ¬, ∧, ∨, →, ↔ the clauses (S3)–(S5) compute exactly as the clauses (V1)–(V6) of Definition 4.4.2 do. A tautology has value T in every row, so σ is satisfied in every structure under every assignment: it is valid.

When two different prime formulas share a letter (Definition 6.3.1 gives one letter to prime formulas that differ only by renaming bound variables), the same argument works, since the row above is well chosen only if the two formulas have the same truth value. They do, because renaming keeps meaning; the optional Section 7.3 proves this, and nothing in this section relies on it, since every sentence this section classifies gives different prime formulas different letters. The argument is about meaning and does not go through soundness.

Second readingA failed search proves nothing here, either

A stalled derivation search proves nothing, as Chapters 5 and 6 said at every stall. A stalled counter-model search proves nothing either: the counter-models may all be infinite (Exercise C1), or simply larger than the sizes tried. Chapter 4’s truth tables decided every propositional claim in finitely many rows (Proposition 4.6.1). For predicate logic, no mechanical procedure decides derivability: this is a theorem of Church and of Turing (1936), stated here without proof, and again in the optional Section 7.6. So the two searches are run side by side, and the reader’s judgment chooses which to push.

7.2.8. Extensionality: an axiom, not a law of logic

Write ∈ for a two-place predicate symbol. Section 5.7 derived that equal sets have the same members, ⊢∀x∀y(x=y→∀z(z∈x↔z∈y)) (Example (Equal Sets Have the Same Elements)), and read its converse, extensionality, ∀x∀y(∀z(z∈x↔z∈y)→x=y), in two dots with ∈ holding nowhere. That reading is a structure: D={a,b}, ∈M=∅. Every z is a member of neither a nor b, so a and b have the same members, and a≠b. By the statement of this section, extensionality is not derivable.

So extensionality is a fact about sets, not about logic: a theory of sets must take it as an axiom (Section 7.4 says what that means). The counter-model is not a strange set theory; it is a structure in which “∈” is read as a relation that holds nowhere.

Remark (Looking ahead). Number Systems: From N to R, Chapter 1 takes extensionality as the first axiom of its set theory, (Z1), for exactly this reason: no derivation could supply it.

7.2.9. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define a counter-model to Γ⊨φ.
  • (b) State the soundness statement of this section, and say where it is proved.
  • (c) True or false, with a reason: if no structure with at most five elements is a counter-model to Γ⊨φ, then Γ⊢φ.
  • (d) True or false, with a reason: a structure in which the sentence σ is true shows ⊢σ.
  • (e) Which step of the search for a counter-model comes first, and which kind of demand is met first?
  • (f) Give, in one sentence, the reason that an instance of a tautology whose different prime formulas have different letters, such as (a) of Example (Three Classes of Sentences), is valid.

Solution. (a) A structure M and an assignment ℓ with M,ℓ⊨Γ and M,ℓ⊭φ.

(b) If Γ⊢φ with the rules of Chapters 1, 2 and 5, then Γ⊨φ; so a counter-model shows Γ⊬φ. It is proved in the optional Section 7.3.

(c) False. The sentence σ of Exercise (C1: True in every finite model, used later) has no finite counter-model at all, and it is not derivable.

(d) False: a structure in which σ is true says nothing about derivability (the warning after the soundness statement). ∀x∃y(x<y) is true in (N,<) and not derivable.

(e) Writing the counterexample set with ¬ pushed inward comes first; existential demands are met before universal constraints are imposed.

(f) The clauses (S3)–(S5) compute truth in a structure from the truth of the prime formulas behind the skeleton’s letters exactly as a row does, and a tautology is true in every row.

Exercise (A2: Drill)

Each part takes a line or two. (a)–(c) give or judge a counter-model; (d) judges two infinite ones; (e) and (f) complete a structure; (g) and (h) expand over {a,b}; (i)–(k) classify a sentence in the symbols 0, S, +, ⋅, < as an instance of a tautology, valid but not an instance of a tautology, or true in N but not valid; (l) builds a counter-model.

  • (a) Give a counter-model to ∃x¬P(x)⊨¬∃xP(x).
  • (b) Is D={a}, PM={a} a counter-model to ∀xP(x)⊨∃xP(x)?
  • (c) Give a counter-model to ∀x(P(x)→Q(x))⊨∀x(Q(x)→P(x)).
  • (d) Is Z, with R(x,y) read as x<y, a counter-model to ∀y∃xR(x,y)⊨∃x∀yR(x,y)? And N, with R(x,y) read as x>y?
  • (e) D={a,b}, PM={a}. Choose QM so that the structure is a counter-model to ∀x(P(x)∨Q(x))⊨∀xQ(x).
  • (f) D={a,b}, and (a,b)∈RM. Add pairs to RM so that the structure is a counter-model to ∀x∃yR(x,y)⊨∃y∀xR(x,y).
  • (g) Expand ∀x∃yR(y,x) over {a,b}.
  • (h) Expand ∃x(P(x)∧∀yR(x,y)) over {a,b}.
  • (i) ∀x(x<x)→∀x(x<x).
  • (j) ∀x(0+x=x)→(0+0=0).
  • (k) ∀x∀y(x+y=y+x).
  • (l) Give a counter-model to ∀x(P(x)→Q(x)), ∃xQ(x)⊨∃xP(x).

Solution.

  • (a) D={a,b}, PM={a}: ¬P holds at b, and ∃xP(x) holds at a, so ¬∃xP(x) fails.

  • (b) No: both sentences are true there. And no structure is a counter-model, since domains are non-empty: if every element has P, some element does.

  • (c) D={a}, PM=∅, QM={a}: the premise holds since no element has P; the conclusion fails at a.

  • (d) Yes, both. In Z each y has y−1 below it, and nothing is below everything (nothing is below itself). In N each y has y+1 above it, and nothing is above everything (nothing is above itself).

  • (e) QM={b}: it must contain b, which lacks P, and omit a, to break the conclusion.

  • (f) Add (b,a) and nothing else: b needs an arrow out, (b,b) would give b an arrow from every element, and (a,a) together with (b,a) would do the same for a.

  • (g) (R(a,a)∨R(b,a))∧(R(a,b)∨R(b,b)).

  • (h) (P(a)∧R(a,a)∧R(a,b))∨(P(b)∧R(b,a)∧R(b,b)).

  • (i) An instance of a tautology: its skeleton is p→p.

  • (j) Valid, by (S6) at d=0M and (S5); not an instance of a tautology, since its skeleton is p→q.

  • (k) True in N, not valid: on D={a,b}, read x+y as “x” (and the other symbols in any way); then a+b=a and b+a=b.

  • (l) D={a}, PM=∅, QM={a}: the first premise holds since no element has P, the second at a, and the conclusion fails.

B. Practice

Exercise (B1: Three counter-models, used later)

Give a counter-model for each of the following, and check each premise and the conclusion against Definition 7.1.3.

  • (i) ∃xP(x)⊭∀xP(x).
  • (ii) ∀x(P(x)→Q(x))⊭∃xP(x)→∀xQ(x).
  • (iii) ⊭∃xP(x)→P(x). (Here x is free in the last P(x); the assignment is part of the answer.)

Solution. (i) Take D={a,b}, PM={a}. The premise holds by (S7) with d=a. The conclusion fails by (S6) at d=b, since b∉PM.

(ii) Take D={a,b}, PM=QM={a}. Premise: at d=a, P(x) and Q(x) are both satisfied, so P(x)→Q(x) is; at d=b, P(x) is not satisfied, so P(x)→Q(x) is, by (S5). Hence the premise holds by (S6). Conclusion: ∃xP(x) holds (d=a) and ∀xQ(x) fails (at d=b), so by (S5) the implication fails. In words: whatever has P has Q, and something has P; that does not make everything have Q.

(iii) Take D={a,b}, PM={a}, and an assignment with ℓ(x)=b. The hypothesis ∃xP(x) holds by (S7) with d=a; its x is bound, and the value ℓ(x) is overwritten. The conclusion P(x) has x free, with value ℓ(x)=b∉PM, so it fails. By (S5) the implication fails under ℓ. Under an assignment with ℓ(x)=a the implication holds; so the formula is satisfied under some assignments and not others, and a counter-model must name ℓ. Now take φ and ψ both to be P(x). The formula ∀x(P(x)→P(x)) is satisfied in every structure under every assignment, since P(x)→P(x) is satisfied at every d by (S5) and (S6). So this structure, with ℓ, is a counter-model to ∀x(P(x)→P(x))⊨∃xP(x)→P(x), and by the soundness statement of this section that sequent is not derivable. This is why the passage law ∀x(φ→ψ)⊣⊢∃xφ→ψ of Proposition 6.2.7 needs x not free in ψ.

Exercise (B2: Prove it or break it)

For each claim Γ⊨φ, either prove it by meaning (clause by clause or condensed) or give a counter-model, and state what follows about Γ⊢φ. For (a) and (c), if the claim holds, also give a derivation.

  • (a) ∀x(P(x)→Q(x)), ∀x¬Q(x)⊨∀x¬P(x).
  • (b) ∀x(P(x)→Q(x)), ∃x¬P(x)⊨∃x¬Q(x).
  • (c) ∃x∀yR(x,y)⊨∃xR(x,x).
  • (d) ∀x∃yR(x,y)⊨∀x∃yR(y,x).
  • (e) ∀x(P(x)→∃yQ(y))⊨∃xP(x)→∃yQ(y).
  • (f) ∃xP(x)→∀yQ(y)⊨∀x(P(x)→Q(x)).
  • (g) ∀x(P(x)∨Q(x)), ∃x¬P(x)⊨∀xQ(x).
  • (h) ∀x(P(x)∨Q(x)), ∀x¬P(x)⊨∀xQ(x).

Solution. (a) Holds. If some d were in PM, then d∈QM by the first premise, against the second; so no d is in PM. A derivation:

1∀x(P(x)→Q(x))
2∀x¬Q(x)
3x0P(x0)asm, for ¬I
4P(x0)→Q(x0)∀E 1
5Q(x0)→E 4, 3
6¬Q(x0)∀E 2
7⊥¬E 5, 6
8¬P(x0)¬I 3–7
9∀x¬P(x)∀I 3–8

So Γ⊢φ.

(b) Fails. D={a}, PM=∅, QM={a}: the first premise holds since its hypothesis is false at a, the second holds at a, and the conclusion fails since a∈QM. So Γ⊬φ, by the soundness statement.

(c) Holds. The premise’s witness d has (d,e)∈RM for every e, in particular for e=d. A derivation:

1∃x∀yR(x,y)
2x0∀yR(x0,y)asm, for ∃E
3R(x0,x0)∀E 2
4∃xR(x,x)∃I 3
5∃xR(x,x)∃E 1, 2–4

(d) Fails. D={a,b}, RM={(a,b),(b,b)}: each element has an arrow out, and a has none in. So Γ⊬φ.

(e) Holds. If ∃xP(x) is true, with witness d, the premise at d gives ∃yQ(y); if it is false, the conclusion is true by (S5).

(f) Holds. If d∈PM, then ∃xP(x) holds, so ∀yQ(y) holds by the premise, so d∈QM.

(g) Fails. D={a,b}, PM={a}, QM={b}: every element is in PM or QM, b∉PM, and a∉QM. So Γ⊬φ.

(h) Holds. Each d is in PM or QM, and not in PM; so it is in QM.

A proof by meaning shows Γ⊨φ, not Γ⊢φ. The derivations of (a) and (c) show ⊢; for (e), (f) and (h) the matching derivations exist but are not asked for (each is a short exercise with Chapter 5’s rules). The pairs (a) and (b), and (g) and (h), are look-alikes; so are (c) and (d), with opposite prefixes: an ∃∀ premise gives a loop, while a ∀∃ premise does not even give every element an incoming arrow.

Marking scheme. (10 points)

  • 8: 1 per part (a)–(h): the correct verdict with its justification, either a proof by meaning that covers every premise, or a counter-model with the premises checked true and the conclusion checked false. A bare verdict scores 0.
  • 1: the two derivations of (a) and (c), checked rule by rule (both needed).
  • 1: stating, at a failing claim, that the counter-model gives Γ⊬φ by the soundness statement.

Fatal errors (0 for that part): a “counter-model” that falsifies a premise; a proof by meaning offered as a derivation; a verdict given without a justification.

Exercise (B3: The converse from Section 5.4)

Exercise (B2: Contraposition under a quantifier, used later) derived ∀x(P(x)→Q(x))⊢∀x¬Q(x)→∀x¬P(x), and its search for the converse stalled; this section settled that converse above, in “What this certifies”, with an infinite structure. Find a counter-model to ∀x¬Q(x)→∀x¬P(x)⊨∀x(P(x)→Q(x)) with exactly two elements, working backwards from the conclusion: say which element breaks the conclusion and how the premise is made true most cheaply.

Solution. Work backwards. The conclusion fails when some d has d∈PM and d∉QM. The premise is cheapest to make true through a false hypothesis: make ∀x¬Q(x) false by putting some element in QM. Take D={a,b}, PM={a}, QM={b}.

Premise: ∀x¬Q(x) fails at d=b, since b∈QM; so the implication holds by (S5). Conclusion: at d=a, a∈PM and a∉QM, so P(x)→Q(x) fails under ℓ[x↦a], and (S6) fails. By the soundness statement of this section, the converse is not derivable, and the stalled search could not have succeeded.

Exercise (B4: Each side condition earns its place)

Each derivation below breaks a side condition. For (a)–(c), name the line that breaks a side condition and the condition it breaks, give a counter-model to the sequent of its last line, and, where you can, repair the derivation so that it reaches a correct conclusion. For (d), say whether the conclusion is true (follows from the premise) and whether the derivation proves it.

(a)

1x0P(x0)asm, for →I
2x0P(x0)R 1
3∀xP(x)∀I 2–2
4P(x0)→∀xP(x)→I 1–3
5∀y(P(y)→∀xP(x))∀I 1–4

(b)

1∀y(y=y)
2∃x∀y(x=y)∃I 1

(c)

1∃xP(x)
2∀x(P(x)→Q(x))
3x0P(x0)asm, for ∃E
4P(x0)→Q(x0)∀E 2
5Q(x0)→E 4, 3
6Q(x0)∃E 1, 3–5

(d)

1P(x0)∧∀xP(x)
2x0P(x0)∧E 1
3∀xP(x)∀I 2–2

Solution. (a) Line 3: x0 appears in the assumption on line 1, which is open at line 3. Line 5 is a legal ∀I: no premise, no open assumption, and x0 is not in the conclusion. (This is the same-name nesting of Section 5.4’s fold “The same error, as a false sentence”, read there over Z with x>0; here P is left open.) Counter-model to ⊨∀y(P(y)→∀xP(x)): D={a,b}, PM={a}. At y=a, P(a) holds and ∀xP(x) fails at b. No derivation reaches this conclusion: the counter-model shows it. A repair to a correct conclusion drops the inner box and uses ∃I in place of the illegal ∀I:

1x0P(x0)asm, for →I
2∃xP(x)∃I 1
3P(x0)→∃xP(x)→I 1–2
4∀y(P(y)→∃xP(x))∀I 1–3

This is the RIGHT entry of the second row of the side-condition table, generalized.

(b) Line 2: in φ=∀y(x=y) the term y is not free for x, since it would be captured by ∀y. Counter-model: any domain with two elements; the premise holds, and no element equals both. Repairs: ∃x∀y(y=y) by ∃I from line 1, with x not in φ; or z=z by ∀E at z, then ∃x(x=z) by ∃I.

(c) Line 6: x0 appears in χ=Q(x0). The last line has x0 free, so the counter-model needs an assignment: D={a,b}, PM=QM={a}, ℓ(x0)=b. Both premises hold, and Q(x0) fails. Repair: forget the witness before the box closes.

1∃xP(x)
2∀x(P(x)→Q(x))
3x0P(x0)asm, for ∃E
4P(x0)→Q(x0)∀E 2
5Q(x0)→E 4, 3
6∃yQ(y)∃I 5
7∃yQ(y)∃E 1, 3–6

(d) The conclusion is true: it follows from the premise, and is derived correctly in one line, ∀xP(x) by ∧E from line 1; so the sequent has no counter-model. The derivation does not prove it: line 3 breaks “the flag appears in no premise”, since x0 is in line 1. The counterexample is to the step, not to the conclusion: the same step takes P(x0) to ∀xP(x), and Z, with P read as “even” and ℓ(x0)=2, makes P(x0) true and ∀xP(x) false (the second row of the side-condition table).

Marking scheme. (10 points)

  • 6: (a)–(c), 1 each for the line with its condition, and 1 each for a checked counter-model.
  • 1: the repairs of (a)–(c), and the remark that (a)’s original conclusion is unreachable.
  • 3: (d): the conclusion judged true, with the one-line derivation (1); the illegal line and its condition named (1); a counter-model to the step pattern rather than to the conclusion (1).

Fatal errors (0 for the step): in (c), a counter-model with the assignment omitted, although the last line has a free variable; in (d), a claimed counter-model to the conclusion.

C. Going deeper

Exercise (C1: True in every finite model, used later)

Let f be a one-place function symbol, and let σ be the sentence ∀x∀y(f(x)=f(y)→x=y)→∀y∃x(f(x)=y), “if f is injective, then f is surjective”.

  • (a) Prove that σ is true in every structure whose domain is finite.
  • (b) Give a structure with an infinite domain in which σ is false.
  • (c) Deduce that σ is not derivable, although no finite structure is a counter-model.

Solution (Hint 1). For (a), suppose fM is injective on a finite D with n elements, and count the elements of its image.

Solution (Hint 2). For (b), look for an operation on N that never repeats a value but misses a value.

Solution. (a) Let M have a finite domain D with n≥1 elements. If the hypothesis of σ is false in M, then σ is true by (S5). So suppose it is true: by (S6), (S5) and (S2), for all d,e∈D, fM(d)=fM(e) implies d=e; that is, fM takes different values at different elements. Then the n elements of D have n different values, so the set of values {fM(d):d∈D} is a subset of D with n elements. A subset of an n-element set with n elements is the whole set (a counting fact from school, proved in Sets, Relations, and Cardinality, Chapter 3). So every e∈D is fM(d) for some d, which is the conclusion of σ by (S6), (S7) and (S2). Hence σ is true in M.

(b) Take D=N and fM(d)=d+1. The hypothesis holds: d+1=e+1 gives d=e. The conclusion fails at y=0: there is no d∈N with d+1=0, since d≥0 gives d+1≥1. So σ is false in M.

(c) The structure of (b) is a counter-model to ⊨σ (with Γ empty). By the soundness statement of this section, σ is not derivable. By (a), no finite structure could have shown this: a search for counter-models that lists finite structures of size 1, 2, 3, … would never stop.

Marking scheme. (10 points)

  • 1: (a) disposes of the case where the hypothesis of σ is false, by the clause for →.
  • 3: (a) reads the hypothesis as injectivity of fM and uses finiteness to get surjectivity, naming the counting fact.
  • 3: (b) a structure with infinite domain, with the hypothesis checked and the conclusion refuted at a named element.
  • 3: (c) concludes non-derivability through soundness and says why finite structures could not have done it.

Fatal errors (0 for the step): in (b), a “counter-model” in which fM is not injective; in (a), an argument that never uses finiteness.

Exercise (C2: A sentence with no finite model, used later)

Let τ be the conjunction of the three sentences of the text saying that < is a strict order with no largest element: ∀x¬(x<x) ∧ ∀x∀y∀z((x<y∧y<z)→x<z) ∧ ∀x∃y(x<y). Prove that every model of τ has an infinite domain. Where does your proof use that domains are non-empty?

Solution (Hint 1). Start from one element and keep climbing with the third conjunct.

Solution (Hint 2). Prove by induction on k that there are elements d1<d2<⋯<dk of D with di<dj whenever i<j.

Solution. Let M be a model of τ, with domain D, and write d<e for (d,e)∈<M. We prove, for every k≥1, the statement A(k): there are elements d1,…,dk of D with di<dj whenever 1≤i<j≤k. We use Axiom 4.2.1, applied to the property A(m+1) of m∈N, so that the base case is A(1).

Base. D is non-empty (Definition 7.1.1, (M1)), so there is some d1∈D, and A(1) holds, with no pairs i<j to check. This is the one place the proof uses non-emptiness. If an empty domain were allowed, with “for every d∈∅” read as having nothing to check, all three conjuncts would hold in it (each begins with ∀), and it has no elements at all: the statement “every model is infinite” would fail.

Step. Suppose d1,…,dk are as in A(k). By the third conjunct and (S6), (S7), there is dk+1∈D with dk<dk+1. For i<k, we have di<dk by A(k), and then di<dk+1 by the second conjunct (transitivity). So A(k+1) holds.

Now the elements d1,…,dk are all different: if di=dj with i<j, then di<dj says di<di, which the first conjunct forbids. So for every k≥1, the domain contains k different elements. A finite set with n elements does not contain n+1 different elements, so D is not finite. Since (N,<) is a model of τ (as the text checked), τ has models, and all of them are infinite.

Marking scheme. (10 points)

  • 2: names the non-empty domain as the start of the construction, and says what fails without it.
  • 3: an induction producing, for every k, a chain of k elements, using the third conjunct for the step.
  • 2: uses transitivity to keep the whole chain increasing, not only neighbors.
  • 3: uses irreflexivity to show the elements are different, and concludes that D is infinite.

A second route: a proof that every non-empty finite subset of D has a <-maximal element (induction on its size, with irreflexivity in the base and transitivity in the step), applied to D, which is non-empty, and contradicted by the third conjunct, earns 2 for using D non-empty, 3 for the induction, 2 for transitivity in the step, and 3 for irreflexivity plus the contradiction with the third conjunct.

Fatal errors (0 for the step): building the chain without showing its elements are distinct; an “infinite chain” asserted without an induction or a recursion.

Exercise (C3: Exit check: formalize, negate, decide)

Work over the domain R, with n∈Z>0 as a bound as in Section 5.1, and 1/n as a term.

  • (a) Formalize, with bounded quantifiers: “for every ε>0 there is N∈Z>0 such that 1/n<ε for every n∈Z>0 with n≥N.”
  • (b) Formalize the sentence obtained from (a) by moving “there is N∈Z>0” to the front.
  • (c) Negate each of (a) and (b) into positive form: no ¬ left in front of a quantifier or an implication, and ¬(s<t) written as s≥t.
  • (d) Decide which of (a) and (b) is true in R. For the true sentence give a proof, saying what each chosen number depends on; for the false one, prove its negation, giving the witnesses it asks for.

You may use that for every real number there is a natural number larger than it.

Solution. A remark on the term 1/n. In the structure R, the symbol / must be a function on all of R2 (Definition 7.1.1, (M3)); give x/0 a value for every x∈R, say x/0:=0. The bound n∈Z>0 keeps n≥1, so those values are never used.

(a) ∀ε>0 ∃N∈Z>0 ∀n∈Z>0 (n≥N→1/n<ε).

(b) ∃N∈Z>0 ∀ε>0 ∀n∈Z>0 (n≥N→1/n<ε).

(c) Push ¬ inward one quantifier at a time, keeping each bound (Proposition 6.2.3), then negate the implication (Proposition 6.2.2): ¬(a):∃ε>0 ∀N∈Z>0 ∃n∈Z>0 (n≥N∧1/n≥ε),¬(b):∀N∈Z>0 ∃ε>0 ∃n∈Z>0 (n≥N∧1/n≥ε).

(d) (a) is true. Let ε>0. Choose a natural number N with N>1/ε, by the fact allowed in the problem; since 1/ε>0, N∈Z>0, and N depends on ε. Let n∈Z>0 with n≥N. Then n≥N>1/ε>0, and multiplying n>1/ε by the positive number ε/n gives ε>1/n. Since n was arbitrary, and then ε, (a) holds.

(b) is false; its negation is true. Let N∈Z>0. Take ε=1/N, which is positive, and n=N, which is in Z>0 with n≥N. Then 1/n=1/N≥1/N=ε. Both witnesses depend on N, as the order ∀N ∃ε ∃n allows. Since N was arbitrary, ¬(b) holds, so (b) is false. In words: no single N works for every ε, because ε=1/N defeats that N.

The two sentences differ only in the order of ∀ε and ∃N. In (a) the N is chosen after ε and may depend on it; in (b) it must be chosen first, which is the swap of Example (The swap of ∃ and ∀) in an analysis setting.

Marking scheme. (10 points)

  • 2: both formalizations, with the bounds ε>0, N∈Z>0, n∈Z>0 attached to the right quantifiers and → under the ∀n.
  • 3: both negations in positive form, with every bound kept, the quantifier order of each preserved, and ∧ under the ∃n.
  • 2: verdict “true” for (a), with a proof in which N is chosen after ε and said to depend on it.
  • 3: verdict “false” for (b), with ε and n given as functions of N and the three facts ε>0, n≥N, 1/n≥ε checked.

Fatal errors (0 for the step): in the negation of (b), ε chosen before N (a single ε for all N); a bound negated instead of the quantifier (∃ε≤0, or ∃n<N).

Exercise (C4: The least size of a counter-model)

For each claim, find the least size of a counter-model, and prove by expansion that no smaller one exists.

  • (a) ∃xP(x), ∃xQ(x), ∃xR(x)⊨∃x(P(x)∧Q(x))∨∃x(Q(x)∧R(x))∨∃x(P(x)∧R(x)).
  • (b) ∀x∃yR(x,y), ∀x¬R(x,x)⊨∃x∃y(R(x,y)∧R(y,x)).
  • (c) ∃xP(x), ∃x¬P(x), ∃xQ(x), ∃x¬Q(x)⊨∃x(P(x)∧Q(x))∨∃x(¬P(x)∧¬Q(x)).

Solution (Hint). In each part, the premises demand witnesses. Count how many of them can share an element before the conclusion becomes true.

Solution. (a) Least size 3: D={a,b,c}, PM={a}, QM={b}, RM={c}. The premises hold with the witnesses a, b, c, and no element has two of the three predicates, so each disjunct of the conclusion fails. With at most two elements, the three witnesses for P, Q, R lie among two elements, so one element is a witness for two of them, and the matching disjunct holds. (Over {a,b}: the premises expand to P(a)∨P(b), Q(a)∨Q(b), R(a)∨R(b); of the three letters chosen, two fall on the same element.)

(b) Least size 3: D={a,b,c}, RM={(a,b),(b,c),(c,a)}, a three-cycle: every element has an arrow out, none has a loop, and no two elements have arrows both ways. Size 1: the first premise expands to R(a,a), against the second. Size 2: the second premise gives ¬R(a,a)∧¬R(b,b), so the first, (R(a,a)∨R(a,b))∧(R(b,a)∨R(b,b)), forces R(a,b) and R(b,a), and the conclusion holds at x=a, y=b.

(c) Least size 2: D={a,b}, PM={a}, QM={b}: each element has exactly one of P, Q, so neither disjunct of the conclusion holds. Size 1: ∃xP(x) and ∃x¬P(x) expand to P(a) and ¬P(a), which cannot both hold.

Marking scheme. (10 points)

  • 4: (a): the counter-model checked (2); the counting argument for size 2 (2).
  • 4: (b): the counter-model (1); size 1 (1); size 2 by expansion (2).
  • 2: (c).

Fatal errors (0 for the step): a size claim without the proof that every smaller structure fails.