1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

The Foundations: Logic and Proofs
Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Predicates and Quantifiers
Knowledge Representation Methods
Discussion #17 1/15 Discussion #17 Derivations. Discussion #17 2/15 Topics Derivations  proofs in predicate calculus Inference Rules with Quantifiers.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
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
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Logical Equivalence & Predicate Logic
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
(CSC 102) Lecture 7 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Nested Quantifiers. 2 Nested Iteration Let the domain be {1, 2, …, 10}. Let P(x, y) denote x > y.  x,  y, P(x, y) means  x, (  y, P(x, y) ) Is the.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
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.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
1 Sections 1.3 and 1.4 Predicates & Quantifiers. 2 Propositional Functions In a mathematical assertion, such as x < 3, there are two parts: –the subject,
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
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.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Proofs in Predicate Calculus
1 CMSC 250 Chapter 2, Predicate Logic. 2 CMSC 250 Definitions l Subject / predicate John / went to the store. The sky / is blue. l Propositional logic-
1 Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a predicate.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.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.
Uniqueness Quantifier ROI for Quantified Statement.
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.
3. The Logic of Quantified Statements Summary
8.1 Symbols and Translation
Chapter 3 The Logic of Quantified Statements
Rationale Behind the Precise Formulation of the Four Quantifier Rules
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Mathematical Structures for Computer Science Chapter 1
Negations of quantifiers
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Presentation transcript:

1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables Negation of predicate formulas Text book chapter 1.3

2 Weakness in propositional logic Recall the weakness outlined for propositional logic: The logic fails to model the internal structure of propositions. e.g. Every positive number is greater than zero. Let’s define a logic that models some of this internal structure. Requires a richer abstraction of the world.

3 Quantifiers, Predicates, Domain (  x)(x>0) Quantifer: How many objects have a certain property - “for every” or “for some” Predicate: Property that a variable may have Domain of interpretation: Collection of objects from which the variable is taken Universal quantifier:  Existential quantifer:  Truth value of a predicate logic formula depends on all three

4 Predicate Well Formed Formulas (WFF) Predicate WFFs built by combining predicates with quantifiers, grouping symbols, and the logical connectives seen before Example: (  x)[(  y)(P(x)  Q(y))  R(x)] Scope of a quantifier Interpretation for an expression with predicates has: 1.Domain of interpretation 2.Assignment of property of objects to each predicate 3.Assignment of particular object to each constant symbol

5 Interpreting Truth Values: Example 1.(  x) P(x) Where, P(x): x is positive, domain is all integers greater than 10 This is true because all integers greater than 10 are positive 2.(  y) G(y,0) Where, G(a,b): a > b, domain is all integers, (and the constant ‘0’ means the integer zero)

6 Interpreting Truth Values: Example Consider binary predicates 1.(  x)(  y) Q(x, y) Where, Q(x, y): x+y = 0, domain is all integers 2.(  x)(  y) Q(x, y) Same Q(x, y), domain is all positive integers 3.(  x)(  y) Q(x, y) Where, Q(x, y): x+y = 0, domain is all integers

7 Translation: Use of universal quantifier “Every movie by George Lucas is great”  “For any movie, if it is made by George Lucas, it is great” Domain: All movies Represented as: (  x) (GL(x)  G(x)) [GL(x): movie made by George Lucas, G(x): x is great] Where, GL(x): movie made by George Lucas, G(x): x is great, Note that (  x) (GL(x)  G(x)) is wrong That means “All movies are made by George Lucas and are great”

8 Translation: Use of the existential quantifier “There is a movie made by George Lucas that is great”  “There exists at least one movie which is made by George Lucas and which is great” Represented as: (  x)(GL(x)  G(x)) The representation (  x)(GL(x)  G(x)) is incorrect That would be true if there was any movie that was not made by George Lucas. It would also be true if there was no movie made by George Lucas. Remember: ( ,  ) and ( ,  ) almost always go together

9 Example predicate formulas All students are intelligent. Some intelligent students like music. Everyone who likes music is a stupid student. Only intelligent students like music. Predicates S(x): x is a student I(x): x is intelligent M(x): x likes music

10 Predicate formulas involving multiple variables Some vegetables are sweeter than (all) fruits. – F(x): x is a fruit –V(x): x is a vegetable –S(x,y): x is sweeter than y The representation for the above statement is (  x)(V(x)  (  y)(F(y)  S(x,y)))

11 Negation of compound predicate statements [(  x)A(x)]  (  x)A(x) Example: [“Everything is beautiful”]  ”There is something which is not beautiful” [(  x)A(x)]  (  x)A(x) Example: [“Something is beautiful”]  ”Everything is not beautiful”

12 Outline Inference rules in predicate logic Example uses Gotchas More examples Example proof using deduction method Translation of English sentences Text book chapter 1.4

13 Derivation Rules Rules from propositional logic can still be used in predicate logic proofs. e.g. modus ponens: P and Q can be predicate logic formulas: … 8. [(  x)(  y)loves(x,y)]  [(  x)happy(x)] … 9. [(  x)(  y)loves(x,y)] … 10. [(  x)happy(x)]8,9,mp PP  QQPP  QQ

14 New Inference Rules Name & AbbrevIf you have: You may conclude: When: Existential Generalization egP(a)P(a) (x)P(x)(x)P(x) x must not appear in P(a) Existential Instantiation ei (x)P(x)(x)P(x) P(a)P(a) Must be the first rule that introduces a Universal Generalization ug P(x)P(x) (x)P(x)(x)P(x) 1. P(x) does not follow a hyp with x as free variable 2. P(x) not derived by ei from wff with x as free variable Universal Instantiation ui (x)P(x)(x)P(x) P(a)P(a)a is a constant P is any formula, P(a) is the same formula with constant a replacing each free x.

15 Example Uses Premises: Every man is mortal. There is a man. Prove: There is a mortal. 1.(  x)man(x)  mortal(x)premise 2.(  x)man(x)premise 3.man(a)2,ei 4.man(a)  mortal(a)1,ui 5.mortal(a)3,4,mp 6.(  x)mortal(x)5,eg

16 3.man(a)ded. thm premise 4.man(a)  mortal(a)1, ui 5.mortal(a)  alive(a)2, ui, 6.mortal(a)3,4, mp 7.alive(a)5,6, mp 8.man(a)  alive(a)3,7,ded. thm. 9.(  x)man(x)  alive(x)8, ug Example Uses Premises:Every man is mortal. Every mortal is alive. Prove: Every man is alive. 1.(  x)man(x)  mortal(x)premise 2.(  x)mortal(x)  alive(x)premise Idea: Try to prove man(a)  alive(a) for some a not in the premises, then use the ug rule Deduction Method Subproof

17 Gotchas in applying proof rules 1.(  x)[P(x)  Q(x)] hyp 2.(  y)P(y)hyp 3.P(a)  Q(a)1, ui 4.P(a)2, ei 5.Q(a)3,4, mp 1.(  x)(  y)Q(x,y) hyp 2.(  y)Q(x,y)hyp 3.Q(x,a)2, ei 4.(  x)Q(x,a)3, ug 1.P(x) hyp 2.(  x)P(x)1, ug

18 Example proofs (  x)[P(x)  Q(x)]  (  x)[Q(x)  P(x)]

19 Example proof using deduction method (  y)[P(x)  Q(x,y)]  [P(x)  (  y)Q(x,y)]

20 Translation of English Sentences Every ECE student works harder than somebody, and everyone who works harder than any other person gets less sleep than that person. Maria is an ECE student. Therefore, Maria gets less sleep than someone. Use E(x), W(x,y), S(x,y), m