Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 03 / 04Mathematical Reasoning

Tautologies, Contradictions, Logical Equivalence and the Algebra of Statements

Tautologies and contradictions, testing by truth tables, logical equivalence and the standard laws (commutative, associative, distributive, De Morgan, absorption, implication and contrapositive), simplifying compound statements, and duality.

Figure 1
A compound statement is a tautology if it is true for every combination of truth values of its components; a contradiction (fallacy) if it is false for every combination; and a contingency otherwise. The simplest examples: p∨∼pp \vee \sim p is a tautology (law of excluded middle) and p∧∼pp \wedge \sim p is a contradiction. The negation of a tautology is a contradiction and vice versa. Testing by truth table. Build the table column by column, from the components to the whole statement. If the final column is all T, it is a tautology; all F, a contradiction. The figure shows that [p∧(p→q)]→q[p \wedge (p \rightarrow q)] \rightarrow q (modus ponens, the basic rule of deduction) is a tautology. A faster test for an implication. To show that A→BA \rightarrow B is a tautology, it suffices to show that whenever AA is true, BB is true: try to make AA true and BB false, and show this is impossible. To show a statement is not a tautology, one row with value F is enough. Logical equivalence. Two statements are logically equivalent, A≡BA \equiv B, if they have identical truth tables, equivalently if A↔BA \leftrightarrow B is a tautology. Laws of the algebra of statements (each can be checked with a truth table): Idempotent: p∧p≡pp \wedge p \equiv p; p∨p≡pp \vee p \equiv p. Commutative and associative laws for ∧\wedge and ∨\vee. Distributive: p∧(q∨r)≡(p∧q)∨(p∧r)p \wedge (q \vee r) \equiv (p \wedge q) \vee (p \wedge r); p∨(q∧r)≡(p∨q)∧(p∨r)p \vee (q \wedge r) \equiv (p \vee q) \wedge (p \vee r). De Morgan: ∼(p∧q)≡∼p∨∼q\sim(p \wedge q) \equiv \sim p \vee \sim q; ∼(p∨q)≡∼p∧∼q\sim(p \vee q) \equiv \sim p \wedge \sim q. Identity: p∧T≡pp \wedge T \equiv p; p∨F≡pp \vee F \equiv p. Domination: p∨T≡Tp \vee T \equiv T; p∧F≡Fp \wedge F \equiv F. Complement: p∨∼p≡Tp \vee \sim p \equiv T; p∧∼p≡Fp \wedge \sim p \equiv F; ∼∼p≡p\sim\sim p \equiv p. Absorption: p∨(p∧q)≡pp \vee (p \wedge q) \equiv p; p∧(p∨q)≡pp \wedge (p \vee q) \equiv p. Implication: p→q≡∼p∨q≡∼q→∼pp \rightarrow q \equiv \sim p \vee q \equiv \sim q \rightarrow \sim p. Biconditional: p↔q≡(p→q)∧(q→p)≡(p∧q)∨(∼p∧∼q)p \leftrightarrow q \equiv (p \rightarrow q) \wedge (q \rightarrow p) \equiv (p \wedge q) \vee (\sim p \wedge \sim q). Exportation: (p∧q)→r≡p→(q→r)(p \wedge q) \rightarrow r \equiv p \rightarrow (q \rightarrow r). These parallel the laws of set algebra exactly, with T and F playing the roles of UU and ϕ\phi. Simplification. Using the laws, a complicated statement can often be reduced to a simple one, which is faster than a truth table with many rows. The standard first step is to eliminate →\rightarrow and ↔\leftrightarrow using the implication and biconditional laws, then push negations inward with De Morgan. Duality. The dual of a statement (containing only ∧\wedge, ∨\vee, ∼\sim, T, F) is obtained by swapping ∧\wedge with ∨\vee and T with F. If two statements are equivalent, so are their duals. For example, the two distributive laws are duals of each other. Key Takeaways: - Tautology: always T; contradiction: always F; contingency: neither. - p∨∼pp \vee \sim p is a tautology; p∧∼pp \wedge \sim p is a contradiction. - Equivalent statements have identical truth tables. - p→q≡∼p∨q≡∼q→∼pp \rightarrow q \equiv \sim p \vee q \equiv \sim q \rightarrow \sim p. - Absorption: p∨(p∧q)≡pp \vee (p \wedge q) \equiv p. - To prove A→BA \rightarrow B is a tautology, show AA true with BB false is impossible. - Pitfall: equating p→qp \rightarrow q with q→pq \rightarrow p. Brain-Teaser 1: Is (p→q)∨(q→p)(p \rightarrow q) \vee (q \rightarrow p) a tautology? Solution: Rewrite: (∼p∨q)∨(∼q∨p)=(p∨∼p)∨(q∨∼q)≡T∨T≡T(\sim p \vee q) \vee (\sim q \vee p) = (p \vee \sim p) \vee (q \vee \sim q) \equiv T \vee T \equiv T. So yes: for any two statements, at least one implies the other. The algebra is quicker than the four-row truth table and explains why. Brain-Teaser 2: Simplify ∼(p∨q)∨(∼p∧q)\sim(p \vee q) \vee (\sim p \wedge q). Solution: ∼(p∨q)≡∼p∧∼q\sim(p \vee q) \equiv \sim p \wedge \sim q. So the expression is (∼p∧∼q)∨(∼p∧q)≡∼p∧(∼q∨q)≡∼p∧T≡∼p(\sim p \wedge \sim q) \vee (\sim p \wedge q) \equiv \sim p \wedge (\sim q \vee q) \equiv \sim p \wedge T \equiv \sim p. Factoring out the common ∼p\sim p by the distributive law collapses the expression. Brain-Teaser 3: Show that (p∧q)→(p∨q)(p \wedge q) \rightarrow (p \vee q) is a tautology but (p∨q)→(p∧q)(p \vee q) \rightarrow (p \wedge q) is not. Solution: For the first, suppose the hypothesis p∧qp \wedge q is true; then pp is true, so p∨qp \vee q is true. The implication can never have a true hypothesis and false conclusion, so it is a tautology. For the second, take pp true and qq false: the hypothesis p∨qp \vee q is true and the conclusion p∧qp \wedge q is false, so the implication is false in that row. One falsifying row is enough to show it is not a tautology.