SlideShare a Scribd company logo
Rules of Inference
Proofs in mathematics are valid arguments
An argument is a sequence of statements that end in a conclusion
By valid we mean the conclusion must follow from the truth of the preceding
statements or premises
We use rules of inference to construct valid arguments
If you listen you will hear what I’m saying
You are listening
Therefore, you hear what I am saying
Valid Arguments in Propositional Logic
Is this a valid argument?
Let p represent the statement “you listen”
Let q represent the statement “you hear what I am saying”
The argument has the form:
q
p
q
p


Valid Arguments in Propositional Logic
q
p
q
p


q
p
q
p 

 )
)
(( is a tautology (always true)
1
1
1
1
1
1
0
0
0
1
1
0
1
1
0
1
0
1
0
0
)
)
((
)
( q
p
q
p
p
q
p
q
p
q
p 





This is another way of saying that
therefore

Valid Arguments in Propositional Logic
When we replace statements/propositions with propositional variables
we have an argument form.
Defn:
An argument (in propositional logic) is a sequence of propositions.
All but the final proposition are called premises.
The last proposition is the conclusion
The argument is valid iff the truth of all premises implies the conclusion is true
An argument form is a sequence of compound propositions
Valid Arguments in Propositional Logic
The argument form with premises
q
p
p
p n 


 )
( 2
1 
and conclusion q
is valid when
n
p
p
p ,
,
, 2
1 
is a tautology
We prove that an argument form is valid by using the laws of inference
But we could use a truth table. Why not?
Rules of Inference for Propositional Logic
q
p
q
p


modus ponens
aka
law of detachment
modus ponens (Latin) translates to “mode that affirms”
The 1st law
Rules of Inference for Propositional Logic
q
p
q
p


modus ponens
If it’s a nice day we’ll go to the beach. Assume the hypothesis
“it’s a nice day” is true. Then by modus ponens it follows that
“we’ll go to the beach”.
The rules of inference Page 66
Resolution
)
(
)]
(
)
[(
n
Conjunctio
)
(
))
(
)
((
tion
Simplifica
)
(
Addition
)
(
syllogism
e
Disjunctiv
)
)
((
syllogism
al
Hypothetic
)
(
)]
(
)
[(
tollen
Modus
)]
(
[
ponens
Modus
)]
(
[
Name
Tautology
inference
of
Rule
r
p
r
p
q
p
r
q
r
p
q
p
q
p
q
p
q
p
q
p
p
q
p
p
q
p
q
p
p
q
p
p
q
p
q
p
q
p
q
p
r
p
r
q
q
p
r
p
r
q
q
p
p
q
p
q
p
q
p
q
q
q
p
p
q
p
q
p






















































You might think of this as some sort of game.
You are given some statement, and you want to see if it is a
valid argument and true
You translate the statement into argument form using propositional
variables, and make sure you have the premises right, and clear what
is the conclusion
You then want to get from premises/hypotheses (A) to the conclusion (B)
using the rules of inference.
So, get from A to B using as “moves” the rules of inference
Another view on what we are doing
Using the rules of inference to build arguments An example
It is not sunny this afternoon and it is colder than yesterday.
If we go swimming 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.
We will be home by sunset
Using the rules of inference to build arguments An example
1. It is not sunny this afternoon and it is colder than yesterday.
2. If we go swimming it is sunny.
3. If we do not go swimming then we will take a canoe trip.
4. If we take a canoe trip then we will be home by sunset.
5. We will be home by sunset
)
conclusion
(the
sunset
by
home
be
will
We
trip
canoe
a
take
will
We
swimming
go
We
yesterday
n
colder tha
is
It
afternoon
sunny this
is
It
t
s
r
q
p
t
t
s
s
r
p
r
q
p
.
5
.
4
.
3
.
2
.
1






propositions hypotheses
Hypothesis
.
1
Reason
Step
q
p 

(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
p
q
p



Hypothesis
.
3
(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
p
r
p
q
p




(3)
and
(2)
using
tollens
Modus
.
4
Hypothesis
.
3
(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
r
p
r
p
q
p





Hypothesis
.
5
(3)
and
(2)
using
tollens
Modus
.
4
Hypothesis
.
3
(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
s
r
r
p
r
p
q
p







(5)
and
(4)
using
ponens
Modus
.
6
Hypothesis
.
5
(3)
and
(2)
using
tollens
Modus
.
4
Hypothesis
.
3
(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
s
s
r
r
p
r
p
q
p







Using the rules of inference to build arguments An example
)
conclusion
(the
sunset
by
home
be
will
We
trip
canoe
a
take
will
We
swimming
go
We
yesterday
n
colder tha
is
It
afternoon
sunny this
is
It
t
s
r
q
p
t
t
s
s
r
p
r
q
p
.
5
.
4
.
3
.
2
.
1






Resolution
)
(
)]
(
)
[(
n
Conjunctio
)
(
))
(
)
((
tion
Simplifica
)
(
Addition
)
(
syllogism
e
Disjunctiv
)
)
((
syllogism
al
Hypothetic
)
(
)]
(
)
[(
tollen
Modus
)]
(
[
ponens
Modus
)]
(
[
Name
Tautology
inference
of
Rule
r
p
r
p
q
p
r
q
r
p
q
p
q
p
q
p
q
p
q
p
p
q
p
p
q
p
q
p
p
q
p
p
q
p
q
p
q
p
q
p
r
p
r
q
q
p
r
p
r
q
q
p
p
q
p
q
p
q
p
q
q
q
p
p
q
p
q
p






















































Hypothesis
.
7
(5)
and
(4)
using
ponens
Modus
.
6
Hypothesis
.
5
(3)
and
(2)
using
tollens
Modus
.
4
Hypothesis
.
3
(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
t
s
s
s
r
r
p
r
p
q
p








(7)
and
(6)
using
ponens
Modus
.
8
Hypothesis
.
7
(5)
and
(4)
using
ponens
Modus
.
6
Hypothesis
.
5
(3)
and
(2)
using
tollens
Modus
.
4
Hypothesis
.
3
(1)
using
tion
Simplifica
.
2
Hypothesis
.
1
Reason
Step
t
t
s
s
s
r
r
p
r
p
q
p








Using the resolution rule (an example)
1. Anna is skiing or it is not snowing.
2. It is snowing or Bart is playing hockey.
3. Consequently Anna is skiing or Bart is playing hockey.
We want to show that (3) follows from (1) and (2)
Using the resolution rule (an example)
1. Anna is skiing or it is not snowing.
2. It is snowing or Bart is playing hockey.
3. Consequently Anna is skiing or Bart is playing hockey.
snowing
is
it
hockey
playing
is
Bart
skiing
is
Anna
r
q
p
propositions
q
r
r
p



.
2
.
1
hypotheses
r
q
r
p
q
p





Consequently Anna is skiing or Bart is playing hockey
Resolution rule
Rules of Inference & Quantified Statements
All men are Mortal
John is a man
Therefore John is Mortal
Above is an example of a rule called “Universal Instantiation”.
We conclude P(c) is true, where c is a particular/named element
in the domain of discourse, given the premise )
(x
P
x

Rules of Inference & Quantified Statements
tion
generalisa
l
Existentia
)
(
c
element
some
for
P(c)
ion
instantiat
l
Existentia
c
element
some
for
)
(
P(x)
x
tion
generalisa
Universal
)
(
c
arbitrary
an
for
P(c)
ion
instantiat
Universal
)
(
P(x)
x
Name
Inference
of
Rule
x
P
x
c
P
x
P
x
c
P









More Related Content

Similar to rulesOfInference.ppt

Valid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptxValid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptx
LuisSalenga1
 
Valid & invalid arguments
Valid & invalid argumentsValid & invalid arguments
Valid & invalid arguments
Abdur Rehman
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
Ikhtiar Khan Sohan
 
Logic.ppt
Logic.pptLogic.ppt
Logic.ppt
syedadamiya
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
allyn joy calcaben
 
discreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptxdiscreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptx
AbdulMajeetMohamed
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
NomanMehboob4
 
Deductive Reasoning.pptx
Deductive Reasoning.pptxDeductive Reasoning.pptx
Deductive Reasoning.pptx
RaymondLipa4
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
Sagacious IT Solution
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proof
Robert Geofroy
 
Arguments.pptx
Arguments.pptxArguments.pptx
Arguments.pptx
HaseebAkhtar20
 
Inference rulesproofmethods
Inference rulesproofmethodsInference rulesproofmethods
Inference rulesproofmethods
Rajendran
 
chapter9.ppt
chapter9.pptchapter9.ppt
chapter9.ppt
Praveen Kumar
 
Logic
LogicLogic
17 using rules of inference to build arguments
17   using rules of inference to build arguments17   using rules of inference to build arguments
17 using rules of inference to build arguments
Ali Saleem
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
Lakshmi R
 
Truth, deduction, computation; lecture 3
Truth, deduction, computation;  lecture 3Truth, deduction, computation;  lecture 3
Truth, deduction, computation; lecture 3
Vlad Patryshev
 
Chap05
Chap05Chap05
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
smarwaneid
 
LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.
LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.
LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.
MarcChristian8
 

Similar to rulesOfInference.ppt (20)

Valid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptxValid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptx
 
Valid & invalid arguments
Valid & invalid argumentsValid & invalid arguments
Valid & invalid arguments
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Logic.ppt
Logic.pptLogic.ppt
Logic.ppt
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
discreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptxdiscreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptx
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
Deductive Reasoning.pptx
Deductive Reasoning.pptxDeductive Reasoning.pptx
Deductive Reasoning.pptx
 
Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proof
 
Arguments.pptx
Arguments.pptxArguments.pptx
Arguments.pptx
 
Inference rulesproofmethods
Inference rulesproofmethodsInference rulesproofmethods
Inference rulesproofmethods
 
chapter9.ppt
chapter9.pptchapter9.ppt
chapter9.ppt
 
Logic
LogicLogic
Logic
 
17 using rules of inference to build arguments
17   using rules of inference to build arguments17   using rules of inference to build arguments
17 using rules of inference to build arguments
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Truth, deduction, computation; lecture 3
Truth, deduction, computation;  lecture 3Truth, deduction, computation;  lecture 3
Truth, deduction, computation; lecture 3
 
Chap05
Chap05Chap05
Chap05
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.
LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.
LOGIC & TRUTH.pptx PROPOSITIONAL LOGIC AND ETC.
 

Recently uploaded

Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
PriyankaKilaniya
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
bijceesjournal
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...
Prakhyath Rai
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
aryanpankaj78
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...Rainfall intensity duration frequency curve statistical analysis and modeling...
Rainfall intensity duration frequency curve statistical analysis and modeling...
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...Software Engineering and Project Management - Software Testing + Agile Method...
Software Engineering and Project Management - Software Testing + Agile Method...
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Digital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptxDigital Twins Computer Networking Paper Presentation.pptx
Digital Twins Computer Networking Paper Presentation.pptx
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Gas agency management system project report.pdf
Gas agency management system project report.pdfGas agency management system project report.pdf
Gas agency management system project report.pdf
 

rulesOfInference.ppt

  • 2. Proofs in mathematics are valid arguments An argument is a sequence of statements that end in a conclusion By valid we mean the conclusion must follow from the truth of the preceding statements or premises We use rules of inference to construct valid arguments
  • 3. If you listen you will hear what I’m saying You are listening Therefore, you hear what I am saying Valid Arguments in Propositional Logic Is this a valid argument? Let p represent the statement “you listen” Let q represent the statement “you hear what I am saying” The argument has the form: q p q p  
  • 4. Valid Arguments in Propositional Logic q p q p   q p q p    ) ) (( is a tautology (always true) 1 1 1 1 1 1 0 0 0 1 1 0 1 1 0 1 0 1 0 0 ) ) (( ) ( q p q p p q p q p q p       This is another way of saying that therefore 
  • 5. Valid Arguments in Propositional Logic When we replace statements/propositions with propositional variables we have an argument form. Defn: An argument (in propositional logic) is a sequence of propositions. All but the final proposition are called premises. The last proposition is the conclusion The argument is valid iff the truth of all premises implies the conclusion is true An argument form is a sequence of compound propositions
  • 6. Valid Arguments in Propositional Logic The argument form with premises q p p p n     ) ( 2 1  and conclusion q is valid when n p p p , , , 2 1  is a tautology We prove that an argument form is valid by using the laws of inference But we could use a truth table. Why not?
  • 7. Rules of Inference for Propositional Logic q p q p   modus ponens aka law of detachment modus ponens (Latin) translates to “mode that affirms” The 1st law
  • 8. Rules of Inference for Propositional Logic q p q p   modus ponens If it’s a nice day we’ll go to the beach. Assume the hypothesis “it’s a nice day” is true. Then by modus ponens it follows that “we’ll go to the beach”.
  • 9. The rules of inference Page 66 Resolution ) ( )] ( ) [( n Conjunctio ) ( )) ( ) (( tion Simplifica ) ( Addition ) ( syllogism e Disjunctiv ) ) (( syllogism al Hypothetic ) ( )] ( ) [( tollen Modus )] ( [ ponens Modus )] ( [ Name Tautology inference of Rule r p r p q p r q r p q p q p q p q p q p p q p p q p q p p q p p q p q p q p q p r p r q q p r p r q q p p q p q p q p q q q p p q p q p                                                      
  • 10. You might think of this as some sort of game. You are given some statement, and you want to see if it is a valid argument and true You translate the statement into argument form using propositional variables, and make sure you have the premises right, and clear what is the conclusion You then want to get from premises/hypotheses (A) to the conclusion (B) using the rules of inference. So, get from A to B using as “moves” the rules of inference Another view on what we are doing
  • 11. Using the rules of inference to build arguments An example It is not sunny this afternoon and it is colder than yesterday. If we go swimming 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. We will be home by sunset
  • 12. Using the rules of inference to build arguments An example 1. It is not sunny this afternoon and it is colder than yesterday. 2. If we go swimming it is sunny. 3. If we do not go swimming then we will take a canoe trip. 4. If we take a canoe trip then we will be home by sunset. 5. We will be home by sunset ) conclusion (the sunset by home be will We trip canoe a take will We swimming go We yesterday n colder tha is It afternoon sunny this is It t s r q p t t s s r p r q p . 5 . 4 . 3 . 2 . 1       propositions hypotheses
  • 13. Hypothesis . 1 Reason Step q p   (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step p q p    Hypothesis . 3 (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step p r p q p     (3) and (2) using tollens Modus . 4 Hypothesis . 3 (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step r p r p q p      Hypothesis . 5 (3) and (2) using tollens Modus . 4 Hypothesis . 3 (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step s r r p r p q p        (5) and (4) using ponens Modus . 6 Hypothesis . 5 (3) and (2) using tollens Modus . 4 Hypothesis . 3 (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step s s r r p r p q p        Using the rules of inference to build arguments An example ) conclusion (the sunset by home be will We trip canoe a take will We swimming go We yesterday n colder tha is It afternoon sunny this is It t s r q p t t s s r p r q p . 5 . 4 . 3 . 2 . 1       Resolution ) ( )] ( ) [( n Conjunctio ) ( )) ( ) (( tion Simplifica ) ( Addition ) ( syllogism e Disjunctiv ) ) (( syllogism al Hypothetic ) ( )] ( ) [( tollen Modus )] ( [ ponens Modus )] ( [ Name Tautology inference of Rule r p r p q p r q r p q p q p q p q p q p p q p p q p q p p q p p q p q p q p q p r p r q q p r p r q q p p q p q p q p q q q p p q p q p                                                       Hypothesis . 7 (5) and (4) using ponens Modus . 6 Hypothesis . 5 (3) and (2) using tollens Modus . 4 Hypothesis . 3 (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step t s s s r r p r p q p         (7) and (6) using ponens Modus . 8 Hypothesis . 7 (5) and (4) using ponens Modus . 6 Hypothesis . 5 (3) and (2) using tollens Modus . 4 Hypothesis . 3 (1) using tion Simplifica . 2 Hypothesis . 1 Reason Step t t s s s r r p r p q p        
  • 14. Using the resolution rule (an example) 1. Anna is skiing or it is not snowing. 2. It is snowing or Bart is playing hockey. 3. Consequently Anna is skiing or Bart is playing hockey. We want to show that (3) follows from (1) and (2)
  • 15. Using the resolution rule (an example) 1. Anna is skiing or it is not snowing. 2. It is snowing or Bart is playing hockey. 3. Consequently Anna is skiing or Bart is playing hockey. snowing is it hockey playing is Bart skiing is Anna r q p propositions q r r p    . 2 . 1 hypotheses r q r p q p      Consequently Anna is skiing or Bart is playing hockey Resolution rule
  • 16. Rules of Inference & Quantified Statements All men are Mortal John is a man Therefore John is Mortal Above is an example of a rule called “Universal Instantiation”. We conclude P(c) is true, where c is a particular/named element in the domain of discourse, given the premise ) (x P x 
  • 17. Rules of Inference & Quantified Statements tion generalisa l Existentia ) ( c element some for P(c) ion instantiat l Existentia c element some for ) ( P(x) x tion generalisa Universal ) ( c arbitrary an for P(c) ion instantiat Universal ) ( P(x) x Name Inference of Rule x P x c P x P x c P        