




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





































Prepared by Dr. Zakir H. Ahmed
2
Rules of Inference ( Cont. )
4
We introduce two main points:
Arguments that involve only compound propositions, and
what it means for them to be valid..
A collection of rules of inference in propositional logic.
Valid Arguments in propositional logic :
“If you have a current password, then you can log onto the network.”
“You have a current password”
“You can log onto the network”
(Conclusion)
Therefore,
Rules of Inference ( Cont. )
5
The conclusion q : “You can log onto the network” must be True
when :
The premises p q : “If you have a current password, then you can
log onto the network” is True And p: “You have a current password”
is True
q
“therefore.”
The statement ((p → q) ⌃p) → q is a tautology
This form of argument is valid because whenever all its
premises are true, the conclusion must also be true.
Note that whenever we replace p and q by propositions where
p → q
and p are both true, then q must also be true.
To determine whether this is a valid argument , i.e. to determine
whether:
Rules of Inference ( Cont. )
7
Definition
An argument in propositional logic is a sequence of propositions. All
but the final proposition in the argument are called premises and
the final proposition is called the conclusion. An argument is valid if
the truth of all its premises implies that the conclusion is true.
An argument form in propositional logic is a sequence of compound
propositions involving propositional variables. An argument form is
valid no matter which particular propositions are substituted for the
propositional variables in its premises, the conclusion is true if the
premises are all true.
Rules of Inference for Propositional Logic
8
We can always use a truth table to show that an argument form is valid by
showing that whenever the premises are true, the conclusion must also be true
if we have an argument form involves 10 different propositional variables
By using truth table 2
10
= 1024 rows
it is tedious approach
How we can show that this argument form is valid?
Instead of showing by truth table , we can establish the validity of some
relatively simple argument forms, called rules of inference , which can be used as
building blocks to construct more complicated valid argument forms.
Rules of Inference for Propositional Logic
10
Example : Determine whether the argument given here is valid and
determine whether its conclusion must be true because of the validity of
the argument.
p q
The premises of the argument are : p → q and p while q is its
conclusion
This argument is valid because it is constructed by using modus
ponens , a valid argument form. Since premises (p → q) ⌃p are false,
therefore the conclusion q is also false because.
2
2
2
2
11
Rule of Inference Tautology Name
p
p → q
∴ q
(p ∧ (p → q)) → q Modus ponens
¬ q
p → q
∴ ¬ p
( ¬ q ∧ (p → q))→ ¬ p Modus tollens
p → q
q → r
∴ p → r
((p → q) ∧ (q → r)) → (p → r) Hypothetical syllogism
p ∨ q
¬ p
∴ q
((p ∨ q)∧ ¬ p) → q Disjunctive syllogism
p
∴ p ∨ q
p → (p ∨ q) Addition
p ∧ q
∴ p
(p ∧ q) → p Simplification
p
q
∴ p ∧ q
((p) ∧ (q)) → (p ∧ q) Conjunction
p ∨ q
¬ p ∨ r
∴ q ∨ r
((p ∨ q) ∧ ( ¬ p ∨ r)) → (q ∨ r) Resolution
Rules of Inference for Propositional Logic
13
Example : State which rule of inference is the basis of the following
argument:
“It is below freezing and raining now. Therefore, it is below freezing now”
Solution: Let p be the proposition “It is below freezing now”
and q the proposition “It is raining now”
Then this argument is of the form:
This is an argument that uses the simplification rule.
p ˄ q
Rules of Inference for Propositional Logic
14
Example : State which rule of inference is the basis of the following
argument:
“If it rains today, then we will not have a barbecue today. If we do not have a
barbecue today, then we will have a barbecue tomorrow. Therefore, if it rains
today, then we will have a barbecue tomorrow.”
Solution: Let p be the proposition “It is raining today”
Let q the proposition “We will not have a barbecue today”
and r the proposition “We will have a barbecue tomorrow”
Then this argument is of the form:
Hence, this argument is a hypothetical syllogism.
Example: What rule of inference is used in the following argument :
“ Alice is a mathematics major. Therefore Alice is either a mathematics major
or a computer science major
p → q
q → r
p → r
Rules of Inference for Propositional Logic
16
Let p : “it is sunny this afternoon”
q : “it is colder than yesterday”
r : “we will go swimming”
s : “we will take a canoe trip”
t : “we will be home by sunset”
The hypotheses become
p ^ q, r p, r s, s t
the conclusion is t
Rules of Inference for Propositional Logic
17
We construct an argument to show that our hypotheses lead to
desired conclusion as follows
Step Reason
Note:
that if we used the truth table, we would end up with 32 rows ( 2^5 =
19
Introduction to Proofs
(In Book: Chapter 1-sec 1.8)
Introduction to Proofs
20
A theorem is a statement that can be shown to be true.
Less important theorems sometimes are called propositions.
(Theorems can also be referred to as facts or results.)
it may be the universal quantification of a conditional statement with one or
more premises and a conclusion, or it may be another type of logical
statements.
Proof is a valid argument (sequence of statements) that establishes
the
truth of a theorem. And the statements to be used in proofs include:
Axioms or postulates (statement assumed to be
true without proof)
Hypothesis (premises) of the theorem
Previously proven theorems
Rules of inference used to draw conclusions and
to move from one step to another
o Ex: If x is positive integer then x+1 is positive integer.
AxiomsHypothesis
Proven
theorems
New Theorems
Rules of inference