Discrete Mathematics CS 2610 August 22, 2006. 2 Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

1.3 Predicates and Quantifiers
Propositional Predicate
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
2009/91 Predicates and Quantifiers (§1.3) In the sentence “x is greater than 3”: The phrase “x” denotes the subject - the object or entity that the sentence.
1 Predicate Logic Rosen 6 th ed., § Predicate Logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
Predicate Logic and Quantifies
Discrete Mathematics Math 6A Instructor: M. Welling.
Discrete Structures Chapter 3: The Logic of Quantified Statements
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Discrete Math 6A Max Welling. Recap 1. Proposition: statement that is true or false. 2. Logical operators: NOT, AND, OR, XOR, ,  3. Compound proposition:
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
Logical Equivalence & Predicate Logic
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
CS 103 Discrete Structures Lecture 05
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 10 CS 1813 – Discrete Mathematics Quantify What? Reasoning with Predicates.
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.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
CS203 Discrete Mathematical Structures Logic (2).
Math 51/COEN 19 Day 3, 1.4 Quantifiers 1. 3 Predicates A lot like functions that return booleans Let P(x) denote x
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
Predicates and Quantified Statements
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,
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
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
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.
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
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.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
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.
3. The Logic of Quantified Statements Summary
Predicates and Quantified Statements I
CSE15 Discrete Mathematics 01/23/17
CS203 Discrete Mathematical Structures
CMSC Discrete Structures
Chapter 1 The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
1.4 Predicates and Quantifiers
CS 220: Discrete Structures and their Applications
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Lecture 1.3: Predicate Logic
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
George Boole English Mathematician
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CS201: Data Structures and Discrete Mathematics I
Lecture 1.3: Predicate Logic
Presentation transcript:

Discrete Mathematics CS 2610 August 22, 2006

2 Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference

3 Predicate Logic Define: UGA(x) = “x is a UGA student.” Universe of Discourse – all people x is a variable that represents an arbitrary individual in the Universe of Discourse A predicate P, or propositional function, is a function that maps objects in the universe of discourse to propositions UGA(Paris Hilton) is a proposition. UGA(x) is not a proposition. UGA(x) is like an English predicate template __________ is a UGA student

4 Predicate Logic By convention, Uppercase Roman letters, P, Q, R…, are used to denote predicates Lowercase Roman letters, x,y,z, are used to denote variables for objects. Note: this is reversed in Prolog

5 Predicate Logic P(x): x > 0 Universe of Discourse (UD): Integers -- Z P(1): 1>0=T; P(50): 50>0=T; P(-10): -10>0= F P(x) is not a proposition F(x): x is Female UD: all people F(Maria)=TF(Edward)=F F(x) is not a proposition

6 Aside Z -- set of integers {… -2, -1, 0, 1, 2, …} Z + -- set of positive integers {1, 2, 3, …} R -- set of real numbers N -- set of natural numbers {0, 1, 2, …} Q -- set of rational numbers {p/q | p, q є Z, q ≠ 0}

7 Predicate Logic A predicate that states a property about one object is called monadic predicate. UGA(x) P(x) F(x) A monadic predicate takes one argument. UD(x): all people

8 Predicate Logic A predicate of the form P(x 1,…,x n ), n>1 that states the relationships among the objects x 1,…,x n is called polyadic. Also, n-place predicate or n-ary predicate.  It takes n>1 arguments  UD(x 1,…,x n )= UD(x 1 ) x UD(x 2 ) x… UD(x n ) L(x,y): x loves y UD(x)=UD(y)=all people L(Adam,Mary)=TL(Mike,Jill)=F Q(x,y,z): x+y = z UD(x)=UD(y)=UD(z): Real numbers Q(1,1,2)=TQ(1,2,5)=F

9 Predicate Logic: Universal Quantifier Suppose that P(x) is a predicate on some universe of discourse. The universal quantification of P(x) (  x P(x) ) is the proposition: “P(x) is true for all x in the universe of discourse.”  x P(x) reads “for all x, P(x) is True”  x P(x) is TRUE means P(x) is true for all x in UD(x).  x P(x) is FALSE means there is an x in UD(x) for which P(x) is false.

10 Predicate Logic: Universal Quantifier ID(x) means x has a student ID. UD(x): UGA students  x ID(x) means for all UGA student x, x has a student ID every UGA student has a student ID Mike is a UGA student who is a male Mike is a counterexample for  x IsFemale(x) IsFemale(x) means x is a Female UD(x): UGA students  x IsFemale(x) means for all UGA student x, x is a female Every UGA student is a female!

11 Predicate Logic: Universal Quantifier In the special case that the universe of discourse U, is finite, (U = {a 1, a 2, a 3, …, a n })  x P(x) corresponds to the proposition: P(a 1 )  P(a 2 )  …  P(a n ) We can write a program to loop through the elements in the universe and check each for truthfulness. If all are true, then the proposition is true. Otherwise it is false!

12 Predicate Logic: Existential Quantifier Suppose P(x) is a predicate on some universe of discourse. The existential quantification of P(x) is the proposition: “There exists at least one x in the universe of discourse such that P(x) is true.”  x P(x) reads “for some x, P(x)” or “There exists x, P(x) is True ”  x P(x) is TRUE means there is an x in UD(x) for which P(x) is true.  x P(x) is FALSE means : for all x in UD(x) is P(x) false

13 Predicate Logic: Existential Quantifier Examples: F(x) means x is female. UD(x): UGA students  x F(x) means For some UGA student x, x is a female. There exists a UGA student x who is a female. What will be the truth-value of  x Y(x) if the UD is all people? Y(x) means x is less than 5 years old UD(x): UGA students  x Y(x) means  for some UGA student x, x is less than 5 years old  there exists a UGA student x such that x is less than 5 years old

14 Predicate Logic: Existential Quantifier In the special case that the universe of discourse, U, is finite, (U = {x 1, x 2, x 3, …, x n })  x P(x) corresponds to the proposition: P(x 1 )  P(x 2 )  …  P(x n ) We can write a program to loop through the elements in the universe and check each for truthfulness. If all are false, then the proposition is false. Otherwise, it is true !

15 Predicates - Quantifier negation  x P(x) means “P(x) is true for some x.” What about  x P(x) ? It is not the case that [“P(x) is true for some x.”] “P(x) is not true for all x.”  x  P(x) Existential negation:  x P(x)   x  P(x).

16 Predicates - Quantifier negation  x P(x) means “P(x) is true for every x.” What about  x P(x) ? It is not the case that [“P(x) is true for every x.”] “There exists an x for which P(x) is not true.”  x  P(x) Universal negation:  x P(x)   x  P(x).

17 Predicate Logic - Binding The scope of a quantifier is the part of the logical expression to which the quantifier is applied. Example:  x (P(x)   Q(x))   y R(y)  S(z) Scope of  x Scope of  y

18 Predicate Logic - Binding An occurrence of a variable is bound if it is known or in the scope of a quantifier. Otherwise, it is free. Examples: P(x) P(5)  x P(x)  x (P(x)   Q(x))   y R(y)  S(z)

19 Predicate Logic - Binding An expression with zero free variables is an actual proposition Ex. Q(x) : x > 0, R(y): y < 10  x Q(x)   y R(y)