Discrete Mathematics - Rules of Inference

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

Discrete Mathematics - Rules of Inference

Discrete Math For Computer Science

20 Lectures 1.5 hours

 Lukáš Vyhnálek

More Detail

To deduce new statements from the statements whose truth that we already know, Rules of
Inference are used.

What are Rules of Inference for?


Mathematical logic is often used for logical proofs. Proofs are valid arguments that determine the
truth values of mathematical statements.

An argument is a sequence of statements. The last statement is the conclusion and all its preceding
statements are called premises (or hypothesis). The symbol “ ∴ ”, (read therefore) is placed before
the conclusion. A valid argument is one where the conclusion follows from the truth values of the
premises.

Rules of Inference provide the templates or guidelines for constructing valid arguments from the
statements that we already have.

Table of Rules of Inference

https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 1/7
8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

Rule of Inference Name Rule of Inference Name

P P ∨ Q
Disjunctive
∴ P ∨ Q Addition ¬P
Syllogism
∴ Q

P P → Q
Hypothetical
Q Conjunction Q → R
Syllogism
∴ P ∧ Q ∴ P → R

P ∧ Q (P → Q) ∧ (R → S )
Constructive
∴ P Simplification P ∨ R
Dilemma
∴ Q ∨ S

P → Q (P → Q) ∧ (R → S )
Modus Destructive
P ¬Q ∨ ¬S
Ponens Dilemma
∴ Q ∴ ¬P ∨ ¬R

Modus
Tollens
P → Q

¬Q

∴ ¬P

https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 2/7
8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

Addition
If P is a premise, we can use Addition rule to derive P ∨ Q .

∴ P ∨ Q

Example
Let P be the proposition, “He studies very hard” is true

Therefore − "Either he studies very hard Or he is a very bad student." Here Q is the proposition “he
is a very bad student”.

Conjunction
If P and Q are two premises, we can use Conjunction rule to derive P ∧ Q .

∴ P ∧ Q

Example
Let P − “He studies very hard”

Let Q − “He is the best boy in the class”

Therefore − "He studies very hard and he is the best boy in the class"

Simplification
If P ∧ Q is a premise, we can use Simplification rule to derive P.

https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 3/7
8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

P ∧ Q

∴ P

Example
"He studies very hard and he is the best boy in the class", P ∧ Q

Therefore − "He studies very hard"

Modus Ponens
If P and P → Q are two premises, we can use Modus Ponens to derive Q.

P → Q

∴ Q

Example
"If you have a password, then you can log on to facebook", P → Q

"You have a password", P

Therefore − "You can log on to facebook"

Modus Tollens
If P → Q and ¬Q are two premises, we can use Modus Tollens to derive ¬P .

P → Q

¬Q

∴ ¬P

Example
https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 4/7
8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

"If you have a password, then you can log on to facebook", P → Q

"You cannot log on to facebook", ¬Q

Therefore − "You do not have a password "

Disjunctive Syllogism
If ¬P and P ∨ Q are two premises, we can use Disjunctive Syllogism to derive Q.

¬P

P ∨ Q

∴ Q

Example
"The ice cream is not vanilla flavored", ¬P

"The ice cream is either vanilla flavored or chocolate flavored", P ∨ Q

Therefore − "The ice cream is chocolate flavored”

Hypothetical Syllogism
If P → Q and Q → R are two premises, we can use Hypothetical Syllogism to derive

P → R

P → Q

Q → R

∴ P → R

Example
"If it rains, I shall not go to school”, P → Q

https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 5/7
8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

"If I don't go to school, I won't need to do homework", Q → R

Therefore − "If it rains, I won't need to do homework"

Constructive Dilemma
If (P → Q) ∧ (R → S ) and P ∨ R are two premises, we can use constructive dilemma to

derive Q ∨ S .

(P → Q) ∧ (R → S )

P ∨ R

∴ Q ∨ S

Example
“If it rains, I will take a leave”, (P → Q)

“If it is hot outside, I will go for a shower”, (R → S )

“Either it will rain or it is hot outside”, P ∨ R

Therefore − "I will take a leave or I will go for a shower"

Destructive Dilemma
If (P → Q) ∧ (R → S ) and ¬Q ∨ ¬S are two premises, we can use destructive dilemma

to derive ¬P ∨ ¬R .

(P → Q) ∧ (R → S )

¬Q ∨ ¬S

∴ ¬P ∨ ¬R

Example

https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 6/7
8/31/22, 11:04 PM Discrete Mathematics - Rules of Inference

“If it rains, I will take a leave”, (P → Q)

“If it is hot outside, I will go for a shower”, (R → S )

“Either I will not take a leave or I will not go for a shower”, ¬Q ∨ ¬S

Therefore − "Either it does not rain or it is not hot outside"

https://www.tutorialspoint.com/discrete_mathematics/rules_of_inference.htm 7/7

You might also like