Lesson 3 of 16 · about 14 min
If–then
"If p then q" is the most important sentence in mathematics, and the most misunderstood. You'll learn exactly when an implication is true, why its converse is a different claim, and why its contrapositive is the same one.
🧭 What you need first: Propositions and connectives
A parent promises: “If you finish your homework, then we’ll go for ice cream.” When has the parent broken the promise?
- Homework done, ice cream: promise kept.
- Homework done, no ice cream: promise broken.
- Homework not done, no ice cream: promise kept. Nothing was promised for this case.
- Homework not done, ice cream anyway: still kept! The promise only said what happens if the homework gets done. A generous parent didn’t break anything.
That’s the whole meaning of “if then ”: the only way to break it is happening without . Mathematicians use exactly this meaning, and once it clicks, a lot of proofs become much easier to read.
Another way: a vending machine guarantee
“If you insert $2, you get a drink.” The machine is only lying if you put in $2 and got nothing. If you put in nothing, it made no promise, so whatever happens, the guarantee stands.
Explore the arrow
Look at the table for p -> q. Find the single false row. Then compare it with q -> p (the converse) and not q -> not p (the contrapositive). Which one has exactly the same column as p -> q?
| p | q | result |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
🟡 True in 3 of 4 rows: satisfiable, but not always true.
The real words
- Implication (): is the hypothesis, is the conclusion. It’s false only when is true and is false.
- When is false, is vacuously true. “If pigs fly, I’m the queen” is technically true.
- Many ways to say it: ” implies ”, ” if ”, ” only if ”, ” is sufficient for ”, ” is necessary for ”.
- Converse and contrapositive of :
- Converse: . Not the same! “If it’s a dog, it’s a mammal” is true; “if it’s a mammal, it’s a dog” isn’t.
- Contrapositive: . Always the same as . “If it’s not a mammal, it’s not a dog.” Lesson 9 turns this into a proof technique.
- Inverse: . Same as the converse, so also not the original claim.
- If and only if (): is true when and match. It means and . Mathematicians write “iff”. Proving an iff takes two proofs, one for each direction.
- In code, is
(not p) or q.
Rewrite the arrow
🎯 Write a formula that means the same as p → q, using only not, and, or.
| p | q | goal | yours | |
|---|---|---|---|---|
| T | T | T | T | ✅ |
| T | F | F | F | ✅ |
| F | T | T | F | ❌ |
| F | F | T | F | ❌ |
Without using: ->, <->
The four-card puzzle
Four cards each have a letter on one side and a number on the other. You see: A, K, 4, 7. Rule: 'If a card has a vowel on one side, it has an even number on the other.' Which cards must you turn over to check the rule?
Which statement means exactly the same as 'If it's a cat, then it's a mammal'?
Got it?
Finish the lesson to color it in on your map and collect its concept cards.
Did this lesson click?