Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.

Slides:



Advertisements
Similar presentations
First-Order Logic Chapter 8.
Advertisements

First-Order Logic.
Biointelligence Lab School of Computer Sci. & Eng.
Standard Logical Equivalences
Logic Use mathematical deduction to derive new knowledge.
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Artificial Intelligence Lecture No. 10 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
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 in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
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
Let remember from the previous lesson what is Knowledge representation
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.
1 Knowledge Representation and Reasoning. 2 Knowledge Representation & Reasoning How knowledge about the world can be represented How knowledge about.
Propositional Logic Agenda: Other forms of inference in propositional logic Basics of First Order Logic (FOL) Vision Final Homework now posted on web site.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
FIRST ORDER LOGIC Levent Tolga EREN.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
1st-order Predicate Logic (FOL)
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences expressed using a knowledge representation language TELL: operator to.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
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 Introduction Syntax and Semantics Using First-Order Logic Summary.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Word Problem Consider the following problem: To register, you will need either a yellow card or a note from the Dean. To obtain a note from the Dean you.
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
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.
1 CSC384: Intro to Artificial Intelligence Lecture 5.  Knowledge Representation.
11 Artificial Intelligence CS 165A Tuesday, October 30, 2007  Knowledge and reasoning (Ch 7) Propositional logic  First-order logic (Ch 8) 1.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 11 Jim Martin.
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. Outline Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation using First-Order Logic
Knowledge Representation and Reasoning
Notes 8: Predicate logic and inference
Logic Use mathematical deduction to derive new knowledge.
Resolution And yet Another Example:
Artificial Intelligence Chapter 15. The Predicate Calculus
1st-order Predicate Logic (FOL)
Back to “Serious” Topics…
CSNB234 ARTIFICIAL INTELLIGENCE
Chapter 1: Propositional and First-Order Logic
Logical and Rule-Based Reasoning Part I
Introduction to Computational Linguistics
1st-order Predicate Logic (FOL)
Presentation transcript:

Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in a Knowledge base Very simple language consisting of propositional symbols and logical connectives, but still illustrates all the basic concepts of logic Just facts (true/false/unknown) Reasonably effective, but Limited expressive power to deal concisely with time, space and universal patterns of relationships among objects In order to more fully represent we need First order logic for more expressive power.

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus First Order Logic FOL or FOPC (true/false/unknown) More than just facts, objects & relations We notice that the world is blessed with many objects, some of which are related to other objects, and we endeavor to reason about them

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus

Language and Syntax The predicate calculus is composed of the following components: -Object Constants ( A, 112, SmallBlock, etc.) -Function Constants (queen_of 1, height_of 1, mltpy 2, etc.) -Relation Constants (K25 3, Married_to 2, etc.) -Logical Connectives and Delimiters ( , , , , , , ,  )

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Terms Any object constant or function constant (with N terms in parentheses where N is the arity of the function) is a term. Ex: queen_of(England), mltpy(5,4). All Predicates have an “arity”, i.e., a fixed number of arguments.

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Sentences (well formed formulas) Atoms are relational constants (with the appropriate number of arguments in parentheses) Ex. Married(Gerry,Jacqui). plus(two, three). likes(George, Kate). likes(George, X). likes(George, Suzie). helps(richard, bill). friends(bill, george).brothers(bill, john). -If w1 and w2 are sentences then so are: w1  w2 (disjunction) w1  w2 (conjunction) w1  w2 (implication)  w1 (negation) Logical combinations Ex. Married(Gerry,Jacqui)  Loves(Gerry,Jacqui) Brothers(bill, john)  brothers(x,y) = brothers(y,x) ¬brothers(Pat, Sue)

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Semantics A world can be composed of an infinite number of objects (individuals) An interpretation of an expression is a mapping between object, function, and relation constants in predicate calculus to objects, functions, and relations in the real world. A particular mapping or assignment of an interpretation is called a denotation.

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Models An interpretation satisfies a set of sentences if each of the sentences evaluates to true given the interpretation. A model is an interpretation that satisfies a set of sentences. Valid sentences are true under all interpretations. Any sentence that does not have a model is said to be inconsistent or unstatisfiable. If a sentence, s, is true under all interpretations for which each sentence in  is true then  ⊨ s (logical entailment).

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Knowledge Sentences written in FOPL can be used to represent knowledge (in the form of facts and rules) about the world. “Socrates is a man” “Richard is the brother of John” “Dave is married to Julie Richards father is married to John’s mother

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Knowledge Sentences written in FOPL can be used to represent knowledge (in the form of facts and rules) about the world. “Socrates is a man” man(socrates). “Richard is the brother of John” brother(richard, john) “Dave is married to Julie Married (dave, julie) Richards father is married to John’s mother Married (father(richard), mother(john)

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Quantification It is only natural to want to express properties of entire collections of objects, instead of enumerating the objects by name. We need them to help with interpretation. There are two types of quantification in FOPL: 1.Universal (“For all x”)  x (Kid(x)  likes(x,Candy)) 2.Existential (“There exists an x”)  x (Kid(x)  likes(x,Broccoli))

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Quantification (cont.) Some useful equivalences (based on DeMorgan’s Law) are: 1.  z (w(z))   z (  w(z)) 2.  y (q(y))   y (  q(y))

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Some Practice Problems: 1.“Everybody loves someone.” 2. “There is someone who is loved by everybody.” 3. “There is someone who loves everybody.” 4. “Everybody has someone who loves them.”

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Some Practice Problems: 1. “Everybody loves someone.” means that for every person, there is someone that person loves  x  y Loves (x,y) 2. “There is someone who is loved by everybody.” means there is some person, who is loved by everyone  x  y Loved_by(x,y) 3. “There is someone who loves everybody.” means there is some person x, who loves everyone  x  y Loves(x,y) 4. “Everybody has someone who loves them.” means that everyone loves someone,  x  y Loves (x,y) don’t forget the part about who loves them who (y) loves (x) We must also include that somebody y loves them x  x  y Loves (x, (loves(y,x))

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Some Practice Problems (cont.) 5. “Not all students take both History and Biology.” 6. “Every person who dislikes all vegetarians is smart.”

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Some Practice Problems (cont’d): 5. “Not all students take both History and Biology.”   z (take (z, (History Λ Biology)))   z  take (z, (History Λ Biology))   z (take (z, History) Λ take (z, Biology))   z (  (take(z,History) Λ take(z,Biology)))   z (  take(z,History V  take(z,Biology)) 6. “Every person who dislikes all vegetarians is smart.”  x  y (  likes(x,y) => Smart(x))   x  y (dislikes(x,y) => Smart(x))

COMP-4640: Intelligent & Interactive Systems The Predicate Calculus Before we can apply resolution refutation to the predicate calculus we must first: 1. introduce the concept of unification and 2. provide a procedure for converting arbitrary sentences in FOPL into CNF. Unification The objective of unification is to find a substitution that will allow two sentences to look the same. Once we make two sentences look the same, it is possible to apply resolution. Consider this example found on page 271 of your textbook. Knows(John, Jane) Knows(y, Leonid) Knows(y, mother(y)) Knows(x, Elizabeth) Now we can unify Knows(John,w) with 1 using the substitution {w/Jane} We can unify Knows(John,w) with 2, 3, and 4.