SlideShare a Scribd company logo
1 of 19
ARTIFICIAL INTELLIGENCE
S.MANIMOZHI
ASSISTANT PROFESSOR,
DEPARTMENT OF CA
BON SECOURS COLLEGE FOR WOMEN,
THANJAVUR
Chapter 5: Using Predicate Logic
• Representing simple facts in Logic
• Representing Instance and Isa relationships
Slide 1
Using Predicate Logic
Logic
Logic is concerned with the truth of statements about the world.
Generally each statement is either TRUE or FALSE.
Logic includes :Syntax , Semantics and Inference Procedure.
Syntax :
Specifies the symbols in the language about how they can be co
mbined to form sentences. The facts about the world are repre
sented as sentences in logic.
Slide 2
Using Predicate Logic
◊ Semantic :
Specifies how to assign a truth value to a sentence based on
its meaning in the world.
It Specifies what facts a sentence refers to.
A fact is a claim about the world, and it may be TRUE or
FALSE.
◊ Inference Procedure :
Specifies methods for computing new sentences from the
existing sentences
. Slide 2
Representing Simple Facts in Logic
Using propositional logic
–Real-world facts are represented as logical propositions wr
itten as well-formed formulas (wff’s)
–Example 1:
It is raining RAINING
It is sunny SUNNY
It is Windy WINDY
If it is raining, then it is not sunny RAINING  ¬SUNNY
Representing Simple Facts in Logic
Example 2:
Socrates is a man SOCRATESMAN
Plato is a man PLATOMAN
All men are mortal MORTALMAN
Slide 6
=> Since the assertions are separate, it is not possible to dra
w any conclusion about similarities between Socrates and Pl
ato.
Representing Simple Facts in Logic
It would be much better to represent these facts as
•This fails to capture the relationship between any individual being a man and that
individual being a mortal.
•Therefore it is necessary to move to first order predicate logic as a way of representing
knowledge because it permits representation o f things that cannot reasonably be
represented in prepositional logi c.
•In predicate logic, real world facts are represented as statements written as wff’s
.
Socrates is a man man(socrates)
Plato is a man man(plato)
All men are mortal mortalman
Slide 5
Representing Simple Facts in Logic
Slide 8
Q Propositional logic vs. predicate logic
–Using propositional logic
• Theorem proving is decidable
• Cannot represent objects and quantification
–Using predicate logic
• Can represent objects and quantification
• Theorem proving is semi-decidable
Representing Simple Facts in Logic
Slide 9
Consider the following set of sentences.
1. Marcus was a man.
2. Marcus was a Pompeian.
3. All Pompeians were Romans.
4. Caesar was a ruler.
5. All Romans were either loyal to Caesar or hated him.
6. Every one is loyal to someone.
7. People only try to assassinate rulers they are not loyal to.
8. Marcus tried to assassinate Caesar
Representing Simple Facts in Logic
Slide 10
1. Marcus was a man. man(Mar cus)
2. Marcus was a Pompeian. Po mpeian(Marcus)
3.All Pompeians were Romans. x: Pompeian(x) Roman(x)
4. Caesar was a ruler. ruler(Cae sar)
Representing Simple Facts in Logic
Slide 11
5. All Romans were either loyal to Caesar or hated him.
In English the word ‘or’ means the logical inclusive-or and
sometimes means the logical exclusive-or(XOR)
hate(x, Caesar)
inclusive-or
x: Roman(x) loyalto(x, Caesar)
exclusive-or (XOR)
x: Roman(x) (loyalto(x, Caesar) hate(x, Caesar))
( loyalto(x, Caesar) hate(x, Caesar))
Representing Simple Facts in Logic
Slide 12
6.Every one is loyal to someone. x
y: loyalto(x, y)
7. People only try to assassinate rulers they are not loyal to.
x: y: person(x) ruler(y) tryassassinate(x, y)
loyalto(x, y)
8. Marcus tried to assassinate Caesar. tryassassinate(
Marcus, Caesar)
Representing Simple Facts in Logic
Slide 13
To answer the question
Was Marcus loyal to Caesar?
To produce a formal proof , reasoning backward from th
e desired goal
loyalto(Marcus, Caesar)
To prove the goal, rules of inference are to be used to trans
form into another goal that in turn be transformed and s
o on, until there are no insatisfied goals remaining.
Representing Simple Facts in Logic
Slide 14
•This attempt fails , since there is no way to satisfy the goal perso
n(Marcus)with the statements available.
•The problem is although its known that Marcus was a man there
is no way to conclude it.
•Therefore another representation is added namely
Representing Simple Facts in Logic
9.All men are people
x:man(x)person(x)
This satisfies the last goal and produce a proof that Marcus w as not loyal to
ceasar.
Three important issues to be addressed in this process of converting
English sentences to logical statements and the n using these statements to
deduce new ones.
•Many English sentences are ambiguous. Choosing the corre ct interpretation
may be difficult.
• There is often a choice of how to represent knowledge
• Obvious information may be necessary for reasoning
Slide 13
Representing Instance & Isa Relationships
Slide 14
•Attributes “ IsA ” and “ Instance ” support property inheritance and play important
role in knowledge representation.
•The ways these two attributes "instance" and "isa", are logically expresse d are
shown in the example below :
Example : A simple sentence like "Joe is a musician"
Here "is a" (called IsA) is a way of expressing what logically is called a
class-instance relationship between the su bjects represented by the terms
"Joe" and "musician".
◊ "Joe" is an instance of the class of things called "musician". " Joe" plays the
role of instance, "musician" plays the role of class in that sentence.
◊ Note : In such a sentence, while for a human there is no con fusion, but for
computers each relationship have to be defined explicitly.
Representing Instance & Isa Relationships
Slide 17
Representing Instance & Isa Relationships
Slide 18
•The first part of the figure contains the representations, in which the
class membership is represented with unary predicates, each
corresponding to a class. Asserting that p(x) is true is equi valent to
asserting that X is an instance of p.
•The second part uses the instance predicate explicitly. It is a b inary
one, whose first argument is an object and whose second argument
is a class to which the object belongs. The implicatio n rule in
statement 3 states that object is an instance of the sub class
pompeian then it is an instance of the superclass Roman.
Representing Instance & Isa Relationships
Slide 19
•The third part contains representations that use both the instan ce
and isa predicates explicitly. Use of isa simplifies the repres entation
of sentence 3 but requires one additional axiom.It desc ribes how an
instance relation and an isa relation combined to derive a new
instance relation.

More Related Content

What's hot

Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logicparsa rafiq
 
The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...Victor Gorbatov
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iiichandsek666
 
Proposition & Logical Operations
Proposition & Logical OperationsProposition & Logical Operations
Proposition & Logical OperationsSunipa Bera
 
Against bounded-indefinite-extensibility
Against bounded-indefinite-extensibilityAgainst bounded-indefinite-extensibility
Against bounded-indefinite-extensibilityjamesstudd
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)D Nayanathara
 
Propositional logic by shawan
Propositional logic by shawanPropositional logic by shawan
Propositional logic by shawanTouhidul Shawan
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical LogicJoey Valdriz
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Abdullah Al Amin
 
Lec 01 proposition (Discrete Mathematics)
Lec 01   proposition (Discrete Mathematics)Lec 01   proposition (Discrete Mathematics)
Lec 01 proposition (Discrete Mathematics)Naosher Md. Zakariyar
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inferenceSlideshare
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notesGIRIM8
 

What's hot (20)

First order logic
First order logicFirst order logic
First order logic
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
 
The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...The law of non-contradiction in the combined calculus of sentences, situation...
The law of non-contradiction in the combined calculus of sentences, situation...
 
Kr using rules
Kr using rulesKr using rules
Kr using rules
 
Introduction iii
Introduction iiiIntroduction iii
Introduction iii
 
Bab 1 proposisi
Bab 1 proposisiBab 1 proposisi
Bab 1 proposisi
 
Proposition & Logical Operations
Proposition & Logical OperationsProposition & Logical Operations
Proposition & Logical Operations
 
Formal Logic: Quick Outline
Formal Logic: Quick OutlineFormal Logic: Quick Outline
Formal Logic: Quick Outline
 
Against bounded-indefinite-extensibility
Against bounded-indefinite-extensibilityAgainst bounded-indefinite-extensibility
Against bounded-indefinite-extensibility
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)
 
Propositional logic by shawan
Propositional logic by shawanPropositional logic by shawan
Propositional logic by shawan
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)
 
Lec 01 proposition (Discrete Mathematics)
Lec 01   proposition (Discrete Mathematics)Lec 01   proposition (Discrete Mathematics)
Lec 01 proposition (Discrete Mathematics)
 
Prpositional2
Prpositional2Prpositional2
Prpositional2
 
Chapter 05 hurley 12e
Chapter 05 hurley 12eChapter 05 hurley 12e
Chapter 05 hurley 12e
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notes
 
AI Lesson 11
AI Lesson 11AI Lesson 11
AI Lesson 11
 

Similar to Chapter5 slideshare

Knowledge representation using predicate logic
Knowledge representation using predicate logicKnowledge representation using predicate logic
Knowledge representation using predicate logicHarshitaSharma285596
 
AIML 7th semester VTU
AIML 7th semester VTUAIML 7th semester VTU
AIML 7th semester VTUAyushiLodha3
 
Annotations Propp S Functions
Annotations  Propp S FunctionsAnnotations  Propp S Functions
Annotations Propp S FunctionsAngie Miller
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxkitsenthilkumarcse
 
Knowledge representation events in Artificial Intelligence.pptx
Knowledge representation events in Artificial Intelligence.pptxKnowledge representation events in Artificial Intelligence.pptx
Knowledge representation events in Artificial Intelligence.pptxkitsenthilkumarcse
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfARMANVERMA7
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3SURBHI SAROHA
 
Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)Tamal Kumar Das
 
Logic & critical thinking
Logic & critical thinking Logic & critical thinking
Logic & critical thinking AMIR HASSAN
 
Television show narrative types
Television show narrative typesTelevision show narrative types
Television show narrative typesSomila Mjekula
 
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 1Sabu Francis
 
Discrete Mathematics
Discrete MathematicsDiscrete Mathematics
Discrete MathematicsJihudumie.Com
 
ESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic Turn
ESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic TurnESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic Turn
ESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic TurnDaisuke BEKKI
 
Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)Tamal Kumar Das
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivitymaartenmarx
 

Similar to Chapter5 slideshare (20)

Knowledge representation using predicate logic
Knowledge representation using predicate logicKnowledge representation using predicate logic
Knowledge representation using predicate logic
 
AIML 7th semester VTU
AIML 7th semester VTUAIML 7th semester VTU
AIML 7th semester VTU
 
Annotations Propp S Functions
Annotations  Propp S FunctionsAnnotations  Propp S Functions
Annotations Propp S Functions
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptx
 
Knowledge representation events in Artificial Intelligence.pptx
Knowledge representation events in Artificial Intelligence.pptxKnowledge representation events in Artificial Intelligence.pptx
Knowledge representation events in Artificial Intelligence.pptx
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdf
 
Lecture1Kripke
Lecture1KripkeLecture1Kripke
Lecture1Kripke
 
01bkb04p.ppt
01bkb04p.ppt01bkb04p.ppt
01bkb04p.ppt
 
Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3Knowledge Representation & Reasoning AI UNIT 3
Knowledge Representation & Reasoning AI UNIT 3
 
Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)
 
Logic & critical thinking
Logic & critical thinking Logic & critical thinking
Logic & critical thinking
 
Television show narrative types
Television show narrative typesTelevision show narrative types
Television show narrative types
 
4.pdf
4.pdf4.pdf
4.pdf
 
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
 
Discrete Mathematics
Discrete MathematicsDiscrete Mathematics
Discrete Mathematics
 
Logic.pdf
Logic.pdfLogic.pdf
Logic.pdf
 
ESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic Turn
ESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic TurnESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic Turn
ESSLLI2016 DTS Lecture Day 5-2: Proof-theoretic Turn
 
Pnp
PnpPnp
Pnp
 
Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)Syllogism by premises from das sir (08961556195)
Syllogism by premises from das sir (08961556195)
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivity
 

Recently uploaded

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Recently uploaded (20)

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

Chapter5 slideshare

  • 1. ARTIFICIAL INTELLIGENCE S.MANIMOZHI ASSISTANT PROFESSOR, DEPARTMENT OF CA BON SECOURS COLLEGE FOR WOMEN, THANJAVUR
  • 2. Chapter 5: Using Predicate Logic • Representing simple facts in Logic • Representing Instance and Isa relationships Slide 1
  • 3. Using Predicate Logic Logic Logic is concerned with the truth of statements about the world. Generally each statement is either TRUE or FALSE. Logic includes :Syntax , Semantics and Inference Procedure. Syntax : Specifies the symbols in the language about how they can be co mbined to form sentences. The facts about the world are repre sented as sentences in logic. Slide 2
  • 4. Using Predicate Logic ◊ Semantic : Specifies how to assign a truth value to a sentence based on its meaning in the world. It Specifies what facts a sentence refers to. A fact is a claim about the world, and it may be TRUE or FALSE. ◊ Inference Procedure : Specifies methods for computing new sentences from the existing sentences . Slide 2
  • 5. Representing Simple Facts in Logic Using propositional logic –Real-world facts are represented as logical propositions wr itten as well-formed formulas (wff’s) –Example 1: It is raining RAINING It is sunny SUNNY It is Windy WINDY If it is raining, then it is not sunny RAINING  ¬SUNNY
  • 6. Representing Simple Facts in Logic Example 2: Socrates is a man SOCRATESMAN Plato is a man PLATOMAN All men are mortal MORTALMAN Slide 6 => Since the assertions are separate, it is not possible to dra w any conclusion about similarities between Socrates and Pl ato.
  • 7. Representing Simple Facts in Logic It would be much better to represent these facts as •This fails to capture the relationship between any individual being a man and that individual being a mortal. •Therefore it is necessary to move to first order predicate logic as a way of representing knowledge because it permits representation o f things that cannot reasonably be represented in prepositional logi c. •In predicate logic, real world facts are represented as statements written as wff’s . Socrates is a man man(socrates) Plato is a man man(plato) All men are mortal mortalman Slide 5
  • 8. Representing Simple Facts in Logic Slide 8 Q Propositional logic vs. predicate logic –Using propositional logic • Theorem proving is decidable • Cannot represent objects and quantification –Using predicate logic • Can represent objects and quantification • Theorem proving is semi-decidable
  • 9. Representing Simple Facts in Logic Slide 9 Consider the following set of sentences. 1. Marcus was a man. 2. Marcus was a Pompeian. 3. All Pompeians were Romans. 4. Caesar was a ruler. 5. All Romans were either loyal to Caesar or hated him. 6. Every one is loyal to someone. 7. People only try to assassinate rulers they are not loyal to. 8. Marcus tried to assassinate Caesar
  • 10. Representing Simple Facts in Logic Slide 10 1. Marcus was a man. man(Mar cus) 2. Marcus was a Pompeian. Po mpeian(Marcus) 3.All Pompeians were Romans. x: Pompeian(x) Roman(x) 4. Caesar was a ruler. ruler(Cae sar)
  • 11. Representing Simple Facts in Logic Slide 11 5. All Romans were either loyal to Caesar or hated him. In English the word ‘or’ means the logical inclusive-or and sometimes means the logical exclusive-or(XOR) hate(x, Caesar) inclusive-or x: Roman(x) loyalto(x, Caesar) exclusive-or (XOR) x: Roman(x) (loyalto(x, Caesar) hate(x, Caesar)) ( loyalto(x, Caesar) hate(x, Caesar))
  • 12. Representing Simple Facts in Logic Slide 12 6.Every one is loyal to someone. x y: loyalto(x, y) 7. People only try to assassinate rulers they are not loyal to. x: y: person(x) ruler(y) tryassassinate(x, y) loyalto(x, y) 8. Marcus tried to assassinate Caesar. tryassassinate( Marcus, Caesar)
  • 13. Representing Simple Facts in Logic Slide 13 To answer the question Was Marcus loyal to Caesar? To produce a formal proof , reasoning backward from th e desired goal loyalto(Marcus, Caesar) To prove the goal, rules of inference are to be used to trans form into another goal that in turn be transformed and s o on, until there are no insatisfied goals remaining.
  • 14. Representing Simple Facts in Logic Slide 14 •This attempt fails , since there is no way to satisfy the goal perso n(Marcus)with the statements available. •The problem is although its known that Marcus was a man there is no way to conclude it. •Therefore another representation is added namely
  • 15. Representing Simple Facts in Logic 9.All men are people x:man(x)person(x) This satisfies the last goal and produce a proof that Marcus w as not loyal to ceasar. Three important issues to be addressed in this process of converting English sentences to logical statements and the n using these statements to deduce new ones. •Many English sentences are ambiguous. Choosing the corre ct interpretation may be difficult. • There is often a choice of how to represent knowledge • Obvious information may be necessary for reasoning Slide 13
  • 16. Representing Instance & Isa Relationships Slide 14 •Attributes “ IsA ” and “ Instance ” support property inheritance and play important role in knowledge representation. •The ways these two attributes "instance" and "isa", are logically expresse d are shown in the example below : Example : A simple sentence like "Joe is a musician" Here "is a" (called IsA) is a way of expressing what logically is called a class-instance relationship between the su bjects represented by the terms "Joe" and "musician". ◊ "Joe" is an instance of the class of things called "musician". " Joe" plays the role of instance, "musician" plays the role of class in that sentence. ◊ Note : In such a sentence, while for a human there is no con fusion, but for computers each relationship have to be defined explicitly.
  • 17. Representing Instance & Isa Relationships Slide 17
  • 18. Representing Instance & Isa Relationships Slide 18 •The first part of the figure contains the representations, in which the class membership is represented with unary predicates, each corresponding to a class. Asserting that p(x) is true is equi valent to asserting that X is an instance of p. •The second part uses the instance predicate explicitly. It is a b inary one, whose first argument is an object and whose second argument is a class to which the object belongs. The implicatio n rule in statement 3 states that object is an instance of the sub class pompeian then it is an instance of the superclass Roman.
  • 19. Representing Instance & Isa Relationships Slide 19 •The third part contains representations that use both the instan ce and isa predicates explicitly. Use of isa simplifies the repres entation of sentence 3 but requires one additional axiom.It desc ribes how an instance relation and an isa relation combined to derive a new instance relation.