Nested Quantifiers Section 1.4.

Slides:



Advertisements
Similar presentations
Rosen 1.3 Propositional Functions Propositional functions (or predicates) are propositions that contain variables. Ex: Let P(x) denote x > 3 P(x) has.
Advertisements

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.
The Logic of Quantified Statements
CS 285- Discrete Mathematics
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Section 1.4: Nested Quantifiers We will now look more closely at how quantifiers can be nested in a proposition and how to interpret more complicated logical.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/25/11 Ming-Hsuan Yang UC Merced 1.
Discrete Structures Chapter 3: The Logic of Quantified Statements
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Lecture # 21 Predicates & Quantifiers
Discrete Math 6A Max Welling. Recap 1. Proposition: statement that is true or false. 2. Logical operators: NOT, AND, OR, XOR, ,  3. Compound proposition:
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Predicates and Quantifiers. Predicates (aka propositional functions) Propositions (things that are true or false) that contain variables P(-2) is false.
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
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
CS 103 Discrete Structures Lecture 05
Predicates and Quantified Statements M , 3.2.
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.
Predicates and Quantified Statements
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
Nested Quantifiers Section 1.5.
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.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.
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.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CSE15 Discrete Mathematics 01/25/17
3. The Logic of Quantified Statements Summary
CSE15 Discrete Mathematics 01/23/17
Chapter 3 The Logic of Quantified Statements
Predicates & Quantifiers
CMSC Discrete Structures
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
1.4 Predicates and Quantifiers
CS 220: Discrete Structures and their Applications
Mathematics for Computer Science MIT 6.042J/18.062J
Nested Quantifiers Nested quantifiers are often necessary to express the meaning of sentences in English as well as important concepts in computer science.
Statements Containing Multiple Quantifiers
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Lecture 1.3: Predicate Logic
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
George Boole English Mathematician
Predicates and Quantifiers
Predicates and Quantifiers
Chapter 8, Part 1 First Order Predicate Calculus FOPC
Lecture 1.3: Predicate Logic
Presentation transcript:

Nested Quantifiers Section 1.4

Recap Section 1.3 A predicate is generalization of a proposition. It is a proposition that contains variables. A predicate becomes a proposition if the variable(s) contained is(are) Assigned specific value(s) Quantified Universe of discourse : the particular domain of the variable in a propositional function

Recap Section 1.3 Universal quantification P(x) is true for ALL the values of x in the universe of discourse. x P(x). Remember   All. “for all x, P(x)” If the elements in the universe of discourse can be listed, U = {x1, x2, …, xn} x P(x)  P(x1)  P(x2)  …  P(xn)

Recap Section 1.3 Existential quantification P(x) is true FOR SOME x in the universe of discourse, i.e. EXIST some x x P(x) Remember,   Exist “for some x, P(x)” If the elements in the universe of discourse can be listed, U = {x1, x2, …, xn} x P(x)  P(x1)  P(x2)  …  P(xn)

Recap Section 1.3 Universal quantifiers usually take implications All CS students are smart students. x [C(x)  S(x)] Existential quantifiers usually take conjunctions Some CS students are smart students. x [C(x)  S(x)]

Recap Section 1.3 Summary of quantifiers x P(x) True when: P(x) is true for every x False when: P(x) is false for at least one x. x P(x) True when: P(x) is true for at least one x False when: P(x) is false for every x Negation changes a universal to an existential and vice versa, and negates the predicate ~x P(x)  x ~P(x) ~x P(x)  x ~P(x)

Recap Section 1.3 Quick examples (13b) Determine truth value. U={Z}  n (2n = 3n) (16b) Determine truth value U={R}  n (x2 = -1) Exercise 17

Nested Quantifiers Quantifiers that occur within the scope of other quantifiers Example: P(x,y): x + y = 0, U={R} x y P(x,y)

Quantifications of Two Variables For all pair x,y P(x,y). xy P(x,y) yx P(x,y) For every x there is a y such that P(x,y). xy P(x,y) There is an x such that P(x,y) for all y. xy P(x,y) There is a pair x,y such that P(x,y). xy P(x,y) yx P(x,y)

Translating statements with nested quantifiers U = {all real numbers} x y (x + y = y + x) x y (x + y = 0) x y ( (x > 0)  (y < 0)  (xy < 0) ) U = {all students in cs2813} C(x): x has a computer F(x,y): x and y are friends x ( C(x)  y (C(y)  F(x,y)) )

Translating Sentences U = {all people} If a person is female and is a parent, then this person is someone’s mother. U = {all integers} The sum of two positive integers is positive.

Is the order of quantifiers important? If the quantifiers are of the same type, then order does not matter If the quantifiers are of different types, then order is important

Example U={R} Q(x,y): x+y=0 What are the truth values for y x Q(x,y) and x y Q(x,y) y x Q(x,y): There exist at least one y such that for every real number x, Q(x,y) is true, i.e. x+y=0. FALSE (not for every, only when y is –x). But… x y Q(x,y): For every real number x, there is a real number y such that Q(x,y) is true, i.e x+y =0. TRUE (for every x when y is –x)