Key takeaways
- A rule of inference is an argument form that is always valid: whenever its premises are true, its conclusion is true.
- Modus ponens goes from p → q and p to q; modus tollens goes from p → q and ¬q to ¬p.
- Each propositional rule corresponds to a tautology, such as [(p → q) ∧ p] → q, which is how its validity is checked.
- A derivation lists numbered statements, each a premise or the result of a named rule applied to earlier lines.
- Affirming the consequent and denying the antecedent look like rules but are invalid.
A rule of inference is an argument form that is always valid. Whatever statements you substitute into it, if the premises are true then the conclusion is true. Proofs are chains of these steps, and writing a short argument out formally, one rule per line, makes that structure visible.
Levin's Discrete Mathematics: An Open Introduction calls these deduction rules and checks each one the same way: put every premise and the conclusion in a truth table and confirm that in every row where all the premises are true, the conclusion is true too.
The propositional rules
| Rule | Premises | Conclusion |
|---|---|---|
| Modus ponens (detachment) | p → q, p | q |
| Modus tollens (indirect reasoning) | p → q, ¬q | ¬p |
| Hypothetical syllogism (chain rule) | 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 |
| Proof by cases | p → r, q → r, p ∨ q | r |
Applied Discrete Structures lists most of these in its table of common implications, under the names detachment, indirect reasoning, disjunctive addition, conjunctive and disjunctive simplification, and the chain rule. Names vary between textbooks, so learn the forms rather than the labels.
Each rule corresponds to a tautology. Modus ponens is the statement [(p → q) ∧ p] → q, which is true in every row of its truth table; the tautology guide works through it. That correspondence is what makes the rules trustworthy: an argument that follows them cannot take you from true premises to a false conclusion.
Modus ponens and modus tollens, side by side
These two are the rules that treat a conditional most directly; Levin calls modus ponens a particularly famous rule.
- Modus ponens. If the code compiles, the tests run. The code compiles. Therefore the tests run.
- Modus tollens. If the code compiles, the tests run. The tests did not run. Therefore the code did not compile.
Modus tollens is the contrapositive at work: p → q is equivalent to ¬q → ¬p, and modus ponens applied to that gives ¬p. The converse, inverse and contrapositive guide explains the equivalence.
A worked derivation
Premises:
- If the server is down, the site is unreachable. (s → u)
- If the site is unreachable, support gets tickets. (u → t)
- Support has no tickets. (¬t)
- The server is down or the cache is stale. (s ∨ c)
Conclusion to prove: the cache is stale (c).
| Step | Statement | Reason |
|---|---|---|
| 1 | s → u | Premise |
| 2 | u → t | Premise |
| 3 | s → t | Hypothetical syllogism, 1 and 2 |
| 4 | ¬t | Premise |
| 5 | ¬s | Modus tollens, 3 and 4 |
| 6 | s ∨ c | Premise |
| 7 | c | Disjunctive syllogism, 6 and 5 |
Each line is either a premise or follows from earlier lines by a named rule. The format looks fussy, but it makes every step checkable, and it shows exactly which premises the conclusion depends on. Here all four were needed.
Rules for quantified statements
When statements contain ∀ and ∃, four more rules come into play. They are the formal version of moves every proof makes.
| Rule | From | Conclude | Condition |
|---|---|---|---|
| Universal instantiation | ∀x P(x) | P(c) | c is any element of the domain |
| Universal generalisation | P(c) | ∀x P(x) | c was arbitrary: nothing special was assumed about it |
| Existential instantiation | ∃x P(x) | P(c) | c is a new name, not used earlier |
| Existential generalisation | P(c) | ∃x P(x) | c is a particular element |
Universal instantiation combined with modus ponens gives the classic syllogism about Socrates. All people are mortal, ∀x (H(x) → M(x)). Socrates is a person, H(s). Instantiate the first premise at s to get H(s) → M(s), then apply modus ponens: M(s).
The conditions are the part to check. Universal generalisation is valid only if c was genuinely arbitrary; checking that the claim holds for c = 3 does not prove it for all integers. Existential instantiation must use a fresh name: if two premises each say something exists, you cannot assume it is the same thing. The quantifiers guide covers the notation these rules use.
Two forms that look valid and are not
| Fallacy | Form | Why it fails |
|---|---|---|
| Affirming the consequent | p → q, q, so p | q could be true for another reason |
| Denying the antecedent | p → q, ¬p, so ¬q | q could still be true without p |
For affirming the consequent, the row p false, q true makes both premises true and the conclusion false. One such row shows the form is invalid. Levin's book uses the same test on longer argument forms: if any row of the truth table makes all the premises true and the conclusion false, the form is not a valid deduction rule.
Note the difference between an invalid form and a false conclusion. An invalid argument can happen to reach a true conclusion, and a valid one can reach a false conclusion from a false premise. That distinction is the subject of valid versus sound arguments, and the everyday side of it appears in our deductive reasoning examples.
How to build a derivation yourself
- Translate each premise and the conclusion into symbols, defining your letters.
- Work backwards from the conclusion: which rule could produce it, and what would that rule need?
- Look for chains (p → q, q → r) and for a negated consequent that invites modus tollens.
- Write the derivation forwards, one rule per line, citing line numbers.
- Check that every premise you used is one you were given.
The argument-validity checker in Discrete Math: Study & Quiz tests whether an argument is valid, a quick check before you write out the derivation, and the app has a unit on quantifiers and rules of inference with lessons and knowledge checks. See the discrete math hub for the rest of the logic guides, and our education apps for other study tools.
Good to know
Frequently asked questions
What is the difference between modus ponens and modus tollens?
How do you know a rule of inference is valid?
What are the rules of inference for quantifiers?
Is affirming the consequent a rule of inference?
Sources
- The Laws of Logic: Basic Logical Laws, Common Implications and Equivalences (Applied Discrete Structures) (opens in a new tab)discretemath.org — accessed
- Propositional Logic: Deductions (Discrete Mathematics: An Open Introduction, 3rd edition, Oscar Levin) (opens in a new tab)Open Math Books — accessed
- Modus Ponens (opens in a new tab)Wolfram MathWorld — accessed
- Modus Tollens (opens in a new tab)Wolfram MathWorld — accessed
About the author
Reign Creative LLC — The independent app studio that builds the apps covered on this site and publishes every article here. On Google Play it publishes as Reign Collective Apps.
We use AI tools to help research, draft and edit our articles. Each article lists the sources its factual claims rely on, and details about our apps come from their live Google Play listings. No article on this site has been reviewed by an independent expert unless the reviewer is named on it.
No person at Reign Creative LLC has read this article in full. It was published after automated checks and an AI editorial review, which are described in our editorial policy and are not the same as a person reading every sentence.
Spotted an error? Tell us — how corrections are handled is set out in our editorial policy.