FIRST ORDER LOGIC Berat YILMAZ. BEFORE START, LETS REMEMBER Logic Syntax Semantics.

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

First-Order Logic Chapter 8.
First-Order Logic.
The Logic of Quantified Statements
Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Predicate Calculus Russell and Norvig: Chapter 8,9.
Knowledge Representation Methods
Artificial Intelligence Lecture No. 10 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Natural Language Processing  First-Order Predicate Logic - Predicates  Short Introduction to Description Logics  PowerLoom.
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.
FIRST-ORDER LOGIC FOL or FOPC
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
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.
Propositional Logic Agenda: Other forms of inference in propositional logic Basics of First Order Logic (FOL) Vision Final Homework now posted on web site.
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
FIRST ORDER LOGIC Levent Tolga EREN.
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
Quiz Logic. Answer with True or False: 1a) If then A and B must have the same value 1b) If a sentence is valid then it is satisfiable Translate into FOL:
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CSE 311 Foundations of Computing I Lecture 5 Predicate Logic Spring
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.
Nested Quantifiers Section 1.5.
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.
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.
CS-554 Part-3: First-Order Logic
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Propositional Logic Predicate Logic
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
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.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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.
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.
1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.
Section 2.1. Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the.
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.
Discrete Mathematical الرياضيات المتقطعة. Example 12 June OR Q(x,y): x+y=x-y a) Q(1,1): 2=0 False b) Q(2,0): 2+0=2-0 True c) Q(1,y): 1+y=1-y False(take.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Knowledge Representation using First-Order Logic
Course Instructor: kinza ch
First Order Logic.
First-Order Logic Chapter 8.
Knowledge Representation III First-Order Logic
CSE 311 Foundations of Computing I
Predicates & Quantifiers
First-Order Logic Chapter 8.
Mathematics for Computer Science MIT 6.042J/18.062J
Chapter 1: Propositional and First-Order Logic
First-Order Logic Chapter 8.
CSE 311: Foundations of Computing
Predicate Logic: Syntax.
Predicate Logic.
Presentation transcript:

FIRST ORDER LOGIC Berat YILMAZ

BEFORE START, LETS REMEMBER Logic Syntax Semantics

PROPOSıTıONAL LOGıC VS FıRST-ORDER LOGıC Propositional logic: We have Facts Belief of agent: T|F|UNKNOWN

First-Order Logic: We have Facts Objects Relations

Propositional logic: Sentence-> Atomic|Complex Sentences Atom-> True|False|AP AP-Basic Propositions Complex Sentences-> |Sentence Connective Sentence |¬ Sentence Connective-> ^| v| |=>

First-Order Logic: Syntax Constant -> A|5|Something.. Variable -> a|y|z Predicate -> After|HasBorder|Snowing.. Function -> Father|Sine|…

PREDICATES Can have one or more arguments Like: P(x,y,z) x,y,z are variables If for that selected x,y,z values are true, then predicate is true.

FUNCTIONS Predicates has true or false value But.. Functions have an event. Can return a value.. Numeric for example..

EXAMPLE Everyone loves its father.  x  y Father(x,y)  Loves(x,y) x Father(x)  x Loves(x,Father(x))

SYNTAX OF FOL Sentece-> Atomic Sentence |Sentence Connective Sentence |Quantifier Variable, …. Sentence |  Sentence | (Sentence) Atomic Sentence -> Predicate (Term, ….)|Term=Term Term->Function(Term,…) |Constant | Variable Connective ->  Quantifier -> 

WHY WE CALL FIRST ORDER Because we are allowing quantifications over variables, not on predicates;  P  x  y P(x,y) (More Complex)

EXAMPLE 1 Not all students takes both AI & Computer Graphics Course Student(x) = x is a student Takes(x,y) = Subject x is taken by y

FIRST WAY:  x Student(x)  Takes(AI,x)  Takes(CG,x) 

SECOND WAY  x Student(x)   Takes(AI,x)  Takes(CG,x) 

EXAMPLE 2 The Best Score in AI is better than the best score in CG? How we do, what we need?

A ‘Function’ which returns the score value: So Function: Score(course,student) After? Another Function or A Predicate?

A PREDICATE Greater(x,y): x>y

SOLUTION Solution:  x  Student(x)  Takes(AI)  y  Student(y)  Takes(CG)  Greater(Score(AI),Score(CG)) 

RUSSEL PARADOX There is a single barber in town Those and only those who do not shave themselves are shaved by the barber So who shaves the barber??

WAY TO SOLUTION  x  Barber(x)  y x  y  Barber(y)  That means there is only one barber in the town  x  Shaves(x,x)  Shaves(x,y)  Barber(y)  That means y is in the domain of x, so member of town and not shaves itself but shaved by barber

THANK YOU FOR LıSTENıNG