Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Knowledge Representation Methods
Artificial Intelligence First-Order Predicate Logic -
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
9/28/98 Prof. Richard Fikes First-Order Logic Knowledge Interchange Format (KIF) Computer Science Department Stanford University CS222 Fall 1998.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
1 Knowledge Representation and Reasoning. 2 Knowledge Representation & Reasoning How knowledge about the world can be represented How knowledge about.
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)
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Pattern-directed inference systems
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
CS6133 Software Specification and Verification
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
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.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
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.
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.
Artificial Intelligence Chapter 23 Multiple Agents Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
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.
March 8, 2016Introduction to Artificial Intelligence Lecture 13: Knowledge Representation & Reasoning II 1Resolution And yet Another Example: Resolving.
Knowledge Representation and Reasoning 2
Knowledge Representation and Reasoning
The function of knowledge representation scheme is
The Propositional Calculus
Notes 8: Predicate logic and inference
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
CS201: Data Structures and Discrete Mathematics I
Biointelligence Lab School of Computer Sci. & Eng.
Resolution And yet Another Example:
Artificial Intelligence Chapter 15. The Predicate Calculus
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 21. The Situation Calculus
CSNB234 ARTIFICIAL INTELLIGENCE
CS201: Data Structures and Discrete Mathematics I
Representations & Reasoning Systems (RRS) (2.2)
Habib Ullah qamar Mscs(se)
Presentation transcript:

Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University

(c) 2009 SNU CSE Biointelligence Lab Outline Motivation The Language and Its Syntax Semantics Quantification Semantics of Quantifiers Predicate Calculus as a Language for Representing Knowledge Additional Readings and Discussion

(c) 2009 SNU CSE Biointelligence Lab 15.1 Motivation Propositional calculus  Expressional limitation  Atoms have no internal structures. First-order predicate calculus  has names for objects as well as propositions.  Symbols  Object constants  Relation constants  Function constants  Other constructs  Refer to objects in the world  Refer to propositions about the world

(c) 2009 SNU CSE Biointelligence Lab 15.2 The Language and its Syntax Components  Infinite set of object constants  Aa, 125, 23B, Q, John, EiffelTower  Infinite set of function constants  fatherOf 1, distanceBetween 2, times 2  Infinite set of relation constants  B17 3, Parent 2, Large 1, Clear 1, X11 4  Propositional connectives  Delimiters  (, ), [, ],(separator)

(c) 2009 SNU CSE Biointelligence Lab 15.2 The Language and its Syntax Terms  Object constant is a term  Functional expression  fatherOf(John, Bill), times(4, plus(3, 6)), Sam wffs  Atoms  Relation constant of arity n followed by n terms is an atom (atomic formula)  An atom is a wff.  Greaterthan(7,2), P(A, B, C, D), Q  Propositional wff

(c) 2009 SNU CSE Biointelligence Lab 15.3 Semantics Worlds  Individuals  Objects  Concrete examples: Block A, Mt. Whitney, Julius Caesar, …  Abstract entities: 7, set of all integers, …  Fictional/invented entities: beauty, Santa Claus, a unicorn, honesty, …  Functions on individuals  Map n tuples of individuals into individuals  Relations over individuals  Property: relation of arity 1 (heavy, big, blue, …)  Specification of n-ary relation: list all the n tuples of individuals

(c) 2009 SNU CSE Biointelligence Lab 15.3 Semantics (Cont’d) Interpretations  Assignment: maps the followings  object constants into objects in the world  n-ary constants into n-ary functions  n-ary relation constants into n-ary relations  called denotations of corresponding predicate-calculus expressions  Domain  Set of objects to which object constant assignments are made  True/False values Figure 15.1 A Configuration of Blocks

(c) 2009 SNU CSE Biointelligence Lab Table 15.1 A Mapping between Predicate Calculus and the World Determination of the value of some predicate-claculus wffs On(A,B) is False because is not in the relation On. Clear(B) is True because is in the relation Clear. On(C,F1) is True because is in the relation On. On(C,F1)  On(A,B) is True because both On(C,F1) and  On(A,B) are True Predicate Calculus A B C F1 On Clear World A B C Floor On={,, Clear={ }

(c) 2009 SNU CSE Biointelligence Lab 15.3 Semantics (Cont’d) Models and Related Notions  An interpretation satisfies a wff  wff has the value True under that interpretation  Model of wff  An interpretation that satisfies a wff  Valid wff  Any wff that has the value True under all interpretations  inconsistent/unsatisfiable wff  Any wff that does not have a model  logically entails  (  |=  )  A wff  has value True under all of those interpretations for which each of the wffs in a set  has value True  Equivalent wffs  Truth values are identical under all interpretations

(c) 2009 SNU CSE Biointelligence Lab 15.3 Semantics (Cont’d) Knowledge  Predicate-calculus formulas  represent knowledge of an agent  Knowledge base of agent  Set of formulas  The agent knows  = the agent believes  Figure 15.2 Three Blocks-World Situations

(c) 2009 SNU CSE Biointelligence Lab 15.4 Quantification Finite domain  Clear(B1)  Clear(B2)  Clear(B3)  Clear(B4)  Clear(B1)  Clear(B2)  Clear(B3)  Clear(B4) Infinite domain  Problems of long conjunctions or disjunctions  impractical New syntactic entities  Variable symbols  consist of strings beginning with lowercase letters  term  Quantifier symbols  give expressive power to predicate-calculus   : universal quantifier   : existential quantifier

(c) 2009 SNU CSE Biointelligence Lab 15.4 Quantification (Cont’d) : wff  : wff  within the scope of the quantifier  : quantified variable Closed wff (closed sentence)  All variable symbols besides  in  are quantified over in   Property First-order predicate calculi  restrict quantification over relation and function symbols

(c) 2009 SNU CSE Biointelligence Lab 15.5 Semantics of Quantifiers Universal Quantifiers  (  )  (  ) = True   (  ) is True for all assignments of  to objects in the domain  Example: (  x)[On(x,C)   Clear(C)]? in Figure 15.2  x: A, B, C, Floor  investigate each of assignments in turn for each of the interpretations Existential Quantifiers  (  )  (  ) = True   (  ) is True for at least one assignments of  to objects in the domain

(c) 2009 SNU CSE Biointelligence Lab 15.5 Semantics of Quantifiers (Cont’d) Useful Equivalences  (  )  (  )  (  )  (  )  (  )  (  )  (  )  (  )  (  )  (  )  (  )  (  ) Rules of Inference  Propositional-calculus rules of inference  predicate calculus  modus ponens  Introduction and elimination of   Introduction of    elimination  Resolution  Two important rules  Universal instantiation (UI)  Existential generalization (EG)

(c) 2009 SNU CSE Biointelligence Lab 15.5 Semantics of Quantifiers (Cont’d)  Universal instantiation  (  )  (  )   (  )   (  ): wff with variable    : constant symbol   (  ):  (  ) with substituted for  throughout   Example: (  x)P(x, f(x), B)  P(A, f(A), B)  Existential generalization   (  )  (  )  (  )   (  ): wff containing a constant symbol    (  ): form with  replacing every occurrence of  throughout   Example: (  x)Q(A, g(A), x)  (  y)(  x)Q(y, g(y), x)

(c) 2009 SNU CSE Biointelligence Lab 15.6 Predicate Calculus as a Language for Representing Knowledge Conceptualizations  Predicate calculus  language to express and reason the knowledge about real world  represented knowledge: explored throughout logical deduction  Steps of representing knowledge about a world  To conceptualize a world in terms of its objects, functions, and relations  To invent predicate-calculus expressions with objects, functions, and relations  To write wffs satisfied by the world: wffs will be satisfied by other interpretations as well

(c) 2009 SNU CSE Biointelligence Lab 15.6 Predicate Calculus as a Language for Representing Knowledge (Cont’d)  Usage of the predicate calculus to represent knowledge about the world in AI  John McCarthy (1958): first use  Guha & Lenat 1990, Lenat 1995, Lenat & Guha 1990 –CYC project –represent millions of commonsense facts about the world  Nilsson 1991: discussion of the role of logic in AI  Genesereth & Nilsson 1987: a textbook treatment of AI based on logic

(c) 2009 SNU CSE Biointelligence Lab 15.6 Predicate Calculus as a Language for Representing Knowledge (Cont’d) Examples  Examples of the process of conceptualizing knowledge about a world  Agent: deliver packages in an office building  Package(x): the property of something being a package  Inroom(x, y): certain object is in a certain room  Relation constant Smaller(x,y): certain object is smaller than another certain object  “All of the packages in room 27 are smaller than any of the packages in room 28”

(c) 2009 SNU CSE Biointelligence Lab 15.6 Predicate Calculus as a Language for Representing Knowledge (Cont’d)  “Every package in room 27 is smaller than one of the packages in room 29”  Way of stating the arrival time of an object –Arrived(x,z) –X: arriving object –Z: time interval during which it arrived –“Package A arrived before Package B” –Temporal logic: method of dealing with time in computer science and AI

(c) 2009 SNU CSE Biointelligence Lab 15.6 Predicate Calculus as a Language for Representing Knowledge (Cont’d)  Difficult problems in conceptualization  “The package in room 28 contains one quart of milk” –Mass nouns –Is milk an object having the property of being whit? –What happens when we divide quart into two pints? –Does it become two objects, or does it remain as one?  Extensions to the predicate calculus –allow one agent to make statements about the knowledge of another agent –“Robot A knows that Package B is in room 28”

(c) 2009 SNU CSE Biointelligence Lab Additional Readings McDermott & Doyle 1980: discussion about  the use of logical sentences to represent knowledge  the use of logical inference procedures to do reasoning Tarski 1935, Tarski 1956: Tarskian semantics  Controversy about mismatch between the precise semantics of logical languages Agre & Chapman 1990  Indexical functional representations Enderton 1972, Pospesel 1976  Boos on logic Barwise & Etchemendy 1993  Readable overview on logic