Introduction to Logic
Senior 4 · Mathematics
Introduction to Logic
Lesson 5 of 5
25 min
A staircase light can be switched on at the bottom and off at the top, or the other way round. Whether the lamp is lit is a logical function of the two switch positions, and the wiring inside the wall is a piece of logic made of copper. This lesson puts the unit to work in three places: deciding whether an argument is valid, proving facts about sets, and designing switching circuits.

Definition
Valid argument: an argument with premises and conclusion is valid if the conclusion is true in every case in which all the premises are true; that is, if
is a tautology. Otherwise it is invalid (a fallacy). Validity depends only on the form of the argument, not on whether the premises are actually true.
| Name | Form | Valid? |
|---|---|---|
| Modus ponens | , ; therefore | Yes |
| Modus tollens | , ; therefore | Yes |
| Hypothetical syllogism | , ; therefore | Yes |
| Disjunctive syllogism | , ; therefore | Yes |
| Affirming the consequent | , ; therefore | No |
| Denying the antecedent | , ; therefore | No |
Worked example 1: exposing a fallacy
"If Mugisha trains every day, he wins the race. Mugisha won the race. Therefore Mugisha trained every day." Is the argument valid?
Solution Let : "Mugisha trains every day", : "Mugisha wins". The form is , ; therefore .
| conclusion | ||||
|---|---|---|---|---|
| T | T | T | T | T |
| T | F | F | F | T |
| F | T | T | T | F |
| F | F | T | F | F |
In row 3 both premises are true but the conclusion is false (he may have won for another reason). The argument is invalid: it affirms the consequent.
Worked example 2: a chain of valid steps
"If it rains, the road is slippery. If the road is slippery, the bus is late. The bus is not late. Therefore it did not rain." Show that the argument is valid.
Solution With : "it rains", : "the road is slippery", : "the bus is late", the premises are , , .
Each step uses a valid rule, so the argument is valid. (A truth table would need 8 rows; the rules need two lines.)
If and are the truth sets of and in a universal set , every connective matches a set operation:
| Logic | Sets |
|---|---|
| (complement) | |
| logical equivalence | equality of sets |
| tautology , contradiction | , |
So every law of logic gives a law of sets. For example, De Morgan's law for sets follows line by line from De Morgan's law for statements:
Let a statement mean "switch is closed" (current can pass). A lamp is on when there is a closed path through it. Switches one after another (in series) need both closed; switches on separate branches (in parallel) need at least one. A switch written is linked to so that it is always in the opposite state, giving .
Every compound statement therefore describes a circuit, and every law of logic tells you how to build an equivalent circuit, often with fewer switches.
Worked example 3: simplifying a circuit
A circuit has two parallel branches: switches and in series on one, and and in series on the other. Write its logic expression and design a simpler equivalent circuit.
Solution The circuit is . By the distributive law this is : one switch in series with and in parallel. The new circuit does the same job with three switches instead of four.
Worked example 4: the staircase light
A lamp must be on when switches (bottom of the stairs) and (top) are both closed or both open, so that flicking either one always changes the lamp. Find a logic expression and a circuit.
Solution "Both closed or both open" is , which is equivalent to . Changing either switch changes exactly one of , and so changes the truth value of : the lamp toggles. The circuit uses two branches:
In a real house each end uses a single two-way switch that does the job of and at once; the logic is the same.
Warning
Valid does not mean true. "All prime numbers are odd; 2 is prime; therefore 2 is odd" has a valid form, yet its conclusion is false, because the first premise is false. And an invalid argument can happen to have a true conclusion. Validity says only this: if all the premises are true, the conclusion must be true.
Tip
To test an argument with a truth table, you need only the rows in which every premise is true. If the conclusion is true in all of those rows, the argument is valid; one such row with a false conclusion makes it invalid.
Ganitya: Application of Boolean algebra to switching theory, series and parallel circuits. Watch for how a series connection behaves like 'and' and a parallel connection like 'or'.
Practice
Justify each answer with a rule, a truth table or a law.
Key points
Further reading for this unit
Sources and credits
Quick check
Which of these argument forms is NOT valid?