Mathwords logoMathwords

Rule of Inference — Definition & Example

A rule of inference is an approved pattern of reasoning that tells you which new statement you may write down, given statements you already accept. Modus ponens is the best-known example: from "if pp, then qq" and "pp," you may conclude "qq."

A rule of inference is a schema that takes premises P1,P2,…,PnP_1, P_2, \ldots, P_n and licenses a conclusion CC. The rule is valid when CC is true under every truth assignment that makes all premises true. Equivalently, (P1∧P2∧⋯∧Pn)→C(P_1 \land P_2 \land \cdots \land P_n) \to C is a tautology.

Key Formula

p→qp∴ q⏟modus ponensp→q¬q∴ ¬p⏟modus tollensp→qq→r∴ p→r⏟hypothetical syllogismp∨q¬p∴ q⏟disjunctive syllogism\underbrace{\begin{array}{l} p \to q \\ p \\ \hline \therefore\ q \end{array}}_{\text{modus ponens}} \qquad \underbrace{\begin{array}{l} p \to q \\ \neg q \\ \hline \therefore\ \neg p \end{array}}_{\text{modus tollens}} \qquad \underbrace{\begin{array}{l} p \to q \\ q \to r \\ \hline \therefore\ p \to r \end{array}}_{\text{hypothetical syllogism}} \qquad \underbrace{\begin{array}{l} p \lor q \\ \neg p \\ \hline \therefore\ q \end{array}}_{\text{disjunctive syllogism}}
Where:
  • p,q,rp, q, r = Statements (propositions) that are either true or false
  • →\to = Conditional: "if ... then ..."
  • ¬\neg = Negation: "not"
  • ∨\lor = Disjunction: "or" (inclusive)
  • ∴\therefore = "Therefore." Marks the conclusion below the line

Example

Problem: Accept three premises. (1) If it rains, then the game is canceled. (2) If the game is canceled, then the team practices indoors. (3) The team did not practice indoors. What can you validly conclude about the rain? Name each rule you use.
Step 1: Translate into symbols. Let pp = "it rains," qq = "the game is canceled," and rr = "the team practices indoors."
p→q,q→r,¬rp \to q, \qquad q \to r, \qquad \neg r
Step 2: Apply hypothetical syllogism to premises (1) and (2). This chains the two conditionals together.
p→q,  q→r  ∴ p→rp \to q,\ \ q \to r \ \ \therefore\ p \to r
Step 3: Apply modus tollens to the result of Step 2 and premise (3).
p→r,  ¬r  ∴ ¬pp \to r,\ \ \neg r \ \ \therefore\ \neg p
Answer: It did not rain (¬p\neg p). You reach this by hypothetical syllogism followed by modus tollens.

Why It Matters

In a discrete math or intro-to-proofs course, every line of a formal proof must be justified by a premise or a named rule of inference. Computer science depends on the same idea. Prolog and many automated theorem provers are built on a single rule of inference called resolution.

Common Mistakes

Mistake: Affirming the consequent: concluding pp from p→qp \to q and qq.
Correction: This pattern is not a valid rule. From p→qp \to q and qq alone, nothing certain follows about pp. Example: "If a shape is a square, it has four sides" and "This shape has four sides" do not prove the shape is a square, because it could be a rectangle. The error amounts to treating the converse q→pq \to p as if it were true.

Related Terms

  • Conditional — The if-then premise used by most inference rules
  • Contrapositive — Equivalent form that explains why modus tollens is valid
  • Converse — Confusing it with the conditional causes invalid inferences
  • Disjunction — The or-premise in disjunctive syllogism
  • Conclusion — The statement an inference rule allows you to derive
  • Axiom — Starting statements that inference rules build proofs from
  • Modus Ponens — Best-known example of a rule of inference
  • Modus Tollens — Rule that concludes not p from p → q and not q
  • Disjunctive Syllogism — Rule that concludes q from p or q and not p
  • Fallacy — Invalid patterns such as affirming the consequent