Rules of Inference
Rules of Inference
Example. Here’s a simple example of modus ponens. Suppose that P and P → Q are premises. Then I can
use modus ponens to derive Q:
1. P Premise
2. P → Q Premise
3. Q Modus ponens (1,2)
I’ll write logic proofs in 3 columns. The statements in logic proofs are numbered so that you can refer
to them, and the numbers go in the first column. The actual statements go in the second column. The third
column contains your justification for writing down the statement.
Thus, statements 1 (P ) and 2 (P → Q) are premises, so the rule of premises allows me to write them
down. Modus ponens says that if I’ve already written down P and P → Q — on any earlier lines, in either
order — then I may write down Q. I did that in line 3, citing the rule (“Modus ponens”) and the lines (1
and 2) which contained the statements I needed to apply modus ponens.
Here’s another example.
1. (A∨ ∼ B) →∼ C Premise
2. ∼D Premise
3. A∨ ∼ B Premise
4. ∼C Modus ponens (1,3)
There are several things to notice here. First, A∨ ∼ B is taking the place of P in the modus ponens
rule, and ∼ C is taking the place of Q. As I remarked prior to this example, “P ” and “Q” can be any
statements, including compound statements.
Notice also that the if-then statement (A∨ ∼ B) →∼ C is listed first and the antecedent ∼ C is listed
second. It doesn’t matter which one has been written down first, and long as both have been written down
before you apply modus ponens.
1
Finally, the statement ∼ D didn’t take part in the modus ponens step. Perhaps this is part of a bigger
proof, and ∼ D will be used later. The fact that it came between the two modus ponens pieces doesn’t make
a difference.
Double Negation. In any statement, you may substitute P for ∼∼ P or ∼∼ P for P (and write down the
new statement).
2
This is a case where I’m skipping a double negation step. Without skipping the step, the proof would
look like this:
1. P Premise
2. ∼ P ∨ (Q → R) Premise
3. ∼∼ P Double negation (1)
4. Q → R Disjunctive syllogism (2,3)
DeMorgan’s Law tells you how to distribute ∼ across ∧ or ∨, or how to factor ∼ out of ∧ or ∨. To
distribute, you attach ∼ to each term, then change ∧ to ∨ or ∨ to ∧. To factor, you factor ∼ out of each
term, then change ∧ to ∨ or ∨ to ∧.
Example.
1. ∼ (∼ P ∨ ∼ Q) Premise
2. P ∧ Q DeMorgan (1)
Notice that a literal application of DeMorgan would have given ∼∼ P ∧ ∼∼ Q. I changed this to P ∧ Q,
suppressing the double negation step.
Example. In this example, notice that I put the pieces in parentheses to group them after constructing the
conjunction.
1. P ↔ Q Premise
2. P ∨ Q Premise
3. (P ↔ Q) ∧ (P ∨ Q) Constructing a conjunction (1,2)
Rule of Syllogism. If you know P → Q and Q → R, then you may write down P → R.
Example. The Rule of Syllogism says that you can “chain” syllogisms together. For example:
1. P → (Q ∨ R) Premise
2. (Q ∨ R) →∼ S Premise
3. P →∼ S Rule of syllogism (1,2)
3
Definition of Biconditional. If you know P ↔ Q, you may write down P → Q and you may write down
Q → P . If you know P → Q and Q → P , you may write down P ↔ Q.
Example.
1. P ↔Q Premise
2. Q Premise
3. Q→P Definition of biconditional (1)
4. P Modus ponens (2,3)
Decomposing a Conjunction. If you know P ∧ Q, you may write down P and you may write down Q.
1. P ∧ (Q ↔∼ R) Premise
2. P Decomposing a conjunction (1)
2. Q ↔∼ R Decomposing a conjunction (1)
1. P ∨ Q Premise
2. P ? ?? (Wrong!)
Knowing that P ∨ Q is true, you know that one of P or Q must be true. The problem is that you don’t
know which one is true, so you can’t assume that either one in particular is true.
Constructing a Disjunction. If you know P , and Q is any statement, you may write down P ∨ Q.
Example. If you know a statement, you can “or” it with any other statement to construct a disjunction.
1. P Premise
2. P ∨ “Calvin sleeps with a night light.” Constructing a disjunction (1)
Commutativity of Conjunctions. In any statement, you may substitute P ∧ Q for Q ∧ P (and write
down the new statement).
Commutativity of Disjunctions. In any statement, you may substitute P ∨ Q for Q ∨ P (and write down
the new statement).
Example. The commutativity rules are so easy that I’ll often use them without explicit mention. They say
that you can write the terms in an “or” statement or an “and” statement in either order.
4
Here is commutativity for a conjunction:
1. P ∧ ∼ Q Premise
2. ∼ Q ∧ P Commutativity (1)
1. (Q → P ) ∨ R Premise
2. R ∨ (Q → P ) Commutativity (1)
Before I give some examples of logic proofs, I’ll explain where the rules of inference come from. You’ve
probably noticed that the rules of inference correspond to tautologies. In fact, you can start with tautologies
and use a small number of simple inference rules to derive all the other inference rules.
Three of the simple rules were stated above: The Rule of Premises, Modus Ponens, and Constructing a
Conjunction. Here are two others:
Equivalence You may replace a statement by another that is logically equivalent. (Recall that P and Q
are logically equivalent if and only if P ↔ Q is a tautology.)
For instance, since P and ∼∼ P are logically equivalent, you can replace P with ∼∼ P or ∼∼ P with
P . This is Double Negation.
Substitution. You may take a known tautology and substitute for the simple statements.
(∼ P ∧ (P ∨ Q)) → Q.
Suppose you have ∼ (A ∧ D) and (A ∧ D) ∨ C as premises. Here’s how you’d apply the simple inference
rules and the Disjunctive Syllogism tautology:
1. ∼ (A ∧ D) Premise
2. (A ∧ D) ∨ C Premise
3. ∼ (A ∧ D) ∧ ((A ∧ D) ∨ C) Constructing a conjunction (1,3)
4. ∼ (A ∧ D) ∧ ((A ∧ D) ∨ C) → C Substitution (Disjunctive Syllogism)
5. C Modus ponens (3,4)
Notice that I used four of the five simple inference rules: the Rule of Premises, Modus Ponens, Construct-
ing a Conjunction, and Substitution. In line 4, I used the Disjunctive Syllogism tautology (∼ P ∧(P ∨Q)) → Q
by substituting
A ∧ D for P and C for Q.
(Some people use the word “instantiation” for this kind of substitution.)
The advantage of this approach is that you have only five simple rules of inference. The disadvantage
is that the proofs tend to be longer. With the approach I’ll use, Disjunctive Syllogism is a rule of inference,
and the proof is:
1. ∼ (A ∧ D) Premise
2. (A ∧ D) ∨ C Premise
3. C Disjunctive syllogism (1,2)
The approach I’m using turns the tautologies into rules of inference beforehand, and for that reason you
won’t need to use the Equivalence and Substitution rules that often. But you are allowed to use them, and
5
here’s where they might be useful. Suppose you’re writing a proof and you’d like to use a rule of inference —
but it wasn’t mentioned above. Write down the corresponding logical statement, then construct the truth
table to prove it’s a tautology (if it isn’t on the tautology list). Then use Substitution to use your new
tautology.
If you go to the market for pizza, one approach is to buy the ingredients — the crust, the sauce, the
cheese, the toppings — take everything home, assemble the pizza, and put it in the oven. Using tautologies
together with the five simple inference rules is like making the pizza from scratch. But you could also go to
the market and buy a frozen pizza, take it home, and put it in the oven. Using lots of rules of inference that
come from tautologies — the approach I’ll use — is like getting the frozen pizza.
Here are some proofs which use the rules of inference. In each case, some premises — statements that
are assumed to be true — are given, as well as a statement to prove. A proof consists of using the rules of
inference to produce the statement to prove from the premises.
∼ A → (C ∧ D)
Example. Premises: A→B .
∼B
Prove: C.
1. A→B Premise
2. ∼B Premise
3. ∼A Modus tollens (1,2)
4. ∼ A → (C ∧ D) Premise
5. C ∧D Modus ponens (3,4)
6. C Decomposing a conjunction (5)
It is one thing to see that the steps are correct; it’s another thing to see how you would think of making
them. I used my experience with logical forms combined with working backward.
I’m trying to prove C, so I looked for statements containing C. Only the first premise contains C. I
saw that C was contained in the consequent of an if-then; by modus ponens, the consequent follows if you
know the antecedent.
The antecedent of the first premise is ∼ A. Hence, I looked for another premise containing A or ∼ A.
The only other premise containing A is the second one. In this case, A appears as the antecedent of an
if-then. By modus tollens, ∼ A follows from the negation of the consequent B. But I noticed that I had
∼ B as a premise, so all that remained was to run all those steps forward and write everything up.
In order to do this, I needed to have a hands-on familiarity with the basic rules of inference: Modus
ponens, modus tollens, and so forth. You’ll acquire this familiarity by writing logic proofs.
You also have to concentrate in order to remember where you are as you work backwards. You may
need to scribble stuff on scratch paper to avoid getting confused. Keep practicing, and you’ll find that this
gets easier with time.
P ∧Q
Example. Premises: P →∼ (Q ∧ R) .
S→R
Prove: ∼ S.
6
1. P ∧Q Premise
2. P Decomposing a conjunction (1)
3. Q Decomposing a conjunction (1)
4. P →∼ (Q ∧ R) Premise
5. ∼ (Q ∧ R) Modus ponens (3,4)
6. ∼ Q∨ ∼ R DeMorgan (5)
7. ∼R Disjunctive syllogism (3,6)
8. S→R Premise
9. ∼S Modus tollens (7,8)
∼ (A ∨ B) → C
Example. Premises: ∼A .
∼C
Prove: B.
1. ∼ (A ∨ B) → C Premise
2. ∼C Premise
3. A∨B Modus tollens (1,2)
4. ∼A Premise
5. B Disjunctive syllogism (3,4)
Notice that in step 3, I would have gotten ∼∼ (A ∨ B). I omitted the double negation step, as I have
in other examples.
c 2008 by Bruce Ikenaga 7