Skip to content

Mathematics · Ch 1 — Mathematical Logic

Tautology, Contradiction and Contingency

1.2.3

Tautology, Contradiction and Contingency

Tautology, Contradiction and Contingency

Once we have the truth table of a statement pattern, we can look at its final column as a whole and classify the pattern into one of three kinds, purely on the basis of that column.

A statement pattern is called a tautology (denoted tt) when its final column is T in every single row — its truth value is True no matter what truth values its prime components take. The pattern p∨∼pp \vee \sim p is a simple example: whatever truth value pp has, either pp itself is true or its negation ∼p\sim p is true, so p∨∼pp \vee \sim p can never come out false.

A statement pattern is called a contradiction (denoted cc) when its final column is F in every single row — it is impossible for the pattern to be true under any assignment of truth values. The pattern p∧∼pp \wedge \sim p illustrates this: pp and ∼p\sim p can never both be true at once, so their conjunction is always false.

A statement pattern that is neither a tautology nor a contradiction — that is, its final column contains a mixture of T's and F's — is called a contingency. The pattern p∧qp \wedge q is a contingency, since it is true only when both pp and qq are true and false in the other three cases.

Important table for all the connectives

Before working through the solved examples it helps to have the truth values of every basic connective collected in one place, since every larger pattern is just built up column by column from these:

ppqq∼p\sim pp∧qp \wedge qp∨qp \vee qp→qp \rightarrow qp↔qp \leftrightarrow q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT
           **Solved Examples**

Ex. 1 — Construct the truth table for each of the following statement patterns.

When several connectives appear together without brackets to guide the order, they are evaluated in the following order of priority (highest to lowest): ∼\sim, then ∨\vee, then ∧\wedge, then →\rightarrow, then ↔\leftrightarrow.

(i) p→(q→p)p \rightarrow (q \rightarrow p)

We first build the inner column q→pq \rightarrow p, then apply the outer →\rightarrow with pp as antecedent.

ppqqq→pq \rightarrow pp→(q→p)p \rightarrow (q \rightarrow p)
TTTT
TFTT
FTFT
FFTT

(Table 1.7) — notice the final column is T throughout; we return to what that means once tautologies are formally discussed, but for this example we are only asked to construct the table.

(ii) (∼p∨q)↔∼(p∧q)(\sim p \vee q) \leftrightarrow \sim (p \wedge q)

Build ∼p\sim p, then ∼p∨q\sim p \vee q on the left branch; separately build p∧qp \wedge q then negate it for the right branch; finally combine the two branches with ↔\leftrightarrow.

ppqq∼p\sim p∼p∨q\sim p \vee qp∧qp \wedge q∼(p∧q)\sim (p \wedge q)(∼p∨q)↔∼(p∧q)(\sim p \vee q) \leftrightarrow \sim(p \wedge q)
TTFTTFF
TFFFFTF
FTTTFTT
FFTTFTT

(Table 1.8)

(iii) ∼(∼p∧∼q)∨q\sim (\sim p \wedge \sim q) \vee q

Build ∼p\sim p and ∼q\sim q, conjoin them, negate the conjunction, then disjoin with qq.

ppqq∼p\sim p∼q\sim q∼p∧∼q\sim p \wedge \sim q∼(∼p∧∼q)\sim(\sim p \wedge \sim q)∼(∼p∧∼q)∨q\sim(\sim p \wedge \sim q) \vee q
TTFFFTT
TFFTFTT
FTTFFTT
FFTTTFF

(Table 1.9)

(iv) [(p∧q)∨r]∧[∼r∨(p∧q)][(p \wedge q) \vee r] \wedge [\sim r \vee (p \wedge q)]

With three prime components p,q,rp, q, r there are 23=82^3 = 8 rows to work through, taken in the standard order TTT, TTF, TFT, TFF, FTT, FTF, FFT, FFF. Build ∼r\sim r and p∧qp \wedge q first, then the two bracketed halves, then conjoin them.

ppqqrr∼r\sim rp∧qp \wedge q(p∧q)∨r(p \wedge q) \vee r∼r∨(p∧q)\sim r \vee (p \wedge q)[(p∧q)∨r]∧[∼r∨(p∧q)][(p \wedge q) \vee r] \wedge [\sim r \vee (p \wedge q)]
TTTFTTTT
TTFTTTTT
TFTFFTFF
TFFTFFTF
FTTFFTFF
FTFTFFTF
FFTFFTFF
FFFTFFTF

(Table 1.10)

(v) [(∼p∨q)∧(q→r)]→(p→r)[(\sim p \vee q) \wedge (q \rightarrow r)] \rightarrow (p \rightarrow r)

Again 8 rows. Build ∼p\sim p, then ∼p∨q\sim p \vee q; separately build q→rq \rightarrow r and p→rp \rightarrow r; conjoin the first two intermediate columns, then apply the final →\rightarrow using p→rp \rightarrow r as the consequent.

ppqqrr∼p\sim p∼p∨q\sim p \vee qq→rq \rightarrow rp→rp \rightarrow r(∼p∨q)∧(q→r)(\sim p \vee q) \wedge (q \rightarrow r)[(∼p∨q)∧(q→r)]→(p→r)[(\sim p \vee q) \wedge (q \rightarrow r)] \rightarrow (p \rightarrow r)
TTTFTTTTT
TTFFTFFFT
TFTFFTTFT
TFFFFTFFT
FTTTTTTTT
FTFTTFTFT
FFTTTTTTT
FFFTTTTTT

(Table 1.11)

Ex. 2 — Using truth tables, prove the following logical equivalences.

To prove A≡BA \equiv B we build the truth table containing both AA's column and BB's column side by side and check that the two columns are identical row for row.

(i) (p∧q)≡∼(p→∼q)(p \wedge q) \equiv \sim (p \rightarrow \sim q)

ppqq∼q\sim qp∧qp \wedge qp→∼qp \rightarrow \sim q∼(p→∼q)\sim(p \rightarrow \sim q)
TTFTFT
TFTFTF
FTFFTF
FFTFTF

(Table 1.12) — the column for p∧qp \wedge q and the column for ∼(p→∼q)\sim(p \rightarrow \sim q) read T, F, F, F in exactly the same order, so the two columns are identical. Hence (p∧q)≡∼(p→∼q)(p \wedge q) \equiv \sim (p \rightarrow \sim q).

(ii) (p↔q)≡(p∧q)∨(∼p∧∼q)(p \leftrightarrow q) \equiv (p \wedge q) \vee (\sim p \wedge \sim q)

ppqq∼p\sim p∼q\sim qp↔qp \leftrightarrow qp∧qp \wedge q∼p∧∼q\sim p \wedge \sim q(p∧q)∨(∼p∧∼q)(p \wedge q) \vee (\sim p \wedge \sim q)
TTFFTTFT
TFFTFFFF
FTTFFFFF
FFTTTFTT

(Table 1.13) — the column for p↔qp \leftrightarrow q and the column for (p∧q)∨(∼p∧∼q)(p \wedge q) \vee (\sim p \wedge \sim q) both read T, F, F, T, so they are identical. Hence (p↔q)≡(p∧q)∨(∼p∧∼q)(p \leftrightarrow q) \equiv (p \wedge q) \vee (\sim p \wedge \sim q).

(iii) (p∧q)→r≡p→(q→r)(p \wedge q) \rightarrow r \equiv p \rightarrow (q \rightarrow r)

ppqqrrp∧qp \wedge q(p∧q)→r(p \wedge q) \rightarrow rq→rq \rightarrow rp→(q→r)p \rightarrow (q \rightarrow r)
TTTTTTT
TTFTFFF
TFTFTTT
TFFFTTT
FTTFTTT
FTFFTFT
FFTFTTT
FFFFTTT

(Table 1.14) — the column for (p∧q)→r(p \wedge q) \rightarrow r and the column for p→(q→r)p \rightarrow (q \rightarrow r) both read T, F, T, T, T, T, T, T, so they match in every row. Hence (p∧q)→r≡p→(q→r)(p \wedge q) \rightarrow r \equiv p \rightarrow (q \rightarrow r).

(iv) p→(q∨r)≡(p→q)∨(p→r)p \rightarrow (q \vee r) \equiv (p \rightarrow q) \vee (p \rightarrow r)

ppqqrrq∨rq \vee rp→(q∨r)p \rightarrow (q \vee r)p→qp \rightarrow qp→rp \rightarrow r(p→q)∨(p→r)(p \rightarrow q) \vee (p \rightarrow r)
TTTTTTTT
TTFTTTFT
TFTTTFTT
TFFFFFFF
FTTTTTTT
FTFTTTTT
FFTTTTTT
FFFFTTTT

(Table 1.15) — the column for p→(q∨r)p \rightarrow (q \vee r) and the column for (p→q)∨(p→r)(p \rightarrow q) \vee (p \rightarrow r) both read T, T, T, F, T, T, T, T, matching row for row. Hence p→(q∨r)≡(p→q)∨(p→r)p \rightarrow (q \vee r) \equiv (p \rightarrow q) \vee (p \rightarrow r).

Ex. 3 — Using truth tables, examine whether each of the following statement patterns is a tautology, a contradiction, or a contingency.

Here we build the full truth table as before, then look only at the final column: all-T means tautology, all-F means contradiction, and a mix of T and F means contingency.

(i) (p∧q)∧(∼p∨∼q)(p \wedge q) \wedge (\sim p \vee \sim q)

ppqq∼p\sim p∼q\sim qp∧qp \wedge q∼p∨∼q\sim p \vee \sim q(p∧q)∧(∼p∨∼q)(p \wedge q) \wedge (\sim p \vee \sim q)
TTFFTFF
TFFTFTF
FTTFFTF
FFTTFTF

(Table 1.16) — the final column is F, F, F, F: false in every row. This pattern is a contradiction. (This makes sense: p∧qp \wedge q demands both true, while ∼p∨∼q\sim p \vee \sim q demands at least one false — the two halves can never be satisfied together.)

(ii) [p∧(p→∼q)]→q[p \wedge (p \rightarrow \sim q)] \rightarrow q

ppqq∼q\sim qp→∼qp \rightarrow \sim qp∧(p→∼q)p \wedge (p \rightarrow \sim q)[p∧(p→∼q)]→q[p \wedge (p \rightarrow \sim q)] \rightarrow q
TTFFFT
TFTTTF
FTFTFT
FFTTFT
Table 1Important reference table for all five connectives
pq~pp ∧ qp ∨ qp → qp ↔ q
TTFTTTT
TFFFTFF