Lecture 3 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.

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.
Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Propositions and Connectives Conditionals and Bi-conditionals Quantifiers.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
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.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
CS 103 Discrete Structures Lecture 05
1 Predicates and Quantifiers CS/APMA 202, Spring 2005 Rosen, section 1.3 Aaron Bloomfield.
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 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.
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.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Section Predicates & Quantifiers. Open Statement 2 x > 8 p < q -5 x = y + 6 Neither true nor false.
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,
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02: QUANTIFIERS Sections 1.3 and 1.4 Jarek Rossignac CS1050:
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.
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.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
Statements Containing Multiple Quantifiers Lecture 11 Section 2.3 Mon, Feb 5, 2007.
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.
Discrete Mathematical الرياضيات المتقطعة. Example 12 June OR Q(x,y): x+y=x-y a) Q(1,1): 2=0 False b) Q(2,0): 2+0=2-0 True c) Q(1,y): 1+y=1-y False(take.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Lecture 1.2: Equivalences, and Predicate Logic
3. The Logic of Quantified Statements Summary
CSE15 Discrete Mathematics 01/23/17
Predicates & Quantifiers
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
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
ICS 253: Discrete Structures I
George Boole English Mathematician
Predicates and Quantifiers
1.3 Propositional Equivalences
Predicates and Quantifiers
Presentation transcript:

Lecture Predicates and Quantifiers 1.4 Nested Quantifiers

Predicates The statement "x is greater than 3" has two parts. The first part, "x", is the subject of the statement. The second part, "is greater than 3" is called the predicate.

Quantifiers

Universal Quantification

Existential Quantification

Logical Equivalences Involving Quantifiers Statements involving predicates and quantifiers are logically equivalent iff they have the same truth value for all applications and for all domains of discourse.

News Flash! Predicates are not propositions! they are propositional functions subject predicate proposition x x was a man. Daniel Boone was a man. x x > 3 2 > 3 x,y Q(x,y) Q(2,3) x,y,z R(x,y,z)=> x+y=z R(1,2,3) true R(0,0,1) false A predicate can be turned into a proposition by instantiation of its variables... or by quantification... subject predicate proposition x x was a man x x>3 x,y Q(x,y) x,y,z R(x,y,z)=> x+y=z

Binding Variables

DeMorgan's Laws for Quantifiers

Universal Quantifiers and Negation For all x, P(x) is true. To show that the universal quantifier is not true we need only to show a counterexample. That is we demonstrate that the negation of the universal quantifier is true.

Existential Quantifier and Negation Existential quantifiers state that in the domain of discourse there exists as least one member for which the predicate is true. The negation of the existential quantifier says that none of the members of the domain of discourse make the predicate true.

There is more than one way to x a y. We can express the statement, "There is an animal that is a mammal and can fly but is not a bat", as a logical proposition, where, M(x) = x is a mammal F(x) = x can fly B(x) = x is a bat Alternatively we can create predicates with multiple variables, such as T(x,y) = returns true if x is a y which allows us to rewrite the logical proposition as,

Understanding compound quantifiers For all x there exists a y such that x+y=0 - additive inverse For all x and y, x+y is equal to y+x. - commutative law For all x,y and z, x plus the quantity y+z is equal to the quantity x+y plus the value z. - associative law Math Expressions Logical Expressions C(x) - x owns a computer F(x,y) - x and y are friends "Every student either owns a computer or has a friend that owns a computer."

Order of Quantifiers

Nested Quantifiers: An Example

Negating Compound Quantifiers... Au contraire, mon ami Express the negation of the statement so that no negation precedes a quantifier. It is not true that... There exists some x such that there does not exist a y that makes xy=1 There exists some x such that for all y, x times y does not equal 1.

Compound Quantifiers as Nested Loops Nested Loons isa_z = false; for x in x1..xn loop for y in y1..yn loop for z in z1..zn loop if x+y=z then isa_z = true; end if; end loop; Propositional quantifiers imply an evaluation of the predicate for all possible values in the domain of discourse. Sometimes the domain is infinite and possibly uncountable, but we can still consider the comparison as being implemented as a nested loop. In the code segment above, is there a more efficient way to represent existential quantifiers?