Rules of Inference

Lecture 5, DSCI 220, 2026W1

Announcements

Inference

Warm Up

A valid argument is a legal inference.

  • If the lab is open, I’ll go. The lab is open. So I’ll go.

  • If the exam is today, the forum is quiet. The forum isn’t quiet. So the exam isn’t today.

A Puzzle

Your friend _______ .

  1. If BC has Chunkys, they go to BC.
  2. If they go to BC, they miss the kitten.
  3. They did not miss the kitten.
  4. They went out today.
  5. They only go out for Chunkys or for kittens.
  6. Nobody goes out for a kitten unless they love kittens.


Do they love kittens?

Rule Card: Modus Ponens [M.PON]

From p→q and p, infer ________.

Ex:
If the bus is full, I’ll walk. The bus is full. ________

 

____________________   is a tautology

Rule Card: Modus Tollens [M.TOL]

From p→q and ¬q, infer ________.

Ex:
If office hours moved, Slack has an announcement. No announcement. ________

 

____________________   is a tautology

Rule Card: Transitivity [TRANS]

From p→q and q→r, infer ________.

Ex:
If tidy then joins are simpler; if simpler joins then faster viz; ________

 

____________________   is a tautology

Rule Card: Elimination [ELIM]

From p∨q and ¬q, infer ________.

Ex:
Dinner is sushi or tacos. Not tacos. ________

 

____________________   is a tautology

Rule Card: Conjunction [CONJ] / Specialization [SPEC]

CONJ: from p, q infer ________

SPEC: from p∧q infer ________

 

__________________   and   __________________   are tautologies

Rule Card: Generalization [GEN]

From p infer ________.

Ex: I rode my scooter today, ________

 

________________   is a tautology

Rule Card: Resolution [RES]

From p∨q and ¬p∨r infer ________.

Ex:
Either study or soccer; if study then library. ________

 

________________   is a tautology

Rule Card: Proof by Cases [CASE]

From p→r and q→r infer ________.

Ex:
If it’s a weekday I take the bus; if it’s raining I take the bus; ________

 

________________   is a tautology

Rule Card: Contradiction [CONTD]

From p→F infer ________.

Ex:
If I’m free Friday, then 1 = 2. ________

 

________________   is a tautology

Fallacy Cards (flash)

Affirming the consequent ❌
from p→q, q infer p

Denying the antecedent ❌
from p→q, ¬p infer ¬q

Validity

SPEC: \((p\wedge q)\rightarrow p\) is this always true?

INValidity

Affirming Consequent: \(((p\rightarrow q)\wedge q)\rightarrow p\) is this always true?

\(p\) \(q\) \(p\rightarrow q\) \((p\rightarrow q)\wedge q\) \(((p\rightarrow q)\wedge q)\rightarrow p\)
F F
F T
T F
T T

A Puzzle

Your friend _______ .

  1. If BC has Chunkys, they go to BC.
  2. If they go to BC, they miss the kitten.
  3. They did not miss the kitten.
  4. They went out today.
  5. They only go out for Chunkys or for kittens.
  6. Nobody goes out for a kitten unless they love kittens.


Do they love kittens?

Micro Rule Cards

These are the ten on your Formula Sheet, in the Sheet’s own names. Keep it next to you. You will need them Monday.

  • M.PON: from p→q, p infer q
  • M.TOL: from p→q, ¬q infer ¬p
  • TRANS: from p→q, q→r infer p→r
  • ELIM: from p∨q, ¬q infer p
  • CONJ: from p, q infer p∧q
  • SPEC: from p∧q infer p (or q)
  • GEN: from p infer p∨q (any q)
  • RES: from p∨q, ¬p∨r infer q∨r
  • CASE: from p→r, q→r infer (p∨q)→r
  • CONTD: from p→F infer ¬p

Common traps:

  • Affirming consequent: p→q, q ∴ p ❌
  • Denying antecedent: p→q, ¬p ∴ ¬q ❌

Words and Ideas

Rules of Inference

Modus Ponens, Modus Tollens

Transitivity, Elimination

Conjunction, Specialization, Generalization

Resolution, Proof by Cases, Contradiction

Fallacies