CS 285- Discrete Mathematics

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

1.3 Predicates and Quantifiers
Rosen 1.3 Propositional Functions Propositional functions (or predicates) are propositions that contain variables. Ex: Let P(x) denote x > 3 P(x) has.
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.
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.
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
2009/91 Predicates and Quantifiers (§1.3) In the sentence “x is greater than 3”: The phrase “x” denotes the subject - the object or entity that the sentence.
1 Predicate Logic Rosen 6 th ed., § Predicate Logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
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.
CSE115/ENGR160 Discrete Mathematics 01/25/11 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Discrete Math 6A Max Welling. Recap 1. Proposition: statement that is true or false. 2. Logical operators: NOT, AND, OR, XOR, ,  3. Compound proposition:
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
The Foundations: Logic and Proofs
Logical Equivalence & Predicate Logic
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
CS 103 Discrete Structures Lecture 05
(CSC 102) Lecture 7 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
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.
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.
Nesting Quantifiers And Their Manipulation Copyright © Curt Hill.
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
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.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Nested Quantifiers Section 1.5.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
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 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02: QUANTIFIERS Sections 1.3 and 1.4 Jarek Rossignac CS1050:
Lecture Predicates and Quantifiers 1.4 Nested Quantifiers.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Lecture 8 Predicate Logic TF4233 Mathematical Logic Semester 2, 2006/2007 Dr. Rolly Intan & Cherry Ballangan, MAIT Informatics Department, Petra Christian.
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
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.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
Module #1 - Logic 2016/7/91 Module #1: Logic (Textbook: §1.1~1.4) Dr. Chih-Wei Yi Department of Computer Science National Chiao Tung University.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
CSE15 Discrete Mathematics 01/25/17
CSE15 Discrete Mathematics 01/23/17
Chapter 1 – Logic and Proof
Discrete Mathematics Lecture # 2.
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
1.4 Predicates and Quantifiers
Introduction to Predicates and Quantified Statements II
CS 220: Discrete Structures and their Applications
Nested Quantifiers Nested quantifiers are often necessary to express the meaning of sentences in English as well as important concepts in computer science.
Introduction to Predicates and Quantified Statements II
Predicate Logic (§1.3) Predicate logic is an extension of propositional logic that permits concisely reasoning about whole classes of entities. Propositional.
Week #2 – 4/6 September 2002 Prof. Marie desJardins
Lecture 1.3: Predicate Logic
ICS 253: Discrete Structures I
The Foundations: Logic and Proofs
1.3 Propositional Equivalences
Predicates and Quantifiers
Introduction to Computational Linguistics
Lecture 1.3: Predicate Logic
Presentation transcript:

CS 285- Discrete Mathematics Lecture 5

Section 1.4 Nested Quantifiers Nesting of Quantifiers Negating Nested Quantifiers Order of Quantifiers Nested Quantifiers

Nesting of Quantifiers Nested Quantifiers are quantifiers that occur within the scope of other quantifiers Example: P(x,y) = x likes y, where the u.d. for x & y is all people ( a predicate with 2 free variables (f.v.) ∃yP(x,y) = There is someone whom x likes ( a predicate with 1 f.v.) ∀x (∃y P(x,y)) = Everyone has someone whom they like. ( a PROPOSITION) Nested Quantifiers

Translating Statements into Nested Quantifiers Translate the following statements, where the u.d consists of all real numbers: ∀x ∀y (x+y = y+x) For all real numbers x and y : x + y = y+x ∀x ∃ y (x+y = 0) For every real number x there is a real number y such that x+ y =0 ∀x ∀y ∀z (x+ (y + z) = (x + y) + z)) For all real numbers x, y and z : x+ (y + z) = (x + y) + z) ∀x ∀y (( x > 0) ∧( y < 0) →( xy < 0)) For all real numbers x and y, if x is positive and y is negative, then xy is negative. Nested Quantifiers

Examples If R(x,y)=“x relies upon y,” express the following in unambiguous English: ∀x(∃y R(x,y))= Everyone has someone to rely on. ∃y(∀x R(x,y))= There’s an overburdened soul whom everyone relies upon (including himself) ∃x(∀y R(x,y))= There’s some needy person who relies upon everybody (including himself) ∀y(∃x R(x,y))= Everyone has someone who relies upon them. ∀x(∀y R(x,y))= Everyone relies upon everybody, (including themselves)! Nested Quantifiers

Natural Language Ambiguity 1. “Everybody likes somebody.” For everybody, there is somebody they like, ∀x ∃y Likes(x,y) or, there is somebody (a popular person) whom everyone likes? ∃y ∀x Likes(x,y) 2. “Somebody likes everybody.” Same problem: Depends on context, emphasis. Nested Quantifiers

Negating Nested Quantifiers By using Demorgan’s equivalence laws: ¬ ∀x P(x) ⇔ ∃x ¬P(x) ¬ ∃x P(x) ⇔ ∀x ¬P(x) Nested Quantifiers

Equivalence laws and Conventions ∀x ∀y P(x,y) ⇔ ∀y ∀x P(x,y) ∃x ∃y P(x,y) ⇔ ∃y ∃x P(x,y) ∀x (P(x) ∧ Q(x)) ⇔ (∀x P(x)) ∧ (∀x Q(x)) ∃x (P(x) ∨ Q(x)) ⇔ (∃x P(x)) ∨ (∃x Q(x)) parenthesize ∀x (P(x) ∧ Q(x)) Consecutive quantifiers of the same type can be combined: ∀x ∀y ∀z P(x,y,z) ⇔ ∀x,y,z P(x,y,z) or even ∀xyz P(x,y,z) All quantified expressions can be reduced to the canonical alternating form : ∀x1∃x2∀x3∃x4…P(x1, x2, x3, x4,…) Nested Quantifiers

Order of Quantifiers The order of quantifiers is important when translating any statement unless they are all universal quantifiers or existential quantifiers. ∀x ∀yP(x, y) ⇔ ∀y ∀xP( x, y)? YES! ∀x ∃ yP(x, y) ⇔ ∃ y ∀xP( x, y)? NO! Different Meaning !!! ∀x[P(x) ∧ Q(x)] ⇔ ∀x P( x) ∧ ∀x Q( x)? YES! ∀x[P(x)→Q(x)] ⇔ ∀x P( x) →∀x Q( x)? NO! Nested Quantifiers

Exercise --- I Translate the following statements into logical ones: There is a women who has taken a flight on every airline in the world. (u.d. all women in the world) ∃w∀ a ∃f (P(w,f) ∧ Q(f,a)) There doesn’t exist a women who has taken a flight on every airline in the world. ¬∃w∀ a ∃f (P(w,f) ∧ Q(f,a)) ⇔ ∀w∃ a∀ f (¬ P(w,f) ∨ ¬ Q(f,a)) Nested Quantifiers

Exercise --- II “There is no store that has no students who shop there.” S(x, y): “x shops in y” T (x): “x is a student” where the universe for x consists of people and the universe for y consists of stores: Rewriting the above statement: All stores have students who shop in them. Thus if you are a student, then you shop in one of the stores. we have ¬∃y ∀x (T (x)→¬S(x, y)). Nested Quantifiers