Knowledge Representation III First-Order Logic

Slides:



Advertisements
Similar presentations
First-Order Logic Chapter 8.
Advertisements

March 2, 2006AI: Chapter 8: First-Order Logic1 Artificial Intelligence Chapter 8: First-Order Logic Michael Scherger Department of Computer Science Kent.
Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Knowledge Representation Methods
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge Representation I (Propositional Logic) CSE 473.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Knowledge Representation III First-Order Logic
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.
First order logic (FOL) first order 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.
FIRST ORDER LOGIC Levent Tolga EREN.
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
Knowledge Representation IV Inference for First-Order Logic CSE 473.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
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.
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.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
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 Daniel Weld CSE 473 Spring 2012.
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
© Daniel S. Weld Topics Agency Problem Spaces SearchKnowledge Representation Planning PerceptionNLPMulti-agentRobotics Uncertainty MDPs Supervised.
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.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
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.
1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Propositional Logic: Logical Agents (Part I)
Propositional Logic.
Knowledge Representation using First-Order Logic
Announcements No office hours today!
Course Instructor: kinza ch
Knowledge and reasoning – second part
First-Order Logic Chapter 8.
Knowledge Representation III First-Order Logic
Introduction to Knowledge-bases
Knowledge Representation II
EA C461 – Artificial Intelligence Logical Agent
Learning and Knowledge Acquisition
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
First-Order Logic CSE 573 A handful of GENERAL SEARCH TECHNIQUES lie at the heart of practically all work in AI We will encounter the SAME PRINCIPLES again.
Logical Agents Chapter 7.
First-Order Logic Chapter 8.
Artificial Intelligence
1st-order Predicate Logic (FOL)
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Knowledge and reasoning – second part
Logical Agents Chapter 7.
First-order Logic Propositional logic (cont…)
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
First-Order Logic Chapter 8.
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Representations & Reasoning Systems (RRS) (2.2)
1st-order Predicate Logic (FOL)
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Knowledge Representation III First-Order Logic CSE 473

Why Not Propositional Logic? “All monkeys are fuzzy” Propositional logic requires: fuzzy1, fuzzy2, …, fuzzyN Why? Lack of structure in/between atoms. What we’d like is a way to talk about objects and groups of objects, and to define relationships between them. First-order logic (aka “predicate logic”) © D. Weld, D. Fox

FOL Definitions Constants: a,b, dog33. Variables: X, Y. Name a specific object. Variables: X, Y. Refer to an object without naming it. Functions: dad-of Mapping from objects to objects. Terms: dad-of(dog33) Refer to objects Relations: in, hungry. State relationships between objects. Atomic Sentences: in(dad-of(dog33), food6) Can be true or false Correspond to propositional symbols P, Q © D. Weld, D. Fox

More Definitions Logical connectives: and, or, not, => Quantifiers:  Forall  There exists Examples George is brown Monkeys are curious There is a curious monkey Brown(George) m: Monkey(m)  Curious(m) m: Monkey(m) ^ Curious(m) © D. Weld, D. Fox

Quantifier / Connective Interaction M(x) == “x is a monkey” C(x) == “x is curious” x: M(x)  C(x) x: M(x) C(x) x: M(x)  C(x) x: M(x) C(x) “Everything is a curious monkey” “All monkeys are curious” “There exists a curious monkey” “There exists an object that is either a curious monkey, or not a monkey at all” © Daniel S. Weld

Nested Quantifiers: Order matters! x y P(x,y)  y x P(x,y) Examples Every dog has a tail Every dog shares a tail! ? d t has(d,t) t d has(d,t) Someone is loved by everyone x y loves(y, x) © D. Weld, D. Fox

Semantics Semantics: what the arrangement of symbols means in the world Propositional logic Basic elements are variables (references to facts) Possible worlds: mappings from variables to T/F First-order logic Basic elements are terms (references to objects) Possible worlds: mappings from terms to real- world elements. © Daniel S. Weld

Models Depiction of one possible model © D. Weld, D. Fox

Interpretations=Mappings syntactic tokens  model elements Depiction of one possible interpretation, assuming Constants: Functions: Relations: Richard John LegOf(p) On(x,y) King(p) © D. Weld, D. Fox

Interpretations=Mappings syntactic tokens  model elements Another interpretation, same assumptions Constants: Functions: Relations: Richard John LegOf(p) On(x,y) King(p) © D. Weld, D. Fox

Satisfiability, Validity, & Entailment S is valid if it is true in all interpretations S is satisfiable if it is true in some interp S is unsatisfiable if it is false all interps S1 entails S2 if forall interps where S1 is true, S2 is also true |= © D. Weld, D. Fox

First-Order Wumpus World Objects Squares, wumpuses, agents, gold, pits, stinkiness, breezes Relations Square topology (adjacency), Pits/breezes, Wumpus/stinkiness © D. Weld, D. Fox

Wumpus World: Squares Square topology relations? Each square as an object: Square1,1, Square1,2, …, Square3,4, Square4,4 Square topology relations? Adjacent(Square1,1, Square2,1) … Adjacent(Square3,4, Square4,4) Better: Squares as lists: [1, 1], [1,2], …, [4, 4] Square topology relations: x, y, a, b: Adjacent([x, y], [a, b])  [a, b] Є {[x+1, y], [x-1, y], [x, y+1], [x, y-1]} © D. Weld, D. Fox

Wumpus World: Pits Each pit as an object: Problem? Pit1,1, Pit1,2, …, Pit3,4, Pit4,4 Problem? Not all squares have pits List only the pits we have: Pit3,1, Pit3,3, Pit4,4 Problem? No reason to distinguish pits. Complicates inference. Better: pit as unary predicate Pit(x) Pit([3,1]); Pit([3,3]); Pit([4,4]) will be true © D. Weld, D. Fox

Wumpus World: Breezes Represent breezes like pits, as unary predicates: Breezy(x) “Squares next to pits are breezy”: x, y, a, b: (Pit([x, y]) ^ Adjacent([x, y], [a, b]))  Breezy([a, b]) © D. Weld, D. Fox