Docsity

Artificial Intelligence chapter 2 c Predicate logic, Lecture notes of Artificial Intelligence

Partial preview of the text

Download Artificial Intelligence chapter 2 c Predicate logic and more Lecture notes Artificial Intelligence in PDF only on Docsity!

Artificial Intelligence

(Part 2b)

Knowledge Representation and Search:

PREDICATE LOGIC

Course Contents

Again..Selected topics for our course. Covering all of AI is impossible!

Key topics include:

Introduction to Artificial Intelligence (AI)

Knowledge Representation and Search

Introduction to AI Programming

Problem Solving Using Search

Exhaustive Search Algorithm

Heuristic Search

Techniques and Mechanisms of Search Algorithm

Knowledge Representation Issues and Concepts

Strong Method Problem Solving

Reasoning in Uncertain Situations

Soft Computing and Machine Learning

Recall: Propositional Logic

First-Order Logic (FOL)

First Order Predicate Logic

 Includes 2 symbols:

 Variable quantifiers

  (existential) and

  (universal)

 A quantifier followed by a variable and a

sentence:

  X likes(X,pizza) ; true for all X

  Y friends(Y,amir) ; true if there is atleast one

Universal Quantification

Properties of Quantifiers

Quantifier Duality

Artificial Intelligence 13

2.2 Predicate Calculus (13)

 Definition - First-order Predicate Calculus

First-order predicate calculus allows quantified variables to refer to objects in the domain of discourse and not to predicates or functions.

 Examples of representing English sentence

If it doesn’t rain tomorrow, Tom will go to the mountains   weather(rain, tomorrow)go(tom, mountains)Emma is a Doberman pinscher and a good doggooddog(emma)isa(emma, doberman)All basketball players are tall   X (basketball_player(X)tall(X))If wishes were horses, beggars would ride.equal(wishes, horses)ride(beggars).Nobody likes taxes   X likes(X, taxes)

Try this…represent in Predicate Logic

 If it doesn’t rain on Monday, Naim will go to the mountain

 All children are cute

 Nobody likes mouse

 weather (rain, Monday)  go(Naim,mountain)

 X (children(X)  cute(X))

 X likes(X,mouse)

Proofs

Example Proof

cat cat

cat

cat

cat

cat

Search with Primitive Inference

Rules

Unification