First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 First order theories (Chapter 1, Sections 1.4 – 1.5)
Biointelligence Lab School of Computer Sci. & Eng.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Knowledge Representation Methods
Artificial Intelligence First-Order Predicate Logic -
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
First-Order Logic Chapter 8.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
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.
MTH 232 Section 8.1 Algebraic Expressions, Functions, & Equations.
FIRST ORDER LOGIC Levent Tolga EREN.
Predicates and Quantifiers
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
Atomic Sentences Chapter 1 Language, Proof and Logic.
1st-order Predicate Logic (FOL)
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
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.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
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.
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
LDK R Logics for Data and Knowledge Representation PL of Classes.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
CS6133 Software Specification and Verification
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.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
11 Artificial Intelligence CS 165A Tuesday, October 30, 2007  Knowledge and reasoning (Ch 7) Propositional logic  First-order logic (Ch 8) 1.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
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 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.
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.
PREDICATE CALCULS In Propositional Calculus, each atomic symbol denotes a proposition. But there is no way to access the components of an individual assertion.
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.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Knowledge Representation and Reasoning 2
Knowledge Representation using First-Order Logic
ece 627 intelligent web: ontology and beyond
The Propositional Calculus
Resolution And yet Another Example:
Artificial Intelligence Chapter 15. The Predicate Calculus
1st-order Predicate Logic (FOL)
Logical Agents Chapter 7.
Logics for Data and Knowledge Representation
Predicates and Quantifiers
Chapter 1: Propositional and First-Order Logic
Propositional Calculus
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Predicate Logic: Syntax.
Predicate Logic.
1st-order Predicate Logic (FOL)
Presentation transcript:

First Order Logic Chapter 7

PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify objects : mary, 3 §Can't directly talk about properties of individuals or relations between individuals: Employee(Name, SoSec, Salary, Dept) §Generalizations, patterns, regularities can't easily be represented: All persons are mortals

PL is a Weak Representational Language §Consider the problem of representing the following information: Every person is mortal. Bill is a person. Bill is mortal. §How can these sentences be represented so that we can infer the third sentence from the first two?

PL is a Weak Representational Language §In PL we have to create propositional symbols to stand for all or part of each sentence. For example, we might do: Person => Mortal Person-Bill Mortal-Bill §That is, we have used four symbols to represent the three given sentences. But, given this representation, the third sentence is not entailed by the first two.

§A different representation would be to use three symbols to represent the three sentences as Person => Mortal Bill => Person Bill => Mortal §The third sentence is entailed by the first two, but we needed an explicit symbol, Bill, to represent an individual who is a member of the classes "person" and "mortal." §So, to represent other individuals we must introduce separate symbols for each one, with means for representing the fact that all individuals who are ”person" are also "mortal." §FOL is expressive enough to concisely represent this kind of situation.

Representational Advantages §Concise Representations §Recursive Relations §Arbitrary structures (non-fixed size)

Propositional logic v. FOL §PL deals only with propositions that have no internal structure l P : I-love-all-dogs §FOL makes a stronger commitment to what there is (ontology) l objects: things in the world l properties & relations of & between objects §FOL is as an extension of PL §Example in FOL

Alphabet Non-Logical Symbols (meaning given by interpretation) l (infinite) set of object constants - strings of alphanumeric characters beginning with a lowercase letter or a numeral: john, mary l (infinite) set of function constants of all arities - strings of alphanumeric characters beginning with a lowercase letter: fatherOf, distanceBetween, times l (infinite) set of predicates (relation constants) of all arities - strings of alphanumeric characters beginning with an uppercase letter: MarriedTo(john, mary)

Alphabet Logical Symbols (fixed meaning): §Connectives: not (  ) and (  ) or (  ) implies (  ) equivalent (  ) §Punctuation Symbols: (, ) §Truth symbols: TRUE, FALSE

Alphabet Logical Symbols (fixed meaning): §Variable symbols- strings beginning with an uppercase letter near the end of the alphabet: X, Y, Z §Quantifier symbols: Universal:  Existential:  §(Optional) Equality predicate: =

Terms §Terms refer to objects in the world (do not have a truth value assigned to them): l object constants l function constants of arity n, followed by n terms in parentheses separated by commas: fatherof(john, bill) times(4, plus(3, 6)) l variable symbols

Syntax rules: Wffs §atomic formulas are predicates of arity n, followed by n terms in parentheses separated by commas: Loves(john, mary) =(john, john) (= usually in infix form: john = john) (A proposition in PL is an atomic formula of arity 0) §Truth symbols (TRUE, FALSE) are wffs

WFFs Complex wffs (just as in PL, we can make more complicated sentences by combining predicates using connectives): §If A is a wff, so is  A §If A and B are wffs, so are A  B A  B A  B A  B

WFFs §If A is a wff and X is a variable then both  X(A) and  X(A) are wffs;  X (Person(X)  Mortal(X))  X (Student(X)  Smart(X))  X  y Loves(X, Y) §There are no other wffs. §Language: set of all wffs