Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Discrete Mathematics I Lectures Chapter 6
DISCRETE MATHEMATICS I LECTURES CHAPTER 3 Dr. Adam P. Anthony Spring 2011 Some material adapted from lecture notes provided by Dr. Chungsim Han and Dr.
Elementary Number Theory and Methods of Proof
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
CMSC 250 Discrete Structures Exam #1 Review. 21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q 11.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Copyright © Cengage Learning. All rights reserved.
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
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.
Methods of Proof & Proof Strategies
Copyright © Curt Hill Rules of Inference What is a valid argument?
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
Introduction to Proofs
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
Week 2 - Wednesday.  What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier.
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.
Proofs1 Elementary Discrete Mathematics Jim Skon.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
Chapter 1 Logic Section 1-1 Statements Open your book to page 1 and read the section titled “To the Student” Now turn to page 3 where we will read the.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Math/CSE 1019C: Discrete Mathematics for Computer Science Fall 2011 Suprakash Datta Office: CSEB 3043 Phone: ext
Predicates and Quantified Statements M , 3.2.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
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.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
(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 Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
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.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Based on slides by Patrice Belleville and Steve Wolfman CPSC 121: Models of Computation Unit 11: Sets.
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.
Method of proofs.  Consider the statements: “Humans have two eyes”  It implies the “universal quantification”  If a is a Human then a has two eyes.
Week 2 - Wednesday.  What did we talk about last time?  Arguments  Digital logic circuits  Predicate logic  Universal quantifier  Existential quantifier.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
Dilemma: Division Into Cases Dilemma: p  q p  r q  r  r Premises:x is positive or x is negative. If x is positive, then x 2 is positive. If x is negative,
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Harper Langston New York University Summer 2017
Chapter 1 Logic and Proof.
3. The Logic of Quantified Statements Summary
Negations of Quantified Statements
Copyright © Cengage Learning. All rights reserved.
The Foundations: Logic and Proofs
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CPSC 121: Models of Computation
Copyright © Cengage Learning. All rights reserved.
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Predicates and Quantifiers
Presentation transcript:

Week 2 - Friday

 What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers

 There are two lengths of rope  Each one takes exactly one hour to burn completely  The ropes are not the same lengths as each other  Neither rope burns at a consistent speed (10% of a rope could take 90% of the burn time, etc.)  How can you burn the ropes to measure out exactly 45 minutes of time?

 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"

 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”   y  D,  x  P such that S(x,y)   x  P,  y  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

 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

 Quantification adds new features to an argument  The most fundamental is universal instantiation  If a property is true for everything in a domain (universal quantifier), it is true for any specific thing in the domain  Example:  All the party people in the place to be are throwing their hands in the air!  Julio is a party person in the place to be   Julio is throwing his hands in the air

 Formally,   x, P(x)  Q(x)  P(a) for some particular a Q(a)Q(a)  Example:  If any person disses Dr. Dre, he or she disses him or herself  Tammy disses Dr. Dre  Therefore, Tammy disses herself

 Much the same as universal modus ponens  Formally,   x, P(x)  Q(x)  ~Q(a) for some particular a   ~P(a)  Example:  Every true DJ can skratch  Carl Strikwerda can’t skratch  Therefore, Carl Strikwerda is not a true DJ

 Unsurprisingly, the inverse and the converse of universal conditional statements do not have the same truth value as the original  Thus, the following are not valid arguments:  If a person is a superhero, he or she can fly.  Astronaut John Blaha can fly.  Therefore, John Blaha is a superhero. FALLACY  A good man is hard to find.  Osama Bin Laden is not a good man.  Therefore, Osama Bin Laden is not hard to find. FALLACY

 We can test arguments using Venn diagrams  To do so, we draw diagrams for each premise and then try to combine the diagrams Touchable things This

 All integers are rational numbers  is not rational  Therefore, is not an integer rational numbers integers rational numbers integers

 All tigers are cats  Panthro is a cat  Therefore, Panthro is a tiger cats tigers cats Panthro cats tigers cats tigers Panthro

 Diagrams can be useful tools  However, they don’t offer the guarantees that pure logic does  Note that the previous slide makes the converse error unless you are very careful with your diagrams

 In Java (and many other languages), there are two kinds of equal signs: = (assignment) and == (testing for equality)  Mathematicians have two as well, but they use the same symbol!  One kind of equal sign is a definition  The other kind is a theorem

 The other kind of equals shows a fact that has been derived from other facts  We've discovered that it's true!  Example:  3x + 2 = 11  3x = 9  x = 3  Sometimes confusion arises when people mistake one kind of equals for another Definition Theorem

 Proofs and counterexamples  Basic number theory

 Assignment 1 is due tonight at midnight  Read Chapter 4  Start on Assignment 2  The company EC Key is sponsoring a contest to come up with novel uses for their BlueTooth door access technology  Interested? Come to the meeting today at 3:30pm in Hoover 110  Teams will be formed from CS, engineering, and business students  Ask me for more information!  Also, there's a field trip to Cargas Systems in Lancaster next Friday