CSci 2011 Discrete Mathematics Lecture 6

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
CS128 – Discrete Mathematics for Computer Science
22C:19 Discrete Structures Logic and Proof Spring 2014 Sukumar Ghosh.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
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 Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
CS 202 Rosen section 1.5 Aaron Bloomfield
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
Methods of Proof & Proof Strategies
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Introduction to Proofs
Introduction to Proofs
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 03: PROOFS Section 1.5 Jarek Rossignac CS1050: Understanding.
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
Methods of Proof. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Direct.
Review I Rosen , 3.1 Know your definitions!
Proofs1 Elementary Discrete Mathematics Jim Skon.
1 Basic Proof Methods I Basic Proof Methods II Proofs Involving Quantifiers.
1 Methods of Proof. 2 Consider (p  (p→q)) → q pqp→q p  (p→q)) (p  (p→q)) → q TTTTT TFFFT FTTFT FFTFT.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
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
Chapter 5 Existence and Proof by contradiction
Methods of Proof Lecture 3: Sep 9. This Lecture Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical.
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.
CSci 2011 Discrete Mathematics Lecture 8 CSci 2011.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Introduction to Proofs.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
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 Course Summary CS 202 Aaron Bloomfield. 2 Outline A review of the proof methods gone over in class Interspersed with the most popular demotivators from.
CSci 2011 Recap ^Propositional operation summary not andorconditionalBi-conditional pq ppqqpqpqpqpqpqpqpqpq TTFFTTTT TFFTFTFF FTTFFTTF FFTTFFTT.
CSci 2011 Discrete Mathematics Lecture 9, 10
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
22C:19 Discrete Structures Logic and Proof Fall 2014 Sukumar Ghosh.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Introduction to Proofs
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.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
CSci 2011 Discrete Mathematics Lecture 5 CSci 2011.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Chapter 1 Logic and proofs
Chapter 1 Logic and Proof.
The Foundations: Logic and Proofs
CS 2210:0001 Discrete Structures Logic and Proof
CSE15 Discrete Mathematics 02/01/17
Methods of Proof Aaron Bloomfield.
In this slide set… Rules of inference for propositions
Discrete Mathematics Logic.
Proof methods We will discuss ten proof methods: Direct proofs
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Methods of Proof CS 202 Epp, chapter 3.
Proof Techniques.
Information Technology Department
The Foundations: Logic and Proofs
Methods of Proof. Methods of Proof Definitions A theorem is a valid logical assertion which can be proved using Axioms: statements which are given.
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Discrete Mathematics Logic.
Information Technology Department SKN-SITS,Lonavala.
Presentation transcript:

CSci 2011 Discrete Mathematics Lecture 6

Admin Groupwork 3 is due on Sep 28th. Homework 2 is due on Sep 30th. Before class starts Quiz 1: Sep 23rd. 1 page cheat sheet is allowed. E-mail email to csci2011-help@cselabs.umn.edu Put [2011] in front. Check class web site Read syllabus Use forum. CSci 2011

Recap Propositional operation summary Check translation Definition Tautology, Contradiction, not and or conditional Bi-conditional p q p q pq pq pq pq T F CSci 2011

Logical Equivalences CSci 2011 p  T  p p  F  p Identity Laws (p  q)  r  p  (q  r) (p  q)  r  p  (q  r) Associative laws p  T  T p  F  F Domination Law p  (q  r)  (p  q)  (p  r) p  (q  r)  (p  q)  (p  r) Distributive laws p  p  p p  p  p Idempotent Laws  (p  q)   p   q  (p  q)   p   q De Morgan’s laws ( p)  p Double negation law p  (p  q)  p p  (p  q)  p Absorption laws p  q  q  p p  q  q  p Commutative Laws p   p  T p   p  F Negation lows pq  pq Definition of Implication p  q  (p  q)  (q  p) Definition of Biconditional CSci 2011

Recap Proof techniques Quantifiers Direct proof Indirect Proof Universal quantifier: x P(x) Negating quantifiers ¬x P(x) = x ¬P(x) ¬x P(x) = x ¬P(x) xy P(x, y) Nested quantifiers xy P(x, y): “For all x, there exists a y such that P(x,y)” xy P(x,y): There exists an x such that for all y P(x,y) is true” ¬x P(x) = x ¬P(x), ¬x P(x) = x ¬P(x) Proof techniques Direct proof Indirect Proof CSci 2011

Recap p p  q  q  q   p q  r  p  r p  q  p  p  q p  q  p Modus ponens p p  q  q Modus tollens  q   p Hypothetical syllogism q  r  p  r Disjunctive syllogism p  q  p Addition  p  q Simplification p  q  p Conjunction q  p  q Resolution  p  r  q  r CSci 2011

ch1.7 Introduction to Proofs CSci 2011

Recap Show that the square of an even number is an even number Rephrased: if n is even, then n2 is even (Proof) Assume n is even Thus, n = 2k, for some k (definition of even numbers) n2 = (2k)2 = 4k2 = 2(2k2) As n2 is 2 times an integer, n2 is thus even If n2 is an odd integer then n is an odd integer Prove the contrapositive: If n is an even integer, then n2 is an even integer (Proof) n=2k for some integer k (definition of even numbers) Since n2 is 2 times an integer, it is even CSci 2011

Direct vs. Indirect Proof When do you use a direct proof versus an indirect proof? CSci 2011

Example of which to use Prove that if n is an integer and n3+5 is odd, then n is even Via direct proof n3+5 = 2k+1 for some integer k (definition of odd numbers) n3 = 2k-4 Umm… ??? So direct proof didn’t work out. So: indirect proof Contrapositive: If n is odd, then n3+5 is even Assume n is odd, and show that n3+5 is even n=2k+1 for some integer k (definition of odd numbers) n3+5 = (2k+1)3+5 = 8k3+12k2+6k+6 = 2(4k3+6k2+3k+3) As 2(4k3+6k2+3k+3) is 2 times an integer, it is even CSci 2011

Proof by contradiction Given a statement p, assume it is false Assume ¬p Prove that ¬p cannot occur A contradiction exists Given a statement of the form p→q To assume it’s false, you only have to consider the case where p is true and q is false CSci 2011

Proof by contradiction example 1 Theorem (by Euclid): There are infinitely many prime numbers. Proof. Assume there are a finite number of primes List them as follows: p1, p2 …, pn. Consider the number q = p1p2 … pn + 1 This number is not divisible by any of the listed primes If we divided pi into q, there would result a remainder of 1 We must conclude that q is a prime number, not among the primes listed above This contradicts our assumption that all primes are in the list p1, p2 …, pn. CSci 2011

Proof by contradiction example 2 Prove that if n is an integer and n3+5 is odd, then n is even Rephrased: If n3+5 is odd, then n is even Assume p is true and q is false Assume that n3+5 is odd, and n is odd n=2k+1 for some integer k (definition of odd numbers) n3+5 = (2k+1)3+5 = 8k3+12k2+6k+6 = 2(4k3+6k2+3k+3) As 2(4k3+6k2+3k+3) is 2 times an integer, it must be even Contradiction! CSci 2011

Vacuous proofs Consider an implication: p→q If it can be shown that p is false, then the implication is always true By definition of an implication Note that you are showing that the antecedent is false CSci 2011

Vacuous proof example Consider the statement: All criminology majors in CS 2011 are female Rephrased: If you are a criminology major and you are in CS 2011, then you are female Could also use quantifiers! Since there are no criminology majors in this class, the antecedent is false, and the implication is true CSci 2011

Trivial proofs Consider an implication: p→q If it can be shown that q is true, then the implication is always true By definition of an implication Note that you are showing that the conclusion is true CSci 2011

Trivial proof example Consider the statement: If you are tall and are in CS 2011 then you are a student Since all people in CS 2011 are students, the implication is true regardless CSci 2011

Proof by cases Show a statement is true by showing all possible cases are true Thus, you are showing a statement of the form: (p1  p2  …  pn)  q is true by showing that: [(p1p2…pn)q]  [(p1q)(p2q)…(pnq)] CSci 2011

Proof by cases example Prove that Cases: Note that b ≠ 0 Case 1: a ≥ 0 and b > 0 Then |a| = a, |b| = b, and Case 2: a ≥ 0 and b < 0 Then |a| = a, |b| = -b, and Case 3: a < 0 and b > 0 Then |a| = -a, |b| = b, and Case 4: a < 0 and b < 0 Then |a| = -a, |b| = -b, and CSci 2011

The think about proof by cases Make sure you get ALL the cases The biggest mistake is to leave out some of the cases CSci 2011

Proofs of equivalences This is showing the definition of a bi-conditional Given a statement of the form “p if and only if q” Show it is true by showing (p→q)(q→p) is true CSci 2011

Proofs of equivalence example Show that m2=n2 if and only if m=n or m=-n Rephrased: (m2=n2) ↔ [(m=n)(m=-n)] [(m=n)(m=-n)] → (m2=n2) Proof by cases! Case 1: (m=n) → (m2=n2) (m)2 = m2, and (n)2 = n2, so this case is proven Case 2: (m=-n) → (m2=n2) (m)2 = m2, and (-n)2 = n2, so this case is proven (m2=n2) → [(m=n)(m=-n)] Subtract n2 from both sides to get m2-n2=0 Factor to get (m+n)(m-n) = 0 Since that equals zero, one of the factors must be zero Thus, either m+n=0 (which means m=-n) Or m-n=0 (which means m=n) CSci 2011

Existence proofs Given a statement: x P(x) We only have to show that a P(c) exists for some value of c Two types: Constructive: Find a specific value of c for which P(c) is true. Nonconstructive: Show that such a c exists, but don’t actually find it Assume it does not exist, and show a contradiction CSci 2011

Constructive existence proof example Show that a square exists that is the sum of two other squares Proof: 32 + 42 = 52 Show that a cube exists that is the sum of three other cubes Proof: 33 + 43 + 53 = 63 CSci 2011

Non-constructive existence proof example Prove that either 2*10500+15 or 2*10500+16 is not a perfect square A perfect square is a square of an integer Rephrased: Show that a non-perfect square exists in the set {2*10500+15, 2*10500+16} Proof: The only two perfect squares that differ by 1 are 0 and 1 Thus, any other numbers that differ by 1 cannot both be perfect squares Thus, a non-perfect square must exist in any set that contains two numbers that differ by 1 Note that we didn’t specify which one it was! CSci 2011

Uniqueness proofs A theorem may state that only one such value exists To prove this, you need to show: Existence: that such a value does indeed exist Either via a constructive or non-constructive existence proof Uniqueness: that there is only one such value CSci 2011

Uniqueness proof example If the real number equation 5x+3=a has a solution then it is unique Existence We can manipulate 5x+3=a to yield x=(a-3)/5 Is this constructive or non-constructive? Uniqueness If there are two such numbers, then they would fulfill the following: a = 5x+3 = 5y+3 We can manipulate this to yield that x = y Thus, the one solution is unique! CSci 2011

Counterexamples Given a universally quantified statement, find a single example which it is not true Note that this is DISPROVING a UNIVERSAL statement by a counterexample x ¬R(x), where R(x) means “x has red hair” Find one person (in the domain) who has red hair Every positive integer is the square of another integer The square root of 5 is 2.236, which is not an integer CSci 2011

What’s wrong with this proof? If n2 is an even integer, then n is an even integer. Proof) Suppose n2 is even. Then n2 = 2 k for some integer k. Let n = 2 l for some integer l. Then n is an even integer. CSci 2011

Proof methods We will discuss ten proof methods: CSci 2011 Direct proofs Indirect proofs Vacuous proofs Trivial proofs Proof by contradiction Proof by cases Proofs of equivalence Existence proofs Uniqueness proofs Counterexamples CSci 2011