Introduction to Logic
Senior 4 · Mathematics
Introduction to Logic
Lesson 2 of 5
25 min
A teacher promises: "If you score at least 80% in the test, you will get a prize." Think of the four possible cases. You score 80% and get a prize: promise kept. You score 80% and get no prize: promise broken. You score less, and either do or do not get a prize: the teacher said nothing about that case, so the promise is not broken. A statement of the form "if , then " is false in exactly one case. Almost every theorem in mathematics has this "if … then" form, so this is the most important connective of all.
Definition
Conditional (implication) , "if then ": false only when is true and is false; true in every other case. is the hypothesis (antecedent) and the conclusion (consequent).
The same statement can be read as: " implies ", " if ", " only if ", " is a sufficient condition for ", " is a necessary condition for ".
Biconditional , " if and only if ": true when and have the same truth value. It means : each is necessary and sufficient for the other.
| T | T | T | T | T |
| T | F | F | T | F |
| F | T | T | F | F |
| F | F | T | T | T |
The last two rows of surprise many students: a conditional with a false hypothesis is true. "If , then Kigali is in Rwanda" is a true statement, because the promise "if …" can never be broken. Such a conditional is said to be vacuously true.
Definition
Converse, inverse and contrapositive of the conditional :
A truth table shows that a conditional always has the same truth value as its contrapositive, and the converse always has the same truth value as the inverse. A conditional and its converse can differ.
Worked example 1: the four related conditionals
For the statement "If an integer is divisible by 6, then it is divisible by 3", write the converse, inverse and contrapositive, and decide which are true.
Solution
Warning
Do not reverse an implication. "If it rains, the ground is wet" does not give "if the ground is wet, it rained" (a pipe may have burst). Reasoning from back to is the commonest error in proofs. Use the contrapositive instead: "if the ground is dry, it did not rain" is safe.
Worked example 2: truth values
Find the truth value of each statement. (a) If is odd, then is even. (b) If , then is prime. (c) A triangle is equilateral if and only if its three angles are equal. (d) is odd.
Solution (a) T F, which is F ( is odd). (b) F T, which is T (vacuously). (c) Both directions are true, so T. (d) T F, which is F.
Definition
Tautology: a compound statement that is true in every row of its truth table, whatever the truth values of its parts. Example: .
Contradiction: a compound statement that is false in every row. Example: .
Contingency: a compound statement that is neither: true in some rows and false in others. Example: .
Worked example 3: a tautology that is a rule of reasoning
Show that is a tautology.
Solution
| T | T | T | T | T |
| T | F | F | F | T |
| F | T | T | F | T |
| F | F | T | F | T |
Every entry of the last column is T, so it is a tautology. In words: "if implies , and is true, then is true". This rule, called modus ponens, is used in every proof; Lesson 5 returns to it.
Worked example 4: classifying statements
Classify (a) (b) (c) .
Solution
Tip
To show that is false, you need only one case where is true and is false: a counterexample. To show that it is true, it is often easier to prove the contrapositive .
The Organic Chemistry Tutor: Converse, Inverse and Contrapositive, conditional and biconditional statements. Watch for which of the related statements keep the truth value of the original.
Practice
Use truth tables where needed.
Key points
Sources and credits
Quick check
When is the conditional p ⇒ q false?