# List of rules of inference

Short description: None

This is a list of rules of inference, logical laws that relate to mathematical formulae.

## Introduction

Rules of inference are syntactical transform rules which one can use to infer a conclusion from a premise to create an argument. A set of rules can be used to infer any valid conclusion if it is complete, while never inferring an invalid conclusion, if it is sound. A sound and complete set of rules need not include every rule in the following list, as many of the rules are redundant, and can be proven with the other rules.

Discharge rules permit inference from a subderivation based on a temporary assumption. Below, the notation

$\displaystyle{ \varphi \vdash \psi }$

indicates such a subderivation from the temporary assumption $\displaystyle{ \varphi }$ to $\displaystyle{ \psi }$.

## Rules for classical sentential calculus

Sentential calculus is also known as propositional calculus.

### Rules for negations

Reductio ad absurdum (or Negation Introduction)
$\displaystyle{ \varphi \vdash \psi }$
$\displaystyle{ \underline{\varphi \vdash \lnot \psi} }$
$\displaystyle{ \lnot \varphi }$
Reductio ad absurdum (related to the law of excluded middle)
$\displaystyle{ \lnot \varphi \vdash \psi }$
$\displaystyle{ \underline{\lnot \varphi \vdash \lnot \psi} }$
$\displaystyle{ \varphi }$
$\displaystyle{ \varphi }$
$\displaystyle{ \underline{\lnot \varphi} }$
$\displaystyle{ \psi }$
Double negation elimination
$\displaystyle{ \underline{\lnot \lnot \varphi} }$
$\displaystyle{ \varphi }$
Double negation introduction
$\displaystyle{ \underline{\varphi \quad \quad} }$
$\displaystyle{ \lnot \lnot \varphi }$

### Rules for conditionals

Deduction theorem (or Conditional Introduction)
$\displaystyle{ \underline{\varphi \vdash \psi} }$
$\displaystyle{ \varphi \rightarrow \psi }$
Modus ponens (or Conditional Elimination)
$\displaystyle{ \varphi \rightarrow \psi }$
$\displaystyle{ \underline{\varphi \quad \quad \quad} }$
$\displaystyle{ \psi }$
Modus tollens
$\displaystyle{ \varphi \rightarrow \psi }$
$\displaystyle{ \underline{\lnot \psi \quad \quad \quad} }$
$\displaystyle{ \lnot \varphi }$

### Rules for conjunctions

$\displaystyle{ \varphi }$
$\displaystyle{ \underline{\psi \quad \quad \ \ } }$
$\displaystyle{ \varphi \land \psi }$
Simplification (or Conjunction Elimination)
$\displaystyle{ \underline{\varphi \land \psi} }$
$\displaystyle{ \varphi }$
$\displaystyle{ \underline{\varphi \land \psi} }$
$\displaystyle{ \psi }$

### Rules for disjunctions

$\displaystyle{ \underline{\varphi \quad \quad \ \ } }$
$\displaystyle{ \varphi \lor \psi }$
$\displaystyle{ \underline{\psi \quad \quad \ \ } }$
$\displaystyle{ \varphi \lor \psi }$
Case analysis (or Proof by Cases or Argument by Cases or Disjunction elimination)
$\displaystyle{ \varphi \rightarrow \chi }$
$\displaystyle{ \psi \rightarrow \chi }$
$\displaystyle{ \underline{\varphi \lor \psi} }$
$\displaystyle{ \chi }$
Disjunctive syllogism
$\displaystyle{ \varphi \lor \psi }$
$\displaystyle{ \underline{\lnot \varphi \quad \quad} }$
$\displaystyle{ \psi }$
$\displaystyle{ \varphi \lor \psi }$
$\displaystyle{ \underline{\lnot \psi \quad \quad} }$
$\displaystyle{ \varphi }$
Constructive dilemma
$\displaystyle{ \varphi \rightarrow \chi }$
$\displaystyle{ \psi \rightarrow \xi }$
$\displaystyle{ \underline{\varphi \lor \psi} }$
$\displaystyle{ \chi \lor \xi }$

### Rules for biconditionals

Biconditional introduction
$\displaystyle{ \varphi \rightarrow \psi }$
$\displaystyle{ \underline{\psi \rightarrow \varphi} }$
$\displaystyle{ \varphi \leftrightarrow \psi }$
Biconditional elimination
$\displaystyle{ \varphi \leftrightarrow \psi }$
$\displaystyle{ \underline{\varphi \quad \quad} }$
$\displaystyle{ \psi }$
$\displaystyle{ \varphi \leftrightarrow \psi }$
$\displaystyle{ \underline{\psi \quad \quad} }$
$\displaystyle{ \varphi }$
$\displaystyle{ \varphi \leftrightarrow \psi }$
$\displaystyle{ \underline{\lnot \varphi \quad \quad} }$
$\displaystyle{ \lnot \psi }$
$\displaystyle{ \varphi \leftrightarrow \psi }$
$\displaystyle{ \underline{\lnot \psi \quad \quad} }$
$\displaystyle{ \lnot \varphi }$
$\displaystyle{ \varphi \leftrightarrow \psi }$
$\displaystyle{ \underline{\psi \lor \varphi} }$
$\displaystyle{ \psi \land \varphi }$
$\displaystyle{ \varphi \leftrightarrow \psi }$
$\displaystyle{ \underline{\lnot \psi \lor \lnot \varphi} }$
$\displaystyle{ \lnot \psi \land \lnot \varphi }$

## Rules of classical predicate calculus

In the following rules, $\displaystyle{ \varphi(\beta / \alpha) }$ is exactly like $\displaystyle{ \varphi }$ except for having the term $\displaystyle{ \beta }$ wherever $\displaystyle{ \varphi }$ has the free variable $\displaystyle{ \alpha }$.

Universal Generalization (or Universal Introduction)
$\displaystyle{ \underline{\varphi{(\beta / \alpha)}} }$
$\displaystyle{ \forall \alpha\, \varphi }$

Restriction 1: $\displaystyle{ \beta }$ is a variable which does not occur in $\displaystyle{ \varphi }$.
Restriction 2: $\displaystyle{ \beta }$ is not mentioned in any hypothesis or undischarged assumptions.

Universal Instantiation (or Universal Elimination)
$\displaystyle{ \forall \alpha\, \varphi }$
$\displaystyle{ \overline{\varphi{(\beta / \alpha)}} }$

Restriction: No free occurrence of $\displaystyle{ \alpha }$ in $\displaystyle{ \varphi }$ falls within the scope of a quantifier quantifying a variable occurring in $\displaystyle{ \beta }$.

Existential Generalization (or Existential Introduction)
$\displaystyle{ \underline{\varphi(\beta / \alpha)} }$
$\displaystyle{ \exists \alpha\, \varphi }$

Restriction: No free occurrence of $\displaystyle{ \alpha }$ in $\displaystyle{ \varphi }$ falls within the scope of a quantifier quantifying a variable occurring in $\displaystyle{ \beta }$.

Existential Instantiation (or Existential Elimination)
$\displaystyle{ \exists \alpha\, \varphi }$
$\displaystyle{ \underline{\varphi(\beta / \alpha) \vdash \psi} }$
$\displaystyle{ \psi }$

Restriction 1: $\displaystyle{ \beta }$ is a variable which does not occur in $\displaystyle{ \varphi }$.
Restriction 2: There is no occurrence, free or bound, of $\displaystyle{ \beta }$ in $\displaystyle{ \psi }$.
Restriction 3: $\displaystyle{ \beta }$ is not mentioned in any hypothesis or undischarged assumptions.

## Rules of substructural logic

The following are special cases of universal generalization and existential elimination; these occur in substructural logics, such as linear logic.

Rule of weakening (or monotonicity of entailment) (aka no-cloning theorem)
$\displaystyle{ \alpha\vdash\beta }$
$\displaystyle{ \overline{\alpha,\alpha\vdash\beta} }$
Rule of contraction (or idempotency of entailment) (aka no-deleting theorem)
$\displaystyle{ \underline{\alpha,\alpha,\gamma\vdash\beta} }$
$\displaystyle{ \alpha,\gamma\vdash\beta }$

## Table: Rules of Inference

The rules above can be summed up in the following table.[1] The "Tautology" column shows how to interpret the notation of a given rule.

Rules of inference Tautology Name
\displaystyle{ \begin{align} p\\ p \rightarrow q\\ \therefore \overline{q \quad \quad \quad} \\ \end{align} } $\displaystyle{ (p \wedge (p \rightarrow q)) \rightarrow q }$ Modus ponens
\displaystyle{ \begin{align} \neg q\\ p \rightarrow q\\ \therefore \overline{\neg p \quad \quad \quad} \\ \end{align} } $\displaystyle{ (\neg q \wedge (p \rightarrow q)) \rightarrow \neg p }$ Modus tollens
\displaystyle{ \begin{align} (p \vee q) \vee r\\ \therefore \overline{p \vee (q \vee r)} \\ \end{align} } $\displaystyle{ ((p \vee q) \vee r) \rightarrow (p \vee (q \vee r)) }$ Associative
\displaystyle{ \begin{align} p \wedge q\\ \therefore \overline{q \wedge p} \\ \end{align} } $\displaystyle{ (p \wedge q) \rightarrow (q \wedge p) }$ Commutative
\displaystyle{ \begin{align} p \rightarrow q\\ q \rightarrow p\\ \therefore \overline{p \leftrightarrow q} \\ \end{align} } $\displaystyle{ ((p \rightarrow q) \wedge (q \rightarrow p)) \rightarrow (p \leftrightarrow q) }$ Law of biconditional propositions
\displaystyle{ \begin{align} (p \wedge q) \rightarrow r\\ \therefore \overline{p \rightarrow (q \rightarrow r)} \\ \end{align} } $\displaystyle{ ((p \wedge q) \rightarrow r) \rightarrow (p \rightarrow (q \rightarrow r)) }$ Exportation
\displaystyle{ \begin{align} p \rightarrow q\\ \therefore \overline{\neg q \rightarrow \neg p} \\ \end{align} } $\displaystyle{ (p \rightarrow q) \rightarrow (\neg q \rightarrow \neg p) }$ Transposition or contraposition law
\displaystyle{ \begin{align} p \rightarrow q\\ q \rightarrow r\\ \therefore \overline{p \rightarrow r} \\ \end{align} } $\displaystyle{ ((p \rightarrow q) \wedge (q \rightarrow r)) \rightarrow (p \rightarrow r) }$ Hypothetical syllogism
\displaystyle{ \begin{align} p \rightarrow q\\ \therefore \overline{\neg p \vee q} \\ \end{align} } $\displaystyle{ (p \rightarrow q) \rightarrow (\neg p \vee q) }$ Material implication
\displaystyle{ \begin{align} (p \vee q) \wedge r\\ \therefore \overline{(p \wedge r) \vee (q \wedge r)} \\ \end{align} } $\displaystyle{ ((p \vee q) \wedge r) \rightarrow ((p \wedge r) \vee (q \wedge r)) }$ Distributive
\displaystyle{ \begin{align} p \rightarrow q\\ \therefore \overline{p \rightarrow (p \wedge q)} \\ \end{align} } $\displaystyle{ (p \rightarrow q) \rightarrow (p \rightarrow (p \wedge q)) }$ Absorption
\displaystyle{ \begin{align} p \vee q \\ \neg p \\ \therefore \overline{q \quad \quad \quad} \\ \end{align} } $\displaystyle{ ((p \vee q) \wedge \neg p) \rightarrow q }$ Disjunctive syllogism
\displaystyle{ \begin{align} p \\ \therefore \overline{p \vee q} \\ \end{align} } $\displaystyle{ p \rightarrow (p \vee q) }$ Addition
\displaystyle{ \begin{align} p \wedge q \\ \therefore \overline{p \quad \quad \quad} \\ \end{align} } $\displaystyle{ (p \wedge q) \rightarrow p }$ Simplification
\displaystyle{ \begin{align} p\\ q\\ \therefore \overline{p \wedge q} \\ \end{align} } $\displaystyle{ ((p) \wedge (q)) \rightarrow (p \wedge q) }$ Conjunction
\displaystyle{ \begin{align} p\\ \therefore \overline{\neg \neg p} \\ \end{align} } $\displaystyle{ p \rightarrow (\neg \neg p) }$ Double negation introduction
\displaystyle{ \begin{align} p \vee p \\ \therefore \overline{p \quad \quad \quad} \\ \end{align} } $\displaystyle{ (p \vee p) \rightarrow p }$ Disjunctive simplification
\displaystyle{ \begin{align} p \vee q \\ \neg p \vee r \\ \therefore \overline{q \vee r} \\ \end{align} } $\displaystyle{ ((p \vee q) \wedge (\neg p \vee r)) \rightarrow (q \vee r) }$ Resolution
\displaystyle{ \begin{align} p \rightarrow q\\ r \rightarrow q\\ p \vee r\\ \therefore \overline{q \quad \quad \quad} \\ \end{align} } $\displaystyle{ ((p \rightarrow q) \wedge (r \rightarrow q) \wedge (p \vee r)) \rightarrow q }$ Disjunction Elimination

All rules use the basic logic operators. A complete table of "logic operators" is shown by a truth table, giving definitions of all the possible (16) truth functions of 2 boolean variables (p, q):

p q  0   1   2   3   4   5   6   7   8   9  10 11 12 13 F F F F F F F F T T T T T T T T F F F F T T T T F F F F T T T T F F T T F F T T F F T T F F T T F T F T F T F T F T F T F T F T

where T = true and F = false, and, the columns are the logical operators:

Each logic operator can be used in an assertion about variables and operations, showing a basic rule of inference. Examples:

• The column-14 operator (OR), shows Addition rule: when p=T (the hypothesis selects the first two lines of the table), we see (at column-14) that pq=T.
We can see also that, with the same premise, another conclusions are valid: columns 12, 14 and 15 are T.
• The column-8 operator (AND), shows Simplification rule: when pq=T (first line of the table), we see that p=T.
With this premise, we also conclude that q=T, pq=T, etc. as shown by columns 9–15.
• The column-11 operator (IF/THEN), shows Modus ponens rule: when pq=T and p=T only one line of the truth table (the first) satisfies these two conditions. On this line, q is also true. Therefore, whenever p → q is true and p is true, q must also be true.

Machines and well-trained people use this look at table approach to do basic inferences, and to check if other inferences (for the same premises) can be obtained.

### Example 1

Consider the following assumptions: "If it rains today, then we will not go on a canoe today. If we do not go on a canoe trip today, then we will go on a canoe trip tomorrow. Therefore (Mathematical symbol for "therefore" is $\displaystyle{ \therefore }$), if it rains today, we will go on a canoe trip tomorrow". To make use of the rules of inference in the above table we let $\displaystyle{ p }$ be the proposition "If it rains today", $\displaystyle{ q }$ be "We will not go on a canoe today" and let $\displaystyle{ r }$ be "We will go on a canoe trip tomorrow". Then this argument is of the form:

\displaystyle{ \begin{align} p \rightarrow q\\ q \rightarrow r\\ \therefore \overline{p \rightarrow r} \\ \end{align} }

### Example 2

Consider a more complex set of assumptions: "It is not sunny today and it is colder than yesterday". "We will go swimming only if it is sunny", "If we do not go swimming, then we will have a barbecue", and "If we will have a barbecue, then we will be home by sunset" lead to the conclusion "We will be home by sunset." Proof by rules of inference: Let $\displaystyle{ p }$ be the proposition "It is sunny today", $\displaystyle{ q }$ the proposition "It is colder than yesterday", $\displaystyle{ r }$ the proposition "We will go swimming", $\displaystyle{ s }$ the proposition "We will have a barbecue", and $\displaystyle{ t }$ the proposition "We will be home by sunset". Then the hypotheses become $\displaystyle{ \neg p \wedge q, r \rightarrow p, \neg r \rightarrow s }$ and $\displaystyle{ s \rightarrow t }$. Using our intuition we conjecture that the conclusion might be $\displaystyle{ t }$. Using the Rules of Inference table we can prove the conjecture easily:

Step Reason
1.$\displaystyle{ \neg p \wedge q }$ Hypothesis
2. $\displaystyle{ \neg p }$ Simplification using Step 1
3. $\displaystyle{ r \rightarrow p }$ Hypothesis
4. $\displaystyle{ \neg r }$ Modus tollens using Step 2 and 3
5. $\displaystyle{ \neg r \rightarrow s }$ Hypothesis
6. $\displaystyle{ s }$ Modus ponens using Step 4 and 5
7. $\displaystyle{ s \rightarrow t }$ Hypothesis
8. $\displaystyle{ t }$ Modus ponens using Step 6 and 7