Skip to content

Mathematics · Ch 12 — Discrete Mathematics

Compound Statements, Logical Connectives, and Truth Tables

12.3.2

Compound Statements, Logical Connectives, and Truth Tables

Simple vs compound statements. A simple (atomic) statement cannot be broken into smaller statements. A compound (molecular) statement is built from two or more simple statements. Example: "1 is not a prime number and Ooty is in Kerala" is compound, built from pp: "1 is not a prime number" and qq: "Ooty is in Kerala." Any simple statement, taking only the values TT or FF, can be treated like a variable -- a statement (propositional) variable, usually named p,q,r,…p,q,r,\ldots

Definition 12.9 (Logical Connectives). Words such as "and", "or", "if-then", "if and only if" and "not" that join simple statements into compound ones are logical connectives. The three basic ones are negation (not), conjunction (and) and disjunction (or).

Definition 12.10. An expression built from one or more statements joined by connectives is a statement formula.

Definition 12.11 (Truth Table). A table showing, for every combination of truth values of the component simple statements, the resulting truth value of the compound statement is a truth table.

Definition 12.12 -- the three basic connectives:

  1. Negation, ¬p\neg p ("not pp"): truth value opposite to pp -- ¬p\neg p is TT when pp is FF, and FF when pp is TT.
  2. Conjunction, p∧qp\wedge q ("pp and qq", read "pp hat qq"): TT exactly when both pp and qq are TT; FF otherwise.
  3. Disjunction, p∨qp\vee q ("pp or qq", read "pp cup qq"): FF exactly when both pp and qq are FF; TT otherwise (the inclusive or). Truth tables for the three:
pp¬p\neg p
TF
FT
ppqqp∧qp\wedge q
TTT
TFF
FTF
FFF
ppqqp∨qp\vee q
TTT
TFT
FTT
FFF

Example 12.12 (worked pattern). With pp: "It is cold" and qq: "It is raining": ¬p\neg p = "It is not cold"; p∧qp\wedge q = "It is cold and raining"; p∨qp\vee q = "It is cold or raining"; q∨¬pq\vee\neg p = "It is raining or it is not cold."

Row count. A formula in pp alone has 21=22^1=2 rows; a formula in two variables like p∧qp\wedge q or p∨qp\vee q has 22=42^2=4 rows. In general, a formula with nn distinct variables has 2n2^n rows -- e.g. 33 variables give 23=82^3=8 rows, 66 variables give 26=642^6=64 rows.

Conditional statement.

Definition 12.13. The conditional statement "if pp, then qq", written p→qp\to q, calls pp the hypothesis (antecedent) and qq the conclusion (consequent). p→qp\to q is FF only when pp is TT and qq is FF; otherwise it is TT.

ppqqp→qp\to q
TTT
TFF
FTT
FFT

Example 12.14 (worked pattern). For p→qp\to q: "If today is Monday, then 4+4=84+4=8" -- here qq ("4+4=84+4=8") is TT, so p→qp\to q is TT regardless of what day it actually is; p→qp\to q is judged purely by the truth values of p,qp,q, never by whether they are related in meaning.

Three statements derived from p→qp\to q: the converse q→pq\to p, the inverse ¬p→¬q\neg p\to\neg q, and the contrapositive ¬q→¬p\neg q\to\neg p.

Example 12.15 (worked pattern). For pp: "The number of primes is infinite" and qq: "Ooty is in Kerala": conditional p→qp\to q = "If the number of primes is infinite then Ooty is in Kerala"; converse q→pq\to p = "If Ooty is in Kerala then the number of primes is infinite"; inverse ¬p→¬q\neg p\to\neg q = "If the number of primes is not infinite then Ooty is not in Kerala"; contrapositive ¬q→¬p\neg q\to\neg p = "If Ooty is not in Kerala then the number of primes is not infinite."

Biconditional statement.

Definition 12.14. The biconditional "pp if and only if qq", written p↔qp\leftrightarrow q, is TT whenever pp and qq share the same truth value, and FF otherwise. …