Ch. 8 – First Order Logic Supplemental slides for CSE 327 Prof. Jeff Heflin.

Slides:



Advertisements
Similar presentations
The Logic of Quantified Statements
Advertisements

Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Ch. 19 – Knowledge in Learning Supplemental slides for CSE 327 Prof. Jeff Heflin.
Ch. 5 – Adversarial Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
First-Order Logic Chapter 8.
Ch. 2 – Intelligent Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
First-Order Logic Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 8 Spring 2007.
Cooperating Intelligent Systems First-order predicate logic Chapter 8, AIMA.
CSC 480: Artificial Intelligence
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Cooperating Intelligent Systems
LOGICAL AGENTS Yılmaz KILIÇASLAN. Definitions Logical agents are those that can:  form representations of the world,  use a process of inference to.
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.
First order logic (FOL) first order predicate calculus.
FIRST ORDER LOGIC Levent Tolga EREN.
For Monday Read chapter 9 Homework: –Chapter 8, exercises 9 and 10.
1 Dr. Samy Abu Nasser Information Technology Department Graduate Level Artificial Intelligence.
CS 188: Artificial Intelligence Logical Agents Instructor: Stuart Russell University of California, Berkeley.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
A RTIFICIAL I NTELLIGENCE Propositional and Predicate 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.
Ch. 9 – FOL Inference Supplemental slides for CSE 327 Prof. Jeff Heflin.
First-Order Logic Introduction Syntax and Semantics Using First-Order Logic Summary.
Agent that reason logically 지식표현. Agent that reason logically2 Knowledge Base A set of representations of facts about the world Knowledge representation.
For Monday Read chapter 8 Homework: –Chapter 7, exercises 1, 8, and 9 May be done in pairs.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
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.
For Wednesday Read chapter 9, sections 1-4 Homework: –Chapter 8, exercise 6 May be done in groups.
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.
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
Ch. 4 – Informed Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
For Wednesday Finish chapter 8 Homework: –Chapter 8, exercise 6 May be done in pairs.
1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
논리와 응용 First-order Logic. Limitation of propositional logic A very limited ontology  to need to the representation power  first-order logic.
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Artificial Intelligence Logical Agents Chapter 7.
Artificial Intelligence
First-Order Logic Chapter 8.
First Order Logic.
First-Order Logic Chapter 8.
Ch. 2 – Intelligent Agents
Artificial Intelligence First Order Logic
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
First-Order Logic Chapter 8.
Introduction to Artificial Intelligence
Agent that reason logically
Ch. 19 – Knowledge in Learning
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Knowledge Representation using First-Order Logic (Part III)
논리와 응용 First-order Logic.
Ch. 5 – Adversarial Search
First-Order Logic Chapter 8.
First-Order Logic Chapter 8.
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Ch. 2 – Intelligent Agents
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Presentation transcript:

Ch. 8 – First Order Logic Supplemental slides for CSE 327 Prof. Jeff Heflin

Syntax of First-Order Logic Sentence  AtomicSentence | ComplexSentence AtomicSentence  Predicate(Term,…) | Term = Term ComplexSentence  (Sentence) |  Sentence | Sentence  Sentence | Sentence  Sentence | Sentence  Sentence | Sentence  Sentence | Quantifier Variable,… Sentence Term  Function(Term,…) | Constant | Variable Quantifier   |  From Figure 8.3, p. 293

Knowledge-Based Agent function KB-A GENT (percept) returns an action persistent: KB, a knowledge base t, a counter, initially 0 indicating time TELL(KB, M AKE -P ERCEPT -S ENTENCE (percept, t)) action  ASK(KB, M AKE -A CTION -Q UERY (t)) TELL(KB, M AKE -A CTION -S ENTENCE (action, t)) t  t + 1 return action From Figure 7.1, p. 236

Minesweeper PEAS Description Performance Measure –percentage of mines found Environment –NxM grid with random placement of mines Actuators –choose a square Sensors –chosen square has x adjacent mines –or uncover mine and lose game

Minesweeper Predicates Environment –Mine(s) square s has a mine in it Sensing –NearbyMines(s,k) square s has k adjacent mines –Cleared(s) square s is safe (didn’t uncover a mine)

Minesweeper Axioms  s Cleared(s)   Mine(s)  s,r NearbyMines(s,0)  Adjacent(s,r)   Mine(r)  s NearbyMines(s,1)   r Adjacent(s,r)  Mine(r)  (  t Adjacent(s,t)  Mine(t)  r=t) also need 6 other rules for 1<k<8  s,r NearbyMines(s,8)  Adjacent(s,r)  Mine(r)  x,y,a,b Adjacent([x,y],[a,b])  (a=x+1  a=x  a=x-1)  (b=y  b=y+1  b=y-1)   (a=x  a=y)  Legal([x,y])  Legal([a,b])  x,y Legal([x,y])  x > 0  y > 0  x  N  y  M

Kinship Domain A 1 :  x Male(x)   Female(x) A 7 :  x,y Sibling(x,y)  x  y   p Parent(p,x)  Parent(p,y) A 4 :  p,c Parent(p,c)  Child(c,p) A 3 :  x,y Spouse(x,y)  Spouse(y,x) A 2 :  w,h Husband(h,w)  Male(h)  Spouse(h,w) A 5 :  x,y Parent(x,y)  Ancestor(x,y) A 6 :  x,y,z Ancestor(x,y)  Parent(y,z)  Ancestor(x,z)