Rules of Inference From Modus Ponens Onward
A working guide to the valid argument patterns behind every proof, with examples, a full derivation and the common impostors.
Key takeaways
- A rule of inference is valid when every case that makes its premises true also makes its conclusion true.
- Modus ponens detaches a conclusion from a conditional, and modus tollens rules out a condition when its consequence fails.
- Equivalences may be applied to part of a formula, but inference rules must be applied to whole lines.
- Affirming the consequent and denying the antecedent look like the good rules but are invalid.
A rule of inference is a pattern that takes you from statements you already accept to a new one that must be true if they are. The best known, modus ponens, says that from "if P then Q" and "P" you may conclude "Q".
A small kit of such rules is enough to chain long arguments out of short, checkable steps. Each rule is safe because there is no way for its premises to be true while its conclusion is false.
Premises, conclusions and validity
The statements you start from are premises, and what you derive is the conclusion. A rule is usually written with the premises above a line. Here it is written with the symbol ⊢, read "therefore": P → Q, P ⊢ Q.
Here ¬ means not, ∧ means and, ∨ means inclusive or, and → means if-then. A rule is sound, or truth-preserving, if it can never lead from true premises to a false conclusion. For rules involving only these connectives you can confirm that with a truth table: look for a row with all premises true and the conclusion false, and find none.
The core rules
| 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 |
| Conjunction | P, Q | P ∧ Q |
| Simplification | P ∧ Q | P |
| Addition | P | P ∨ Q |
| Resolution | P ∨ Q, ¬P ∨ R | Q ∨ R |
Modus ponens is Latin shorthand for the "way of affirming". If a number ends in 0, it is divisible by 5. The number 230 ends in 0. So 230 is divisible by 5.
Modus tollens, the "way of denying", runs backward. If a number is divisible by 4, it is even. The number 27 is not even. So 27 is not divisible by 4.
Addition looks odd because it seems to add information. In fact it throws information away: "P or Q" is weaker than "P" alone, and Q can be anything.
Resolution cancels a statement against its negation. Whichever value P has, one of the two premises forces its other half to be true. Many automated reasoning programs, including SAT solvers, produce or use steps of this kind.
Two impostors
Two patterns resemble modus ponens and modus tollens but are invalid.
| Pattern | Form | Counterexample |
|---|---|---|
| Affirming the consequent | P → Q, Q ⊢ P | If a number ends in 0 it is divisible by 5. 25 is divisible by 5. It does not end in 0. |
| Denying the antecedent | P → Q, ¬P ⊢ ¬Q | 25 does not end in 0, yet it is divisible by 5. |
Both treat P → Q as if it also said Q → P. These and other broken patterns are examined in logical fallacies through formal logic.
Assumption rules
Some of the most useful rules work by supposing something temporarily.
- Conditional proof. Assume P. Derive Q. Then you may conclude P → Q, and the assumption is discharged, meaning you no longer depend on it. This is the logic of direct proof.
- Proof by contradiction. Assume ¬P. Derive both some statement and its negation. Conclude P. See proof by contradiction.
- Proof by cases. From P ∨ Q, P → R and Q → R, conclude R.
The key discipline is bookkeeping. Anything you derived while the assumption was open may not be used after you close it, except through the conditional or negation that the rule hands you.
A complete derivation
Here are four premises about a hypothetical alarm system, with letters as follows: P "the door is open", Q "the sensor fires", R "the alarm sounds", S "the power is off".
- P → Q
- Q → (R ∨ S)
- ¬R
- P
The goal is S.
5. Q modus ponens from 1 and 4
6. R ∨ S modus ponens from 2 and 5
7. S disjunctive syllogism from 6 and 3 Every line cites the lines it came from and the rule used. A reader can check the argument without being clever, which is the whole attraction of formal proof. Proof assistants carry the same idea into software.
Now a second one, using modus tollens. From A → B, B → C and ¬C, show ¬A. Hypothetical syllogism gives A → C. Modus tollens with ¬C gives ¬A.
A derivation that uses assumptions
Here is a goal with no simple premise to start from. Given P → Q, show (P ∧ R) → (Q ∧ R). Since the goal is a conditional, assume its "if" part and aim for the "then" part.
1. P → Q premise
2. P ∧ R assume
3. P simplification, line 2
4. Q modus ponens, lines 1 and 3
5. R simplification, line 2
6. Q ∧ R conjunction, lines 4 and 5
7. (P ∧ R) → (Q ∧ R) conditional proof, lines 2 to 6 The indented lines live inside the assumption. Line 4 is not something you have established outright: it depends on line 2. Only line 7 stands on the premise alone.
Now try proof by cases. Given P ∨ Q, P → S and Q → T, show S ∨ T. In the first case, assume P: modus ponens gives S, and addition gives S ∨ T. In the second, assume Q: modus ponens gives T, and addition gives S ∨ T. Both cases reach the same place, so S ∨ T follows from the premises. This particular pattern is common enough to have its own name, constructive dilemma.
Rules for quantifiers
With "for all" (∀) and "there exists" (∃), four more rules appear. Each has a condition that matters.
| Rule | What it lets you do | The condition |
|---|---|---|
| Universal instantiation | from ∀x P(x), conclude P(a) | a names any object in the domain |
| Existential generalization | from P(a), conclude ∃x P(x) | a is a real object of the domain |
| Universal generalization | from P(c), conclude ∀x P(x) | c was arbitrary, with no special assumption |
| Existential instantiation | from ∃x P(x), name a witness c | c must be a fresh name |
Breaking the last two conditions "proves" nonsense. From "there is an even number" and "there is an odd number", naming both witnesses c would give a number that is both. From "2 is prime", generalizing without an arbitrary choice would give "every number is prime". The background language is covered in predicate logic.
Rules versus equivalences
An equivalence such as ¬(P ∧ Q) ≡ ¬P ∨ ¬Q works in both directions and may be applied to a piece buried inside a larger formula. A rule of inference generally goes one way and applies only to entire lines.
For instance, simplification lets you pass from a line P ∧ Q to P. It does not let you rewrite (P ∧ Q) → R as P → R. The first says R follows when both hold; the second claims R follows from P alone, which is stronger and may be false.
Finding the flaw in a faulty derivation
Checking someone else's steps is a skill of its own. Look at this attempt to derive R from P ∨ Q and P → R.
- P ∨ Q (premise)
- P → R (premise)
- P (from line 1)
- R (modus ponens, lines 2 and 3)
Line 3 is the problem. No rule lets you pull one side out of an "or". The premises are both true when P is false, Q is true and R is false, and in that situation the claimed conclusion fails. To repair the argument you would need a further premise such as ¬Q, which gives P by disjunctive syllogism, or Q → R, which gives R by cases.
When you audit a proof, ask of each line which earlier lines it uses, which named rule joins them, and whether their shapes match the rule exactly.
Choosing a system
Textbooks package these rules differently. Natural deduction, developed in the 1930s notably by Gerhard Gentzen, offers rules for introducing and removing each connective. Hilbert-style systems use many axioms and very few rules, often just modus ponens plus a generalization rule. The first is pleasant to write proofs in; the second is convenient for proving things about the system itself.
For classical propositional and first-order logic, the standard systems are both sound and complete: they prove only logical truths and consequences, and they prove all of them. Other logics keep some rules and drop others. Intuitionistic logic, for example, keeps modus ponens but does not accept proof by contradiction as a way to establish a positive statement.
Tips for building your own derivations
- Work backward from the goal. Ask which rule could produce it, and what that rule needs.
- Work forward from premises with modus ponens and simplification, which only ever shorten things.
- If the goal is a conditional, assume the "if" part.
- If direct routes stall, assume the negation of the goal and hunt for a clash.
- When stuck, check the argument with a truth table. If a counterexample row exists, no sound rules will ever get you there.
Remember that a valid chain only transfers truth from premises to conclusion. If a premise is false, the derivation can be flawless and the conclusion still wrong, which is the subject of validity and soundness.