Rules of Inference
Rules of Inference
A proof in logic is a list of statements in which every line is either a premise or follows from earlier lines. Saying that a line follows needs a license, and rules of inference supply it: a short catalogue of argument patterns that never lead from true premises to a false conclusion. You use them every time you write a formal proof in discrete mathematics, and they also explain why some convincing-sounding arguments fail.
Valid forms instead of full truth tables
An argument with premises p1,p2,…,pn and conclusion q is valid when the conditional
is a tautology. You could confirm this with a truth table, but a table for n propositional variables has 2n rows: an argument with 6 variables already needs 64. A rule of inference is a short argument form whose validity has been checked once, so any instance of it can serve as a single step of a proof without rechecking.
In a conditional p→q, p is the hypothesis and q is the consequent, which some texts call the conclusion of the conditional. The conclusion of an argument is the statement inferred from its premises.
The letters in a rule stand for any propositions, simple or compound. Modus ponens applied to (a∨b)→¬c and a∨b gives ¬c, because the pattern matches with p=a∨b and q=¬c.
Validity is a property of the form, not of the content. A valid argument guarantees a true conclusion only when every premise is true; feed a valid form a false premise and the conclusion may be false.
The standard rules
The table lists the eight rules you will use most often. Each one corresponds to a tautology; modus ponens, for instance, is ((p→q)∧p)→q.
Rule | Premises | Conclusion |
|---|---|---|
Modus ponens | p→q, p | q |
Modus tollens | p→q, ¬q | ¬p |
Hypothetical syllogism | p→q, q→r | p→r |
Disjunctive syllogism | p∨q, ¬p | q |
Addition | p | p∨q |
Simplification | p∧q | p |
Conjunction | p, q | p∧q |
Resolution | p∨q, ¬p∨r | q∨r |
Resolution works on disjunctions in which one variable appears plain in one premise and negated in the other. It is the rule behind many automated theorem provers, because every step has the same shape.
Writing a proof line by line
Every line carries a justification: either the word premise, or a rule name with the numbers of the earlier lines it uses.
Example: From the premises p∧q, p→r and r→s, prove s.
Line | Statement | Justification |
|---|---|---|
1 | p∧q | Premise |
2 | p | Simplification, 1 |
3 | p→r | Premise |
4 | r | Modus ponens, 2 and 3 |
5 | r→s | Premise |
6 | s | Modus ponens, 4 and 5 |
Hypothetical syllogism on lines 3 and 5 gives p→s, and modus ponens with line 2 then gives s: a different route that is equally valid. Proofs are rarely unique.
Fallacies that look like rules
A fallacy is an argument form that resembles a valid rule but is not a tautology, so at least one row of its truth table makes every premise true and the conclusion false. Two appear constantly:
- Affirming the conclusion, also called affirming the consequent: from p→q and q, infer p. Here, conclusion means the consequent q of the conditional.
- Denying the hypothesis: from p→q and ¬p, infer ¬q.
The row with p false and q true breaks both: the conditional is true, the second premise is true, and the argument's conclusion is false.
Example: If the battery is dead, the car will not start. The car will not start. Concluding that the battery is dead affirms the conclusion; the car might be out of fuel.
What to remember
- An argument is valid when the conjunction of its premises implies its conclusion as a tautology.
- Rules of inference are valid forms checked once; their letters may stand for compound propositions.
- Each proof line is a premise or follows from earlier lines by a named rule, cited with line numbers.
- Affirming the conclusion and denying the hypothesis are fallacies, not rules.
Example: Chaining four premises about a match and the clubhouse
A sports club posts four facts about Saturday. Let r be it rains, c be the match is cancelled, h be the clubhouse opens early, and b be the band plays.
- If it rains, the match is cancelled: r→c.
- If the match is cancelled, the clubhouse opens early: c→h.
- The clubhouse did not open early: ¬h.
- It rains or the band plays: r∨b.
Prove that the band plays, numbering each new line and giving its justification.
a) Combine premises 1 and 2 into one conditional that links r directly to h, and name the rule you use.
Look for a shared middle proposition. The consequent of premise 1 is ________, and the same proposition is the hypothesis of premise 2. Hypothetical syllogism chains two conditionals that share a middle proposition:
New line 5: r→h, by hypothetical syllogism from lines 1 and 2.
b) Use line 5 and premise 3 to decide whether it rained.
Line 5 is a conditional, and premise 3 denies its consequent h. A conditional together with the negation of its consequent is the pattern of ________, so the hypothesis of the conditional must be false.
New line 6: ¬r, by modus tollens from lines 3 and 5. It did not rain.
Check: if r were true, line 5 would force h to be true, which contradicts premise 3.
c) Finish the proof that the band plays, then write out the complete proof.
Premise 4 says r∨b, and line ________ rules out the disjunct ________. Disjunctive syllogism keeps the remaining disjunct.
New line 7: b, by disjunctive syllogism from lines 4 and 6. The band plays.
The complete proof:
- r→c, premise
- c→h, premise
- ¬h, premise
- r∨b, premise
- r→h, hypothetical syllogism from 1 and 2
- ¬r, modus tollens from 3 and 5
- b, disjunctive syllogism from 4 and 6
d) On a different Saturday the clubhouse does open early, and a member argues that it must therefore have rained. Using only the conditional r→h from line 5 and the fact h, is this inference valid?
The argument has the form r→h and h, therefore r. It affirms the consequent of the conditional rather than its hypothesis, so it is not modus ponens.
Test the row where r is false and h is ________. The premise r→h is true because its hypothesis is false, the premise h is true, yet the conclusion r is false.
One row makes both premises true and the conclusion false, so the inference is invalid: it is the fallacy of affirming the conclusion. The clubhouse could open early for another reason, such as a private booking.
A technician troubleshoots an office printer and writes three short inferences. Name the rule of inference that justifies each one. Use the exact rule names from this bank: addition, disjunctive syllogism, resolution.
From "The printer is jammed or out of paper" and "The printer is not jammed", concluding "The printer is out of paper" uses .
From "The printer is out of paper", concluding "The printer is out of paper or out of toner" uses .
From "The printer is jammed or out of paper" and "The printer is not jammed or its tray light is flashing", concluding "The printer is out of paper or its tray light is flashing" uses .
A technician reasons as follows: "If the fuse has blown, then the lamp is dark. The lamp is dark. Therefore, the fuse has blown." Which statement correctly evaluates this argument?