1.3 Predicates and Quantifiers

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

Propositional Predicate
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.
Chapter 2 Section 2 Solving a System of Linear Equations II.
CMSC 250 Discrete Structures Exam #1 Review. 21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q 11.
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.
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
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.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
CS 103 Discrete Structures Lecture 05
1 Predicates and Quantifiers CS/APMA 202, Spring 2005 Rosen, section 1.3 Aaron Bloomfield.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 2 Section 5 Multiplying Integers. Multiplying Two Integers with Different Signs Words: The product of two integers with different signs. Numbers:
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
© Jalal Kawash 2010Peeking into Computer Science George Boole English Mathematician His The Mathematical Analysis of Logic, 1848 is the first.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
Math 51/COEN 19 Day 3, 1.4 Quantifiers 1. 3 Predicates A lot like functions that return booleans Let P(x) denote x
Section Predicates & Quantifiers. Open Statement 2 x > 8 p < q -5 x = y + 6 Neither true nor false.
Algebra Equations Lesson 1-7 Pages Equations An Equation is a sentence that contains an equals = sign. The equals = sign tells you that the expression.
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,
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
COMP 170 L2 L08: Quantifiers. COMP 170 L2 Outline l Quantifiers: Motivation and Concepts l Quantifiers: Notations and Meaning l Saying things with Quantified.
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.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
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
Discrete Mathematics.
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
Predicates & Quantifiers
Review Problems Algebra 1 11-R.
Chapter 1 The Foundations: Logic and Proofs
CS 220: Discrete Structures and their Applications
Discrete Math (2) Haiming Chen Associate Professor, PhD
Introduction to Predicates and Quantified Statements II
Statements Containing Multiple Quantifiers
Chapter 1 Logic and Proof.
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Lecture 1.3: Predicate Logic
4105 CHALLENGING REVIEW QUIZ
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
SECTION 2-4 : SOLVING EQUATIONS WITH THE VARIABLE ON BOTH SIDES
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Thinking Mathematically
George Boole English Mathematician
Predicates and Quantifiers
Lecture 1.3: Predicate Logic
Presentation transcript:

1.3 Predicates and Quantifiers

Predicates and Quantifiers E.g., “If it is sunny, I’ll buy X.” Here the parameter is X. Def: A predicate is a propositional function (a proposition with parameters). Note: When all parameters are assigned constant values, the predicate expression has one of the values T or F. Another way to change a predicate into a proposition is to specify conditions on the parameters. Chapter 1, section 3 Predicates and Quantifiers

Quantifiers Universal quantification Existential quantification Def: The universal quantification of P(x) is the proposition “P(x) is true for all values of x in the universe of discourse.” Chapter 1, section 3 Predicates and Quantifiers

Universal Quantification Notation: ( x P(x)) This is read: “for all x P(x) is true.” This could be used to express the concept: “Every sunny day I buy a red bag.” Notes: “==“ means “is equals to” x (D(x)  C(x)) is translated For all x, if D(x) then C(x) x (C(x)  D(x)) is translated similarly Chapter 1, section 3 Predicates and Quantifiers

Example, universal quantification C(x) == "x has taken algebra” D(x) == "x is enrolled in discrete math” x (D(x)  C(x)) {is True} but x (C(x)  D(x)) {is False} Chapter 1, section 3 Predicates and Quantifiers

Existential Quantification Notation: ( x P(x)) This is read “there exists an x such that P(x) is true” This could be used to express the concept that at least once I bought a red bag. Def: Existential quantification of P(x) is the proposition “There exists an element x in the universe of discourse such that P(x) is true” Chapter 1, section 3 Predicates and Quantifiers

Example, existential quantification  x (C(x)  D(x)) This is TRUE if we can find one person who has taken algebra AND is enrolled in discrete math, OR find one person who hasn't taken algebra. Chapter 1, section 3 Predicates and Quantifiers

From English to logical expressions Equivalent to : for all all any for every every for any any for arbitrary an arbitrary for each Equivalent to : there exists there is there is at least one there is some for some some for at least one Chapter 1, section 3 Predicates and Quantifiers

Predicates and Quantifiers Binding Variables E.g.,  y  x P (x,y,z) bound variables y and x, and free variable z. Def: a quantifier binds or restricts the use of variables. Variables that are not bound are free. Chapter 1, section 3 Predicates and Quantifiers

Predicates and Quantifiers Consider: z y x P(x,y,z) for every possible value of z, there is at least one value of y such that for every possible value of x, P(x,y,z) is true Chapter 1, section 3 Predicates and Quantifiers

Predicates and Quantifiers More Examples Suppose P(x,y,z) is the predicate “When I teach discrete math in semester x, student y does well on exam z.” Then x y z P(x,y,z) is the statement: Every time I teach discrete math, there is at least one student who does well on every exam." Suppose P(x,y, z) is the predicate “When I teach discrete math in semester x, student y does well on exam z.” Then x y z P(x,y,z) is the statement: Every time I teach discrete math, there is at least one student who does well on every exam." Chapter 1, section 3 Predicates and Quantifiers

Predicates and Quantifiers Order matters! y x z P(x,y,z) would be true if "There is at least one student who, every time I teach discrete math, always does well on all my exams." (why is he always taking the course?) Chapter 1, section 3 Predicates and Quantifiers

Negation of quantifiers: ~ x P(x)   x ~P(x) true: P(x) is false for every x. false: There is an x for which P(x) is true. ~ x P(x)   x ~ P(x) true: There is an x for which P(x) is false. false: P(x) is true for every x. ~ x P(x) and  x ~ P(x) ~ x P(x) and  x ~P(x) Chapter 1, section 3 Predicates and Quantifiers

Predicates and Quantifiers Self Quiz Simplify the following by moving “~” inside the quantifiers and connectors: ~  x  y  z ( P(x) V ( Q(y)  R(z))) Chapter 1, section 3 Predicates and Quantifiers

Answer: ~  x  y  z ( P(x) V ( Q(y)  R(z)))  x  y  z (~ P(x)  (~ Q(y) V ~ R(z))) Chapter 1, section 3 Predicates and Quantifiers