Understanding logical connectives with truth tables
Connective
Write as
Read as
True when
Negation
$\neg p$
“not $p$”
$p$ is false
Conjunction
$p \wedge q$
“$p$ and $q$”
both $p$ and $q$ are true
Disjunction
$p \vee q$
“$p$ or $q$”
at least one of $p,q$ is true
Exclusive Or
$p \oplus q$
“either $p$ or $q$”
exactly one of $p,q$ is true
$p$
$\neg p$
$\T$
$\F$
$p$
$q$
$p \wedge q$
$\F$
$\F$
$\F$
$\T$
$p$
$q$
$p \vee q$
$\F$
$\T$
$\T$
$\T$
$p$
$q$
$p \oplus q$
$\F$
$\T$
$\T$
$\F$
Understanding implication with a truth table
Connective
Write as
Read as
True when
Implication
$p \rightarrow q$
“if $p$ then $q$”
$p$ is false, or both $p,q$ are true
$p$
$q$
$p \rightarrow q$
$\T$
$\T$
$\F$
$\T$
Understanding implication as promises
It’s useful to think of implications as promises. That is “Did I lie?”
If it’s raining, then I have my umbrella.
$p$
$q$
$p \rightarrow q$
$\T$
$\T$
$\F$
$\T$
It’s raining
It’s not raining
I have my umbrella
Truth
Truth
I don’t have my umbrella
Lie
Truth
The only lie is when:
It’s raining AND
I don’t have my umbrella
Understanding implication: it’s not causal!
$p$
$q$
$p \rightarrow q$
$\T$
$\T$
$\F$
$\T$
Are these true?
2 + 2 = 4 $\rightarrow$ earth is a planet
The fact that the atomic propositions
“2 + 2 = 4” and “earth is a planet” are unrelated doesn’t matter!
Both are true, so the implication is true as well.
2 + 2 = 5 $\rightarrow$ 26 is prime
Again, the atomic propositions may or may not be related.
Because “2 + 2 = 5” is false, the implication is true.
Whether 26 is prime or not is irrelevant.
Understanding implication forward and backward
I have collected all 151 Pokemon if I am a Pokemon master.
I have collected all 151 Pokemon only if I am a Pokemon master.
These sentences are implications in opposite directions:
Pokemon masters have all 151 Pokemon.
People who have 151 Pokemon are Pokemon masters.
So, the implications are:
If I am a Pokemon master, then I have collected all 151 Pokemon.
If I have collected all 151 Pokemon, then I am a Pokemon master.
Understanding implication some more
$p$
$q$
$p \rightarrow q$
$\T$
$\T$
$\F$
$\T$
$p$ implies $q$
whenever $p$ is true $q$ must be true
if $p$ then $q$
$q$ if $p$
$p$ is sufficient for $q$
$p$ only if $q$
$q$ is necessary for $p$
Understanding biconditional (bi-implication)
Connective
Write as
Read as
True when
Biconditional
$p \leftrightarrow q$
“$p$ if and only if $q$”
$p,q$ have the same truth value
$p$
$q$
$p \leftrightarrow q$
$\T$
$\F$
$\F$
$\T$
$p$ iff $q$
$p$ is equivalent to $q$
$p$ implies $q$ and $q$ implies $p$
$p$ is necessary and sufficient for $q$
Now back to understanding our Garfield sentence …
Garfield has black stripes if he is an orange cat and likes lasagna,
and he is an orange cat or does not like lasagna.
$p$ = “Garfield has black stripes.”
$q$ = “Garfield is an orange cat.”
$r$ = “Garfield likes lasagna.”
$\downarrow$ Step 1: abstract
($p$ if ($q$ and $r$))
and ($q$ or (not $r$))
$\downarrow$ Step 2: replace English connectives with logical connectives