The First Rule
If Sam has the key, he can open the door. Sam has the key. So Sam can open the door. You did not need a table for that. Can we turn a step like this into a rule that always works?
A rule is a checked shape
A rule of inference is a tiny argument shape. We check it once, with a truth table, and then we trust it for ever. Here is the shape:
P → Q
P
So Q
Only the first row of the table makes both premises true, and there Q is true too. No row has true premises and a false conclusion, so the shape is valid.
Naming and using it
We call this rule if-out (→E). The E is for out: the if-then is used, and the then-part comes out. Logicians also call it modus ponens. Here it is in a proof. Key: P = Sam has the key. Q = Sam can open the door.
| # | Line | Why |
|---|---|---|
| 1 | P → Q | premise |
| 2 | P | premise |
| 3 | Q | →E 1, 2 |
The Why says →E 1, 2: the rule, then the two lines it uses. The order of the numbers does not matter. →E 2, 1 is just as good. P and Q can stand for any claims, long or short, as long as the lines have exactly this shape.
The exact shape
A rule needs its exact shape. Suppose we have P → Q and Q. Nothing follows. Sam can open the door if he has the key. The door is open. Maybe someone left it open. This is the trap from Level 1, affirming the then-part, now in rule form.
The rule goes one way only: from the if-part to the then-part.
Careful
Never write P from P → Q and Q. The rule needs the if-part, not the then-part.
Try it at home
- Write an if-then that is true of your day, and its if-part. Write what →E lets you write.
- Take the same if-then and its then-part. Find another way the then-part could be true.
- Draw the four-row table for P → Q. Circle the one row where both P → Q and P are true.
Words to know
- rule of inference - a small argument shape, checked once and then trusted
- if-out (→E) - from an if-then and its if-part, write the then-part
- exact shape - the rule works only on lines that have its pattern
- citation - the rule and the line numbers it uses, such as →E 1, 2
Big idea
A rule is an argument shape checked once by a table. If-out (→E) takes an if-then and its if-part and gives the then-part, and it never works backwards.