SlideShare a Scribd company logo
1 of 31
Download to read offline
Knowledge Representation and Reasoning
Intelligent agents should have capacity for:
• Perceiving : Acquiring information from environment.
• Knowledge Representation : Representing its understanding of
the world.
• Reasoning : Inferring the implications of what it knows and of the
choices it has.
• Acting: Choosing what it want to do and carry it out.
Knowledge based system
• Representation of knowledge and the reasoning process are
central to the entire field of artificial intelligence.
• The primary component of a knowledge-based agent is its
knowledge-base.
• Human beings are essentially knowledge based creatures.
• Experiences/ rules to solve a problem
• A knowledge-base is a set of sentences. Each sentence is
expressed in a language called the knowledge representation
language
Inferencing
• Mechanisms to derive new sentences from old ones.
This process is known as inferencing or reasoning.
• Inference must obey the primary requirement that the
new sentences should follow logically from the
previous ones.
Logic
• Logic is the primary vehicle for representing and reasoning
about knowledge.
• Provides way to represent+ reasoning
• A logic consists of two parts, a language and a method
of reasoning.
• The logical language, in turn, has two aspects, syntax
and semantics.
• Thus, to specify or define a particular logic, one needs
to specify three things:
• Syntax: The atomic symbols of the logical language, and the rules for
constructing well formed, non-atomic expressions (symbol structures) of the
logic.
• Syntax specifies the symbols in the language and how they can be combined to
form sentences. Hence facts about the world are represented as sentences in
logic.
• Semantics: The meanings of the atomic symbols of the logic, and the rules for
determining the meanings of non-atomic expressions of the logic.
• It specifies what facts in the world a sentence refers to. Hence, also specifies
how you assign a truth value to a sentence based on its meaning in the world.
• Syntactic Inference Method: The rules for determining a subset of logical
expressions, called theorems of the logic. It refers to mechanical method for
computing (deriving) new (true) sentences from existing sentences
Logical systems with different syntax and semantics.
• There are a number of logical systems
• Propositional logic :
• Simplest kind of logic
• All objects described are fixed or unique "John is a student"
student(john)
• Here John refers to one unique person.
• First order predicate logic:
• Objects described can be unique or variables to stand for a
unique object .
• "All Men are mortal" For All(M) [Men(M) -> Mortal(M)]
• Here M can be replaced by many different unique Men.
• Temporal Logic:
• Represents truth over time.
• Modal Logic:
• Represents doubt
• Higher order logics:
• Allows variable to represent many relations between objects.
Propositional Logic
• In propositional logic (PL) a user defines a set of propositional
symbols, like P and Q.
• User defines the semantics of each of these symbols.
• For example, P means "It is hot"
• Q means "It is humid"
• R means "It is raining"
• A sentence (also called a formula or well-formed formula) is
defined as:
• 1. A symbol
• 2. If S is a sentence, then ~S is a sentence, where "~" is the
"not" logical operator
• 3. If S and T are sentences, then (S v T), (S ^ T), (S => T), and
(S <=> T) are sentences, where the four logical connectives
correspond to "or," "and," "implies," and "if and only if,"
respectively
• Examples of PL sentences:
• (P ^ Q) => R (here meaning "If it is hot and humid, then it is
raining")
• Q => P (here meaning "If it is humid, then it is hot")
• Q (here meaning "It is humid.")
• Interpretation of the sentence :
• Given the truth values of all of the constituent symbols in a
sentence, that sentence can be "evaluated" to determine its
truth value (True or False). This is called an interpretation of
the sentence.
• Model : A model is an interpretation (i.e., an assignment of
truth values to symbols) of a set of sentences such that each
sentence is True. A model is just a formal mathematical
structure that "stands in" for the world.
• Tautology : A valid sentence (also called a tautology) is a
sentence that is True under all interpretations. Hence, no
matter what the world is actually like or what the semantics is,
the sentence is True. For example "It's raining or it's not
raining."
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:
Valid Arguments in Propositional Logic
is a tautology (always true)
This is another way of saying that
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
and conclusion
is valid when 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
modus ponens
modus ponens (Latin) translates to “mode that affirms”
The 1st
law
Rules of Inference for Propositional Logic modus ponens
If it’s a nice day we’ll go to the Park. Assume the hypothesis
“it’s a nice day” is true. Then by modus ponens it follows that
“we’ll go to the Park”.
The rules of inference
• Constructive Dilemma
• (P→Q) ∧ (R →S)
• P ∨ R
• ∴Q ∨ S
• Destructive Dilemma
• (P→Q) ∧ (R →S)
• ~Q ∨ ~S
• ∴~P ∨ ~R
• DeMorgan's law is also applicable in logic machines.
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 resolution rule (an example)
1. Tom is skiing or it is not snowing.
2. It is snowing or Bart is playing hockey.
3. Consequently Tom 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. Tom is skiing or it is not snowing.
2. It is snowing or Bart is playing hockey.
3. Consequently Tom is skiing or Bart is playing hockey.
propositions
hypotheses
Consequently Tom is skiing or Bart is playing hockey
Resolution rule
Rules of Inference & Quantified Statements
All men are Mortal, said Jane
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
Rules of Inference & Quantified Statements
Rules of Inference & Quantified Statements
All men are Mortal said Jane
John is a man
Therefore John is Mortal
premises
premises
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 cycle trip.
4. If we take a cycle trip then we will be home by sunset.
5. We will be home by sunset
propositions hypotheses
Using the rules of inference to build arguments An example

More Related Content

Similar to AI NOTES ppt 4.pdf

Similar to AI NOTES ppt 4.pdf (20)

predicateLogic.ppt
predicateLogic.pptpredicateLogic.ppt
predicateLogic.ppt
 
PropositionalLogic.ppt
PropositionalLogic.pptPropositionalLogic.ppt
PropositionalLogic.ppt
 
AIML 7th semester VTU
AIML 7th semester VTUAIML 7th semester VTU
AIML 7th semester VTU
 
Inference in First-Order Logic
Inference in First-Order Logic Inference in First-Order Logic
Inference in First-Order Logic
 
artficial intelligence
artficial intelligenceartficial intelligence
artficial intelligence
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 
First Order Logic
First Order LogicFirst Order Logic
First Order Logic
 
Module_4_2.pptx
Module_4_2.pptxModule_4_2.pptx
Module_4_2.pptx
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Logic
LogicLogic
Logic
 
lec3 AI.pptx
lec3  AI.pptxlec3  AI.pptx
lec3 AI.pptx
 
01bkb04p.ppt
01bkb04p.ppt01bkb04p.ppt
01bkb04p.ppt
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
 
Lecture # 2 (28.01.2017) @ ibt principle of logic
Lecture # 2 (28.01.2017) @ ibt principle of logicLecture # 2 (28.01.2017) @ ibt principle of logic
Lecture # 2 (28.01.2017) @ ibt principle of logic
 
AI IMPORTANT QUESTION
AI IMPORTANT QUESTIONAI IMPORTANT QUESTION
AI IMPORTANT QUESTION
 
Lecture # 2 principles of logics
Lecture # 2    principles of logicsLecture # 2    principles of logics
Lecture # 2 principles of logics
 
Logic in Predicate and Propositional Logic
Logic in Predicate and Propositional LogicLogic in Predicate and Propositional Logic
Logic in Predicate and Propositional Logic
 
Theory of first order logic
Theory of first order logicTheory of first order logic
Theory of first order logic
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

AI NOTES ppt 4.pdf

  • 2. Intelligent agents should have capacity for: • Perceiving : Acquiring information from environment. • Knowledge Representation : Representing its understanding of the world. • Reasoning : Inferring the implications of what it knows and of the choices it has. • Acting: Choosing what it want to do and carry it out.
  • 3. Knowledge based system • Representation of knowledge and the reasoning process are central to the entire field of artificial intelligence. • The primary component of a knowledge-based agent is its knowledge-base. • Human beings are essentially knowledge based creatures. • Experiences/ rules to solve a problem • A knowledge-base is a set of sentences. Each sentence is expressed in a language called the knowledge representation language
  • 4. Inferencing • Mechanisms to derive new sentences from old ones. This process is known as inferencing or reasoning. • Inference must obey the primary requirement that the new sentences should follow logically from the previous ones.
  • 5. Logic • Logic is the primary vehicle for representing and reasoning about knowledge. • Provides way to represent+ reasoning • A logic consists of two parts, a language and a method of reasoning. • The logical language, in turn, has two aspects, syntax and semantics. • Thus, to specify or define a particular logic, one needs to specify three things:
  • 6. • Syntax: The atomic symbols of the logical language, and the rules for constructing well formed, non-atomic expressions (symbol structures) of the logic. • Syntax specifies the symbols in the language and how they can be combined to form sentences. Hence facts about the world are represented as sentences in logic. • Semantics: The meanings of the atomic symbols of the logic, and the rules for determining the meanings of non-atomic expressions of the logic. • It specifies what facts in the world a sentence refers to. Hence, also specifies how you assign a truth value to a sentence based on its meaning in the world. • Syntactic Inference Method: The rules for determining a subset of logical expressions, called theorems of the logic. It refers to mechanical method for computing (deriving) new (true) sentences from existing sentences
  • 7.
  • 8. Logical systems with different syntax and semantics. • There are a number of logical systems • Propositional logic : • Simplest kind of logic • All objects described are fixed or unique "John is a student" student(john) • Here John refers to one unique person. • First order predicate logic: • Objects described can be unique or variables to stand for a unique object . • "All Men are mortal" For All(M) [Men(M) -> Mortal(M)] • Here M can be replaced by many different unique Men.
  • 9. • Temporal Logic: • Represents truth over time. • Modal Logic: • Represents doubt • Higher order logics: • Allows variable to represent many relations between objects.
  • 10. Propositional Logic • In propositional logic (PL) a user defines a set of propositional symbols, like P and Q. • User defines the semantics of each of these symbols. • For example, P means "It is hot" • Q means "It is humid" • R means "It is raining"
  • 11. • A sentence (also called a formula or well-formed formula) is defined as: • 1. A symbol • 2. If S is a sentence, then ~S is a sentence, where "~" is the "not" logical operator • 3. If S and T are sentences, then (S v T), (S ^ T), (S => T), and (S <=> T) are sentences, where the four logical connectives correspond to "or," "and," "implies," and "if and only if," respectively
  • 12. • Examples of PL sentences: • (P ^ Q) => R (here meaning "If it is hot and humid, then it is raining") • Q => P (here meaning "If it is humid, then it is hot") • Q (here meaning "It is humid.")
  • 13. • Interpretation of the sentence : • Given the truth values of all of the constituent symbols in a sentence, that sentence can be "evaluated" to determine its truth value (True or False). This is called an interpretation of the sentence. • Model : A model is an interpretation (i.e., an assignment of truth values to symbols) of a set of sentences such that each sentence is True. A model is just a formal mathematical structure that "stands in" for the world. • Tautology : A valid sentence (also called a tautology) is a sentence that is True under all interpretations. Hence, no matter what the world is actually like or what the semantics is, the sentence is True. For example "It's raining or it's not raining."
  • 14. 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:
  • 15. Valid Arguments in Propositional Logic is a tautology (always true) This is another way of saying that
  • 16. 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
  • 17. Valid Arguments in Propositional Logic The argument form with premises and conclusion is valid when 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?
  • 18. Rules of Inference for Propositional Logic modus ponens modus ponens (Latin) translates to “mode that affirms” The 1st law
  • 19. Rules of Inference for Propositional Logic modus ponens If it’s a nice day we’ll go to the Park. Assume the hypothesis “it’s a nice day” is true. Then by modus ponens it follows that “we’ll go to the Park”.
  • 20. The rules of inference
  • 21. • Constructive Dilemma • (P→Q) ∧ (R →S) • P ∨ R • ∴Q ∨ S • Destructive Dilemma • (P→Q) ∧ (R →S) • ~Q ∨ ~S • ∴~P ∨ ~R • DeMorgan's law is also applicable in logic machines.
  • 22. 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
  • 23. Using the resolution rule (an example) 1. Tom is skiing or it is not snowing. 2. It is snowing or Bart is playing hockey. 3. Consequently Tom is skiing or Bart is playing hockey. We want to show that (3) follows from (1) and (2)
  • 24. Using the resolution rule (an example) 1. Tom is skiing or it is not snowing. 2. It is snowing or Bart is playing hockey. 3. Consequently Tom is skiing or Bart is playing hockey. propositions hypotheses Consequently Tom is skiing or Bart is playing hockey Resolution rule
  • 25. Rules of Inference & Quantified Statements All men are Mortal, said Jane 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
  • 26. Rules of Inference & Quantified Statements
  • 27. Rules of Inference & Quantified Statements All men are Mortal said Jane John is a man Therefore John is Mortal premises premises
  • 28.
  • 29. 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
  • 30. 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 cycle trip. 4. If we take a cycle trip then we will be home by sunset. 5. We will be home by sunset propositions hypotheses
  • 31. Using the rules of inference to build arguments An example