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.

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

Chapter 3 Direct Proof and Proof by Contrapositive
Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
FOL Practice. Models A model for FOL requires 3 things: A set of things in the world called the UD A list of constants A list of predicates, relations,
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
March 10: Quantificational Notions Interpretations: Every interpretation interprets every individual constant, predicate, and sentence letter of PL. Our.
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
March 5: more on quantifiers We have encountered formulas and sentences that include multiple quantifiers: Take, for example: UD: People in Michael’s office.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
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:
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Section 1.3: Predicates and Quantifiers
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
Section 1.5 Implications. Implication Statements If Cara has a piano lesson, then it is Friday. If it is raining, then I need to remember my umbrella.
Discrete Mathematics and Its Applications
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
CS 173, Lecture B September 1, 2015 Tandy Warnow.
CS 103 Discrete Structures Lecture 05
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
1 Math/CSE 1019C: Discrete Mathematics for Computer Science Fall 2011 Suprakash Datta Office: CSEB 3043 Phone: ext
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 1, Part II With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the.
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.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Section Predicates & Quantifiers. Open Statement 2 x > 8 p < q -5 x = y + 6 Neither true nor false.
Nested Quantifiers Section 1.5.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
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:
Lecture Predicates and Quantifiers 1.4 Nested Quantifiers.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Discrete Structures – CNS 2300
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Statements Containing Multiple Quantifiers Lecture 11 Section 2.3 Mon, Feb 5, 2007.
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.
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.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
Uniqueness Quantifier ROI for Quantified Statement.
Chapter 1 Logic and Proof.
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
1.4 Predicates and Quantifiers
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
CS 220: Discrete Structures and their Applications
CHAPTER 1: LOGICS AND PROOF
Nested Quantifiers Nested quantifiers are often necessary to express the meaning of sentences in English as well as important concepts in computer science.
ICS 253: Discrete Structures I
George Boole English Mathematician
Predicates and Quantifiers
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Inference Rules for Quantified Propositions
Presentation transcript:

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 statements involving nested quantifiers.

Ex:  x  y[x + y = y + x] - This is the commutative law for addition  x  y[x + y = 0] - This says every integer has an add. inv.  x  y  z[x + (y + z) = (x + y) + z] Ex:  x  y[(x > 0)  (y > 0)  (xy > 0)][True] For any x and for any y, if x and y are both positive then xy is positive. Ex:  x  y[(x > 0)  (y > 0)  (xy > 0)][False] For any x and for any y, x and y are both positive and xy is positive. Ex:  x[C(x)   y[C(y)  F(x, y)]] where C(x) is “x has a computer” and F(x, y) is “x and y are friends”. U.d. for x and y is all students. “For any student x, x has a computer or there is some student y where y has a computer and x and y are friends.” Any student either has a computer or has a friend that has a computer.

Ex:  x  y  z[F(x, y)  F(x, z)  (y  z)   F(y, z)] Consider the implication F(x, y)  F(x, z)  (y  z)   F(y, z). This says that if (x is friends with y and y is friends with z and y and z are different people) then (y is not friends with z). Now looking at the quantifiers, we are dealing with “There exists some person x, such that for all persons y and all persons z, if x is friends with y and with z and y and z are different people then y is not friends with z.” So it says that someone exists satisfying the condition that no two of his friends are friends with one another. The question of when an  is appropriate versus using  confuses many people. Note that we are using an implication because we are saying that for all y and all z that satisfy the hypothesis, they satisfy the consequence. If the  were replaced with  we would be saying that all x and all y do satisfy both the hypothesis and consequent.

Interpreting a logical statement with nested quantifiers is a tricky business. So is producing a quantified statement to represent a given English statement (which we are about to turn to). This is by far the material that students last semester in this class had the most trouble with (test-wise). I urge you to spend time reading through the examples in the text and even more working through the exercises. This material is important because it is the basis for mathematical reasoning and we will be using it (more implicitly than explicitly) throughout this course. It may be that students have the most trouble with it when it is formalized because they did much better at implicitly using these techniques when constructing proofs later in the class. Nonetheless, the more comfortable you get at working with quantified logic statements, the more prepared you will be to work with and manipulate mathematical statements later.

Ex: “If a person is female and is a parent, then that person is someone’s mother.” Let’s use all people as our universe of discourse and translate this sentence into a quantified statement. F(x): “x is female”P(x): “x is a parent” M(x, y): “x is the mother of y” So we have “If F(x) and P(x) then M(x, someone)”. That is “F(x)  P(x)  M(x, someone)”. [How to quantify x?] x should be universally quantified because we are making a statement for all people x who satisfy the hypothesis:  x[F(x)  P(x)  M(x, someone)]  x[F(x)  P(x)  M(x, y)] [How to quantify y?][Where to put it?]  x[F(x)  P(x)   yM(x, y)] or  x  y[F(x)  P(x)  M(x, y)]

Ex: “Everyone has exactly one best friend.”  x[“x has exactly one best friend”] B(x, y): “x’s best friend is y” Now we want to be able to say “x has exactly one best friend”. This statement has two parts really. It is saying that x does have a best friend and furthermore that x has at most one best friend. We can think of this as at least one and at most one. The at least one part is easy.  x  yB(x,y). This says for every person x, there exists a best friend y. This covers at least one. Now we will add some stuff for at most one.  x  y[B(x,y)   z[(z  y)   B(x, z)]]  x  y  z[B(x,y)  ((z  y)   B(x, z))]

Ex: “There is a person who has taken a flight on every airline.” T(p, f): “person p has taken flight f” Q(f, a): “f is a flight on airline a” Note that we need to have separate universes of discourse here. Let the u.d. for p be all people, for f be all flights, and for a be all airlines.  p  a  f[T(p,f)  Q(f, a)] Ex: “The sum of two odd integers is an even integer.” O(x): “x is odd” E(x): “x is even”  x  y[O(x)  O(y)   z[(x + y = z)  E(z)]]  x  y  z[O(x)  O(y)  (x + y = z)  E(z)] Let u.d. for o be the odd integers and u.d. for e be the even integers.  o 1  o 2  e[o 1 + o 2 = e]

Negating Nested Quantifiers If we have a quantified statement, then just as with statements in propositional logic, we indicate the negation of the statement by placing the negation operator(  ) in front of it. This negation should apply to the entire statement so we may need to group the entire statement into parenthesis to force precedence of operations. Then we can successively apply the rules we have seen for negation of quantified statements to simplify it.

Ex: The negation of  x  y[x + y = 0] is  x  y[x + y = 0] [simplify]  x  y[x + y = 0]   x[  y[x + y = 0]]   x  y[  (x + y = 0)]   x  y[x + y  0] Ex: The negation of  x  y  z[B(x,y)  ((z  y)   B(x, z))] is  x  y  z[B(x,y)  ((z  y)   B(x, z))]  x  y  z[B(x,y)  ((z  y)   B(x, z))]   x  y  z[  (B(x,y)  ((z  y)   B(x, z)))]   x  y  z[  B(x,y)   ((z  y)   B(x, z))]   x  y  z[  B(x,y)   (  (z  y)   B(x, z))]   x  y  z[  B(x,y)  (z  y)  B(x, z)]   x  y[  B(x,y)   z[(z  y)  B(x, z)]] There is some x who doesn’t have any best friend or has more than 1.

Homework problems from Section 1.4 Problems 3, 8, 10, 15, 19, 26, 32, 37 from this section will be included on the next homework assignment.