SlideShare a Scribd company logo
Dr. Mustafa Jarrar [email_address]   www.jarrar.info   University of Birzeit Chapter 9 Inference in first-order logic Advanced Artificial Intelligence  (SCOM7341) Lecture Notes  University of Birzeit 2 nd  Semester, 2011
Motivation: Knowledge Bases vs. Databases The DB is a set of tuples, and queries are perfromed truth rvaluation. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wffs : Proof xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Provability Query Answer Knowledge Base System Query Proof Theoretic View Constraints DBMS Transactions i.e insert, update, delete... Query Query Answer Model Theoretic View The KB is a set of formulae and the query evaluation is to prove that the result is provable.
Outline ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Inference in First-Order Logic ,[object Object],[object Object],[object Object],[object Object],[object Object]
Propositionalization Universal Quantifiers ,[object Object],[object Object],[object Object],[object Object],[object Object], x  King ( x )     Greedy ( x )     Evil ( x )  King ( John )  Greedy ( John ) ,[object Object],Then we can say So we reduced the FOL  knowledge base into PL KB So we reduced the FOL  sentence into PL sentence
Propositionalization Existential quantifiers ,[object Object],[object Object],[object Object],Crown(C 1 )    OnHead(C 1 ,John)  x Crown(x)    OnHead(x,John) Example: ,[object Object],[object Object],[object Object],provided  C 1  is a new constant symbol, called a  Skolem constant.
Reduction to Propositional Inference ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],irrelevant
Reduction to Propositional Inference ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Reduction to Propositional Inference ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Problems with Propositionalization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Problems with Propositionalization ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Unification ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Unification Example Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth)  Q P   θ
Unification Example {x/Jane} Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth)  Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth)  Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth)  Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} fail ,[object Object],[object Object],[object Object],Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth)  Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} ,[object Object],[object Object],[object Object],Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth)  Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth)  Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} In the last case, we have two answers: θ = {y/John,x/z}, or θ = {y/John,x/John, z/John} ?? This first unification is more general,  as it places fewer restrictions on the  values of the variables. Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth)  Knows(John,x)  Knows(y,z) Q P   θ
Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} For every unifiable pair of  expressions, there is a  Most General Unifier  MGU In the last case, we have two answers: θ = {y/John,x/z}, or θ = {y/John,x/John, z/John} {y/John,x/z} Unify (p,q)  =  θ   where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x)  Knows(John,Jane)  Knows(John,x) Knows(y,Bill)  Knows(John,x)  Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth)  Knows(John,x)  Knows(y,z) Q P   θ
Other Examples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Generalized Modus Ponens (GMP) where  P i   θ  =  Q i   θ  for all  i A first-order inference rule, to find substitutions easily. ,[object Object],[object Object],P 1 ,  P 2 , … ,  P n ,  (  Q 1      Q 2     …     Q n    R ) Subst (R,  θ ) King ( John ) , Greedy ( y ) ,  ( King ( x ) , Greedy ( x )     Evil ( x )) Subst(Evil(x),  {x/John, y/John})
Generalized Modus Ponens (GMP) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Forward Chaining ,[object Object],[object Object],[object Object]
Example Knowledge Base ,[object Object],[object Object]
Example Knowledge Base contd. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Forward Chaining Proof American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal(x)  Hostile(x)
Forward Chaining Proof American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal(x)  Hostile(x)
Forward Chaining Proof American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal(x)  Hostile(x)
Forward Chaining Proof American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal(x)  Hostile(x)
Forward Chaining Proof American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal(x)  Hostile(x)
Forward Chaining Proof American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal(x)  Hostile(x)
Properties of Forward Chaining ,[object Object],[object Object],[object Object],[object Object],[object Object]
Efficiency of Forward Chaining ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Backward Chaining ,[object Object],[object Object]
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z )  Criminal ( x ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Hostile ( x )
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal ( x )  Hostile(x)
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal ( x )  Hostile(x)
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal ( x )  Hostile(x)
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal ( x )  Hostile(x)
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal ( x )  Hostile(x)
Backward chaining example American ( x )    Weapon ( y )  Sells ( x,y,z ) Missile ( M 1 ) Owns ( Nono,M 1 )   Missile ( x )   Owns ( Nono,x ) Sells ( West,x,Nono )   Weapon(x) Missile ( x )    Enemy ( x,America )   Hostile ( x )  ,[object Object],[object Object], Criminal ( x )  Hostile(x)
Properties of Backward Chaining ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Forward  vs.  Backward Chaining ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Logic Programming ,[object Object],[object Object],[object Object],If B 1  and … and B n  then H ,[object Object],where implication would be interpreted as a solution of problem H given solutions of B 1  … B n .  ,[object Object],[object Object]
Logic Programming: Prolog ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Logic Programming: Prolog ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],?- sibling(Sara, Dina).  Yes  ?- father(Father, Child).  // enumerates all valid answers
Resolution in FOL
Resolution in FOL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Conversion to CNF ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Conversion to CNF contd. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Resolution in FOL ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Resolution in FOL (Example) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Resolution in FOL (Example)
Resolution in FOL (Example) A1 ,[object Object],A2 ,[object Object],B  Loves(y,x)      Animal(z)      Kills(x,z) C  Animal(x) Cat(Foxi) Loves(Ali,x) D Kills(Ali,Foxi)    Kills(Kais, Foxi) E Cat(Foxi) F  Cat(x)    Animal (x) G ,[object Object],H Animal (Foxi) E,F {x/Foxi} I ,[object Object],D,G {} J ,[object Object],A2,C {x/Ali, F(x)/x} K ,[object Object],J,A1 {F(x)/F(Ali), X/Ali} L ,[object Object],H,B {z/Foxi} M ,[object Object],I,L {x/Ali} N . M,K {y/G(Ali)}
Resolution in FOL (Another Example) ,[object Object],[object Object],[object Object],   American(x)      Weapon(y)      Sells(x,y,z)      Hostile(z)    Criminal(x)  Missile(x)      Owns(Nono,x)    Sells(West,x,Nano)  Enemy(x,America)    Hostile(x)   Missile(x)    Weapon(x) Owns(Nono,M 1 ) Missile(M 1 )  American(West)  Enemy(Nano,America)  Criminal (West)
Resolution in FOL (Another Example) 1    American(x)      Weapon(y)      Sells(x,y,z)      Hostile(z)    Criminal(x) 2  Missile(x)      Owns(Nono,x)    Sells(West,x,Nano) 3  Enemy(x,America)    Hostile(x)  4  Missile(x)    Weapon(x) 5 Owns(Nono,M 1 ) 6 Missile(M 1 )  7 American(West)  8 Enemy(Nano,America) 9  Criminal (West)
Resolution in FOL (Another Example) 1    American(x)      Weapon(y)      Sells(x,y,z)      Hostile(z)    Criminal(x) 2  Missile(x)      Owns(Nono,x)    Sells(West,x,Nano) 3  Enemy(x,America)    Hostile(x)  4  Missile(x)    Weapon(x) 5 Owns(Nono,M 1 ) 6 Missile(M 1 )  7 American(West)  8 Enemy(Nano,America) 9  Criminal (West) 10    American(West)      Weapon(y)      Sells(West,y,z)      Hostile(z)  1,9 {x/West} 11  Weapon(y)      Sells(West,y,z)      Hostile(z)  7,10 {x/West} 12  Missile(y)      Sells(West,y,z)      Hostile(z)  4,11 {x/y} 13  Sells(West,M 1 ,z)      Hostile(z) 6,12 {y/M 1 } 14  Missile(M 1 )      Owns(Nono, M 1 )      Hostile(Nano) 2,13 {x/M 1 , z/Nano} 15  Owns(Nono, M 1 )      Hostile(Nano) 6,14 {} 16  Hostile(Nano) 5,15 {} 17  Enemy(Nano,America) 3,16 {x/Nano} 18 . 8,17 {}
Resolution in FOL (Another Example) 9 10 11 12 13 14 15 16 17 18 1 7 6 2 6 4 5 3 8 Another representation (as Tree)
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

Logic 2
Logic 2Logic 2
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
Evert Sandye Taasiringan
 
First order logic
First order logicFirst order logic
First order logic
Chinmay Patel
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
giki67
 
W.cholamjiak
W.cholamjiakW.cholamjiak
On fuzzy compact open topology
On fuzzy compact open topologyOn fuzzy compact open topology
On fuzzy compact open topologybkrawat08
 
Update 2
Update 2Update 2
Update 2
Emanuel Emanuel
 
Fibrewise near compact and locally near compact spaces
Fibrewise near compact and locally near compact spacesFibrewise near compact and locally near compact spaces
Fibrewise near compact and locally near compact spaces
Alexander Decker
 
Data Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description LogicsData Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description LogicsAdila Krisnadhi
 
Raices primitivas
Raices primitivasRaices primitivas
Raices primitivas
Rolando Vega
 
Discrete assignment
Discrete assignmentDiscrete assignment
Discrete assignment
Saira Kanwal
 
True but Unprovable
True but UnprovableTrue but Unprovable
True but Unprovable
Rishi Banerjee
 
First order logic
First order logicFirst order logic
First order logic
Megha Sharma
 
Overview prolog
Overview prologOverview prolog
Overview prolog
Harry Potter
 
Local Closed World Semantics - DL 2011 Poster
Local Closed World Semantics - DL 2011 PosterLocal Closed World Semantics - DL 2011 Poster
Local Closed World Semantics - DL 2011 PosterAdila Krisnadhi
 
C2.0 propositional logic
C2.0 propositional logicC2.0 propositional logic
C2.0 propositional logic
Melaku Bayih Demessie
 
3.6 Families ordered by inclusion
3.6 Families ordered by inclusion3.6 Families ordered by inclusion
3.6 Families ordered by inclusion
Jan Plaza
 

What's hot (19)

Logic 2
Logic 2Logic 2
Logic 2
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
First order logic
First order logicFirst order logic
First order logic
 
3 fol examples v2
3 fol examples v23 fol examples v2
3 fol examples v2
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
W.cholamjiak
W.cholamjiakW.cholamjiak
W.cholamjiak
 
On fuzzy compact open topology
On fuzzy compact open topologyOn fuzzy compact open topology
On fuzzy compact open topology
 
Update 2
Update 2Update 2
Update 2
 
Fibrewise near compact and locally near compact spaces
Fibrewise near compact and locally near compact spacesFibrewise near compact and locally near compact spaces
Fibrewise near compact and locally near compact spaces
 
Data Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description LogicsData Complexity in EL Family of Description Logics
Data Complexity in EL Family of Description Logics
 
Raices primitivas
Raices primitivasRaices primitivas
Raices primitivas
 
Discrete assignment
Discrete assignmentDiscrete assignment
Discrete assignment
 
True but Unprovable
True but UnprovableTrue but Unprovable
True but Unprovable
 
Lesson 5: Continuity
Lesson 5: ContinuityLesson 5: Continuity
Lesson 5: Continuity
 
First order logic
First order logicFirst order logic
First order logic
 
Overview prolog
Overview prologOverview prolog
Overview prolog
 
Local Closed World Semantics - DL 2011 Poster
Local Closed World Semantics - DL 2011 PosterLocal Closed World Semantics - DL 2011 Poster
Local Closed World Semantics - DL 2011 Poster
 
C2.0 propositional logic
C2.0 propositional logicC2.0 propositional logic
C2.0 propositional logic
 
3.6 Families ordered by inclusion
3.6 Families ordered by inclusion3.6 Families ordered by inclusion
3.6 Families ordered by inclusion
 

Viewers also liked

Jarrar: Propositional Logic Inference Methods
Jarrar: Propositional Logic Inference MethodsJarrar: Propositional Logic Inference Methods
Jarrar: Propositional Logic Inference Methods
Mustafa Jarrar
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
Tianlu Wang
 
Inference in first order logic12
Inference in first order logic12Inference in first order logic12
Inference in first order logic12yosser atassi
 
Attacks in MANET
Attacks in MANETAttacks in MANET
Attacks in MANET
Sunita Sahu
 
Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
Lukas Masuch
 

Viewers also liked (7)

Jarrar: Propositional Logic Inference Methods
Jarrar: Propositional Logic Inference MethodsJarrar: Propositional Logic Inference Methods
Jarrar: Propositional Logic Inference Methods
 
Chap05
Chap05Chap05
Chap05
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
Inference in first order logic12
Inference in first order logic12Inference in first order logic12
Inference in first order logic12
 
Attacks in MANET
Attacks in MANETAttacks in MANET
Attacks in MANET
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
 

Similar to Jarrar.lecture notes.aai.2011s.ch9.fol.inference

L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
Manjula V
 
9.class-notesr9.ppt
9.class-notesr9.ppt9.class-notesr9.ppt
9.class-notesr9.ppt
Pabitha Chidambaram
 
Exchanging More than Complete Data
Exchanging More than Complete DataExchanging More than Complete Data
Exchanging More than Complete Datanet2-project
 
lect14-semantics.ppt
lect14-semantics.pptlect14-semantics.ppt
lect14-semantics.ppt
RichardBobisSanAnton
 
First order logic in artificial Intelligence.pptx
First order logic in artificial Intelligence.pptxFirst order logic in artificial Intelligence.pptx
First order logic in artificial Intelligence.pptx
Y21IT051
 
Discrete Mathematics Details tree pt.pptx
Discrete Mathematics Details tree pt.pptxDiscrete Mathematics Details tree pt.pptx
Discrete Mathematics Details tree pt.pptx
FariaHassan4
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
Jeevan225779
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
smarwaneid
 
introduction to Genifer -- Deduction
introduction to Genifer -- Deductionintroduction to Genifer -- Deduction
introduction to Genifer -- DeductionYan Yin
 
lecture-inference-in-first-order-logic.pdf
lecture-inference-in-first-order-logic.pdflecture-inference-in-first-order-logic.pdf
lecture-inference-in-first-order-logic.pdf
angerfist1
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
Math Homework Solver
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
TejasAditya2
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
yashirraza123
 
Per3 logika
Per3 logikaPer3 logika
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptx
Faiz Zeya
 
Cs229 notes8
Cs229 notes8Cs229 notes8
Cs229 notes8
VuTran231
 
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ch8.fol.introductionJarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ch8.fol.introductionPalGov
 

Similar to Jarrar.lecture notes.aai.2011s.ch9.fol.inference (20)

L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
Predicates
PredicatesPredicates
Predicates
 
9.class-notesr9.ppt
9.class-notesr9.ppt9.class-notesr9.ppt
9.class-notesr9.ppt
 
Exchanging More than Complete Data
Exchanging More than Complete DataExchanging More than Complete Data
Exchanging More than Complete Data
 
Fol
FolFol
Fol
 
lect14-semantics.ppt
lect14-semantics.pptlect14-semantics.ppt
lect14-semantics.ppt
 
First order logic in artificial Intelligence.pptx
First order logic in artificial Intelligence.pptxFirst order logic in artificial Intelligence.pptx
First order logic in artificial Intelligence.pptx
 
Discrete Mathematics Details tree pt.pptx
Discrete Mathematics Details tree pt.pptxDiscrete Mathematics Details tree pt.pptx
Discrete Mathematics Details tree pt.pptx
 
Nested Quantifiers.pptx
Nested Quantifiers.pptxNested Quantifiers.pptx
Nested Quantifiers.pptx
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
introduction to Genifer -- Deduction
introduction to Genifer -- Deductionintroduction to Genifer -- Deduction
introduction to Genifer -- Deduction
 
lecture-inference-in-first-order-logic.pdf
lecture-inference-in-first-order-logic.pdflecture-inference-in-first-order-logic.pdf
lecture-inference-in-first-order-logic.pdf
 
01bkb04p.ppt
01bkb04p.ppt01bkb04p.ppt
01bkb04p.ppt
 
Math Assignment Help
Math Assignment HelpMath Assignment Help
Math Assignment Help
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
 
Per3 logika
Per3 logikaPer3 logika
Per3 logika
 
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptx
 
Cs229 notes8
Cs229 notes8Cs229 notes8
Cs229 notes8
 
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ch8.fol.introductionJarrar.lecture notes.aai.2011s.ch8.fol.introduction
Jarrar.lecture notes.aai.2011s.ch8.fol.introduction
 

More from PalGov

Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsPalGov
 
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudyJarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudyPalGov
 
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologiesJarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologiesPalGov
 
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulationJarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulationPalGov
 
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontologyJarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontologyPalGov
 
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introductionJarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introductionPalGov
 
Jarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicJarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicPalGov
 
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferenceJarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferencePalGov
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicPalGov
 
Jarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.gamesJarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.gamesPalGov
 
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchPalGov
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchPalGov
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsPalGov
 

More from PalGov (13)

Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudyJarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
Jarrar.lecture notes.aai.2011s.ontology part5_egovernmentcasestudy
 
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologiesJarrar.lecture notes.aai.2011s.ontology part4_methodologies
Jarrar.lecture notes.aai.2011s.ontology part4_methodologies
 
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulationJarrar.lecture notes.aai.2011s.ontology part3_double-articulation
Jarrar.lecture notes.aai.2011s.ontology part3_double-articulation
 
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontologyJarrar.lecture notes.aai.2011s.ontology part2_whatisontology
Jarrar.lecture notes.aai.2011s.ontology part2_whatisontology
 
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introductionJarrar.lecture notes.aai.2011s.ontology part1_introduction
Jarrar.lecture notes.aai.2011s.ontology part1_introduction
 
Jarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogicJarrar.lecture notes.aai.2011s.descriptionlogic
Jarrar.lecture notes.aai.2011s.descriptionlogic
 
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inferenceJarrar.lecture notes.aai.2011s.ch9.fol.inference
Jarrar.lecture notes.aai.2011s.ch9.fol.inference
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
 
Jarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.gamesJarrar.lecture notes.aai.2011s.ch6.games
Jarrar.lecture notes.aai.2011s.ch6.games
 
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearchJarrar.lecture notes.aai.2011s.ch4.informedsearch
Jarrar.lecture notes.aai.2011s.ch4.informedsearch
 
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearchJarrar.lecture notes.aai.2011s.ch3.uniformedsearch
Jarrar.lecture notes.aai.2011s.ch3.uniformedsearch
 
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagentsJarrar.lecture notes.aai.2011s.ch2.intelligentagents
Jarrar.lecture notes.aai.2011s.ch2.intelligentagents
 

Recently uploaded

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
datarid22
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 

Recently uploaded (20)

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 

Jarrar.lecture notes.aai.2011s.ch9.fol.inference

  • 1. Dr. Mustafa Jarrar [email_address] www.jarrar.info University of Birzeit Chapter 9 Inference in first-order logic Advanced Artificial Intelligence (SCOM7341) Lecture Notes University of Birzeit 2 nd Semester, 2011
  • 2. Motivation: Knowledge Bases vs. Databases The DB is a set of tuples, and queries are perfromed truth rvaluation. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wffs : Proof xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Provability Query Answer Knowledge Base System Query Proof Theoretic View Constraints DBMS Transactions i.e insert, update, delete... Query Query Answer Model Theoretic View The KB is a set of formulae and the query evaluation is to prove that the result is provable.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Unification Example Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth) Q P θ
  • 14. Unification Example {x/Jane} Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth) Q P θ
  • 15. Unification Example {x/Jane} {x/Bill,y/John} Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth) Q P θ
  • 16. Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(x,Elizabeth) Q P θ
  • 17.
  • 18.
  • 19. Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth) Q P θ
  • 20. Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} In the last case, we have two answers: θ = {y/John,x/z}, or θ = {y/John,x/John, z/John} ?? This first unification is more general, as it places fewer restrictions on the values of the variables. Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth) Knows(John,x) Knows(y,z) Q P θ
  • 21. Unification Example {x/Jane} {x/Bill,y/John} {y/John,x/Mother(John)} {x/Elizabeth, z 17 /John} For every unifiable pair of expressions, there is a Most General Unifier MGU In the last case, we have two answers: θ = {y/John,x/z}, or θ = {y/John,x/John, z/John} {y/John,x/z} Unify (p,q) = θ where Subst( θ ,p) = Subset( θ ,q) Suppose we have a query Knows(John,x), we need to unify Knows(John,x) with all sentences in KD. Knows(John,x) Knows(John,Jane) Knows(John,x) Knows(y,Bill) Knows(John,x) Knows(y,Mother(y)) Knows(John,x) Knows(z 17 ,Elizabeth) Knows(John,x) Knows(y,z) Q P θ
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58. Resolution in FOL (Another Example) 1  American(x)   Weapon(y)   Sells(x,y,z)   Hostile(z)  Criminal(x) 2  Missile(x)   Owns(Nono,x)  Sells(West,x,Nano) 3  Enemy(x,America)  Hostile(x) 4  Missile(x)  Weapon(x) 5 Owns(Nono,M 1 ) 6 Missile(M 1 ) 7 American(West) 8 Enemy(Nano,America) 9  Criminal (West)
  • 59. Resolution in FOL (Another Example) 1  American(x)   Weapon(y)   Sells(x,y,z)   Hostile(z)  Criminal(x) 2  Missile(x)   Owns(Nono,x)  Sells(West,x,Nano) 3  Enemy(x,America)  Hostile(x) 4  Missile(x)  Weapon(x) 5 Owns(Nono,M 1 ) 6 Missile(M 1 ) 7 American(West) 8 Enemy(Nano,America) 9  Criminal (West) 10  American(West)   Weapon(y)   Sells(West,y,z)   Hostile(z) 1,9 {x/West} 11  Weapon(y)   Sells(West,y,z)   Hostile(z) 7,10 {x/West} 12  Missile(y)   Sells(West,y,z)   Hostile(z) 4,11 {x/y} 13  Sells(West,M 1 ,z)   Hostile(z) 6,12 {y/M 1 } 14  Missile(M 1 )   Owns(Nono, M 1 )   Hostile(Nano) 2,13 {x/M 1 , z/Nano} 15  Owns(Nono, M 1 )   Hostile(Nano) 6,14 {} 16  Hostile(Nano) 5,15 {} 17  Enemy(Nano,America) 3,16 {x/Nano} 18 . 8,17 {}
  • 60. Resolution in FOL (Another Example) 9 10 11 12 13 14 15 16 17 18 1 7 6 2 6 4 5 3 8 Another representation (as Tree)
  • 61.