Week 2 - Wednesday.  What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier.

Slides:



Advertisements
Similar presentations
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Advertisements

© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
Copyright © Cengage Learning. All rights reserved.
Discrete Structures Chapter 3: The Logic of Quantified Statements
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
Exponents Scientific Notation
Week 1 - Friday.  What did we talk about last time?  Tautologies  Contradictions  Laws of Boolean algebra  Implications  Inverses  Converses 
Harper Langston New York University Summer 2015
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Week 3 - Wednesday.  What did we talk about last time?  Basic number theory definitions  Even and odd  Prime and composite  Proving existential statements.
The Foundations: Logic and Proofs
Discrete Maths Objective to introduce predicate logic (also called the predicate calculus) , Semester 2, Predicate Logic 1.
2009/9 1 Logic and Proofs §1.1 Introduction §1.2 Propositional Equivalences §1.3 Predicates and Quantifiers §1.4 Nested Quantifiers §1.5~7 Methods of Proofs.
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
Review I Rosen , 3.1 Know your definitions!
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
(CSC 102) Lecture 7 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
Predicates and Quantified Statements M , 3.2.
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.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
REVIEW A relation is a set of ordered pairs. {(2,3), (-1,5), (4,-2), (9,9), (0,-6)} This is a relation The domain is the set of all x values.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Predicates and Quantified Statements
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
1 CMSC 250 Chapter 2, Predicate Logic. 2 CMSC 250 Definitions l Subject / predicate John / went to the store. The sky / is blue. l Propositional logic-
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
Week 3 - Friday.  What did we talk about last time?  Proving existential statements  Disproving universal statements  Proving universal statements.
Week 2 - Wednesday.  What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
Statements Containing Multiple Quantifiers Lecture 11 Section 2.3 Mon, Feb 5, 2007.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
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.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
Uniqueness Quantifier ROI for Quantified Statement.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Harper Langston New York University Summer 2017
3. The Logic of Quantified Statements
3. The Logic of Quantified Statements Summary
Predicates and Quantified Statements I
Chapter 3 The Logic of Quantified Statements
Negations of Quantified Statements
The Foundations: Logic and Proofs
Copyright © Cengage Learning. All rights reserved.
Introduction to Predicates and Quantified Statements II
Copyright © Cengage Learning. All rights reserved.
Introduction to Predicates and Quantified Statements II
Chapter 1 Logic and Proof.
Copyright © Cengage Learning. All rights reserved.
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Predicates and Quantifiers
Presentation transcript:

Week 2 - Wednesday

 What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier

 Four men are standing in front of a firing- squad  #1 and #3 are wearing black hats  #2 and #4 are wearing white hats  They are all facing the same direction with a wall between #3 and #4  Thus,  #1 sees #2 and #3  #2 sees #3  #3 and #4 see no one  The men are told that two white hats and two black hats are being worn  The men can go if one man says what color hat he's wearing  No talking is allowed, with the exception of a man announcing what color hat he's wearing.  Are they set free? If so, how?

 The following gates have the same function as the logical operators with the same names:  NOT gate:  AND gate:  OR gate:

 Build an OR circuit using only AND and NOT gates  Build a bidirectional implication circuit using AND, OR, and NOT gates

 The universal quantifier  means “for all”  The statement “All DJ’s are mad ill” can be written more formally as:   x  D, M(x)  Where D is the set of DJ’s and M(x) denotes that x is mad ill  Notation:  P(x)  Q(x) means, for predicates P(x) and Q(x) with domain D:   x  D, P(x)  Q(x)

 The universal quantifier  means “there exists”  The statement “Some emcee can bust a rhyme” can be written more formally as:   y  E, B(y)  Where E is the set of emcees and B(y) denotes that y can bust a rhyme

 Consider the following:  S(x) means that x is a square  R(x) means that x is a rectangle  H(x) means that x is a rhombus  P is the set of all polygons  Which of the following is true:   x  P, S(x)  R(x)   x  P, R(x)  S(x)   x  P, R(x)  H(x)  S(x)   x  P, R(x)  ~S(x)   x  P, ~R(x)  H(x)   x  P, R(x)  ~S(x)   x  P, ~H(x)  S(x)

 Convert the following statements in English into quantified statements of predicate logic  Every son is a descendant  Every person is a son or a daughter  There is someone who is not a descendant  Every parent is a son or a daughter  There is a descendant who is not a son

 Tarski’s World provides an easy framework for testing knowledge of quantifiers  The following notation is used:  Triangle(x) means “x is a triangle”  Blue(y) means “y is blue”  RightOf(x, y) means “x is to the right of y (but not necessarily on the same row)”

 Are the following statements true or false?   t, Triangle(t)  Blue(t)   x, Blue(x)  Triangle(x)   y such that Square(y)  RightOf(d, y)   z such that Square(z)  Gray(z) a a c c g g b b d d f f i i k k e e h h j j

Student Lecture

 When doing a negation, negate the predicate and change the universal quantifier to existential or vice versa  Formally:  ~(  x, P(x))   x, ~P(x)  ~(  x, P(x))   x, ~P(x)  Thus, the negation of "Every dragon breathes fire" is "There is one dragon that does not breathe fire"

 Argue the following:  "Every unicorn has five legs"  First, let's write the statement formally  Let U(x) be "x is a unicorn"  Let F(x) be "x has five legs"   x, U(x)  F(x)  Its negation is  x, ~(U(x)  F(x))  We can rewrite this as  x, U(x)  ~F(x)  Informally, this is "There is a unicorn which does not have five legs"  Clearly, this is false  If the negation is false, the statement must be true

 The previous slide gives an example of a statement which is vacuously true  When we talk about "all things" and there's nothing there, we can say anything we want

 Recall:  Statement: p  q  Contrapositive:~q  ~p  Converse:q  p  Inverse:~p  ~q  These can be extended to universal statements:  Statement:  x, P(x)  Q(x)  Contrapositive:  x, ~Q(x)  ~P(x)  Converse:  x, Q(x)  P(x)  Inverse:  x, ~P(x)  ~Q(x)  Similar properties relating a statement equating a statement to its contrapositive (but not to its converse and inverse) apply

 The ideas of necessary and sufficient are meaningful for universally quantified statements as well:   x, P(x) is a sufficient condition for Q(x) means  x, P(x)  Q(x)   x, P(x) is a necessary condition for Q(x) means  x, Q(x)  P(x)

 So far, we have not had too much trouble converting informal statements of predicate logic into formal statements and vice versa  Many statements with multiple quantifiers in formal statements can be ambiguous in English  Example:  “There is a person supervising every detail of the production process.”

 “There is a person supervising every detail of the production process.”  What are the two ways that this could be written formally?  Let D be the set of all details of the production process  Let P be the set of all people  Let S(x,y) mean “x supervises y”   x  D,  y  P such that S(x,y)   y  P,  x  D such that S(x,y)

 Intuitively, we imagine that corresponding “actions” happen in the same order as the quantifiers  The action for  x  A is something like, “pick any x from A you want”  Since a “for all” must work on everything, it doesn’t matter which you pick  The action for  y  B is something like, “find some y from B”  Since a “there exists” only needs one to work, you should try to find the one that matches

 Is the following statement true?  “For all blue items x, there is a green item y with the same shape.”  Write the statement formally.  Reverse the order of the quantifiers. Does its truth value change? a a c c g g b b d d f f i i k k e e h h j j

 Given the formal statements with multiple quantifiers for each of the following:  There is someone for everyone.  All roads lead to some city.  Someone in this class is smarter than everyone else.  There is no largest prime number.

 The rules don’t change  Simply switch every  to  and every  to   Then negate the predicate  Write the following formally:  “Every rose has a thorn”  Now, negate the formal version  Convert the formal version back to informal

 As show before, changing the order of quantifiers can change the truth of the whole statement  However, it does not necessarily  Furthermore, quantifiers of the same type are commutative:  You can reorder a sequence of  quantifiers however you want  The same goes for   Once they start overlapping, however, you can’t be sure anymore

 Arguments with quantifiers

 Keep reading Chapter 2  Assignment 1 is due Friday at midnight