1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.

Slides:



Advertisements
Similar presentations
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Advertisements

F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: –Constant symbols (i.e., the "individuals"
Knowledge Representation Methods
RMIT University; Taylor's College This is a story about four people named Everybody, Somebody, Anybody and Nobody. There was an important job to be done.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
Discrete Mathematics Math 6A Instructor: M. Welling.
1 Knowledge Representation and Reasoning. 2 Knowledge Representation & Reasoning How knowledge about the world can be represented How knowledge about.
Copyright © Cengage Learning. All rights reserved.
Ch 1.3: Quantifiers Open sentences, or predicates, are sentences that contain one or more variables. They do not have a truth value until variables are.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Logical Equivalence & Predicate Logic
Discussion #141/20 Discussion #14 Predicate Calculus.
Propositional Calculus Composed of symbols –P – some true statement P might represent something like “It is Monday” or “the car is red” And sentences –a.
CSE 311 Foundations of Computing I Lecture 8 Proofs and Set Theory Spring
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Introduction to Quantification Chapter 9 Language, Proof and Logic.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Math 51/COEN 19 Day 3, 1.4 Quantifiers 1. 3 Predicates A lot like functions that return booleans Let P(x) denote x
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02: QUANTIFIERS Sections 1.3 and 1.4 Jarek Rossignac CS1050:
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
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.
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.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
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.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Lecture 1-3: Quantifiers and Predicates. Variables –A variable is a symbol that stands for an individual in a collection or set. –Example, a variable.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CSE15 Discrete Mathematics 01/23/17
Predicate Calculus Discussion #14 Chapter 2, Section 1 1/20.
Discussion #14 Predicate Calculus
Chapter 1 The Foundations: Logic and Proofs
Predicate logic Also known as predicate calculus or First-Order-Logic(FOL) or First- Order-Predicate-Calculus (FOPC). Meant to overcome the weaknesses.
CSCI 3310 Mathematical Foundation of Computer Science
CS201: Data Structures and Discrete Mathematics I
CS 220: Discrete Structures and their Applications
CSE 311 Foundations of Computing I
Predicate Calculus Discussion #14 Chapter 2, Section 1.
CSE 311: Foundations of Computing
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Negations of quantifiers
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
George Boole English Mathematician
Predicates and Quantifiers
Chapter 1: Propositional and First-Order Logic
CS201: Data Structures and Discrete Mathematics I
Predicate Calculus. Predicate Calculus Topics Predicates Variables and instantiation Quantifiers Logical expressions Bound and free variables.
Introduction to Computational Linguistics
Presentation transcript:

1 Predicate (Relational) Logic 1

Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions such as equivalence. Can not tell whether it is true or false unless you know the value of X powerful logic to deal with these problems. PREDICATE LOGIC 2 X is greater than 1

Introduction Usefulness of Predicate Logic for Natural Language Semantics While in propositional logic, we can only talk about sentences as a whole, predicate logic allows us to decompose simple sentences into smaller parts: predicates and individuals.  John is tall.  T(j) Predicate logic provides a tool to handle expressions of generalization: i.e., quantificational expressions.  Every cat is sleeping.  Some girl likes David.  No one is happy. Predicate logic allows us to talk about variables (pronouns). The value for the pronoun is some individual in the domain of universe that is contextually determined.  It is sleeping.  She likes David.  He is happy. 3

Predicate 4 A predicate is a verb phrase template that describes a property of objects, or a relationship among objects represented by the variables. "is blue“ or “B” is a predicate and it describes the property of being blue The car Tom is driving is blue The sky is blue The cover of this book is blue The car Tom is driving is blue The sky is blue The cover of this book is blue "B(x)" B(x) reads as "x is blue" "B(x)" B(x) reads as "x is blue"

Predicate…... gives... to... is a predicate describes a relationship among three objects Give( x, y, z ) or G( x, y, z ) “gives a book to" B( x, y ) 5 John gives the book to Mary Jim gives a bread to Tom Jane gives a lecture to Mary John gives the book to Mary Jim gives a bread to Tom Jane gives a lecture to Mary X gives Y to Z

Predicate… Exercise Let G(x,y) represent the predicate x > y Let G(x,y) represent the predicate x > y G(6,13) means 13 is greater than 6 NO G(2,0) is true Yes G(7,1) means 7 is greater than 1 Yes “4 is less than 5” can be represented by G(5,4) Yes 6

Predicate… Exercise Let E(x,y) represent “x sent an to y” Let E(x,y) represent “x sent an to y” ~E(A,B) means A didn’t sent to B Yes E(A,B) is equivalent to E(B,A) No “B sent an to A” is represented by E(B,A) Yes E(x,y) can also be represented by a 3 variable predicate Yes 7

Quantification Forming Propositions from Predicates universe universal quantifier existential quantifier free variable bound variable scope of quantifier order of quantifiers 8

Quantification A predicate with variables is not a proposition x > 1 It can be true or false depending on the value of x. A predicate with variables can be made a proposition by applying  assign a value to the variable  quantify the variable using a quantifier. If 3 is assigned to x becomes 3 > 1, and it becomes a true statement, hence a proposition. A quantification is performed on formulas of predicate logic ( wff ), such as x > 1 or P (x), by using quantifiers on variables. universal quantifier existential quantifier. There are two types of quantifiers: universal quantifier and existential quantifier. 9

Quantification Universe of Discourse (universe) “the set of objects of interest” “the domain of the (individual) variables” set of real numbers, the set of integers, the set of all cars on a parking lot, the set of all students in a classroom 10

Quantification 11

Quantification 12

Examples 13

Bound & Free variables bound variable: bound variable: if either a specific value is assigned to it or it is quantified Free variable:. Free variable:. If an appearance of a variable is not bound Scope of the quantifier: Scope of the quantifier: The scope of a quantifier is the portion of a formula where it binds its variables, is indicated by square brackets [ ] 14

Examples 15 t: The scope of the second existential quantifier.

How to read quantified formulas 16

Order of Application of Quantifiers 17

Well-Formed Formula WFF 18

Examples 19

Examples 20 One way to check whether or not an expression is a wff is to try to state it in English. If you can translate it into a correct English sentence, then it is a wff.

Reasoning with Predicate Logic Inference rules of predicate logic  Universal instantiation  Universal generalization  Existential instantiation  Existential generalization  Negation of quantified statement Predicate logic is more powerful than propositional logic. It allows one to reason about properties and relationships of individual objects. 21

22 Quantified inference rules Universal instantiation   x P(x)  P(A) Universal generalization  P(A)  P(B) …   x P(x) Existential instantiation   x P(x)  P(F)  skolem constant F Existential generalization  P(A)   x P(x)

23 Universal instantiation If (  x) P(x) is true, then P(C) is true, where C is any constant in the domain of x Example: (  x) eats(Ziggy, x)  eats(Ziggy, IceCream) The variable symbol can be replaced by any ground term, i.e., any constant symbol or function symbol applied to ground terms only

24 Universal generalization If P(c) is true, then (  x) P(x) is inferred. Example eats(Ziggy, IceCream)  (  x) eats(Ziggy, x) All instances of the given constant symbol are replaced by the new variable symbol Note that the variable symbol cannot already exist anywhere in the expression

25 Existential instantiation From (  x) P(x) infer P(c) Example:  (  x) eats(Ziggy, x)  eats(Ziggy, Stuff) Note that the variable is replaced by a brand-new constant not occurring in this or any other sentence in the KB Also known as skolemization; constant is a skolem constant In other words, we don’t want to accidentally draw other inferences about it by introducing the constant Convenient to use this to reason about the unknown object, rather than constantly manipulating the existential quantifier

26 Existential generalization If P(c) is true, then (  x) P(x) is inferred. Example eats(Ziggy, IceCream)  (  x) eats(Ziggy, x) All instances of the given constant symbol are replaced by the new variable symbol Note that the variable symbol cannot already exist anywhere in the expression

27 Connections between All and Exists We can relate sentences involving  and  using De Morgan’s laws: (  x)  P(x) ↔  (  x) P(x)  (  x) P(x) ↔ (  x)  P(x) (  x) P(x) ↔  (  x)  P(x) (  x) P(x) ↔  (  x)  P(x)

Homework 2 28

29 Thank You!