Proof by Contradiction

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Introduction to Proofs
PROOF BY CONTRADICTION
Chapter 3 Elementary Number Theory and Methods of Proof.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Copyright © Zeph Grunschlag,
1 Indirect Argument: Contradiction and Contraposition.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Methods of Proof & Proof Strategies
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Fall 2010 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
Introduction to Proofs
MATH 224 – Discrete Mathematics
1 Methods of Proof CS/APMA 202 Epp, chapter 3 Aaron Bloomfield.
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.
Methods of Proofs PREDICATE LOGIC The “Quantifiers” and are known as predicate quantifiers. " means for all and means there exists. Example 1: If we.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
Discrete Mathematics Tutorial 11 Chin
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.
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Spring 2011 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
04/09/13 Proof by Contradiction Discrete Structures (CS 173) Derek Hoiem, University of Illinois 1.
Proofs, Induction and Recursion Basic Proof Techniques Mathematical Induction Recursive Functions and Recurrence Relations.
P. 270 #47-49.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 The Foundations: Logic and Proofs Introduction to Proofs.
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
Week 4 - Monday.  What did we talk about last time?  Divisibility  Quotient-remainder theorem  Proof by cases.
Lecture 1.4: Rules of Inference, and Proof Techniques* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
1 Mathematical Preliminaries. 2 Sets Functions Relations Graphs Proof Techniques.
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
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.
More Induction Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois 1 A Pork-Butchers Shop Seen from a Window Van Gogh.
01/24/13 Strategies for Proofs Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois Landscape with House and Ploughman Van Gogh.
Lecture 1.5: Proof Techniques CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren 1.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
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.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
Proof Techniques CS160/CS122 Rosen: 1.5, 1.6, 1.7.
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
Lecture 1.5: Proof Techniques
Chapter 1 Logic and Proof.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Indirect Argument: Contradiction and Contraposition
CS 2210:0001 Discrete Structures Logic and Proof
CSE15 Discrete Mathematics 02/01/17
Argument An argument is a sequence of statements.
Direct Proof by Contraposition Direct Proof by Contradiction
Proof methods We will discuss ten proof methods: Direct proofs
Lecture 1.5: Proof Techniques
Methods of Proof CS 202 Epp, chapter 3.
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Indirect Proof by Contradiction Direct Proof by Cases
CS 220: Discrete Structures and their Applications
CS 220: Discrete Structures and their Applications
Section 2.1 Proof Techniques Introduce proof techniques:   o        Exhaustive Proof: to prove all possible cases, Only if it is about a.
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Elementary Number Theory & Proofs
Indirect Argument: Contradiction and Contraposition
Dr. Halimah Alshehri MATH 151 Dr. Halimah Alshehri Dr. Halimah Alshehri.
Copyright © Cengage Learning. All rights reserved.
Foundations of Discrete Mathematics
Rational and Irrational numbers
Proof by Contradiction
Proof: [We take the negation and suppose it to be true.]
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept, 2019.
Presentation transcript:

Proof by Contradiction Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois

Proof by Contradiction Sometimes you want to show that something is impossible 2 cannot be written as a ratio of integers There is no compression algorithm that reduces the size of all files A cycle with an odd number of nodes can’t be colored with two colors Difficult to prove non-existence directly, and can’t prove by example Solution: show that the negation of the claim leads to a contradiction

Contradiction A set of propositions is a contradiction if their conjunction is always false Contradiction? 𝑝∧¬𝑝 𝑝∨¬𝑝 (𝑥>5)∧(𝑥>21) 𝑥=20 and 𝑥 is odd (𝑥>5)∧(𝑥<21) (𝑥<5)∧(𝑥>21) 𝑥 is negative number and 𝑥 is real

Proof by contradiction Claim: There are infinitely many prime numbers Equivalent claim: There is not a finite set of primes.

Basic form of proof by contradiction I need to show proposition 𝑝 Suppose, instead, that 𝑝 is false. Then, we can see that both 𝑞 and¬𝑞, which is a contradiction. Therefore, 𝑝 must be true.

Why proof by contradiction works We need to prove proposition 𝑝 Instead, we show ¬𝑝→𝐹, i.e., that we can conclude a contradiction from not 𝑝 By contrapositive, ¬𝑝→𝐹≡𝑇→𝑝≡𝑝

Another explanation We need to prove proposition 𝑝=𝑇 Instead, we show ¬𝑝→𝐹, i.e., that we can conclude a contradiction from ¬ 𝑝 But ¬𝑝→𝐹 means that ¬𝑝=𝐹, so 𝑝=𝑇

See this blog post about P=NP problem Danger of proof by contradiction: a mistake in the proof might also lead to a contradiction See this blog post about P=NP problem http://rjlipton.wordpress.com/2011/01/08/proofs-by-contradiction-and-other-dangers/

Proof by contradiction Claim: 2 is irrational Equivalent claim: There does not exist a pair of integers 𝑎, 𝑏 without common factors such that 𝑎 𝑏 = 2

Proof by contradiction Claim: No lossless compression algorithm can reduce the size of every file. Suppose your boss tells you to create an audio compression algorithm that is guaranteed to reduce the size of any file. You realize that this is an impossible task and want to prove it. How?

Why image compression works: images are mostly smooth

Lossless compression (PNG) Predict that a pixel’s value based on its upper-left neighborhood Store difference of predicted and actual value Pkzip it (DEFLATE algorithm)

Proof by contradiction Claim: A cycle graph with an odd number of nodes is not 2-colorable.

Proof by contradiction or contrapositive Claim: For all integers 𝑛, if 𝑛 2 is odd, then 𝑛 is odd. Prove by contradiction, then prove by contrapositive.

When to use each type of proof Match the situation to the proof type Situation Can see how conclusion directly follows from hypothesis Need to demonstrate claim for an unbounded set of integers Easier to show that negation of hypothesis follows from negation of conclusion Need to show that something doesn’t exist Need to show that something exists Proof type Direct proof Proof by example or counter-example Proof by contrapositive (or logical equivalence) Induction Proof by contradiction

When to use each type of proof Match the situation to the proof type Situation Can see how conclusion directly follows from claim (a) Need to demonstrate claim for an unbounded set of integers (d) Easier to show that negation of hypothesis follows from negation of conclusion (c) Need to show that something doesn’t exist (e) Need to show that something exists (b) Proof type Direct proof Proof by example or counter-example Proof by contrapositive (or logical equivalence) Induction Proof by contradiction

When to use each type of proof Match the claim to the suitable proof type Claim There is no real 𝑥, such that 𝑥 2 <0. If 𝑛 2 is odd, then 𝑛 is odd. There is an integer 𝑥, such that 𝑥 2 =0. If 𝑛 is odd, then 𝑛 2 is odd. All trees have more nodes than edges. A wheel graph can’t be colored with two colors. Not every natural number is a square. The sum of two rational numbers is rational. An even number can’t be created from the product of odd numbers. Proof type Direct proof Proof by example or counter-example Proof by contrapositive (or logical equivalence) Induction Proof by contradiction

Next class Collections of sets Sets of sets Powersets Partitions