Propositional Predicate

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

Monday, January 13, Instructor Development Lesson 9.
National Seminar on Developing a Program for the Implementation of the 2008 SNA and Supporting Statistics in Turkey Arzu TOKDEMİR 10 September 2013 Ankara.

© 2007 Cisco Systems, Inc. All rights reserved. 1 Valašské Meziříčí Networking Media.
MarcEdit "A Closer Look at Productivity Tools” NETSL 2014 Apr. 11, pm.
The Logic of Quantified Statements
Grading Lecture attendance: -1% per 2 unexcused absences
© 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 
CS128 – Discrete Mathematics for Computer Science
22C:19 Discrete Structures Logic and Proof Spring 2014 Sukumar Ghosh.
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
So far we have learned about:
1 Predicates and quantifiers Chapter 8 Formal Specification using Z.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/25/11 Ming-Hsuan Yang UC Merced 1.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
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.
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
Discrete Mathematics and Its Applications
MATH 224 – Discrete Mathematics
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
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 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:
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
Logical Operations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Logical Operations Reading: Kolman, Section 2.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.
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
22C:19 Discrete Structures Logic and Proof Fall 2014 Sukumar Ghosh.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
CS104:Discrete Structures Chapter 2: Proof Techniques.
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.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Introduction to Discrete Mathematics Discrete Mathematics: is the part of mathematics devoted to the study of discrete objects. Discrete Mathematics is.
Chapter 1 Logic and proofs
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CS 2210:0001 Discrete Structures Logic and Proof
CSE15 Discrete Mathematics 01/23/17
Predicates & Quantifiers
Chapter 1 The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
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
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
ICS 253: Discrete Structures I
Predicates and Quantifiers
Presentation transcript:

ICS 253: Discrete Structures I Predicates and Quantifiers Spring Semester 2014 (2013-2) Predicates and Quantifiers Dr. Nasir Al-Darwish Computer Science Department King Fahd University of Petroleum and Minerals darwish@kfupm.edu.sa

Propositional Predicate Definition: A propositional predicate P(x) is a statement that has a variable x. Examples of P(x) P(x) = “The Course x is difficult” P(x) = “x+2 < 5” Note: a propositional predicate is not a proposition because it depends on the value of x. Example: If P(x) = “x > 3”, then P(4) is true but not P(1). A propositional predicate is also called a propositional function

Propositional Predicate – cont. It also possible to have more than one variable in one predicate, e.g., Q(x,y) =“x > y-2” P(x) is a function (a mapping) that takes a value for x and produce either true or false. Example: P(x) = “x2 > 2” , P: Some Domain  {T, F} Domain of x is called the domain (universe) of discourse

Quantification A predicate (propositional function) could be made a proposition by either assigning values to the variables or by quantification. Predicate Calculus: Is the area of logic concerned with predicates and quantifiers.

Quantifiers 1. Universal quantifier: P(x) is true for all (every) x in the domain. We write x P(x) 2. Existential quantifier: there exists at least one x in the domain such that P(x) is true. We write x P(x) 3. Others: there exists a unique x such that P(x) is true. We write !x P(x)

Universal Quantification Uses the universal quantifier  (for all) x P(x) corresponds to “p(x) is true for all values of x (in some domain)” Read it as “for all x p(x)” or “for every x p(x)” Other expressions include “for each” , “all of”, “for arbitrary” , and “for any” (avoid this!) A statement x P(x) is false if and only if p(x) is not always true (i.e., P(x) is false for at least one value of x) An element for which p(x) is false is called a counterexample of x P(x); one counterexample is all we need to establish that x P(x) is false

Universal Quantification - Examples Example 1: Let P(x) be the statement “x + 1 > x” . What is the truth value of ∀x P(x), where the domain for x consists of all real numbers? Solution: Because P(x) is true for all real numbers x, the universal quantification ∀x P(x) is true. Example 2: Suppose that P(x) is “x2 > 0” . What is the truth value of ∀x P(x), where the domain consists of all integers. Solution: We show ∀x P(x) is false by a counterexample. We see that x = 0 is a counterexample because for x = 0, x2 = 0, thus there is some integer x for which P(x) is false.

Existential Quantification Uses the existential quantifier  (there exists) x P(x) corresponds to “There exists an element x (in some domain) such that p(x) is true” In English, “there is”, “for at least one”, or “for some” Read as “There is an x such that p(x)”, “There is at least one x such that p(x)”, or “For some x, p(x)” A statement x P(x) is false if and only if “for all x, P(x) is false”

Existential Quantification - Examples Example 1: Let P(x) denote the statement “x > 3”. What is the truth value of ∃x P(x), where the domain for x consists of all real numbers? Solution: Because “x > 3” is true for some values of x , for example, x = 4, the existential quantification ∃x P(x) is true. Example 2: Let Q(x) denote the statement “x = x + 1” . What is the truth value of ∃x Q(x), where the domain consists of all real numbers? Solution: Because Q(x) is false for every real number x, the existential quantification ∃x Q(x) is false.

Predicates and Negations When true When false Negation x P(x) For all x, P(x) is true There is at least one x s.t. P(x) is false x P(x) x P(x) There is at least one x s.t. P(x) is true For all x, P(x) is false x P(x)

Domain (or Universe) of Discourse Cannot tell if a quantified predicate P(x) is true (or false) if the domain of x is not known. The meaning of the quantified P(x) changes when we change the domain. The domain must always be specified when universal or existential quantifiers are used; otherwise, the statement is ambiguous.

Quantification Examples P(x) = “x+1 = 2” Domain is R (set of real numbers) Proposition Truth Value x P(x) x  P(x) x P(x) x  P(x) !x P(x) !x  P(x) F F T T T F

Quantification Examples P(x) = “x2 > 0” Domain Proposition Truth Value R x P(x) Z x P(x) Z - {0} x P(x) Z !x  P(x) N={1,2, ..} x  P(x) F F T T F

Quantification Examples Proposition Truth Value xR (x2  x) !xR (x2 < x) x(0,1) (x2 < x) x{0,1} (x2 = x) x P(x) F F T T T

Logically Equivalence Definition: Two statements involving predicates & quantifiers are logically equivalent if and only if they have the same truth values independent of the domains and the predicates. Examples:  ( x P(x) )  x  P(x)  ( x P(x) )  x  P(x)

x P(x)  x P(x)  Theorem P(x1)  P(x2)  ...  P(xn) If the domain of discourse is finite, say Domain = {x1, x2, …, xn}, then x P(x)  x P(x)  P(x1)  P(x2)  ...  P(xn) P(x1)  P(x2)  ...  P(xn)

((x P(x) )  ((!x Q(x) )  (x  P(x) ))) Precedence  , , , , ,    Example: ((x P(x) )  ((!x Q(x) )  (x  P(x) )))

Correct Equivalences x ( P(x)  Q(x) )  x P(x)  x Q(x) This says that we can distribute a universal quantifier over a conjunction x ( P(x)  Q(x) )  x P(x)  x Q(x) This says that we can distribute an existential quantifier over a disjunction The preceding equivalences can be easily proven if we assume a finite domain for x = {x1, x2, …, xn} Note: we cannot distribute a universal quantifier over a disjunction, nor can we distribute an existential quantifier over a conjunction.

Wrong Equivalences x 1 2 P(x) T F Q(x) x ( P(x)  Q(x) )  x P(x)  x Q(x) Read as “there exists an x for which both P(x) and Q(x) are true is equivalent to there exists an x for which P(x) is true and there exists an x for which Q(x) is true”. One can construct an example that makes the above equivalence false. Consider the following x ( P(x)  Q(x) ) = F but x P(x)  x Q(x) = T, since P(1) is true and Q(2) is true x 1 2 P(x) T F Q(x)

Wrong Equivalences x 1 2 P(x) T F Q(x) x ( P(x)  Q(x) )  x P(x)  x Q(x) One can construct an example that makes the above equivalence false. Consider the following x ( P(x)  Q(x) ) = T but x P(x)  x Q(x) = F  F = F x 1 2 P(x) T F Q(x)

Wrong Equivalences ( x P(x) )  Q(x)  x ( P(x)  Q(x) ) Notice that the LHS = ( x P(x) )  Q(x) is not fully quantified. So it cannot be equivalent to RHS.

Quantifiers with restricted domains What do the following statements mean for the domain of real numbers? Be careful about → and ˄ in these statements