1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

First-Order Logic Chapter 8.
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.
10 주 강의 First-order Logic. Limitation of propositional logic A very limited ontology  to need to the representation power  first-order logic.
Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
SE Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences expressed using a knowledge representation language TELL: operator.
Artificial Intelligence Lecture No. 10 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
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:
CS 561, Session Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences expressed using a knowledge representation language.
FIRST-ORDER LOGIC FOL or FOPC
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –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.
Predicate Calculus.
CE An introduction to Artificial Intelligence CE Chapter 8: First Order Logic Ramin Halavati In which we notice that.
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.
FIRST ORDER LOGIC Levent Tolga EREN.
Predicates and Quantifiers
The Foundations: Logic and Proofs
1 CS 2710, ISSP 2610 Chapter 8, Part 2 First Order Predicate Calculus FOPC.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
First Order Predicate Calculus Chapter 7. Propositional logic v. FOPC §Propositional calculus deals only with facts l P : I-love-all-dogs l facts are.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
1 Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences expressed using a knowledge representation language TELL: operator to.
11 Artificial Intelligence CS 165A Thursday, November 1, 2007  First-order logic (Ch 8)  Inference in FOL (Ch 9) 1.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Predicate Logic.
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.
First-Order Logic Introduction Syntax and Semantics Using First-Order Logic Summary.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1 Natural Language Processing Chapter Transition First we did words (morphology) Then we looked at syntax Now we’re moving on to meaning.
Nested Quantifiers Section 1.5.
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.
CS-554 Part-3: First-Order Logic
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
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 Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
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.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
For Wednesday Finish chapter 8 Homework: –Chapter 8, exercise 6 May be done in pairs.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Natural Language Processing
Knowledge Representation using First-Order Logic
Last time: Logic and Reasoning
First-Order Logic Chapter 8.
Knowledge Representation III First-Order Logic
Artificial Intelligence First Order Logic
Chapter 1 The Foundations: Logic and Proofs
Knowledge Representation III First-Order Logic
First-Order Logic Chapter 8.
Chapter 1 Logic and Proof.
Chapter 8, Part 1 First Order Predicate Calculus FOPC
First-order Logic Propositional logic (cont…)
First-Order Logic Chapter 8.
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Presentation transcript:

1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC

2 Propositional Logic  FOPC B11  (P12 v P21) B23  (P32 v P 23 v P34 v P 43) … “Internal squares adjacent to pits are breezy”: All X Y (B(X,Y) ^ (X > 1) ^ (Y > 1) ^ (Y < 4) ^ (X < 4))  (P(X-1,Y) v P(X,Y-1) v P(X+1,Y) v (X,Y+1))

3 FOPC Worlds Rather than just T,F, now worlds contain: Objects: the gold, the wumpus, people, ideas, … “the domain” Predicates: holding, breezy, red, sisters Functions: fatherOf, colorOf, plus Ontological commitment

4 FOPC Syntax Add variables and quantifiers to propositional logic

5 Sentence  AtomicSentence | (Sentence Connective Sentence) | Quantifier Variable,.. Sentence | ~Sentence AtomicSentence  Predicate(Term,…) | Term = Term Term  Function(Term,…) | Constant | Variable Connective   | ^ | v |  Quantifier  all, exists Constant  john, 1, … Variable  A, B, C, X Predicate  breezy, sunny, red Function  fatherOf, plus Knowledge engineering involves deciding what types of things Should be constants, predicates, and functions for your problem

6 Examples Messy sentence on board Everyone likes chocolate –  X person(X)  likes(X, chocolate) Someone likes chocolate –  X person(X) ^ likes(X, chocolate) Everyone likes chocolate unless they are allergic to it –  X person(X)  (likes(X, chocolate)  allergic(X, chocolate)) –  X (person(X) ^  allergic (X, chocolate))  likes(X, chocolate)

7 Quantifiers All X p(X) means that p holds for all elements in the domain Exists X p(X) means that p holds for at least one element of the domain

8 All Usually used with implications All X student(X,CS2710)  smart(X) NOT usually: All X student(X,CS2710) ^ smart(X)

9 Exists Usually used with ^ to specify information about individuals Exists X student(X,CS2710) ^ smart (X) ^ speaks(X,klingon) NOT usually: Exists X student(X,CS2710)  (smart(X) ^ speaks(X,klingon)) Very weak statement! (we’ll return to this)

10 Quantification and Negation ~(all X p(X)) equiv exists X ~p(X) ~(exists X p(X)) equiv all X ~p(X)

11 Nesting of Variables 1.Everyone likes some kind of food 2.There is a kind of food that everyone likes 3.Someone likes all kinds of food 4.Every food has someone who likes it Put quantifiers in front of likes(P,F) Assume the domain of discourse of P is the set of people Assume the domain of discourse of F is the set of foods

12 Answers (DOD of P is people and F is food) Everyone likes some kind of food All P Exists F likes(P,F) There is a kind of food that everyone likes Exists F All P likes(P,F) Someone likes all kinds of food Exists P All F likes(P,F) Every food has someone who likes it All F Exists P likes(P,F)

13 Answers, without Domain of Discourse Assumptions Everyone likes some kind of food All P person(P)  Exists F food(F) and likes(P,F) There is a kind of food that everyone likes Exists F food(F) and (All P person(P)  likes(P,F)) Someone likes all kinds of food Exists P person(P) and (All F food(F)  likes(P,F)) Every food has someone who likes it All F food (F)  Exists P person(P) and likes(P,F)

14 Semantics of FOPC Interpretation: assignment of elements from the world to elements of the language The world consists of a domain of objects D, a set of predicates, and a set of functions

15 Semantics Each constant is assigned an element of the domain Each N-ary predicate is assigned a set of N-tuples (which are?) Each N-ary function symbol is assigned a set of N+1 tuples that does not include any pair of tuples with the first N elements and different (n+1)st elements