Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Introduction to Proofs
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Elementary Number Theory and Methods of Proof
CS128 – Discrete Mathematics for Computer Science
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
CSE115/ENGR160 Discrete Mathematics 02/01/11
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.
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
Proof Must Have Statement of what is to be proven.
1 Indirect Argument: Contradiction and Contraposition.
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.
Introduction to Logic Logical Form: general rules
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
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
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
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!
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
CSci 2011 Discrete Mathematics Lecture 6
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
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
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.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
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.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Week 3 - Friday.  What did we talk about last time?  Proving universal statements  Disproving existential statements  Rational numbers  Proof formatting.
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.
Week 4 - Monday.  What did we talk about last time?  Divisibility  Quotient-remainder theorem  Proof by cases.
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
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.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Week 4 - Wednesday.  What did we talk about last time?  Divisibility  Proof by cases.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Proof Review CS 202 Aaron Bloomfield Spring 2007.
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.
Week 15 - Monday.  What did we talk about last time?  Context free grammars.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Chapter 1 Logic and proofs
Harper Langston New York University Summer 2017
2. The Logic of Compound Statements Summary
3. The Logic of Quantified Statements Summary
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Week 4 - Friday

 What did we talk about last time?  Floor and ceiling  Proof by contradiction

 By their nature, manticores lie every Monday, Tuesday and Wednesday and the other days speak the truth  However, unicorns lie on Thursdays, Fridays and Saturdays and speak the truth the other days of the week  A manticore and a unicorn meet and have the following conversation: Manticore:Yesterday I was lying. Unicorn:So was I.  On which day did they meet?

 The most common form of indirect proof is a proof by contradiction  In such a proof, you begin by assuming the negation of the conclusion  Then, you show that doing so leads to a logical impossibility  Thus, the assumption must be false and the conclusion true

 Theorem:  x, y  Z +, x 2 – y 2  1  Proof by contradiction: Assume there is such a pair of integers

1. Suppose is rational 2. = m/n, where m,n  Z, n  0 and m and n have no common factors 3. 2 = m 2 /n n 2 = m k = m 2, k  Z 6. m = 2a, a  Z 7. 2n 2 = (2a) 2 = 4a 2 8. n 2 = 2a 2 9. n = 2b, b  Z 10. 2|m and 2|n 11. is irrational QED 1. Negation of conclusion 2. Definition of rational 3. Squaring both sides 4. Transitivity 5. Square of integer is integer 6. Even x 2 implies even x (Proof on p. 202) 7. Substitution 8. Transitivity 9. Even x 2 implies even x 10. Conjunction of 6 and 9, contradiction 11. By contradiction in 10, supposition is false Theorem: is irrational Proof by contradiction:

QED

1. Suppose there is a finite list of all primes: p 1, p 2, p 3, …, p n 2. Let N = p 1 p 2 p 3 …p n + 1, N  Z 3. p k | N where p k is a prime 4. p k | p 1 p 2 p 3 …p n p 1 p 2 p 3 …p n = p k (p 1 p 2 p 3 …p k-1 p k+1 …p n ) 6. p 1 p 2 p 3 …p n = p k P, P  Z 7. p k | p 1 p 2 p 3 …p n 8. p k  does not divide p 1 p 2 p 3 …p n p k  does and does not divide p 1 p 2 p 3 …p n There are an infinite number of primes QED 1. Negation of conclusion 2. Product and sum of integers is an integer 3. Theorem 4.3.4, p Substitution 5. Commutativity 6. Product of integers is integer 7. Definition of divides 8. Proposition from last slide 9. Conjunction of 4 and 8, contradiction 10. By contradiction in 9, supposition is false Theorem: There are an infinite number of primes Proof by contradiction:

 Don't combine direct proofs and indirect proofs  You're either looking for a contradiction or not  Proving the contrapositive directly is equivalent to a proof by contradiction

 Statements  AND, OR, NOT, IMPLIES  Truth tables  Logical equivalence  De Morgan's laws  Tautologies and contradictions

NameLawDual Commutative p  q  q  pp  q  q  pp  q  q  pp  q  q  p Associative (p  q)  r  p  (q  r)(p  q)  r  p  (q  r) Distributive p  (q  r)  (p  q)  (p  r)p  (q  r)  (p  q)  (p  r) Identity p  t  pp  c  p Negation p  ~p  tp  ~p  c Double Negative ~(~p)  p Idempotent p  p  pp  p  pp  p  pp  p  p Universal Bound p  t  tp  t  tp  c  c De Morgan’s ~(p  q)  ~p  ~q~(p  q)  ~p  ~q Absorption p  (p  q)  pp  (p  q)  p Negations of t and c ~t  c~t  c~c  t~c  t

 Can be used to write an if-then statement  Contrapositive is logically equivalent  Inverse and converse are not (though they are logically equivalent to each other)  Biconditional: p  q  q  pp  q  q  p

 A series of premises and a conclusion  Using the premises and rules of inference, an argument is valid if and only if you can show the conclusion  Rules of inference:  Modus Ponens  Modus Tollens  Generalization  Specialization  Conjunction  Elimination  Transitivity  Division into cases  Contradiction rule

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

 A predicate is a sentence with a fixed number of variables that becomes a statement when specific values are substituted for to the variables  The domain gives all the possible values that can be substituted  The truth set of a predicate P(x) are those elements of the domain that make P(x) true when they are substituted

 We will frequently be referring to various sets of numbers in this class  Some typical notation used for these sets:  Some authors use Z + to refer to non-negative integers and only N for the natural numbers SymbolSetExamples RReal numbersVirtually everything ZIntegers{…, -2, -1, 0, 1, 2,…} Z-Z- Negative integers{-1, -2, -3, …} Z+Z+ Positive integers{1, 2, 3, …} NNatural numbers{1, 2, 3, …} QRational numbers a/b where a,b  Z and b  0

 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  The existential 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

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

 Any statement with a universal quantifier whose domain is the empty set is vacuously true  When we talk about "all things" and there's nothing there, we can say anything we want  "All mythological creatures are real."  Every single one of the (of which there are none) is real

 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

 p is a sufficient condition for q means p  q  p is a necessary condition for q means q  p  These come over into universal conditional 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)

 With multiple quantifiers, 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

 For negation,  Simply switch every  to  and every  to   Then negate the predicate  Changing the order of quantifiers can change the truth of the whole statement but does not always  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

 Universal instantiation: If a property is true for everything in a domain (universal quantifier), it is true for any specific thing in the domain  Universal modus ponens:   x, P(x)  Q(x)  P(a) for some particular a Q(a)Q(a)  Universal modus tollens:   x, P(x)  Q(x)  ~Q(a) for some particular a   ~P(a)

 To prove  x  D  P(x) we need to find at least one element of D that makes P(x) true  To disprove  x  D, P(x)  Q(x), we need to find an x that makes P(x) true and Q(x) false

 If the domain is finite, we can use the method of exhaustion, by simply trying every element  Otherwise, we can use a direct proof 1. Express the statement to be proved in the form  x  D, if P(x) then Q(x) 2. Suppose that x is some specific (but arbitrarily chosen) element of D for which P(x) is true 3. Show that the conclusion Q(x) is true by using definitions, other theorems, and the rules for logical inference  Direct proofs should start with the word Proof, end with the word QED, and have a justification next to every step in the argument  For proofs with cases, number each case clearly and show that you have proved the conclusion for all possible cases

 If n is an integer, then:  n is even   k  Z  n = 2k  n is odd   k  Z  n = 2k + 1  If n is an integer where n > 1, then:  n is prime   r  Z +,  s  Z +, if n = r  s, then r = 1 or s = 1  n is composite   r  Z +,  s  Z +  n = r  s and r  1 and s  1  r is rational   a, b  Z  r = a/b and b  0  For n, d  Z,  n is divisible by d   k  Z  n = dk  For any real number x, the floor of x, written  x , is defined as follows:   x  = the unique integer n such that n ≤ x < n + 1  For any real number x, the ceiling of x, written  x , is defined as follows:   x  = the unique integer n such that n – 1 < x ≤ n

 Unique factorization theorem: For any integer n > 1, there exist a positive integer k, distinct prime numbers p 1, p 2, …, p k, and positive integers e 1, e 2, …, e k such that  Quotient remainder theorem: For any integer n and any positive integer d, there exist unique integers q and r such that  n = dq + r and 0 ≤ r < d

 Exam 1!

 Exam 1 is Monday in class!