First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.

Slides:



Advertisements
Similar presentations
First-Order Logic Chapter 8.
Advertisements

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.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Nested Quantifiers Needed to express statements with multiple variables Example 1: “x+y = y+x for all real numbers”  x  y(x+y = y+x) where the domains.
10 주 강의 First-order Logic. Limitation of propositional logic A very limited ontology  to need to the representation power  first-order logic.
First-Order Logic Chapter 8.
Knowledge Representation using First-Order Logic
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.
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
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. 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.
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.
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.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
1 First-Order Logic Chapter 8. 2 Why FOL? –How do you say “All students are smart?” –Some students work hard –Hardworking students have good marks –If.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Predicate Logic.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
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.
CS 666 AI P. T. Chung First-Order Logic First-Order Logic Chapter 8.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 24, 2012.
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 First-Order Logic (FOL). Outline of this Chapter The need for FOL? What is a FOL? Syntax and semantics of FOL Using FOL.
1 Propositional logic (cont…) 命題論理 Syntax&Semantics of first-order logic 構文論と意味論 Deducing hidden properties Describing actions Propositional logic (cont…)
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 11 Jim Martin.
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.
LOGIC. Logic in general  Logics are formal languages for representing information such that conclusions can be drawn  Syntax defines the sentences in.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
5/16/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 12, 5/16/2005 University of Washington, Department of Electrical Engineering Spring.
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.
B.Ombuki COSC 3P711 LOGIC: Knowledge representation Propositional Logic: ch.7 First-Order-Logic: ch.8.
CPSC 420 – Artificial Intelligence Texas A & M University Lecture 7 Lecturer: Laurie webster II, M.S.S.E., M.S.E.e., M.S.BME, Ph.D., P.E.
© Copyright 2008 STI INNSBRUCK Intelligent Systems – Predicate Logic Florian Fischer Partially based on CS188,
1/19 First-Order Logic Chapter 8 Modified by Vali Derhami.
First-Order Logic Chapter 8.
First-Order Logic.
Knowledge Representation using First-Order Logic
Knowledge Representation using First-Order Logic
Course Instructor: kinza ch
First Order Logic.
First Order Logic.
First-Order Logic Chapter 8.
Artificial Intelligence First Order Logic
Notes 8: Predicate logic and inference
Artificial Intelligence 1: First-Order Logic
CS 188: Artificial Intelligence Spring 2007
First-Order Logic Chapter 8.
First-Order Logic Chapter 8.
Artificial Intelligence: Agents and First-Order Logic
First-Order Logic Chapter 8.
First-order Logic Propositional logic (cont…)
Chapter 1: Propositional and First-Order Logic
First-Order Logic Chapter 8.
First-Order Logic Chapter 8.
First-Order Logic Chapter 8.
Presentation transcript:

First-Order Logic Chapter 8

Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes in adjacent squares“ except by writing one sentence for each square. –We want to be able to say this in one single sentence: “for all squares and pits, pits cause breezes in adjacent squares. –First order logic will provide this flexibility.

First-order logic Propositional logic assumes the world contains facts that are true or false. First-order logic assumes the world contains –Objects: people, houses, numbers, colors, baseball games, wars, … –Relations between objects: red, round, prime, brother of, bigger than, part of, comes between, …

Relations Some relations are properties: they state some fact about a single object: Round(ball), Prime(7). n-ary relations state facts about two or more objects: Married(John,Mary), Largerthan(3,2). Some relations are functions: their value is another object: Plus(2,3), Father(Dan).

Models for FOL: Example

Atomic Sentences Sentences in logic state facts that are true or false. Properties and n-ary relations do just that: LargerThan(2,3) (means 2>3) is false. Brother(Mary,Pete) is false. Note: Functions do not state facts and form no sentence: Brother(Pete) refers to the object John (his brother) and is neither true nor false. Brother(Pete,Brother(Pete)) is True. Binary relation Function

Complex Sentences We make complex sentences with connectives (just like in proposition logic). binary relation function property objects connectives

Quantification Round(ball) is true or false because we give it a single argument (ball). We can be much more flexible if we allow variables which can take on values in a domain. e.g. reals x, all persons P, etc. To construct logical sentences we need a quantifier to make it true or false.

Quantifier Is the following true or false? To make it true or false we use For all real x, x>2 implies x>3. There exists some real x which square is minus 1.

Nested Quantifiers Combinations of universal and existential quantification are possible: Quiz :which is which: Everyone is the father of someone. Everyone has everyone as a father There is a person who has everyone as a father. There is a person who has a father There is a person who is the father of everyone. Everyone has a father. Binary relation: “x is a father of y”.

De Morgan’s Law for Quantifiers De Morgan’s Rule Generalized De Morgan’s Rule Rule is simple: if you bring a negation inside a disjunction or a conjunction, always switch between them (or  and, and  or). Equality symbol: Father(John)=Henry. This relates two objects.

Common mistakes to avoid  is the main connective with  is the main connective with All of these must be true! King(Pete) AND Person(Pete) King(Mary) AND Person(Mary) King(Tablespoon) AND Person(Tablespoon) One of these should be true! if King(Pete) then Person(Pete) if King(Mary) then Person(Mary) If King(Tablespoon) then Person(Tablespoon) too strong too weak

Using FOL We want to TELL things to the KB, e.g. TELL(KB, ) We also want to ASK things to the KB, ASK(KB, ) The KB should return the list of x’s for which Person(x) is true: {x/John,x/Richard,...}

Examples The kinship domain: Brothers are siblings  x,y Brother(x,y) => Sibling(x,y) One's mother is one's female parent  m,c Mother(c) = m  (Female(m)  Parent(m,c)) “Sibling” is symmetric  x,y Sibling(x,y)  Sibling(y,x) Some may be considered axioms, others as theorems which can be derived from the axioms.