1 First-Order Logic Propositional logic does not represent and cannot handle objects. First-order logic is to represent and reason on objects and their.

Slides:



Advertisements
Similar presentations
First-Order Logic Chapter 8.
Advertisements

Knowledge Representation using First-Order Logic CS 271: Fall 2007 Instructor: Padhraic Smyth.
March 2, 2006AI: Chapter 8: First-Order Logic1 Artificial Intelligence Chapter 8: First-Order Logic Michael Scherger Department of Computer Science Kent.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
First-Order Logic Chapter 8.
First-Order Logic. Limitations of propositional logic Suppose you want to say “All humans are mortal” –In propositional logic, you would need ~6.7 billion.
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
First-Order Logic Chapter 8.
CS 561, Session Midterm format Date: 10/10/2002 from 11:00am – 12:20 pm Location: THH 101 Credits: 35% of overall grade Approx. 4 problems, several.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
FIRST-ORDER LOGIC FOL or FOPC
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
Knowledge Representation using First-Order Logic (Part III) This lecture: R&N Chapters 8, 9 Next lecture: Chapter 13; Chapter (Please read lecture.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
Predicate Calculus.
Propositional Logic Agenda: Other forms of inference in propositional logic Basics of First Order Logic (FOL) Vision Final Homework now posted on web site.
A toy world for logical exploration The Wumpus example.
First-Order Logic Knowledge Representation Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read:
FIRST ORDER LOGIC Levent Tolga EREN.
For Monday Read chapter 9 Homework: –Chapter 8, exercises 9 and 10.
For Wednesday No reading Homework –Chapter 8, exercises 9 and 10.
First-Order Logic Chapter 8.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences expressed using a knowledge representation language TELL: operator to.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
1 First-Order Logic Chapter 8. 2 Why FOL? –How do you say “All students are smart?” –Some students work hard –Hardworking students have good marks –If.
11 Artificial Intelligence CS 165A Thursday, November 1, 2007  First-order logic (Ch 8)  Inference in FOL (Ch 9) 1.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
Knowledge Representation using First-Order Logic 부산대학교 전자전기컴퓨터공학과 인공지능연구실 김민호
Limitation of propositional logic  Propositional logic has very limited expressive power –(unlike natural language) –E.g., cannot say "pits cause breezes.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
111 Artificial Intelligence CS 165A Tuesday, November 6, 2007  Inference in FOL (Ch 9) 1.
For Monday Read chapter 8 Homework: –Chapter 7, exercises 1, 8, and 9 May be done in pairs.
CS 666 AI P. T. Chung First-Order Logic First-Order Logic Chapter 8.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Artificial Intelligence First-Order Logic (FOL). Outline of this Chapter The need for FOL? What is a FOL? Syntax and semantics of FOL Using FOL.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
For Wednesday Read chapter 9, sections 1-4 Homework: –Chapter 8, exercise 6 May be done in groups.
1 Propositional logic (cont…) 命題論理 Syntax&Semantics of first-order logic 構文論と意味論 Deducing hidden properties Describing actions Propositional logic (cont…)
First-Order Logic Chapter 8 (not 8.1). Outline Why FOL? Why FOL? Syntax and semantics of FOL Syntax and semantics of FOL Using FOL Using FOL Wumpus world.
First-Order Logic. Outline Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
5/16/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 12, 5/16/2005 University of Washington, Department of Electrical Engineering Spring.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
For Wednesday Finish chapter 8 Homework: –Chapter 8, exercise 6 May be done in pairs.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 7 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
First-Order Logic Chapter 8.
First-Order Logic.
Knowledge Representation using First-Order Logic
First-Order Logic Chapter 8.
Knowledge Representation III First-Order Logic
Artificial Intelligence First Order Logic
Notes 8: Predicate logic and inference
Artificial Intelligence 1: First-Order Logic
CS 188: Artificial Intelligence Spring 2007
Knowledge Representation III First-Order Logic
First-Order Logic Chapter 8.
First-Order Logic Chapter 8.
Artificial Intelligence: Agents and First-Order Logic
First-Order Logic Chapter 8.
First-order Logic Propositional logic (cont…)
Chapter 1: Propositional and First-Order Logic
First-Order Logic Chapter 8.
First-Order Logic Chapter 8.
Presentation transcript:

1 First-Order Logic Propositional logic does not represent and cannot handle objects. First-order logic is to represent and reason on objects and their relations High-order logic is to deal with relations of relations

2 First-Order Logic Syntax Constant symbols: a, b, c, John, … to represent primitive objects Variable symbols: x, y, z, … to represent unknown objects Predicate symbols: safe, married, love, … to represent relations married(John) love(John, Mary)

3 First-Order Logic Syntax Function symbols: square, father, … to represent simple objects safe(square(1, 2)) love(father(John), mother(John)) Terms: to represent complex objects –Constant symbols –If f is a function symbol, and t 1, t 2, …, t n are terms, then so is f(t 1, t 2, …, t n ) love(mother(father(John)), John)

4 First-Order Logic Syntax Logical connectives: , , , ,  Universal quantifier:  x p(x)  x love(father(x), mother(x)) Existential quantifier:  x p(x)   x  p(x)  x  married(x)

5 First-Order Logic Syntax Equality: father(John) = Henry  x, y brother(x, Richard)  brother(y, Richard)   (x = y)

6 First-Order Logic Syntax Sentences: –Atomic sentences: p(t 1, t 2, …, t n ) –If  is a sentence, then so are  and (  ) –If  and  are sentences, then so are  , and  –If  is a sentence, then so are  and 

7 First-Order Logic Semantics Truth value with respect to an interpretation (possible world) Possible world: –Set of objects –Constants  objects –Functions  mapping from objects to objects –Predicates  relations on objects

8 First-Order Logic Semantics    x p(f(x), x) W 1 : Set of objects: {John, Tom, Mary} Functions: f  mother, mother(John) = Mary, mother(Tom) = Mary Predicates: p  love, {love(Mary, John), love(Mary, Tom)} W 2 : Set of objects: {John, Tom, Mary} Functions: f  mother, mother(John) = Mary, mother(Tom) = Mary Predicates: p  love, {love(Mary, John)}  is true with respect to W 1 (?), but not W 2

9 FOL: Kinship Domain  m, c mother(c) = m  female(m)  parent(m, c)  w, h husband(h, w)  male(h)  spouse(h, w)  x male(x)   female(x)  p, c parent(p, c)  child(c, p)  g, c grand-parent(g, c)   p parent(g, p)  parent(p, c)  x, y sibling(x, y)  x  y   p parent(p, x)  parent(p, y)

10 FOL: Number Domain nat-num(0)  n nat-num(n)  nat-num(S(n))  n 0  S(n)  m nat-num(m)  +(0, m) = m  m, n nat-num(m)  nat-num(n)  +(S(m), n) = S(+(m, n))

11 FOL: Set Domain  s set(s)  (s = {})  (  x, s 2 set(s 2 )  s = {x|s 2 })  x, s {x|s} = {}  x, s x  s  s = {x|s}  x, s x  s   y, s 2 (s = {y|s 2 }  (x = y  x  s 2 ))  s 1, s 2 s 1  s 2  (  x x  s 1  x  s 2 )  s 1, s 2 s 1 = s 2  (s 1  s 2  s 2  s 1 )

12 FOL: Wumpus Game Environment: square(1, 2)  [1, 2] percept([stench, breeze, glitter, none, none], 5)  x, y, a, b adjacent([x, y], [a, b])  [a, b]  {[x+1, y], [x-1, y], [x, y+1], [x, y-1]}  s, t at(Agent, s, t)  breeze(t)  breezy(s)

13 FOL: Wumpus Game Diagnostic rules:  s breezy(s)   r adjacent(r, s)  pit(r)  s  r adjacent(r, s)  pit(r)   breezy(s)  s breezy(s)   r adjacent(r, s)  pit(r)

14 FOL: Wumpus Game Causal rules:  r pit(r)  (  s adjacent(r, s)  breezy(s))  s [  r adjacent(r, s)   pit(r)]   breezy(s)

15 Homework In Russell & Norvig’s AIMA (2 nd ed.): Exercises of Chapter 8.