SlideShare a Scribd company logo
The Predicate Calculus
Chapter 15.
2
Outline
 Motivation
 The Language and Its Syntax
 Semantics
 Quantification
 Semantics of Quantifiers
 Predicate Calculus as a Language for
Representing Knowledge
3
15.1 Motivation
 Propositional calculus
 Expressional limitation
 Atoms have no internal structures.
 First-order predicate calculus
 has names for objects as well as propositions.
 Symbols
 Object constants
 Relation constants
 Function constants
 Other constructs
 Refer to objects in the world
 Refer to propositions about the world
4
The Language and its Syntax
 Components
 Infinite set of object constants
 Aa, 125, 23B, Q, John, EiffelTower
 Infinite set of function constants
 fatherOf1, distanceBetween2, times2
 Infinite set of relation constants
 B173, Parent2, Large1, Clear1, X114
 Propositional connectives
 Delimiters
 (, ), [, ] ,(separator)
 ,,,
5
The Language and its Syntax
 Terms
 Object constant is a term
 Functional expression
 fatherOf(John, Bill), times(4, plus(3, 6)), Sam
 wffs
 Atoms
 Relation constant of arity n followed by n terms is an atom (atomic
formula)
 An atom is a wff.
 Greaterthan(7,2), P(A, B, C, D), Q
 Propositional wff
PSam)hn,Brother(Jo5,4)]Lessthan(1n(7,2)Greatertha[ 
6
15.3 Semantics
 Worlds
 Individuals
 Objects
 Concrete examples: Block A, Mt. Whitney, Julius Caesar, …
 Abstract entities: 7, set of all integers, …
 Fictional/invented entities: beauty, Santa Claus, a unicorn,
honesty, …
 Functions on individuals
 Map n tuples of individuals into individuals
 Relations over individuals
 Property: relation of arity 1 (heavy, big, blue, …)
 Specification of n-ary relation: list all the n tuples of individuals
7
15.3 Semantics
 Interpretations
 Assignment: maps the followings
 object constants into objects in the world
 n-ary constants into n-ary functions
 n-ary relation constants into n-ary relations
 called denotations of corresponding predicate-calculus expressions
 Domain
 Set of objects to which object constant assignments are made
 True/False values
Figure 15.1 A Configuration of Blocks
8
Table 15.1 A Mapping between Predicate Calculus and the World
Determination of the value of some predicate-claculus wffs
On(A,B) is False because <A,B> is not in the relation On.
Clear(B) is True because <B> is in the relation Clear.
On(C,F1) is True because <C,Floor> is in the relation On.
On(C,F1) On(A,B) is True because both On(C,F1) and  On(A,B) are True
Predicate Calculus
A
B
C
F1
On
Clear
World
A
B
C
Floor
On={<B,A>, <A,C>, <C, Floor>
Clear={<B>}
9
15.3 Semantics
 Models and Related Notions
 An interpretation satisfies a wff
 wff has the value True under that interpretation
 Model of wff
 An interpretation that satisfies a wff
 Valid wff
 Any wff that has the value True under all interpretations
 inconsistent/unsatisfiable wff
 Any wff that does not have a model
  logically entails  ( |=)
 A wff  has value True under all of those interpretations for which
each of the wffs in a set  has value True
 Equivalent wffs
 Truth values are identical under all interpretations
10
15.3 Semantics
 Knowledge
 Predicate-calculus formulas
 represent knowledge of an agent
 Knowledge base of agent
 Set of formulas
 The agent knows  = the agent believes 
Figure 15.2 Three Blocks-World Situations
11
15.4 Quantification
 Finite domain
 Clear(B1)  Clear(B2)  Clear(B3)  Clear(B4)
 Clear(B1)  Clear(B2)  Clear(B3)  Clear(B4)
 Infinite domain
 Problems of long conjunctions or disjunctions  impractical
 New syntactic entities
 Variable symbols
 consist of strings beginning with lowercase letters
 term
 Quantifier symbols  give expressive power to predicate-calculus
 : universal quantifier
 : existential quantifier
12
15.4 Quantification
 : wff
 : wff  within the scope of the quantifier
 : quantified variable
 Closed wff (closed sentence)
 All variable symbols besides  in  are quantified over in 
 Property
 First-order predicate calculi
 restrict quantification over relation and function symbols
 )(,)( 
))]]((),()[()()[()],()()[( xfSyxREyxPxxRxPAx 
]))[((]))[((
),(]))[((]))[((


xyyx
yxxyyx


13
15.5 Semantics of Quantifiers
 Universal Quantifiers
 ()() = True
 () is True for all assignments of  to objects in the domain
 Example: (x)[On(x,C)  Clear(C)]? in Figure 15.2
 x: A, B, C, Floor
 investigate each of assignments in turn for each of the interpretations
 Existential Quantifiers
 ()() = True
 () is True for at least one assignments of  to objects in the
domain
14
15.5 Semantics of Quantifiers
 Useful Equivalences
 ()()  ()()
 ()()  ()()
 ()()  () ()
 Rules of Inference
 Propositional-calculus rules of inference  predicate calculus
 modus ponens
 Introduction and elimination of 
 Introduction of 
  elimination
 Resolution
 Two important rules
 Universal instantiation (UI)
 Existential generalization (EG)
15
15.5 Semantics of Quantifiers
 Universal instantiation
 ()()  ()
 (): wff with variable 
 : constant symbol
 (): () with substituted for  throughout 
 Example: (x)P(x, f(x), B)  P(A, f(A), B)
16
15.5 Semantics of Quantifiers
 Existential generalization
 ()  ()()
 (): wff containing a constant symbol 
 (): form with  replacing every occurrence of 
throughout 
 Example: (x)Q(A, g(A), x) (y)(x)Q(y, g(y), x)
17
15.6 Predicate Calculus as a Language
for Representing Knowledge
 Conceptualizations
 Predicate calculus
 language to express and reason the knowledge about real
world
 represented knowledge: explored throughout logical deduction
 Steps of representing knowledge about a world
 To conceptualize a world in terms of its objects, functions, and
relations
 To invent predicate-calculus expressions with objects,
functions, and relations
 To write wffs satisfied by the world: wffs will be satisfied by
other interpretations as well
18
15.6 Predicate Calculus as a Language
for Representing Knowledge
 Usage of the predicate calculus to represent knowledge
about the world in AI
 John McCarthy (1958): first use
 Guha & Lenat 1990, Lenat 1995, Lenat & Guha 1990
 CYC project
 represent millions of commonsense facts about the world
 Nilsson 1991: discussion of the role of logic in AI
 Genesereth & Nilsson 1987: a textbook treatment of AI based on
logic
19
15.6 Predicate Calculus as a Language
for Representing Knowledge
 Examples
 Examples of the process of conceptualizing knowledge
about a world
 Agent: deliver packages in an office building
 Package(x): the property of something being a package
 Inroom(x, y): certain object is in a certain room
 Relation constant Smaller(x,y): certain object is smaller than
another certain object
 “All of the packages in room 27 are smaller than any of the
packages in room 28”
)},Smaller(
)]28,Inroom()27,Inroom()Package()Package(){[,(
yx
yxyxyx 
20
15.6 Language for Representing
Knowledge
 “Every package in room 27 is smaller than one of the
packages in room 29”
 Way of stating the arrival time of an object
 Arrived(x,z)
 X: arriving object
 Z: time interval during which it arrived
 “Package A arrived before Package B”
 Temporal logic: method of dealing with time in computer science
and AI
)},Smaller(
)]28,Inroom()27,Inroom()Package()Package(){[)((
)},Smaller(
)]28,Inroom()27,Inroom()Package()Package(){[)((
yx
yxyxyx
yx
yxyxxy


z2)]Before(z1,z2)Arrived(B,z1)d(A,z2)[Arrivez1,( 
21
15.6 Language for Representing
Knowledge
 Difficult problems in conceptualization
 “The package in room 28 contains one quart of milk”
 Mass nouns
 Is milk an object having the property of being white?
 What happens when we divide quart into two pints?
 Does it become two objects, or does it remain as one?
 Extensions to the predicate calculus
 allow one agent to make statements about the knowledge
of another agent
 “Robot A knows that Package B is in room 28”

More Related Content

What's hot

01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtrackingmandlapure
 
Dag representation of basic blocks
Dag representation of basic blocksDag representation of basic blocks
Dag representation of basic blocksJothi Lakshmi
 
Ai lecture 06(unit-02)
Ai lecture 06(unit-02)Ai lecture 06(unit-02)
Ai lecture 06(unit-02)vikas dhakane
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AIIldar Nurgaliev
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Ashish Duggal
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computationBipul Roy Bpl
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AIVishal Singh
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)surbhi jha
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AIKirti Verma
 

What's hot (20)

01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
 
Dag representation of basic blocks
Dag representation of basic blocksDag representation of basic blocks
Dag representation of basic blocks
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 
Ai lecture 06(unit-02)
Ai lecture 06(unit-02)Ai lecture 06(unit-02)
Ai lecture 06(unit-02)
 
Unit ii
Unit iiUnit ii
Unit ii
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
Computer graphics realism
Computer graphics realismComputer graphics realism
Computer graphics realism
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Hill climbing
Hill climbingHill climbing
Hill climbing
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 
Master theorem
Master theoremMaster theorem
Master theorem
 
First order logic
First order logicFirst order logic
First order logic
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AI
 

Viewers also liked

Lecture 12 Heuristic Searches
Lecture 12 Heuristic SearchesLecture 12 Heuristic Searches
Lecture 12 Heuristic SearchesHema Kashyap
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based systemTianlu Wang
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
Unit 6 - Predicates, Referring Expressions, and Universe of Discourse
Unit 6 -  Predicates, Referring Expressions, and Universe of DiscourseUnit 6 -  Predicates, Referring Expressions, and Universe of Discourse
Unit 6 - Predicates, Referring Expressions, and Universe of DiscourseAshwag Al Hamid
 
Unit 4 - Referring Expressions
Unit 4 -  Referring ExpressionsUnit 4 -  Referring Expressions
Unit 4 - Referring ExpressionsAshwag Al Hamid
 

Viewers also liked (9)

Ai 02
Ai 02Ai 02
Ai 02
 
Lecture 12 Heuristic Searches
Lecture 12 Heuristic SearchesLecture 12 Heuristic Searches
Lecture 12 Heuristic Searches
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Predicate Calculus
Predicate CalculusPredicate Calculus
Predicate Calculus
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
Unit 6 - Predicates, Referring Expressions, and Universe of Discourse
Unit 6 -  Predicates, Referring Expressions, and Universe of DiscourseUnit 6 -  Predicates, Referring Expressions, and Universe of Discourse
Unit 6 - Predicates, Referring Expressions, and Universe of Discourse
 
Unit 4 - Referring Expressions
Unit 4 -  Referring ExpressionsUnit 4 -  Referring Expressions
Unit 4 - Referring Expressions
 

Similar to 15 predicate

Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planningdarwinrlo
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11darwinrlo
 
Generic Functional Programming with Type Classes
Generic Functional Programming with Type ClassesGeneric Functional Programming with Type Classes
Generic Functional Programming with Type ClassesTapio Rautonen
 
Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)
Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)
Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)Universitat Politècnica de Catalunya
 
Power of functions in a typed world
Power of functions in a typed worldPower of functions in a typed world
Power of functions in a typed worldDebasish Ghosh
 
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...mathsjournal
 
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...mathsjournal
 
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...mathsjournal
 
leanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerleanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerAdriano Melo
 
Declarative Thinking, Declarative Practice
Declarative Thinking, Declarative PracticeDeclarative Thinking, Declarative Practice
Declarative Thinking, Declarative PracticeKevlin Henney
 
Jarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicJarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicPalGov
 
[ABDO] Logic As A Database Language
[ABDO] Logic As A Database Language[ABDO] Logic As A Database Language
[ABDO] Logic As A Database LanguageCarles Farré
 
statistical computation using R- an intro..
statistical computation using R- an intro..statistical computation using R- an intro..
statistical computation using R- an intro..Kamarudheen KV
 
Class1
 Class1 Class1
Class1issbp
 

Similar to 15 predicate (20)

Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planning
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11
 
Generic Functional Programming with Type Classes
Generic Functional Programming with Type ClassesGeneric Functional Programming with Type Classes
Generic Functional Programming with Type Classes
 
Volume computation and applications
Volume computation and applications Volume computation and applications
Volume computation and applications
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)
Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)
Language Model (D3L1 Deep Learning for Speech and Language UPC 2017)
 
Power of functions in a typed world
Power of functions in a typed worldPower of functions in a typed world
Power of functions in a typed world
 
Statistics lab 1
Statistics lab 1Statistics lab 1
Statistics lab 1
 
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
 
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
 
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
A POSSIBLE RESOLUTION TO HILBERT’S FIRST PROBLEM BY APPLYING CANTOR’S DIAGONA...
 
leanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerleanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL Reasoner
 
Algorithm Homework Help
Algorithm Homework HelpAlgorithm Homework Help
Algorithm Homework Help
 
Declarative Thinking, Declarative Practice
Declarative Thinking, Declarative PracticeDeclarative Thinking, Declarative Practice
Declarative Thinking, Declarative Practice
 
03.01 hash tables
03.01 hash tables03.01 hash tables
03.01 hash tables
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Jarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicJarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogic
 
[ABDO] Logic As A Database Language
[ABDO] Logic As A Database Language[ABDO] Logic As A Database Language
[ABDO] Logic As A Database Language
 
statistical computation using R- an intro..
statistical computation using R- an intro..statistical computation using R- an intro..
statistical computation using R- an intro..
 
Class1
 Class1 Class1
Class1
 

More from Tianlu Wang

14 pro resolution
14 pro resolution14 pro resolution
14 pro resolutionTianlu Wang
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculusTianlu Wang
 
12 adversal search
12 adversal search12 adversal search
12 adversal searchTianlu Wang
 
11 alternative search
11 alternative search11 alternative search
11 alternative searchTianlu Wang
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculusTianlu Wang
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learningTianlu Wang
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidenceTianlu Wang
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledgeTianlu Wang
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systemsTianlu Wang
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolutionTianlu Wang
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolutionTianlu Wang
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic searchTianlu Wang
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed searchTianlu Wang
 

More from Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
 

Recently uploaded

2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...luforfor
 
THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.
THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.
THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.ikennaaghanya
 
2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc
2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc
2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.docjosegrimaldo17
 
Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)CristianMestre
 
一比一原版NYU毕业证纽约大学毕业证成绩单如何办理
一比一原版NYU毕业证纽约大学毕业证成绩单如何办理一比一原版NYU毕业证纽约大学毕业证成绩单如何办理
一比一原版NYU毕业证纽约大学毕业证成绩单如何办理beduwt
 
一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理
一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理
一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理beduwt
 
acting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaaacting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaaangelicafronda7
 
Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)SuryaKalyan3
 
IrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptxIrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptxAine Greaney Ellrott
 
一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单zvaywau
 
Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)SuryaKalyan3
 
Tackling Poverty in Nigeria, by growing Art-based SMEs
Tackling Poverty in Nigeria, by growing Art-based SMEsTackling Poverty in Nigeria, by growing Art-based SMEs
Tackling Poverty in Nigeria, by growing Art-based SMEsikennaaghanya
 
Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...
Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...
Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...ikennaaghanya
 
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives ProjectthGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives ProjectMarc Dusseiller Dusjagr
 
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, BesCLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, Besaditiyad2020
 
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理beduwt
 
Caffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire WilsonCaffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire WilsonClaireWilson398082
 
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERSART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERSSandhya J.Nair
 
The Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance LindallThe Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance LindallBBaez1
 
2137ad - Characters that live in Merindol and are at the center of main stories
2137ad - Characters that live in Merindol and are at the center of main stories2137ad - Characters that live in Merindol and are at the center of main stories
2137ad - Characters that live in Merindol and are at the center of main storiesluforfor
 

Recently uploaded (20)

2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...2137ad  Merindol Colony Interiors where refugee try to build a seemengly norm...
2137ad Merindol Colony Interiors where refugee try to build a seemengly norm...
 
THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.
THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.
THE SYNERGY BETWEEN TRADITIONAL “ULI” BODY PAINTING SYMBOLS AND DIGITAL ART.
 
2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc
2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc
2º CALIGRAFIAgggggggggggggggggggggggggggggggggggggg.doc
 
Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)Inter-Dimensional Girl Boards Segment (Act 3)
Inter-Dimensional Girl Boards Segment (Act 3)
 
一比一原版NYU毕业证纽约大学毕业证成绩单如何办理
一比一原版NYU毕业证纽约大学毕业证成绩单如何办理一比一原版NYU毕业证纽约大学毕业证成绩单如何办理
一比一原版NYU毕业证纽约大学毕业证成绩单如何办理
 
一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理
一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理
一比一原版UC Berkeley毕业证加利福尼亚大学|伯克利分校毕业证成绩单如何办理
 
acting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaaacting board rough title here lolaaaaaaa
acting board rough title here lolaaaaaaa
 
Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)Memory Rental Store - The Ending(Storyboard)
Memory Rental Store - The Ending(Storyboard)
 
IrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptxIrishWritersCtrsPersonalEssaysMay29.pptx
IrishWritersCtrsPersonalEssaysMay29.pptx
 
一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单一比一原版(DU毕业证)迪肯大学毕业证成绩单
一比一原版(DU毕业证)迪肯大学毕业证成绩单
 
Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)Memory Rental Store - The Chase (Storyboard)
Memory Rental Store - The Chase (Storyboard)
 
Tackling Poverty in Nigeria, by growing Art-based SMEs
Tackling Poverty in Nigeria, by growing Art-based SMEsTackling Poverty in Nigeria, by growing Art-based SMEs
Tackling Poverty in Nigeria, by growing Art-based SMEs
 
Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...
Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...
Digital/Computer Paintings as a Modern- day Igbo Artists’ vehicle for creatin...
 
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives ProjectthGAP - BAbyss in Moderno!!  Transgenic Human Germline Alternatives Project
thGAP - BAbyss in Moderno!! Transgenic Human Germline Alternatives Project
 
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, BesCLASS XII- HISTORY-THEME 4-Thinkers, Bes
CLASS XII- HISTORY-THEME 4-Thinkers, Bes
 
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
一比一原版UPenn毕业证宾夕法尼亚大学毕业证成绩单如何办理
 
Caffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire WilsonCaffeinated Pitch Bible- developed by Claire Wilson
Caffeinated Pitch Bible- developed by Claire Wilson
 
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERSART FORMS OF KERALA: TRADITIONAL AND OTHERS
ART FORMS OF KERALA: TRADITIONAL AND OTHERS
 
The Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance LindallThe Legacy of Breton In A New Age by Master Terrance Lindall
The Legacy of Breton In A New Age by Master Terrance Lindall
 
2137ad - Characters that live in Merindol and are at the center of main stories
2137ad - Characters that live in Merindol and are at the center of main stories2137ad - Characters that live in Merindol and are at the center of main stories
2137ad - Characters that live in Merindol and are at the center of main stories
 

15 predicate

  • 2. 2 Outline  Motivation  The Language and Its Syntax  Semantics  Quantification  Semantics of Quantifiers  Predicate Calculus as a Language for Representing Knowledge
  • 3. 3 15.1 Motivation  Propositional calculus  Expressional limitation  Atoms have no internal structures.  First-order predicate calculus  has names for objects as well as propositions.  Symbols  Object constants  Relation constants  Function constants  Other constructs  Refer to objects in the world  Refer to propositions about the world
  • 4. 4 The Language and its Syntax  Components  Infinite set of object constants  Aa, 125, 23B, Q, John, EiffelTower  Infinite set of function constants  fatherOf1, distanceBetween2, times2  Infinite set of relation constants  B173, Parent2, Large1, Clear1, X114  Propositional connectives  Delimiters  (, ), [, ] ,(separator)  ,,,
  • 5. 5 The Language and its Syntax  Terms  Object constant is a term  Functional expression  fatherOf(John, Bill), times(4, plus(3, 6)), Sam  wffs  Atoms  Relation constant of arity n followed by n terms is an atom (atomic formula)  An atom is a wff.  Greaterthan(7,2), P(A, B, C, D), Q  Propositional wff PSam)hn,Brother(Jo5,4)]Lessthan(1n(7,2)Greatertha[ 
  • 6. 6 15.3 Semantics  Worlds  Individuals  Objects  Concrete examples: Block A, Mt. Whitney, Julius Caesar, …  Abstract entities: 7, set of all integers, …  Fictional/invented entities: beauty, Santa Claus, a unicorn, honesty, …  Functions on individuals  Map n tuples of individuals into individuals  Relations over individuals  Property: relation of arity 1 (heavy, big, blue, …)  Specification of n-ary relation: list all the n tuples of individuals
  • 7. 7 15.3 Semantics  Interpretations  Assignment: maps the followings  object constants into objects in the world  n-ary constants into n-ary functions  n-ary relation constants into n-ary relations  called denotations of corresponding predicate-calculus expressions  Domain  Set of objects to which object constant assignments are made  True/False values Figure 15.1 A Configuration of Blocks
  • 8. 8 Table 15.1 A Mapping between Predicate Calculus and the World Determination of the value of some predicate-claculus wffs On(A,B) is False because <A,B> is not in the relation On. Clear(B) is True because <B> is in the relation Clear. On(C,F1) is True because <C,Floor> is in the relation On. On(C,F1) On(A,B) is True because both On(C,F1) and  On(A,B) are True Predicate Calculus A B C F1 On Clear World A B C Floor On={<B,A>, <A,C>, <C, Floor> Clear={<B>}
  • 9. 9 15.3 Semantics  Models and Related Notions  An interpretation satisfies a wff  wff has the value True under that interpretation  Model of wff  An interpretation that satisfies a wff  Valid wff  Any wff that has the value True under all interpretations  inconsistent/unsatisfiable wff  Any wff that does not have a model   logically entails  ( |=)  A wff  has value True under all of those interpretations for which each of the wffs in a set  has value True  Equivalent wffs  Truth values are identical under all interpretations
  • 10. 10 15.3 Semantics  Knowledge  Predicate-calculus formulas  represent knowledge of an agent  Knowledge base of agent  Set of formulas  The agent knows  = the agent believes  Figure 15.2 Three Blocks-World Situations
  • 11. 11 15.4 Quantification  Finite domain  Clear(B1)  Clear(B2)  Clear(B3)  Clear(B4)  Clear(B1)  Clear(B2)  Clear(B3)  Clear(B4)  Infinite domain  Problems of long conjunctions or disjunctions  impractical  New syntactic entities  Variable symbols  consist of strings beginning with lowercase letters  term  Quantifier symbols  give expressive power to predicate-calculus  : universal quantifier  : existential quantifier
  • 12. 12 15.4 Quantification  : wff  : wff  within the scope of the quantifier  : quantified variable  Closed wff (closed sentence)  All variable symbols besides  in  are quantified over in   Property  First-order predicate calculi  restrict quantification over relation and function symbols  )(,)(  ))]]((),()[()()[()],()()[( xfSyxREyxPxxRxPAx  ]))[((]))[(( ),(]))[((]))[((   xyyx yxxyyx  
  • 13. 13 15.5 Semantics of Quantifiers  Universal Quantifiers  ()() = True  () is True for all assignments of  to objects in the domain  Example: (x)[On(x,C)  Clear(C)]? in Figure 15.2  x: A, B, C, Floor  investigate each of assignments in turn for each of the interpretations  Existential Quantifiers  ()() = True  () is True for at least one assignments of  to objects in the domain
  • 14. 14 15.5 Semantics of Quantifiers  Useful Equivalences  ()()  ()()  ()()  ()()  ()()  () ()  Rules of Inference  Propositional-calculus rules of inference  predicate calculus  modus ponens  Introduction and elimination of   Introduction of    elimination  Resolution  Two important rules  Universal instantiation (UI)  Existential generalization (EG)
  • 15. 15 15.5 Semantics of Quantifiers  Universal instantiation  ()()  ()  (): wff with variable   : constant symbol  (): () with substituted for  throughout   Example: (x)P(x, f(x), B)  P(A, f(A), B)
  • 16. 16 15.5 Semantics of Quantifiers  Existential generalization  ()  ()()  (): wff containing a constant symbol   (): form with  replacing every occurrence of  throughout   Example: (x)Q(A, g(A), x) (y)(x)Q(y, g(y), x)
  • 17. 17 15.6 Predicate Calculus as a Language for Representing Knowledge  Conceptualizations  Predicate calculus  language to express and reason the knowledge about real world  represented knowledge: explored throughout logical deduction  Steps of representing knowledge about a world  To conceptualize a world in terms of its objects, functions, and relations  To invent predicate-calculus expressions with objects, functions, and relations  To write wffs satisfied by the world: wffs will be satisfied by other interpretations as well
  • 18. 18 15.6 Predicate Calculus as a Language for Representing Knowledge  Usage of the predicate calculus to represent knowledge about the world in AI  John McCarthy (1958): first use  Guha & Lenat 1990, Lenat 1995, Lenat & Guha 1990  CYC project  represent millions of commonsense facts about the world  Nilsson 1991: discussion of the role of logic in AI  Genesereth & Nilsson 1987: a textbook treatment of AI based on logic
  • 19. 19 15.6 Predicate Calculus as a Language for Representing Knowledge  Examples  Examples of the process of conceptualizing knowledge about a world  Agent: deliver packages in an office building  Package(x): the property of something being a package  Inroom(x, y): certain object is in a certain room  Relation constant Smaller(x,y): certain object is smaller than another certain object  “All of the packages in room 27 are smaller than any of the packages in room 28” )},Smaller( )]28,Inroom()27,Inroom()Package()Package(){[,( yx yxyxyx 
  • 20. 20 15.6 Language for Representing Knowledge  “Every package in room 27 is smaller than one of the packages in room 29”  Way of stating the arrival time of an object  Arrived(x,z)  X: arriving object  Z: time interval during which it arrived  “Package A arrived before Package B”  Temporal logic: method of dealing with time in computer science and AI )},Smaller( )]28,Inroom()27,Inroom()Package()Package(){[)(( )},Smaller( )]28,Inroom()27,Inroom()Package()Package(){[)(( yx yxyxyx yx yxyxxy   z2)]Before(z1,z2)Arrived(B,z1)d(A,z2)[Arrivez1,( 
  • 21. 21 15.6 Language for Representing Knowledge  Difficult problems in conceptualization  “The package in room 28 contains one quart of milk”  Mass nouns  Is milk an object having the property of being white?  What happens when we divide quart into two pints?  Does it become two objects, or does it remain as one?  Extensions to the predicate calculus  allow one agent to make statements about the knowledge of another agent  “Robot A knows that Package B is in room 28”