4.5  Tautologies, Entailment and Equivalence

Section 4.4 gave every formula a value under every valuation, and collected the values in a truth table. One formula at a time, though, is not what Chapters 1 and 2 were about. They were about sequents: premises on the left, a conclusion on the right, and the claim that the conclusion can be derived. This section defines the counterpart of a sequent in terms of truth, Γ⊨ψ: every valuation that makes the premises true makes the conclusion true. On the way it names the formulas that are true in every row, and the pairs of formulas that are true in the same rows. It then proves two lemmas about changing a formula, by replacing one part or by putting formulas in for its atoms, that later sections use, and ends by sorting the section’s questions by whether one row or every row settles them, and by setting ⊨ beside ⊢.

4.5.1. Tautologies and contradictions

Some tables of Section 4.4 had a last column made entirely of T: the formula ((p→q)∧p)→q of Example (The truth table of modus ponens), and the biconditional of Example (An implication and its contrapositive). Their truth does not depend on the situation. One table in Exercise A1 there, that of p↔¬p, was all F. These extremes deserve names.

A tautology is true for reasons of form alone: whatever the atoms mean, it comes out true.

Definition 4.5.1 (Tautology and Contradiction)

A formula φ is a tautology if v(φ)=T for every valuation v. It is a contradiction if v(φ)=F for every valuation v.

By Lemma 4.4.1, the value of φ under a valuation depends only on the row the valuation gives to the atoms of φ. So φ is a tautology exactly when its truth table has T in every row, and a contradiction exactly when it has F in every row. Infinitely many valuations, finitely many rows to check.

Examples, simplest first.

  • p→p and p∨¬p are tautologies: in the row p=T both are true, and in the row p=F, p→p has a false hypothesis and ¬p is true.
  • p∧¬p and p↔¬p are contradictions: in each row one of p, ¬p is false, and the two sides of the biconditional differ.
  • Nonexample. p→q is neither: it is T in the row TT and F in the row TF. Most formulas are like this. Changing one symbol of the tautology p→p, to get p→q, loses the property: the rows in which the hypothesis and conclusion differ are no longer excluded by their being the same atom. A formula that is true in some rows and false in others, such as p→q, is called contingent: every formula is a tautology, a contradiction, or contingent.
Second readingFormulas with no atoms

A formula with no atoms, such as ⊥ or ¬⊥, has the same value under every valuation (its table has one row). So it is either a contradiction, like ⊥, or a tautology, like ¬⊥. This degenerate case is the only one in which “not a tautology” forces “a contradiction”.

Lists of formulas need a word too, because a list of premises can fail to be true together even when each premise alone can be true.

Definition 4.5.2 (Satisfiable)

A formula φ is satisfiable if there is a valuation v with v(φ)=T. A list of formulas Γ=φ1,…,φn, where n≥0, is satisfiable if there is a valuation that makes every φi true. A formula or list that is not satisfiable is unsatisfiable.

In words: a formula is satisfiable if some row makes it true, and a list is satisfiable if some single row makes all its members true at once. So a formula is unsatisfiable exactly when it is a contradiction. The empty list (n=0) is satisfiable: every valuation makes all of its members true, since it has none to check.

The list p,¬p is unsatisfiable, although each of its members is satisfiable: a row making p true makes ¬p false. Satisfiability of a list is about a common row, not about each formula separately. And the list p→q, q→r, r→¬p is satisfiable, by the row with p false and q, r true (the first two have true conclusions, and the third has conclusion ¬p, which is true); in fact p is false in every row that makes all three true.

Tautologies and unsatisfiable formulas are two sides of one coin. For every formula ψ, ψ is a tautology⟺¬ψ is unsatisfiable. Indeed, by (V2) of Definition 4.4.2, v(¬ψ)=T exactly when v(ψ)=F. So “no valuation makes ¬ψ true” says “no valuation makes ψ false”, which is “every valuation makes ψ true”. Sections 4.6 and 4.9 use it to pass between the two kinds of question.

Remark. Satisfiable and consistent. Section 3.2 called a list Γ inconsistent if Γ⊢⊥ (Definition 3.2.1), and consistent otherwise: a word about derivations. Satisfiable is its twin about truth: some row makes every member of the list true. Nothing yet connects the two words. Section 4.7 proves that a satisfiable list is consistent, and Section 4.8 the converse; until then we keep them apart. The counterexample set lives in both worlds: Γ⊢ψ exactly when Γ,¬ψ is inconsistent (Proposition 3.2.2 (b)), and Γ⊨ψ exactly when Γ,¬ψ is unsatisfiable (below).

Warning. “Not a tautology” does not mean “a contradiction”. The formula p→q is neither: some rows make it true and some false. To show a formula is not a tautology, one row making it false is enough; to show it is a contradiction, every row must make it false.

4.5.2. Semantic entailment

Now the counterpart of a sequent. A derivation from premises Γ to a conclusion ψ is a promise that ψ follows from Γ. In terms of truth, “follows” should mean: no situation makes the premises true and the conclusion false. We want to prove, in Sections 4.7 and 4.8, that the rules of Chapters 1 and 2 derive exactly the sequents that pass this test; for that we need a precise name for the test.

An argument is valid when its conclusion is true in every row in which all its premises are true.

Definition 4.5.3 (Semantic Entailment)

Let Γ=φ1,…,φn be a list of formulas, where n≥0, and let ψ be a formula. We say Γ semantically entails ψ, and write Γ⊨ψ, if every valuation that makes all of φ1,…,φn true also makes ψ true. We then also call the argument from Γ to ψ valid. We write φ1,…,φn⊨ψ for Γ⊨ψ, and ⊨ψ when Γ is empty. If Γ⊨ψ fails, we write Γ⊭ψ, and a valuation that makes every formula of Γ true and ψ false is a refuting valuation, or refuting row.

Clause by clause. “Every valuation”: the condition is checked in all situations, not in the actual one; a valid argument cannot be spoiled by what the atoms happen to mean. “That makes all of φ1,…,φn true”: rows in which some premise is false are ignored, whatever the conclusion does there. “Also makes ψ true”: in the remaining rows, the conclusion must hold. In symbols, for every valuation v, (v(φ1)=T and … and v(φn)=T) ⇒ v(ψ)=T. And Γ⊭ψ says: there is a valuation making every premise true and the conclusion false. One refuting row is enough.

Checking it. By Lemma 4.4.1, whether a valuation makes the premises and the conclusion true depends only on its row on the atoms occurring in Γ and ψ. So Γ⊨ψ can be decided by one truth table on those atoms (Definition 4.4.3 allows extra atoms in the list): find the rows in which every premise is T, and look at the conclusion there.

First examples. Row 1 of Example (The truth table of modus ponens) is the only row making p→q and p true, and q is true there, so p→q, p⊨q. By Example (An implication and its contrapositive), p→q⊨¬q→¬p and ¬q→¬p⊨p→q, since the two columns are equal.

The empty list. When Γ is empty, every valuation makes “all of Γ” true, so ⊨ψ says that every valuation makes ψ true: ⊨ψ holds exactly when ψ is a tautology.

Unsatisfiable premises. If Γ is unsatisfiable, no valuation makes all of Γ true, so the condition has no row to check and holds: Γ⊨ψ for every formula ψ. For example p,¬p⊨q and ⊥⊨q. This is the table’s version of Proposition 2.1.1, P,¬P⊢Q, and of ⊥E.

More premises. If Γ⊨ψ, and Δ is a list containing every formula of Γ (and perhaps others), then Δ⊨ψ: a valuation making all of Δ true makes all of Γ true, and so makes ψ true. Adding premises never destroys an entailment. In the same way, the order of the premises and repetitions among them do not matter: only which formulas occur in the list does.

Second readingThe bookkeeping of entailment

Four facts about ⊨ need nothing but the definition. Reflexivity: Γ⊨φ whenever φ is a member of Γ, since a row making all of Γ true makes φ true. Weakening: adding premises keeps an entailment, as just shown. Order and repetition: rearranging Γ, or repeating a member, changes nothing. Cut: if Γ⊨φ and Γ,φ⊨ψ, then Γ⊨ψ. Indeed, let a row make every member of Γ true. By the first entailment it makes φ true, so it makes every member of Γ,φ true, and by the second it makes ψ true. Section 2.3 proved weakening and cut for ⊢ (Lemma 2.3.3) by pasting derivations, and its weakening, which asks only that every member of Γ be a member of Δ, covers order and repetition; reflexivity for ⊢ is the derivation whose only line is the premise φ. Here each fact is one line about rows. Section 4.8 sets the two lists side by side.

A test by satisfiability. Finally, for every list Γ and formula ψ, Γ⊨ψ⟺the list Γ,¬ψ is unsatisfiable. Both sides say that no valuation makes every formula of Γ true and ψ false, because v(¬ψ)=T exactly when v(ψ)=F. With Γ empty this is the equivalence between tautologies and unsatisfiable negations above.

The list Γ,¬ψ is the counterexample set of the claim (Definition 1.1.3): an argument is valid exactly when its counterexample set cannot be made true by any row.

Rows as regions. A table on p and q has four rows, and they can be drawn as the four regions of a picture.

Diagram. Labels: all rows, p, q, TF, TT, FT, FF

Each row of the table on p,q is a region. A formula marks the rows where it is true: p∧q the lens, p∨q both circles, ¬p everything outside p’s circle. Γ⊨ψ says that the region where all of Γ is true lies inside the region of ψ: p∧q⊨p∨q.

Equivalent formulas mark the same region, a tautology marks the whole rectangle, and an unsatisfiable list marks nothing in common.

Quick check. Does p∧q⊨p∨r hold? Does p∨r⊨p∧q?

Solution. The first holds: a row making p∧q true makes p true, so p∨r is true. The second fails, for instance at p=F, r=T (any q), which makes p∨r true and p∧q false.

Example (Affirming the consequent is not valid)

Show that p→q, q⊭p.

Solution. We need one row making both premises true and the conclusion false. The conclusion p must be F, and the premise q must be T. In the row p=F, q=T, the premise p→q is T, since its hypothesis is false. So this row makes p→q and q true and p false: it is a refuting row.

The pattern is the one of Section 1.3, “from φ→ψ and ψ, infer φ”, which is not an instance of →E. Section 1.1’s Quick check gave the row a face: with P: “n is divisible by 4” and Q: “n is even”, at n=2 the premises P→Q and Q are true and P is false. It is also the step that would repair Argument B of Section 1.1: from “if n is even, then n2 is even” and “n2 is even”, conclude “n is even”. The conclusion of that instance happens to be true for every integer n, as Argument A proves; the refuting row shows that the form does not guarantee it, so the step proves nothing. Section 4.7 upgrades this row from “not valid” to “not derivable by any derivation”.

A valid argument with several premises is checked in the same way, and working backwards from F often settles it without a table.

Example (Two cases, two conclusions)

Show that p∨q, p→r, q→s⊨r∨s.

Solution. Suppose a valuation v makes all three premises true and the conclusion false; we derive a contradiction. Since r∨s is F, both r and s are F (V4). Since p→r is T and r is F, the hypothesis p is F (V5). In the same way q→s forces q to be F. But then p∨q is F, contradicting the first premise. So no refuting valuation exists, and the entailment holds.

The search replaced a table of 24=16 rows by four forced steps. The entailment is the table’s picture of a proof by cases with ∨E: in the case p, the second premise gives r, and ∨I gives r∨s; in the case q, the third gives s, and ∨I again.

Changing the grouping of a formula can change what it entails.

Example (One grouping entails the other, not conversely)

Decide whether (p→q)→r⊨p→(q→r), and whether p→(q→r)⊨(p→q)→r.

Solution. The first holds. Suppose a valuation makes (p→q)→r true and p→(q→r) false. The latter forces p=T and q→r false, so q=T and r=F. Then p→q is T, and (p→q)→r has a true hypothesis and a false conclusion, so it is F, a contradiction.

The second fails. Take p=F and r=F, with q either value. Then p→(q→r) is T, since its hypothesis is false. But p→q is T for the same reason, so (p→q)→r is T→F, which is F. These two rows are refuting rows.

So the two groupings are not interchangeable, which is why Chapter 1 fixed a convention (→ groups to the right) and why the convention matters.

Warning. ⊨ is not →. The formula φ→ψ is a formula: it has a value in each row and can be a part of larger formulas. The statement φ⊨ψ is not a formula at all. It is a claim about two formulas, true or false once and for all, like φ⊢ψ. They are related (Exercise B3 below asks you to prove that φ⊨ψ holds exactly when φ→ψ is a tautology), but writing p⊨q⊨r, or ¬(p⊨q) inside a formula, mixes the two levels and means nothing.

Quick check. Is p,¬p⊨q? Is p→q, ¬p⊨¬q?

Solution. The first holds: the list p,¬p is unsatisfiable, so there is no row to check. The second fails: the row p=F, q=T makes p→q true (false hypothesis) and ¬p true, and ¬q false. It is the pattern “denying the hypothesis”, the mirror image of affirming the consequent.

4.5.3. Semantic equivalence

Two formulas can be different strings and still say the same thing in every situation, as p→q and ¬q→¬p did in Example (An implication and its contrapositive). Chapter 2 had a word for formulas that derive each other, provable equivalence (Definition 2.4.2). Here is the counterpart in terms of truth.

Two formulas are equivalent when they have the same truth table.

Definition 4.5.4 (Semantic Equivalence)

Formulas φ and ψ are semantically equivalent, written φ≡ψ, if φ⊨ψ and ψ⊨φ.

In words, each entails the other. Equivalently, v(φ)=v(ψ) for every valuation v. Indeed, if φ≡ψ and v(φ)=T, then v(ψ)=T by φ⊨ψ; if v(φ)=F, then v(ψ) cannot be T, since ψ⊨φ would make v(φ)=T. The converse is plain. By (V6) of Definition 4.4.2, “v(φ)=v(ψ) for every v” says that φ↔ψ is true under every v, so φ≡ψ⟺⊨φ↔ψ. From “same value under every valuation” it follows at once that ≡ is reflexive, symmetric, and transitive: φ≡φ; if φ≡ψ, then ψ≡φ; if φ≡ψ and ψ≡χ, then φ≡χ.

Examples: p∧q≡q∧p (the clause (V3) does not care about the order); p≡¬¬p (two flips); p∨¬p≡¬⊥ (both are true under every valuation). The degenerate case: any two tautologies are equivalent, and so are any two contradictions. Nonexample: p∧q and p are not equivalent. One direction holds, p∧q⊨p, but the other fails in the row p=T, q=F. Entailment in one direction is not equivalence. Nor is equivalence identity: p∧q and q∧p are different formulas, with different parse trees, and →E treats them as different (Section 1.3).

The equivalences used most often are collected below. They are stated for arbitrary formulas φ,ψ,χ, not just atoms, since Section 4.9 applies them to compound formulas.

Proposition 4.5.1 (Standard Equivalences)

For all formulas φ, ψ and χ:

  • (a) (contrapositive) φ→ψ≡¬ψ→¬φ;
  • (b) (De Morgan) ¬(φ∧ψ)≡¬φ∨¬ψ and ¬(φ∨ψ)≡¬φ∧¬ψ;
  • (c) (implication as a disjunction) φ→ψ≡¬φ∨ψ;
  • (d) (double negation) ¬¬φ≡φ;
  • (e) (biconditional) φ↔ψ≡(φ→ψ)∧(ψ→φ);
  • (f) (commutativity) φ∧ψ≡ψ∧φ and φ∨ψ≡ψ∨φ;
  • (g) (distributivity) φ∧(ψ∨χ)≡(φ∧ψ)∨(φ∧χ) and φ∨(ψ∧χ)≡(φ∨ψ)∧(φ∨χ);
  • (h) (associativity) (φ∧ψ)∧χ≡φ∧(ψ∧χ) and (φ∨ψ)∨χ≡φ∨(ψ∨χ).

Idea. For atoms these are truth-table checks. For arbitrary formulas the same tables work, with φ,ψ,χ in the place of atoms: under a fixed valuation, each of φ,ψ,χ has some value, and both sides are computed from those values by the clauses (V2)–(V6), exactly as in a table whose first columns are φ,ψ,χ.

Proof. Fix a valuation v, and let a=v(φ), b=v(ψ), c=v(χ). Each side of each equivalence is built from φ,ψ,χ by connectives, so by (V2)–(V6) of Definition 4.4.2 its value under v is computed from a,b,c by the clauses of those connectives. The combination (a,b), or (a,b,c), is one row of the tables below, whose first columns list all 4 (or 8) combinations. In each table the columns of the two sides of each equivalence agree in every row, as the reader can check column by column. Hence both sides have the same value under v, and since v was arbitrary, they are equivalent by the paraphrase of Definition 4.5.4.

Parts (a), (b), (c), and (e): φψφ→ψ¬ψ→¬φ¬φ∨ψ(φ→ψ)∧(ψ→φ)TTTTTTTFFFFFFTTTTFFFTTTT The first three formula columns agree, which gives (a) and (c). The last agrees with the column of φ↔ψ in the table of Definition 4.4.2 (T exactly when a=b), which gives (e). φψ¬(φ∧ψ)¬φ∨¬ψ¬(φ∨ψ)¬φ∧¬ψTTFFFFTFTTFFFTTTFFFFTTTT This gives (b). For (d): if a=T, then v(¬φ)=F and v(¬¬φ)=T; if a=F, then v(¬φ)=T and v(¬¬φ)=F; in both cases v(¬¬φ)=a. For (f): clause (V3) makes v(φ∧ψ)=T exactly when a=b=T, a condition that does not change when a and b are swapped, so v(φ∧ψ)=v(ψ∧φ); likewise (V4) for ∨.

Parts (g) and (h): φψχφ∧(ψ∨χ)(φ∧ψ)∨(φ∧χ)φ∨(ψ∧χ)(φ∨ψ)∧(φ∨χ)TTTTTTTTTFTTTTTFTTTTTTFFFFTTFTTFFTTFTFFFFFFFTFFFFFFFFFFF φψχ(φ∧ψ)∧χφ∧(ψ∧χ)(φ∨ψ)∨χφ∨(ψ∨χ)TTTTTTTTTFFFTTTFTFFTTTFFFFTTFTTFFTTFTFFFTTFFTFFTTFFFFFFF In each of the two tables the first two formula columns agree, and so do the last two. This proves all parts.

Chapters 1 and 2 derived many of these laws as pairs of sequents, some directions with derivations that use RAA or LEM (Proposition 2.5.5 (d), Proposition 2.5.1, Proposition 2.5.6) and others without. That some of them cannot do without a classical rule, Chapter 2 stated without proof (for De Morgan (d), for instance); for ¬¬P⊢P, Section 4.7 proves it in an optional result. The tables do not see that difference: they see only that the two sides agree in every row. Section 4.8 shows that every such agreement can be turned into derivations, with RAA among the rules.

Long conjunctions and disjunctions. Associativity lets us stop worrying about grouping. We write φ1∧φ2∧⋯∧φn for the conjunction grouped to the right, φ1∧(φ2∧(⋯∧φn)), and likewise for ∨; for n=1 it is φ1 itself. Then, for every valuation v and every n≥1, v(φ1∧⋯∧φn)=T⟺v(φi)=T for every i with 1≤i≤n,v(φ1∨⋯∨φn)=T⟺v(φi)=T for some i with 1≤i≤n.

Second readingWhy long conjunctions are evaluated term by term

For the conjunction, we prove by Axiom 4.2.1 on n, started at 1, that the first line holds for every list of n formulas. For n=1 both sides say v(φ1)=T. If it holds for every list of n formulas, take a list of n+1. The conjunction is φ1∧θ, where θ=φ2∧⋯∧φn+1 has n terms. By (V3), v(φ1∧θ)=T exactly when v(φ1)=T and v(θ)=T, and by the hypothesis for n, v(θ)=T exactly when v(φi)=T for 2≤i≤n+1. Together: exactly when every v(φi)=T. The disjunction is the same with (V4) and “some”.

The same holds for any grouping. Call a formula built from φ1,…,φn, in this order, using ∧ alone, a grouping of the list. For n≥2 a grouping is θ1∧θ2, where θ1 is a grouping of φ1,…,φk and θ2 a grouping of φk+1,…,φn, for some k with 1≤k<n. Each part has fewer terms, so by (V3) and Theorem 4.2.2 on n, a grouping is true under v exactly when every φi is. Likewise for ∨ with (V4).

Two consequences follow at once, since the right-hand sides do not care about order, and by the fold every grouping has the same right-hand side. Reordering the terms of a long conjunction, or grouping them differently, gives an equivalent formula; likewise for disjunctions. And De Morgan’s laws extend to many terms: ¬(φ1∧⋯∧φn)≡¬φ1∨⋯∨¬φn,¬(φ1∨⋯∨φn)≡¬φ1∧⋯∧¬φn, since, for instance, both sides of the first are true exactly when some φi is false.

Quick check. Is p→(q→r)≡(p∧q)→r? And is p→(q→r)≡(p→q)→r?

Solution. The first holds. Each side is false in exactly one row, p=q=T, r=F: the left needs p true and q→r false, the right needs p∧q true and r false. (Chapter 1 derived the two from each other, Proposition 1.4.2.) The second fails: by Example (One grouping entails the other, not conversely), the row p=r=F makes p→(q→r) true and (p→q)→r false.

Remark. Three ways to change a formula. The chapter has three operations that put one thing in place of another. Their names are close, and what each one keeps is different.

Operation What is put in Where What it keeps Example
replace a part one occurrence of a subformula, by a formula equivalent to it below, “Replacing a part by an equivalent part” the truth table of the whole formula ¬¬r by r inside p→(q∨¬¬r)
substitute for atoms formulas for chosen atoms, at every occurrence, all at once below, “Substituting formulas for atoms” tautologies stay tautologies, valid arguments stay valid q∧r for p turns p∨¬p into (q∧r)∨¬(q∧r)
substitute in a derivation formulas for the letters of a derivation, at every occurrence Section 4.1, last subsection being a derivation p1∧p2 for P in the derivation of Proposition 1.4.1

Quick check. Which of the three operations turns p∨¬p into (q→r)∨¬(q→r), and what does it keep?

Solution. Substitution of q→r for the atom p, at both occurrences. It keeps tautologies, so the new formula is a tautology too. It is not a replacement of a part: q→r is not equivalent to p.

4.5.4. Relations between two formulas

Equivalent formulas agree in every row. Three other relations say how two formulas can fail to agree, and they have old names.

Definition 4.5.5 (Contradictory, Contrary and Subcontrary Formulas)

Formulas φ and ψ are contradictory if every row makes exactly one of them true; contrary if no row makes both true but some row makes both false; subcontrary if no row makes both false but some row makes both true.

In words: contradictory formulas are each other’s negation in value, φ≡¬ψ, since “exactly one true” says that v(φ)=T iff v(ψ)=F, that is, iff v(¬ψ)=T. Contrary formulas cannot both hold but can both fail; subcontrary formulas cannot both fail but can both hold. A row here is a valuation, or equally, by Lemma 4.4.1, a row of a table on the atoms of both formulas.

Pair Relation Why
p→q, p∧¬q contradictory each is F exactly where the other is T: p∧¬q is T only at TF, the one row where p→q is F
p∧q, ¬p contrary both false at p=T, q=F; both true would need p and ¬p true
p∨q, ¬p∨q subcontrary both true at p=F, q=T; both false would need p and ¬p false

Quick check. Classify the pair p↔q, p↔¬q.

Solution. Contradictory. In each row the two sides of the first agree exactly when the two sides of the second disagree, since ¬q has the other value from q. So exactly one of the two is true in each row.

4.5.5. Replacing a part by an equivalent part

In algebra, if a=b, then a may be replaced by b inside any expression. Semantic equivalence behaves in the same way, because the value of a formula depends only on the values of its parts. This is what makes chains of equivalences, one standard equivalence applied deep inside a formula at a time, a legitimate way of computing.

Recall from Section 4.1 that the subformulas of χ are the formulas at the nodes of its parse tree (Definition 4.1.3). An occurrence of φ in χ is a node whose subtree is a parse tree of φ; replacing that occurrence by φ′ means putting a parse tree of φ′ in place of that subtree, which gives the parse tree of a new formula χ′.

Lemma 4.5.2 (Replacement)

Let φ≡φ′. If χ′ is obtained from a formula χ by replacing one occurrence of φ in χ by φ′, then χ′≡χ.

Idea. Induct on the shape of χ. Either the occurrence is all of χ, and then χ is φ and χ′ is φ′, equivalent by hypothesis; or it sits inside one immediate part of χ, the other part is untouched, and the value of χ is computed from the values of its parts, one of which has not changed and one of which has not changed its value.

The proof, by structural induction with exactly that case split, is in the fold below.

Second readingThe proof of the replacement lemma

Proof. We apply Theorem 4.3.1 to the property C(χ): for every formula χ′ obtained from χ by replacing one occurrence of φ by φ′, and every valuation v, v(χ′)=v(χ). By the paraphrase of Definition 4.5.4, C(χ) says that each such χ′ is equivalent to χ.

In every case, the replaced occurrence sits either at the top node of the tree of χ or at a node below it; in the second case the node lies in the subtree of exactly one immediate part of χ, since those subtrees are the parse trees of the immediate parts (Definition 4.1.2). If the occurrence is the root, then χ=φ and χ′=φ′, and v(χ′)=v(χ) because φ≡φ′. It remains to treat an occurrence below the root.

Atoms and ⊥. The parse tree is one node, so there is no node below the root.

Negation. Let χ=¬θ and assume C(θ). An occurrence below the root lies in θ, so χ′=¬θ′, where θ′ is obtained from θ by replacing that occurrence. By C(θ), v(θ′)=v(θ), and (V2) gives v(¬θ′)=v(¬θ).

Binary connectives. Let χ=θ1∘θ2, with ∘ one of ∧,∨,→,↔, and assume C(θ1) and C(θ2). If the occurrence lies in θ1, then χ′=θ1′∘θ2, with θ1′ obtained from θ1 by the replacement, and v(θ1′)=v(θ1) by C(θ1). The clause of Definition 4.4.2 for ∘ computes v(χ′) from v(θ1′) and v(θ2), and v(χ) from v(θ1) and v(θ2), by the same rule, so v(χ′)=v(χ). An occurrence in θ2 is the same with the roles of the parts exchanged.

This covers every clause of Definition 4.1.1, so C(χ) holds for every χ, which proves the lemma.

Replacing several occurrences, one after another, keeps equivalence at each step, and ≡ is transitive, so the final formula is equivalent to the first. For instance, with (b), (d), and then (c) of Proposition 4.5.1, each applied inside the formula: p→¬(q∧¬r)≡p→(¬q∨¬¬r)≡p→(¬q∨r)≡¬p∨(¬q∨r). The first step replaces the subformula ¬(q∧¬r) by an equivalent one (De Morgan with φ=q, ψ=¬r); the second replaces ¬¬r by r; the third replaces the whole formula, by (c) with φ=p and ψ=¬q∨r. Section 4.9 computes normal forms this way.

Warning. Replacement needs equivalence; entailment in one direction is not enough. We have p∧q⊨p, but replacing p∧q by p inside ¬(p∧q) gives ¬p, and the row p=T, q=F makes ¬(p∧q) true and ¬p false. A negation reverses the direction of an entailment, so one-way information cannot pass through it.

4.5.6. Substituting formulas for atoms

The letters P, Q of Chapters 1 and 2 stood for arbitrary statements, and Section 4.1 turned that into a remark about derivations: a derivation written with letters is a pattern, and putting formulas in for the letters, uniformly, gives a derivation again. The truth table of Example (The truth table of modus ponens), though, was computed for the atoms p and q. Does it tell us anything about (r∨s)→¬t in place of p? It should: the table only used the values of p and q, and a compound formula also has a value in each row. This subsection makes that precise.

Let p1,…,pn be distinct atoms and φ1,…,φn formulas. The substitution σ of φ1,…,φn for p1,…,pn is the function on formulas defined by recursion (Theorem 4.3.4): σ(pi)=φi (1≤i≤n),σ(q)=q  for every other atom q,σ(⊥)=⊥,σ(¬χ)=¬σ(χ),σ(χ∘θ)=σ(χ)∘σ(θ)  for each binary ∘. In words: σ(χ) replaces every occurrence of each pi in χ by φi, all at once, and changes nothing else. For a list Γ=γ1,…,γm, we write σ(Γ) for the list σ(γ1),…,σ(γm). For example, with σ putting q∧r for p and p for q, σ((p→q)∨¬p)=((q∧r)→p)∨¬(q∧r). The p that σ puts in for q is not replaced again: the replacements happen simultaneously, in one pass over the parse tree.

Example (One row, two valuations)

Let σ put q∧r for p and p for q, as above, and let v(p)=F, v(q)=T, v(r)=T. Compute v(σ(χ)) for χ=(p→q)∨¬p. Then define w by w(s):=v(σ(s)) for every atom s, and compute w(χ).

Solution. By the display above, σ(χ)=((q∧r)→p)∨¬(q∧r). Under v, q∧r is T and p is F, so (q∧r)→p is F; ¬(q∧r) is F; so v(σ(χ))=F.

Next, w(p)=v(q∧r)=T, w(q)=v(p)=F, and w(r)=v(r)=T, since σ leaves r alone. Under w, p→q is F and ¬p is F, so w(χ)=F. The two values agree.

The formula σ(χ) under v behaves exactly as χ does under w. The lemma below says that this happens for every formula and every valuation, and draws the consequences.

Lemma 4.5.3 (Substitution)

Let σ be the substitution of φ1,…,φn for the distinct atoms p1,…,pn.

  • (a) If ⊨χ, then ⊨σ(χ).
  • (b) If Γ⊨ψ, then σ(Γ)⊨σ(ψ).

Idea. Under a valuation v, the formula σ(χ) behaves exactly like χ itself under a different valuation w: the one that gives each atom pi the value that v gives to φi. So every row for σ(χ) is, in disguise, a row for χ, and whatever holds in all rows of χ holds in all rows of σ(χ). The disguise is proved by induction on the shape of χ.

Proof. Let v be a valuation, and let w be the valuation with w(p):=v(σ(p)) for every atom p; so w(pi)=v(φi) and w(q)=v(q) for every other atom q.

Claim. v(σ(χ))=w(χ) for every formula χ.

Proof of Claim. By Theorem 4.3.1. For an atom p, v(σ(p))=w(p) is the definition of w. For ⊥, v(σ(⊥))=v(⊥)=F=w(⊥) by (V1). For a negation, assume v(σ(χ))=w(χ); then v(σ(¬χ))=v(¬σ(χ)), which by (V2) is the flip of v(σ(χ))=w(χ), and so equals w(¬χ). For a binary connective ∘, assume the claim for χ and θ; then v(σ(χ∘θ))=v(σ(χ)∘σ(θ)) is computed by the clause for ∘ from v(σ(χ))=w(χ) and v(σ(θ))=w(θ), and so equals w(χ∘θ), which the same clause computes from the same two values.

(a) Let ⊨χ, and let v be any valuation. By the claim, v(σ(χ))=w(χ)=T, since χ is a tautology. So σ(χ) is true under every valuation.

(b) Let Γ⊨ψ, and let v make every formula of σ(Γ) true. For each γ in Γ, the claim gives w(γ)=v(σ(γ))=T, so w makes every formula of Γ true. By Γ⊨ψ, w(ψ)=T, and by the claim again v(σ(ψ))=w(ψ)=T. This proves σ(Γ)⊨σ(ψ).

So a table computed once for atoms settles infinitely many instances. From ⊨p∨¬p we get ⊨(q→r)∨¬(q→r), and every other instance of excluded middle. From p→q, p⊨q (Example (The truth table of modus ponens)) we get φ→ψ, φ⊨ψ for all formulas φ,ψ, which is the table’s version of →E as a schema. And from Example (Affirming the consequent is not valid)’s refuting row we learn only that the pattern is not valid, not that its instances fail; the lemma runs one way only, as the next warning says.

Warning. Substitution must be uniform: every occurrence of pi is replaced by the same φi. Replacing only the first p of the tautology p→p by q gives q→p, which is false in the row q=T, p=F. And the lemma runs one way only. An instance can be a tautology when the pattern is not: p∨q is not a tautology, but its instance with ¬p put in for q is p∨¬p, which is. So a refuting row for a pattern with atoms shows that the pattern is not valid, not that every instance fails.

4.5.7. One row or every row

Every question of this section is about rows, and each comes in two halves: one half is settled by a single row, the other needs them all.

Question A yes is shown by A no is shown by The same as: is this list unsatisfiable?
φ satisfiable? one row making φ true every row no: a yes is one row, so this is the negation of “is the list φ unsatisfiable?”
φ a tautology? every row one row making φ false the list ¬φ
Γ⊨ψ? every row (or working backwards from F) one refuting row the counterexample set Γ,¬ψ
φ≡ψ? every row one row where they differ the list ¬(φ↔ψ), since φ≡ψ exactly when ⊨φ↔ψ (after Definition 4.5.4)
Γ satisfiable? one row every row no: it is the negation of “is Γ unsatisfiable?”

So every question is one question in disguise: is some list unsatisfiable? A yes needs every row, a no needs one. Section 4.6 searches the rows of a list without writing them all down.

4.5.8. Two questions, side by side

We now have two ways of saying that ψ follows from Γ. They were built from different materials, and it is worth setting them next to each other before Sections 4.7 and 4.8 connect them.

Γ⊢ψ Γ⊨ψ
What it says there is a derivation from premises in Γ to ψ every valuation making all of Γ true makes ψ true
What it is about syntax: lines, rules, boxes meaning: truth values
How to show it holds exhibit one derivation check every row (or work backwards from F)
How to show it fails no method yet: a failed search proves nothing exhibit one refuting row
Defined in Definition 1.2.3 (Section 1.2) Definition 4.5.3 (this section)

Look at the fourth row. To show that something is not derivable, we would have to survey infinitely many derivations; to show that something is not valid, one row suffices. And to show that something is valid takes a finite, mechanical check, while showing it derivable may need an idea. Each column is easy exactly where the other is hard.

Sections 4.7 and 4.8 prove that the two columns always give the same answer. Section 4.7 proves soundness: if Γ⊢ψ, then Γ⊨ψ; so a refuting row proves that no derivation exists, which answers the question Chapter 3 ended on. Section 4.8 proves completeness: if Γ⊨ψ, then Γ⊢ψ; so a successful table check guarantees that a derivation exists, even before anyone has found it.

4.5.9. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Classify each formula as a tautology, a contradiction, or satisfiable but not a tautology: p→(q→p); p∧¬(p∨q); (p→q)∧(q→p); ¬(p→p); (p∧q)→(p∨r).
  • (b) For each, decide whether it holds, and give a refuting row if it does not: p∧q⊨p↔q; p↔q⊨p∧q; ¬p→p⊨p.
  • (c) True or false, with a reason: if Γ⊨ψ and Γ⊨¬ψ, then Γ is unsatisfiable.
  • (d) True or false, with a reason: p∨q⊨p or p∨q⊨q.

Solution. (a) p→(q→p): a tautology (if p is T, the conclusion q→p is T; if p is F, the hypothesis is false). p∧¬(p∨q): a contradiction (if p is T, so is p∨q, and ¬(p∨q) is F). (p→q)∧(q→p): satisfiable, not a tautology (T in the row TT, F in TF). ¬(p→p): a contradiction, since p→p is a tautology. (p∧q)→(p∨r): a tautology (if the hypothesis is T, then p is T, so is p∨r).

(b) p∧q⊨p↔q holds: the only row making p∧q true has p=q=T, where p↔q is true. p↔q⊨p∧q fails: the row p=q=F makes p↔q true and p∧q false. ¬p→p⊨p holds: in the row p=F, the premise ¬p→p has a true hypothesis and a false conclusion, so it is false; the only row making the premise true has p=T.

(c) True. If a valuation made all of Γ true, it would make both ψ and ¬ψ true, which (V2) forbids. So no valuation makes all of Γ true.

(d) False. The row p=F, q=T refutes p∨q⊨p, and the row p=T, q=F refutes p∨q⊨q. Each disjunct fails in some row where the disjunction holds, although in every such row one of them holds: ⊨ must work row by row with a single conclusion.

Exercise (A2: Drill)

The parts run from classifying one formula, through lists and entailments, to pairs of formulas and the reduction to unsatisfiability.

  • (a) Tautology, contradiction or contingent: (p→q)∨p?
  • (b) The same for (p∨q)∧¬p∧¬q.
  • (c) The same for (p∧q)→¬p.
  • (d) Is the list p∨q, ¬p, ¬q satisfiable?
  • (e) Does p→q⊨¬p∨q?
  • (f) Give a refuting row for p∨q⊨p∧q.
  • (g) Does ⊥⊨p?
  • (h) Does p⊨q→p?
  • (i) Is ¬(p→q)≡p∧¬q?
  • (j) Classify the pair p∧q, ¬p∨¬q: contradictory, contrary, subcontrary, or none.
  • (k) Classify the pair p∧¬q, q.
  • (l) Which list must be unsatisfiable for p→q≡¬q→¬p to hold?

Solution.

  • (a) A tautology. If p is F, the left disjunct is T; if p is T, the right one is.

  • (b) A contradiction: ¬p and ¬q true leave p∨q false.

  • (c) Contingent: F at p=q=T, and T whenever p is F.

  • (d) No: a row making ¬p and ¬q true makes p∨q false.

  • (e) Yes. The two are equivalent, by Proposition 4.5.1 (c).

  • (f) p=T, q=F.

  • (g) Yes: no row makes ⊥ true.

  • (h) Yes: in every row with p true, q→p has a true conclusion.

  • (i) Yes: both are T in the row TF only.

  • (j) Contradictory: by Proposition 4.5.1 (b) the second is equivalent to ¬(p∧q).

  • (k) Contrary: never both true, since the first needs q false; both false at p=q=F.

  • (l) The one-formula list ¬((p→q)↔(¬q→¬p)).

B. Practice

Exercise (B1: Valid or not)

Decide whether each entailment holds, by a table or by working backwards from F. If it holds, also give a derivation of the corresponding sequent with ⊢ in place of ⊨, using the rules of Chapters 1 and 2; if it fails, give a refuting row.

  • (a) p→q, ¬q⊨¬p.
  • (b) p→(q∨r), ¬q⊨p→r.
  • (c) p→q⊨¬p→¬q.
  • (d) p∨q, p→r, q→r⊨r.

Solution. (a) Holds. Backwards from F: ¬p false means p=T; ¬q true means q=F; then p→q is F, so no row makes the premises true and the conclusion false. A derivation, with modus tollens (Proposition 2.3.1) as a derived rule:

1p→q
2¬q
3¬pMT 1, 2

(b) Holds. Backwards from F: p→r false means p=T, r=F; ¬q true means q=F; then q∨r is F, and p→(q∨r) is F, contradicting the first premise. A derivation, with disjunctive syllogism (Proposition 2.3.4), which refutes the left disjunct:

1p→(q∨r)
2¬q
3pasm, for →I
4q∨r→E 1, 3
5rDS 4, 2
6p→r→I 3–5

(c) Fails. The row p=F, q=T makes p→q true (false hypothesis) and ¬p→¬q false (¬p true, ¬q false). It is the pattern “denying the hypothesis” of the Quick check p→q, ¬p⊨¬q, now in the form of an implication.

(d) Holds. Backwards from F: r=F; then p→r true forces p=F, and q→r true forces q=F; then p∨q is F, a contradiction. A derivation by cases:

1p∨q
2p→r
3q→r
4pasm, for ∨E
5r→E 2, 4
6qasm, for ∨E
7r→E 3, 6
8r∨E 1, 4–5, 6–7
Exercise (B2: A biconditional as a disjunction)

Show by a truth table that p↔q≡(p∧q)∨(¬p∧¬q). Which theorem of this chapter will guarantee, without any search, that each side can be derived from the other?

Solution. pqp↔qp∧q¬p∧¬q(p∧q)∨(¬p∧¬q)TTTTFTTFFFFFFTFFFFFFTFTT The columns of p↔q and of the disjunction agree in every row, so the two formulas are equivalent: each side entails the other. The theorem that turns each entailment into a derivation is completeness, in Section 4.8: if Γ⊨ψ, then Γ⊢ψ. Once it is proved, it will give p↔q⊢(p∧q)∨(¬p∧¬q) and its converse, before any derivation has been written; until then the table shows only that the two sequents are valid.

Exercise (B3: Entailment and implication)

Let Γ be a list of formulas and φ,ψ formulas. Prove:

  • (a) φ⊨ψ if and only if ⊨φ→ψ;
  • (b) Γ,φ⊨ψ if and only if Γ⊨φ→ψ.

Solution. We prove (b); then (a) is (b) with Γ empty, since Γ,φ is then the one-formula list φ.

(⇒) Suppose Γ,φ⊨ψ, and let v make every formula of Γ true. If v(φ)=F, then v(φ→ψ)=T by (V5). If v(φ)=T, then v makes every formula of the list Γ,φ true, so v(ψ)=T by hypothesis, and again v(φ→ψ)=T. So Γ⊨φ→ψ.

(⇐) Suppose Γ⊨φ→ψ, and let v make every formula of Γ,φ true. Then v makes every formula of Γ true, so v(φ→ψ)=T, and v(φ)=T. By (V5), an implication with a true hypothesis is true only if its conclusion is, so v(ψ)=T. So Γ,φ⊨ψ.

Part (b) is the table’s version of →I (the direction ⇒) and of →E (the direction ⇐).

Exercise (B4: Contradictory, contrary, subcontrary, or none)

Classify each pair, and give the rows that show it.

  • (a) p→q, p∧¬q.
  • (b) p∧q, ¬p∧q.
  • (c) p∨q, ¬p∨q.
  • (d) p→q, q→p.
  • (e) p↔q, p∧¬q.
  • (f) p, p∨q.

Solution. (a) Contradictory: the first is F only at TF, where the second is T, and the second is T only there.

(b) Contrary: both true would need p and ¬p true; both are false at q=F.

(c) Subcontrary: both true at p=F, q=T; both false would need q false and both p and ¬p false.

(d) Subcontrary: both true at TT; p→q is F only at TF and q→p only at FT, so they are never both false.

(e) Contrary: both true would need p and q equal (for p↔q) and unequal (for p∧¬q); both false at p=F, q=T.

(f) None of the three: both true at p=T, both false at p=q=F. (In fact p⊨p∨q.)

The pair (d) is the surprise: an implication and its converse can never both fail.

Marking scheme. (6 points)

  • 1 per part: the class, with a witness for each of the two questions (both true? both false?): a row where it happens, or the reason it cannot.

Fatal error (0 for the part): a class claimed with one of the two questions unanswered.

C. Going deeper

Exercise (C1: Substitution with a new connective, the last half blank, used later)

Extend the formulas by a new binary connective | (“not both”, often called NAND): add to Definition 4.1.1 the clause “if φ and ψ are formulas, so is (φ|ψ)”, and to Definition 4.4.2 the clause

(V7) v(φ|ψ):=F if v(φ)=v(ψ)=T; otherwise T.

Assume that structural induction and recursion work for the extended formulas as before, with one more clause. A substitution σ of φ1,…,φn for p1,…,pn is defined by the clauses in the text, with σ(χ|θ):=σ(χ)|σ(θ) added. Prove that if χ is a tautology of the extended language, so is σ(χ).

Here is the first half of a proof. Let v be a valuation, and let w be the valuation with w(p):=v(σ(p)) for every atom p. We show v(σ(χ))=w(χ) for every formula χ of the extended language, by structural induction. Atoms: v(σ(p))=w(p) is the definition of w.

Name the move, then complete it.

Solution. The move is induction on the shape of a formula, now with eight cases: atoms, ⊥, ¬, and five binary connectives. The property is C(χ): v(σ(χ))=w(χ).

⊥. σ(⊥)=⊥, so v(σ(⊥))=F=w(⊥) by (V1).

Negation. Assume C(χ). Then v(σ(¬χ))=v(¬σ(χ)), which by (V2) is T exactly when v(σ(χ))=F, that is, when w(χ)=F, that is, when w(¬χ)=T.

The four old binary connectives. Assume C(χ) and C(θ), and let ∘ be one of ∧,∨,→,↔. Then v(σ(χ∘θ))=v(σ(χ)∘σ(θ)) is computed by the clause for ∘ from the two values v(σ(χ))=w(χ) and v(σ(θ))=w(θ); the same clause computes w(χ∘θ) from the same two values. So they are equal.

The new connective. Assume C(χ) and C(θ). By (V7), v(σ(χ|θ))=v(σ(χ)|σ(θ)) is F exactly when v(σ(χ))=v(σ(θ))=T, that is, when w(χ)=w(θ)=T, that is, when w(χ|θ)=F.

This covers every clause, so C(χ) holds for every formula. Now let χ be a tautology and v any valuation: v(σ(χ))=w(χ)=T. So σ(χ) is a tautology.

Only one case is new. The proof of Lemma 4.5.3 never looked at what the clauses say, only that each computes the value of a compound from the values of its parts; any connective defined by a table passes.

Marking scheme. (10 points)

  • 1: names the move and states the property v(σ(χ))=w(χ) for all χ.
  • 1: the ⊥ case.
  • 2: the ¬ case, from the hypothesis for χ.
  • 2: the old binary cases, using the hypotheses for both parts.
  • 3: the | case, with (V7) and both hypotheses.
  • 1: the conclusion for tautologies.

Fatal errors (0 for the step): omitting the | case; using w where v is meant in the conclusion.

Exercise (C2: Is equivalence preserved by substitution?)

Let σ be a substitution and suppose φ≡ψ. Is σ(φ)≡σ(ψ)? Prove it, or give a counterexample. Then suppose that De Morgan’s law (b) of Proposition 4.5.1 had been checked only for atoms, ¬(p∧q)≡¬p∨¬q, by its four-row table. Use your answer to deduce from this, in one line, that ¬((r→s)∧¬t)≡¬(r→s)∨¬¬t.

Solution. Yes. By the paraphrase of Definition 4.5.4, φ≡ψ means ⊨φ↔ψ. By Lemma 4.5.3 (a), ⊨σ(φ↔ψ), and by the definition of σ, σ(φ↔ψ)=σ(φ)↔σ(ψ). So ⊨σ(φ)↔σ(ψ), that is, σ(φ)≡σ(ψ). (Alternatively, apply Lemma 4.5.3 (b) to φ⊨ψ and to ψ⊨φ.)

For the instance: the substitution of r→s for p and ¬t for q turns the two sides of ¬(p∧q)≡¬p∨¬q into ¬((r→s)∧¬t) and ¬(r→s)∨¬¬t, so these are equivalent by the first part. Checking a law for atoms, by one small table, is therefore enough.

A tempting counterexample fails for a reason worth seeing. With σ putting ¬p for q, the nonequivalent formulas p and ¬q become the equivalent p and ¬¬p: substitution can create equivalences. It cannot destroy one, which is what the question asks.

Marking scheme. (10 points)

  • 3: reduces ≡ to a tautology ⊨φ↔ψ, or to two entailments, citing the definition.
  • 3: applies Lemma 4.5.3 correctly.
  • 2: in the ↔ route, computes σ(φ↔ψ)=σ(φ)↔σ(ψ) from the definition of σ; in the entailment route, applies (b) in both directions.
  • 2: the instance, with the substitution named.

Fatal errors (0 for the step): answering “no” by a pair that is not equivalent before the substitution; using a nonuniform replacement.

Exercise (C3: The rows of implication are forced)

Pretend we do not know the table of →. Say only that there is some table: a rule t giving a truth value t(a,b) for each pair of truth values a,b, with v(φ→ψ)=t(v(φ),v(ψ)) for every valuation v and all formulas φ, ψ. (The other connectives keep their clauses.) Suppose the two rules for implication preserve truth in the following sense.

    • (E) For every valuation v and all formulas φ,ψ: if v(φ→ψ)=T and v(φ)=T, then v(ψ)=T.
    • (I) For every list of formulas Γ and all formulas φ,ψ: if Γ,φ⊨ψ, then Γ⊨φ→ψ, where ⊨ is read with the table t for →.

Prove that t is the table of (V5): t(T,F)=F, and t(a,b)=T for the other three pairs.

Solution (Hint 1). Each of the four values of t is one instance of (E) or of (I), with atoms for φ and ψ and a well-chosen valuation.

Solution (Hint 2). For t(T,T) and t(F,F), try (I) with Γ empty and φ=ψ=p.

Solution. Let p and q be distinct atoms.

t(T,F)=F. Take a valuation v with v(p)=T, v(q)=F. If t(T,F) were T, then v(p→q)=t(T,F)=T and v(p)=T, so (E) would give v(q)=T, which is false. So t(T,F)=F.

t(T,T)=t(F,F)=T. Apply (I) with Γ empty and φ=ψ=p. Its hypothesis p⊨p holds. So every valuation makes p→p true. A valuation with v(p)=T gives t(T,T)=v(p→p)=T, and one with v(p)=F gives t(F,F)=T.

t(F,T)=T. Apply (I) with Γ the list q, φ=p and ψ=q. q,p⊨q holds, so q⊨p→q. A valuation with v(p)=F, v(q)=T makes q true, so t(F,T)=v(p→q)=T.

No step used a value of t that had not yet been found, since the formulas in Γ, φ and ψ contain no →. So the only table of → under which both rules preserve truth is the table of (V5). Conditions (E) and (I) are what Section 4.7 proves about the rules →E and →I; the exercise shows that nothing but the standard table could have passed.

Marking scheme. (10 points)

  • 3: the row (T,F) from (E), with a valuation making p true and q false, and the argument by contradiction.
  • 3: the rows (T,T) and (F,F) from (I), with the hypothesis of (I) checked, and a valuation for each value of p.
  • 3: the row (F,T) from (I) with a non-empty Γ (or any other correct instance), hypothesis checked.
  • 1: says why the argument is not circular (no → in the formulas used).

Fatal errors (0 for the step): using the standard table of → to justify a value of t; an instance of (I) whose hypothesis is not checked.

Exercise (C4: One question for all)

Prove:

  • (a) φ≡ψ if and only if the list ¬(φ↔ψ) is unsatisfiable;
  • (b) for a list Γ: Γ is unsatisfiable if and only if Γ⊨χ for every formula χ, if and only if Γ⊨⊥;
  • (c) φ and ψ are contrary if and only if φ⊨¬ψ and the list ¬φ,¬ψ is satisfiable;
  • (d) φ and ψ are contradictory if and only if φ≡¬ψ.

Solution (Hint 1). Write out what each side says about rows: “every row …” or “some row …”. Then compare the two sentences.

Solution. (a) φ≡ψ iff ⊨φ↔ψ, by the display after Definition 4.5.4, iff ¬(φ↔ψ) is unsatisfiable, by the equivalence between tautologies and unsatisfiable negations, applied to φ↔ψ.

(b) Three implications in a cycle. If Γ is unsatisfiable, then Γ⊨χ for every χ, since there is no row to check. If Γ⊨χ for every χ, then in particular Γ⊨⊥. If Γ⊨⊥, then a row making every member of Γ true would make ⊥ true, which (V1) forbids; so no row makes Γ true, and Γ is unsatisfiable.

(c) “No row makes both true” says that every row making φ true makes ψ false, that is, makes ¬ψ true: φ⊨¬ψ. “Some row makes both false” says that some row makes ¬φ and ¬ψ true: the list ¬φ,¬ψ is satisfiable.

(d) “Exactly one is true in every row” says that for every valuation v, v(φ)=T iff v(ψ)=F, iff v(¬ψ)=T by (V2). That is v(φ)=v(¬ψ) for every v, which is φ≡¬ψ by the paraphrase of Definition 4.5.4.

Marking scheme. (10 points)

  • 2: (a), naming both facts used.
  • 3: (b), the three implications in a cycle.
  • 3: (c), both halves.
  • 2: (d).

Fatal error (0 for the step): in (b), “Γ⊨⊥, so Γ is false” (a list is not true or false; rows make its members true or false).