CSE115/ENGR160 Discrete Mathematics 01/25/11 Ming-Hsuan Yang UC Merced 1.

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
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.
Propositional Predicate
The Logic of Quantified Statements
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
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
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Nested Quantifiers Goals: Explain how to work with nested quantifiers
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
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
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
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 1 The Foundations: Logic and Proofs 歐亞書局.
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.
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.
Predicates and Quantified Statements M , 3.2.
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.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
Section Predicates & Quantifiers. Open Statement 2 x > 8 p < q -5 x = y + 6 Neither true nor false.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Predicates and Quantified Statements
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
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,
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
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.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences 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.
Introduction to Discrete Mathematics Discrete Mathematics: is the part of mathematics devoted to the study of discrete objects. Discrete Mathematics is.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CSE15 Discrete Mathematics 01/25/17
The Foundations: Logic and Proofs
3. The Logic of Quantified Statements Summary
CSE15 Discrete Mathematics 01/23/17
Nested Quantifiers Goals: Explain how to work with nested quantifiers
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Nested Quantifiers Nested quantifiers are often necessary to express the meaning of sentences in English as well as important concepts in computer science.
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
ICS 253: Discrete Structures I
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Presentation transcript:

CSE115/ENGR160 Discrete Mathematics 01/25/11 Ming-Hsuan Yang UC Merced 1

Logical equivalences S≡T: Two statements S and T involving predicates and quantifiers are logically equivalent – If and only if they have the same truth value no matter which predicates are substituted into these statements and which domain is used for the variables. – Example: i.e., we can distribute a universal quantifier over a conjunction 2

Both statements must take the same truth value no matter the predicates p and q, and non matter which domain is used Show – If p is true, then q is true (p → q) – If q is true, then p is true (q → p) 3

(→) If a is in the domain, then p(a)˄q(a) is true. Hence, p(a) is true and q(a) is true. Because p(a) is true and q(a) is true for every element in the domain, so is true (←) It follows that are true. Hence, for a in the domain, p(a) is true and q(a) is true, hence p(a)˄q(a) is true. If follows is true 4

Negating quantified expressions 5 Negations of the following statements “There is an honest politician” “Every politician is dishonest” (Note “All politicians are not honest” is ambiguous) “All Americans eat cheeseburgers”

Example 6

Translating English into logical expressions “Every student in this class has studied calculus” Let c(x) be the statement that “x has studied calculus”. Let s(x) be the statement “x is in this class” 7

Using quantifiers in system specifications “Every mail message larger than one megabyte will be compressed” Let s(m,y) be “mail message m is larger than y megabytes” where m has the domain of all mail messages and y is a positive real number. Let c(m) denote “message m will be compressed” 8

Example “If a user is active, at least one network link will be available” Let a(u) represent “user u is active” where u has the domain of all users, and let s(n, x) denote “network link n is in state x” where n has the domain of all network links, and x has the domain of all possible states, {available, unavailable}. 9

1.4 Nested quantifiers 10 Let the variable domain be real numbers where the domain for these variables consists of real numbers

Quantification as loop For every x, for every y – Loop through x and for each x loop through y – If we find p(x,y) is true for all x and y, then the statement is true – If we ever hit a value x for which we hit a value for which p(x,y) is false, the whole statement is false For every x, there exists y – Loop through x until we find a y that p(x,y) is true – If for every x, we find such a y, then the statement is true 11

Quantification as loop : loop through the values for x until we find an x for which p(x,y) is always true when we loop through all values for y – Once found such one x, then it is true : loop though the values for x where for each x loop through the values of y until we find an x for which we find a y such that p(x,y) is true – False only if we never hit an x for which we never find y such that p(x,y) is true 12

Order of quantification 13

Quantification of two variables 14

Quantification with more variables 15

Translating mathematical statements “The sum of two positive integers is always positive” 16

Example “Every real number except zero has a multiplicative inverse” 17

Express limit using quantifiers is for every real number ε>0, there exists a real number δ>0, such that |f(x)-L|<ε whenever 0<|x-a|<δ 18

Translating statements into English where c(x) is “x has a computer”, f(x,y) is “x and y are friends”, and the domain for both x and y consists of all students in our school where f(x,y) means x and y are friends, and the domain consists of all students in our school 19

Negating nested quantifiers There does not exist a woman who has taken a flight on every airline in the world where p(w,f) is “w has taken f”, and q(f,a) is “f is a flight on a 20