Download presentation

Presentation is loading. Please wait.

Published byAudrey Wiggins Modified over 2 years ago

1
Predicate Calculus Russell and Norvig: Chapter 8,9

2
Propositional Logic vs. Predicate Calculus Propositional Logic The world consists of propositions (sentences) which can be true or false. Predicate Calculus (First Order Logic) The world consists of objects, functions and relations between the objects.

3
Syntax Term: constant|variable|function(term, …, term) War-and-Peace author-of(War-and-Peace) father-of(author-of(War-and-Peace)) Atomic Sentence predicate(term, …, term) Complex Sentence

4
Universal Quantifier Brothers are siblings Mother: a female parent of a plant or animal

5
Existential Quantifier A red object is on top of a green one An author is a person who writes documents A grandparent is the parent of one’s parent

6
Properties of Quantifiers

7
Examples All purple mushrooms are poisonous No purple mushroom is poisonous Every CS student knows a programming language. A programming language is known by every CS student

8
Properties of Quantifiers

9
Resolution Refutation in Predicate Calculus Add ¬σ to KB Conversion to CNF Apply Resolution Procedure Derive {}: σ is proved No more possible application of resolution rules: σ is not a consequence of KB

10
Resolution Rule in FOL Example: father(John, Kim), x ¬father(x,y) V parent(x, y) parent(John, Kim)? Resolution with propositional logic: Find complementary literals Resolution with FOL Create complementary literals with substitution

11
Substitution Given sentence S and substitution σ, Sσ denotes result of plugging σ into S Example, S = father(x, y) σ = {x/John, y/Kim} Subst(S, σ) = father(John, Kim) Also written as Sσ = father(John, Kim)

12
Skolemizing To convert arbitrary FOL formula to CNF, one needs to eliminate . Solution: just “name” it, using a new name different from any existing name …. to avoid conflict. Example x rich(x) becomes rich(g 7 ) g 7 is called a Skolem constant.

15
Skolemization Theorem

16
Conversion to CNF

19
Applying Substitution

21
Composition of Substitutions

22
Unification To apply the resolution rule, we need to find a pair of complementary literals. Unification is a method for making two literals identical. If two literals can be made identical, they are unifiable.

26
Most General Unifier

28
Question MGU for f(W, g(Z), Z ) f(X, Y, h(X))

30
Notes on MGU If two terms are unifiable, then there exists a MGU There can be more than one MGU, but they differ only in variable names Not every unifier is MGU A MGU uses constants only as necessary

31
Inference Examples rich(me)?

32
Example #2 Jack owns a dog Every dog owner is an animal lover. No animal lover kills an animal. Either Jack or Curiosity killed the cat (named Tuna) Did Curiosity kill the cat?

33
Properties of Resolution Sound Refutation Complete If KB |= alpha, refutation will prove it Otherwise, refutation procedure may not terminate. Intractable Exponential in the size of KB for Propositional Logic

34
Summary Quantifiers Resolution Substitution Skolemization Unification MGU

Similar presentations

OK

Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.

Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on review of literature outline Ppt on diode Download ppt on pulse code modulation pcm Ppt on teamviewer 9 Led based message display ppt online Ppt on characteristics of computer Ppt on history of olympics kids Ppt on communication skills for nurses Ppt on test tube baby Ppt on kinetic energy for class 9