Chapter1 - Part3 - Logic
Chapter1 - Part3 - Logic
(PART 3)
RULES OF
INFERENCE
OUTLINE
Valid Arguments
Inference Rules for Propositional Logic
Using Rules of Inference to Build Arguments
VALID ARGUMENTS
(p1 ∧ p2 ∧ … ∧ pn ) → q is a tautology.
Inference rules are all simple argument forms that will be used to construct more
complex argument forms.
RULES OF INFERENCE: MODUS PONENS
Example:
Let p be “It is snowing.”
Let q be “I will study discrete math.”
Example:
Let p be “it is snowing.”
Let q be “I will study discrete math.”
Example:
Let p be “it snows.”
Let q be “I will study discrete math.”
Let r be “I will get an A.”
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Corresponding Tautology:
p →(p ∨q)
Example:
Let p be “I will study discrete math.”
Let q be “I will visit Las Vegas.”
pq
p Corresponding Tautology:
(p∧q) →p
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Corresponding Tautology:
((p) ∧ (q)) →(p ∧ q)
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Example:
Let p be “I will study discrete math.”
Let r be “I will study English literature.”
Let q be “I will study databases.”
pq
q
p
(1) If Margaret Thatcher is the president of the U.S., then she
is at least 35 years old.
pq
q
p
(1) If the sum of the digits of 371,487 is divisible by 3, then 371,487 is divisible by
3.
(2) The sum of the digits of 371,487 is divisible by 3.
(3) 371,487 is divisible by 3.
RULES OF INFERENCE: MODUS
TOLLENS
a) If there are more pigeons than there are pigeonholes , then at least two pigeons
roost in the same hole.
There are more pigeons than there are pigeonholes.
Therefore,__________________________________
Example 2:
With these hypotheses:
“It is not sunny this afternoon and it is colder than yesterday.”
“We will go swimming only if it is sunny.”
“If we do not go swimming, then we will take a canoe trip.”
“If we take a canoe trip, then we will be home by sunset.”
Using the inference rules, construct a valid argument for
the conclusion:
“We will be home by sunset.”
Solution:
1. Choose propositional variables:
p : “It is sunny this afternoon.”
r : “We will go swimming.”
t : “We will be home by sunset.”
q : “It is colder than yesterday.”
s : “We will take a canoe trip.”
2. Translation into propositional logic:
VALIDITY OF ARGUMENT
Demonstrate the validity of the argument:
p→r
p → q pr r p
q→s
p q r q
¬r → s
qs r s
r s
Steps Reasons
1) p r Premise
2) r p Step (1) and p r ≡ r p
3) p q Premise
4) r q Steps (2) and (3) and transitivity
5) q s Premise
6) r s Steps (4) and (5) and the transitivity
VALIDITY OF THE ARGUMENT
Establish the validity of the argument
pq
q (r s)
r (t u)
pt
u
Steps Reasons
1) p q Premise
2) q (r s) Premise
3) p (r s) Steps (1) and (2) and transitivity
4) p t Premise
5) p Step (4) and the specialisation
6) r s Steps (5) and (3) and the modus ponens
7) r Step (6) and the specialisation
8) r (t u) Premise
9) t u Step (7) and (8), and elimination
10) t Step (4) and specialisation
SCL
Solve the following quests and present your answers afterwards.
SCL - CLASS ACTIVITY 1
You are about to leave for school in the morning and discover that you don't have
your glasses. You know the following statements are true:
a) If I was reading the newspaper in the kitchen, then my glasses are on the
kitchen table.
b) If my glasses are on the kitchen table, then I saw them at breakfast.
c) I did not see my glasses at breakfast.
d) I was reading the newspaper in the living room or I was reading the
newspaper in the kitchen.
e) If I was reading the newspaper in the living room then my glasses are on the
coffee table.
Using rules of inference determine where are the glasses?
SOLUTION: CLASS ACTIVITY 1
SCL - CLASS ACTIVITY 2
If the band could not play rock music or the refreshments were not delivered on time, then the
New Year’s party would have been canceled and Alicia would have been angry. If the party
were canceled, then refunds would have had to be made. No refunds were made. The above
statement imply the conclusion the band could play rock music.
First we convert the given argument into symbolic form by using the following statement
assignments:
p: The band could play rock music.
q: The refreshments were delivered on time.
r: The New Year’s party was canceled.
s: Alicia was angry.
t: Refunds had to be made.
SOLUTION: CLASS ACTIVITY 2
SCL - CLASS ACTIVITY 3
Use rules of inference to show that the hypotheses “Randy works hard,” “If
Randy works hard, then he is a dull boy,” and “If Randy is a dull boy, then he
will not get the job” imply the conclusion “Randy will not get the job.”
SOLUTION: CLASS ACTIVITY 4
SCL - CLASS ACTIVITY 5