Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.

Slides:



Advertisements
Similar presentations
1.3 Predicates and Quantifiers
Advertisements

1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
The Foundations: Logic and Proofs
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Lecture 1.4: Rules of Inference CS 250, Discrete Structures, Fall 2014 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
CS128 – Discrete Mathematics for Computer Science
Snick  snack CPSC 121: Models of Computation 2008/9 Winter Term 2 Rewriting Predicate Logic Statements Steve Wolfman, based on notes by Patrice Belleville.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
CSci 2011 Discrete Mathematics Lecture 6
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
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.
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.
Lecture 2.2: Set Theory* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Discrete Mathematics. Predicates - the universal quantifier 11/28/2015 Suppose P(x) is a predicate on some universe of discourse. Ex. B(x) = “x is carrying.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Chapter 1: The Foundations: Logic and Proofs
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
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.
Rules of Inference Section 1.6. Arguments in Propositional Logic A argument in propositional logic is a sequence of propositions. All but the final proposition.
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?
Lecture 1.4: Rules of Inference, and Proof Techniques* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
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.
Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
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.
9/29/2011Lecture Strong Induction1 Lecture 3.2: Strong Induction CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
CSci 2011 Discrete Mathematics Lecture 5 CSci 2011.
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.
Chapter 1 Logic and proofs
Lecture 1.5: Proof Techniques
Lecture 1.2: Equivalences, and Predicate Logic
Advanced Algorithms Analysis and Design
CSE15 Discrete Mathematics 01/23/17
Lecture 1.4: Rules of Inference
Discrete Mathematics Logic.
Discrete Mathematics.
Lecture 1.5: Proof Techniques
CS100: Discrete structures
CS201: Data Structures and Discrete Mathematics I
CMSC Discrete Structures
CS 220: Discrete Structures and their Applications
Lecture 1.6: Proof Techniques (contd)
Lecture 1.3: Predicate Logic
Discrete Mathematics Logic.
Lecture 1.6: Proof Techniques (contd)
Foundations of Discrete Mathematics
Lecture 1.4: Rules of Inference
CS201: Data Structures and Discrete Mathematics I
Lecture 1.3: Predicate Logic
Presentation transcript:

Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren

8/23/2011 Lecture Predicate Logic, and Rules of Inference2 Course Admin Slides from last lecture were posted Both ppt and pdf Expect HW1 to be coming in a week from now Competency exam/quiz today (last 15 minutes) A 15 minute exam testing for some basic math questions A must take for every student

8/23/2011 Lecture Predicate Logic, and Rules of Inference3 Outline Predicate Logic (contd.) Rules of Inference for mathematical proofs

8/23/2011 Lecture Predicate Logic, and Rules of Inference4 Quantifiers – another way to look at them To simplify, let us say that the universe of discourse is {x 1, x 2 }   x P(x)  P(x 1 )  P(x 2 )   x P(x)  P(x 1 )  P(x 2 ) This is very useful in proving equivalences involving propositions that use quantifiers Let us see some examples

8/23/2011 Lecture Predicate Logic, and Rules of Inference5 Laws and Quantifiers Negation or De Morgan’s Law (we saw this last time):  x P(x)   x  P(x)  x P(x)   x  P(x) Distributivity:  x (P(x)  Q(x))   x P(x)   x Q(x)  x (P(x)  Q(x))   x P(x)   x Q(x) Can’t distribute universal quantifier over disjunciton or existential quantifier over conjunction

8/23/2011 Lecture Predicate Logic, and Rules of Inference6 Predicates – Free and Bound Variables A variable is bound if it is known or quantified. Otherwise, it is free. Examples: P(x)x is free P(5)x is bound to 5  x P(x) x is bound by quantifier Reminder: in a proposition, all variables must be bound.

8/23/2011 Lecture Predicate Logic, and Rules of Inference7 Predicates – Nested Quantifiers To bind many variables, use many quantifiers! Example: P(x,y) = “x > y”; universe of discourse is natural numbers  x P(x,y)  x  y P(x,y)  x  y P(x,y)  x P(x,3) a)True proposition b)False proposition c)Not a proposition d)No clue c)b)

8/23/2011 Lecture Predicate Logic, and Rules of Inference8 Predicates – Meaning of Nested Quantifiers 1.  x  y P(x,y) 2.  x  y P(x,y) 3.  x  y P(x,y) 4.  x  y P(x,y) P(x,y) true for all x, y pairs. For every value of x we can find a y so that P(x,y) is true. P(x,y) true for at least one x, y pair. There is at least one x for which P(x,y) is always true. 1 and 2 are commutative 3 and 4 are not commutative Suppose P(x,y) = “x’s favorite class is y.”

8/23/2011 Lecture Predicate Logic, and Rules of Inference9 Nested Quantifiers – example N(x,y) = “x is sitting by y”  x  y N(x,y)  x  y N(x,y)  x  y N(x,y)  x  y N(x,y) False True False

8/23/2011 Lecture Predicate Logic, and Rules of Inference10 Proofs – How do we know? The following statements are true: If I am Mila, then I am a great swimmer. I am Mila. What do we know to be true? I am a great swimmer! How do we know it?

8/23/2011 Lecture Predicate Logic, and Rules of Inference11 Proofs – How do we know? A theorem is a statement that can be shown to be true. A proof is the means of doing so. Axiom, postulates, hypotheses and previously proven theorems. Rules of inference Proof

8/23/2011 Lecture Predicate Logic, and Rules of Inference12 Proofs – How do we know? The following statements are true: If I have taken MA 106, then I am allowed to take CS 250 I have taken MA 106 What do we know to be true? I am allowed to take CS 250 What rule of inference can we use to justify it?

8/23/2011 Lecture Predicate Logic, and Rules of Inference13 Rules of Inference – Modus Ponens I have taken MA 106. If I have taken MA 106, then I am allowed to take CS 250.  I am allowed to take CS 250. p p  q  q Tautology: (p  (p  q))  q Inference Rule: Modus Ponens

8/23/2011 Lecture Predicate Logic, and Rules of Inference14 Rules of Inference – Modus Tollens I am not allowed to take CS 250. If I have taken MA 106, then I am allowed to take CS 250.  I have not taken MA 106.  q p  q  p p Tautology: (  q  (p  q))   p Inference Rule: Modus Tollens

8/23/2011 Lecture Predicate Logic, and Rules of Inference15 Rules of Inference – Addition I am not a great skater.  I am not a great skater or I am tall. p  p  q Tautology: p  (p  q) Inference Rule: Addition

8/23/2011 Lecture Predicate Logic, and Rules of Inference16 Rules of Inference – Simplification I am not a great skater and you are sleepy.  you are sleepy. p  q  p Tautology: (p  q)  p Inference Rule: Simplification

8/23/2011 Lecture Predicate Logic, and Rules of Inference17 Rules of Inference – Disjunctive Syllogism I am a great eater or I am a great skater. I am not a great skater.  I am a great eater! p  q  q  p Tautology: ((p  q)   q)  p Inference Rule: Disjunctive Syllogism

8/23/2011 Lecture Predicate Logic, and Rules of Inference18 Rules of Inference – Hypothetical Syllogism If you are an athlete, you are always hungry. If you are always hungry, you have a snickers in your backpack.  If you are an athlete, you have a snickers in your backpack. p  q q  r  p  r Tautology: ((p  q)  (q  r))  (p  r) Inference Rule: Hypothetical Syllogism

8/23/2011 Lecture Predicate Logic, and Rules of Inference19 Examples Amy is a computer science major.  Amy is a math major or a computer science major. Addition If Ernie is a math major then Ernie is geeky. Ernie is not geeky!  Ernie is not a math major. Modus Tollens

8/23/2011 Lecture Predicate Logic, and Rules of Inference20 Today’s Reading and Next Lecture Rosen 1.5 and 1.6 Again, please start solving the exercises at the end of each chapter section! Please read 1.6 and 1.7 in preparation for the next lecture