CSE 311 Foundations of Computing I

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
CSE 321 Discrete Structures Winter 2008 Lecture 1 Propositional Logic.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Predicates and Quantifiers
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
Discussion #141/20 Discussion #14 Predicate Calculus.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
CSE 311 Foundations of Computing I Lecture 8 Proofs and Set Theory Spring
Foundations of Computing I CSE 311 Fall bit Binary Adder Inputs: A, B, Carry-in Outputs: Sum, Carry-out A B Cin Cout S
Predicates and Quantified Statements M , 3.2.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CSE 311 Foundations of Computing I Lecture 5, Boolean Logic and Predicates Autumn 2012 CSE 3111.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
CSE 311 Foundations of Computing I Lecture 5 Predicate Logic Spring
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
Math 51/COEN 19 Day 3, 1.4 Quantifiers 1. 3 Predicates A lot like functions that return booleans Let P(x) denote x
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Nested Quantifiers Section 1.5.
CSE 311 Foundations of Computing I Lecture 9 Proofs and Set Theory Autumn 2012 CSE
4.1 Proofs and Counterexamples. Even Odd Numbers Find a property that describes each of the following sets E={…, -4, -2, 0, 2, 4, 6, …} O={…, -3, -1,
CSS342: Quantifiers1 Professor: Munehiro Fukuda. CSS342: Quantifiers2 Review of Propositions Proposition: a statement that is either true or false, but.
Lecture Predicates and Quantifiers 1.4 Nested Quantifiers.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
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.
CSE 311: Foundations of Computing Fall 2013 Lecture 8: Proofs and Set theory.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2011 CSE 3111.
CSE 311 Foundations of Computing I Lecture 8 Proofs Autumn 2012 CSE
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
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 Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
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.
Foundations of Computing I CSE 311 Fall Announcements Homework #2 due today – Solutions available (paper format) in front – HW #3 will be posted.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CSE15 Discrete Mathematics 01/25/17
CSE 311 Foundations of Computing I
CSE15 Discrete Mathematics 01/23/17
Chapter 3 The Logic of Quantified Statements
CSE 311 Foundations of Computing I
Predicate Calculus Discussion #14 Chapter 2, Section 1 1/20.
Discussion #14 Predicate Calculus
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS 220: Discrete Structures and their Applications
CSE 311 Foundations of Computing I
Predicate Calculus Discussion #14 Chapter 2, Section 1.
CSE 311: Foundations of Computing
Nested Quantifiers Nested quantifiers are often necessary to express the meaning of sentences in English as well as important concepts in computer science.
CSE 311 Foundations of Computing I
First Order Logic Rosen Lecture 3: Sept 11, 12.
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Negations of quantifiers
CSE 321 Discrete Structures
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
CSE 321 Discrete Structures
ICS 253: Discrete Structures I
Predicates and Quantifiers
CSE 321 Discrete Structures
Predicate Calculus. Predicate Calculus Topics Predicates Variables and instantiation Quantifiers Logical expressions Bound and free variables.
CSE 311: Foundations of Computing
Lecture 1.3: Predicate Logic
Presentation transcript:

CSE 311 Foundations of Computing I Lecture 6 Predicate Calculus Autumn 2012 Autumn 2012 CSE 311

Announcements Reading assignments Predicates and Quantifiers 1.4, 1.5 7th Edition 1.3, 1.4 5th and 6th Edition Autumn 2012 CSE 311

Predicate Calculus Predicate or Propositional Function “x is a cat” A function that returns a truth value “x is a cat” “x is prime” “student x has taken course y” “x > y” “x + y = z” or Sum(x, y, z) NOTE: We will only use predicates with variables or constants as arguments. Prime(65353) Autumn 2012 CSE 311

Quantifiers  x P(x) : P(x) is true for every x in the domain  x P(x) : There is an x in the domain for which P(x) is true Relate  and  to  and  Autumn 2012 CSE 311

Statements with quantifiers Domain: Positive Integers  x Even(x)  x Odd(x)  x (Even(x)  Odd(x))  x (Even(x)  Odd(x))  x Greater(x+1, x)  x (Even(x)  Prime(x)) Even(x) Odd(x) Prime(x) Greater(x,y) Equal(x,y) Autumn 2012 CSE 311

Statements with quantifiers Domain: Positive Integers  x  y Greater (y, x)  x  y Greater (x, y)  x  y (Greater(y, x)  Prime(y))  x (Prime(x)  (Equal(x, 2)  Odd(x))  x  y(Sum(x, 2, y)  Prime(x)  Prime(y)) Even(x) Odd(x) Prime(x) Greater(x,y) Equal(x,y) Sum(x,y,z) Autumn 2012 CSE 311

Statements with quantifiers Domain: Positive Integers Even(x) Odd(x) Prime(x) Greater(x,y) Sum(x,y,z) “There is an odd prime” “If x is greater than two, x is not an even prime” xyz ((Sum(x, y, z)  Odd(x)  Odd(y)) Even(z)) “There exists an odd integer that is the sum of two primes” Autumn 2012 CSE 311

English to Predicate Calculus “Red cats like tofu” Cat(x) Red(x) LikesTofu(x) Autumn 2012 CSE 311

Goldbach’s Conjecture Every even integer greater than two can be expressed as the sum of two primes Even(x) Odd(x) Prime(x) Greater(x,y) Equal(x,y) xyz ((Greater(x, 2)  Even(x))  (Equal(x, y+z)  Prime(y)  Prime(z)) Domain: Positive Integers Autumn 2012 CSE 311

Scope of Quantifiers Notlargest(x)   y Greater (y, x)   z Greater (z, x) Value doesn’t depend on y or z “bound variables” Value does depend on x “free variable” Quantifiers only act on free variables of the formula they quantify  x ( y (P(x,y)   x Q(y, x))) Autumn 2012 CSE 311

Scope of Quantifiers x (P(x)  Q(x)) vs x P(x)  x Q(x) Autumn 2012 CSE 311

Nested Quantifiers Bound variable name doesn’t matter  x  y P(x, y)   a  b P(a, b) Positions of quantifiers can change  x (Q(x)   y P(x, y))   x  y (Q(x)  P(x, y)) BUT: Order is important... Autumn 2012 CSE 311

Quantification with two variables Expression When true When false x  y P(x, y)  x  y P(x, y)  x  y P(x, y)  y  x P(x, y) Autumn 2012 CSE 311

Negations of Quantifiers Not every positive integer is prime Some positive integer is not prime Prime numbers do not exist Every positive integer is not prime Autumn 2012 CSE 311

De Morgan’s Laws for Quantifiers x P(x)  x P(x)  x P(x)  x P(x) Autumn 2012 CSE 311

De Morgan’s Laws for Quantifiers x P(x)  x P(x)  x P(x)  x P(x) “There is no largest integer”   x  y ( x ≥ y)  x  y ( x ≥ y)  x  y  ( x ≥ y)  x  y (y > x) “For every integer there is a larger integer” Autumn 2012 CSE 311