Logic Worksheet
Logic Worksheet
Logic Worksheet
Worksheet 1.2
Logic and Truth Tables
We can represent the truth of expressions in a tabular form called “truth tables.” These tables
consider all cases and can add great insight into otherwise complicated expressions. Here are
examples of some of most basic truth tables.
p ¬p
T F
F T
p q pq
T T T
T F T
F T T
F F F
p q pq
T T
T F
F T
F F
p q p↔q
T T
T F
F T
F F
p q p→q
T T T
T F F
F T T
F F T
Consider the example “For every integer n, if n > 2 then n2 > 4.” In this case p represents
“n > 2” and q represents “n2 > 4.” Thus if n = 3 then p is true and q is true.
(d) Find a value for n that make p true and q false. Explain any problems you have. Why
are you having these problems?
The third row, corresponding to part (c), frustrates many people—you are not alone. The
truth has a special name. It is called “vacuously true.”
(a)
p q (¬ p) ↔ q
T T
T F
F T
F F
(b)
p q (¬ p) q
T T
T F
F T
F F
(c)
p q r q→r p → (q → r)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
4. Draw up and complete the truth tables for the following expressions. Please follow all of the
conventions that you have observed above (such as listing p before q, etc.)
(a) p (¬ p)
(b) (¬ p) (¬ q)
p q pq (p q) → p
T T
T T
T F
T F
F T
F T
F F
F F
p p (¬ p)
T
F
6. Logically equivalent expressions have the same truth tables. Show that the following pairs of
statements are logically equivalent.
(e) ¬ (p q) and (¬ p) (¬ q)