Logic: and, or, if…then
p ⇒ q
The idea
Math is a game with statements that are either true or false — plus rules for combining them.The board
- p ∧ q (“and”) is true only if both are true.
- p ∨ q (“or”) is true if at least one is true.
- p ⇒ q (“if p, then q”) is false only when p is true and q is false.
- The negation of “all swans are white” is “there is at least one non-white swan”.
The most common mistake
Thinking p ⇒ q implies q ⇒ p. “If it rains, it's wet” doesn't mean “if it's wet, it's raining” (it could be the hose).The trick
p ⇒ q is the same as “if not q, then not p” (the contrapositive) — often easier to prove.Problems
When is “p ⇒ q” false?
- p false, q true
- p true, q false
- both false
- both true
Show the answer
p true, q false — The promise is broken.
The negation of “all numbers are even”?
- none is even
- all are odd
- there is an odd number
- there are no numbers
Show the answer
there is an odd number — One counterexample is enough.