Contradiction MATH Contradiction. Benjamin V.C. Collins, James A. Swenson MATH 2730

Similar documents
Basic Proof Examples

Proof by Contradiction

Climbing an Infinite Ladder

MATH 271 Summer 2016 Practice problem solutions Week 1

Climbing an Infinite Ladder

MATH CSE20 Homework 5 Due Monday November 4

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

CSE 20. Final Review. CSE 20: Final Review

Math Real Analysis

COT 2104 Homework Assignment 1 (Answers)

Introduction to Basic Proof Techniques Mathew A. Johnson

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

3.6. Disproving Quantified Statements Disproving Existential Statements

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Exercise 2. Prove that [ 1, 1] is the set of all the limit points of ( 1, 1] = {x R : 1 <

Complete Induction and the Well- Ordering Principle

Proof by contrapositive, contradiction

We want to show P (n) is true for all integers

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

More examples of mathematical. Lecture 4 ICOM 4075

ADVICE. Since we will need to negate sentences, it is important to review seccons 7 and 11 before proceeding.

Strategies for Proofs

Mathematical Induction. Section 5.1

Ch 3.2: Direct proofs

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

Basic properties of the Integers

Math 109 September 1, 2016

LECTURE 1. Logic and Proofs

Solutions to Homework Set 1

Math 13, Spring 2013, Lecture B: Midterm

Discrete Mathematics. Spring 2017

CSCE 222 Discrete Structures for Computing. Proofs. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Contribution of Problems

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Section 3.1: Direct Proof and Counterexample 1

Geometry - Chapter 2 Corrective 1

Some Review Problems for Exam 1: Solutions

Basic Logic and Proof Techniques

MA103 STATEMENTS, PROOF, LOGIC

CS 340: Discrete Structures for Engineers

Math.3336: Discrete Mathematics. Proof Methods and Strategy

Mathematical Writing and Methods of Proof

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Logic, Sets, and Proofs

Recitation 4: Quantifiers and basic proofs

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

CSE 20 DISCRETE MATH. Winter

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Proofs. Joe Patten August 10, 2018

Mathematical Induction

CSC Discrete Math I, Spring Propositional Logic

Disproof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Disproof Fall / 16

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

EECS 1028 M: Discrete Mathematics for Engineers


One side of each sheet is blank and may be used as scratch paper.

Contribution of Problems

Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving.

MATH 2400: PRACTICE PROBLEMS FOR EXAM 1

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

Preparing for the CS 173 (A) Fall 2018 Midterm 1

CSE 215: Foundations of Computer Science Recitation Exercises Set #5 Stony Brook University. Name: ID#: Section #: Score: / 4

Notes on induction proofs and recursive definitions

Foundations of Discrete Mathematics

In 1854, Karl Weierstrauss gave an example of a continuous function which was nowhere di erentiable: cos(3 n x) 2 n. sin(3 n x), 2

Relations MATH Relations. Benjamin V.C. Collins, James A. Swenson MATH 2730

2 Truth Tables, Equivalences and the Contrapositive

PRINCIPLE OF MATHEMATICAL INDUCTION

CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach you about:

Definition For a set F, a polynomial over F with variable x is of the form

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Computer Science Foundation Exam

CSC165. Larry Zhang, October 7, 2014

3 The language of proof

Meaning of Proof Methods of Proof

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

MATH 2200 Final Review

Proof Techniques (Review of Math 271)

Sets II MATH Sets II. Benjamin V.C. Collins, James A. Swenson MATH 2730

(4) Using results you have studied, show that if x, y are real numbers,

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Announcements. Exam 1 Review

Introduction to Proofs

CS Module 1. Ben Harsha Apr 12, 2017

Homework 4 Solutions

1.2 The Well-Ordering Principle

a 2 + b 2 = (p 2 q 2 ) 2 + 4p 2 q 2 = (p 2 + q 2 ) 2 = c 2,

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

The theory of numbers

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

Greatest Common Divisor MATH Greatest Common Divisor. Benjamin V.C. Collins, James A. Swenson MATH 2730

Inference and Proofs (1.6 & 1.7)

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

(3,1) Methods of Proof

Transcription:

MATH 2730 Contradiction Benjamin V.C. Collins James A. Swenson

Contrapositive The contrapositive of the statement If A, then B is the statement If not B, then not A. A statement and its contrapositive are logically equivalent. Non-mathematical example: If you are a computer science major, then you are very smart, can be rephrased as If you are not very smart, then you are not a computer science major. Mathematical example: If n 2 is odd, then n is odd, can be rephrased as If n is not odd, then n 2 is not odd.

Contrapositive, Converse, and Inverse Consider the following statements: If you are a computer science major, then you are very smart. Statement If you are not very smart, then you are not a computer science major. Contrapositive If you are very smart, then you are a computer science major. Converse If you are not a computer science major, then you are not very smart. Inverse (or the Contrapositive of the Converse) The first two are logically equivalent, and the last two are logically equivalent, but the two pairs are not logically equivalent to each other.

Proof Template: To prove If A, then B Write We prove the contrapositive of the statement. Write the negation of B. Leave some space and write the negation of A. Fill in the space using definitions and known results.

Example Theorem If n 2 is odd, then n is odd. Proof. We prove the contrapositive of the statement. Assume that n is an integer that is not odd. Then n is even. That is, n = 2k for some integer k. So n 2 = 4k 2 = 2(2k 2 ). That is, n 2 = 2t for some integer t, namely t = 2k 2. So n 2 is even. Therefore, n 2 is not odd.

Non-mathematical example: If he got that score without cheating, then I ll eat my hat! Mathematical Example: If A is true and B is false, then 4 is a prime number. Since we know that 4 is not a prime number, it can t be the case that A is true and B is false. Since (A B) is logically equivalent to A B, we have proven that A implies B.

Proof Template: To prove If A, then B Write Assume A. Write Suppose, for the sake of contradiction, the negation of B. Work with both statements until you have something that is obviously false. Note: The abbreviation Sftsoc is standard for Suppose for the sake of contradiction, and can be used in all but the most formal proof settings.

Example Theorem No integer is both even and odd. If n is an integer, then n is not both even and odd. Proof. Assume that n is an integer. Suppose, for the sake of contradiction, that n is even and odd. By definition of even, there is an integer k such that n = 2k. By definition of odd, there is an integer m such that n = 2m + 1. Combining those two equations, 2k = 2m + 1. With a little algebra, we have: 2k 2m = 1, or 2(k m) = 1. Now, we have that 2(k m) is larger than 0 = 2 0, but smaller than 2 = 2 1. So k m is an integer between 0 and 1. Since no such integer exists, we have a contradiction. Therefore, n is not both even and odd, which proves the proposition.

Compare and Contrast In a proof by contrapositive, we assume not B, and show not A. In a proof by contradiction, we assume both A and not B, and show something clearly false. If your thing that is clearly false is A and not A, then your proof can be (and should be) rewritten as a proof by contrapositive.

Example Theorem Let p be a prime number. If an integer n is divisible by p, then n + 1 is not divisible by p. Proof. Assume that p is a prime, and that n is an integer that is divisible by p. Sftsoc that n + 1 is also divisible by p. Then we have n = pk for some integer k, and also n + 1 = pm for some integer m. Substituting one equation into the other, we have pk + 1 = pm. A little algebra gives us that 1 = p(m k). Since 1 is between 0 and p, we have that p(m k) is between p 0 and p 1. So m k is an integer between 0 and 1. Since no such integer exists, we have a contradiction. Therefore, p does not divide both n and n + 1.

Example Theorem There are an infinite number of primes. If P is the set of all primes, then P is infinite. Proof. Let P be the set of all primes. Sftsoc that P is finite. That is, P = n for some (finite) natural number n. So P = {p 1, p 2, p 3,..., p n }, where each p i is prime. Consider the integer n N = i=1 p i

Example Theorem There are an infinite number of primes. If P is the set of all primes, then P is infinite. Proof (continued). Clearly, N is divisible by all the primes in P. By the previous theorem, N + 1 is not divisible by any of the primes in P. So either N + 1 is prime, or N + 1 has a prime factor not in P. This contradicts the assumption that P contains all the primes. Therefore, the set P cannot be finite, which proves the proposition.

Proof Template: Proving a Set is Empty To prove a set S is empty: Suppose, for the sake of contradiction, that S. Let x S. Work to show a contradiction.

Example Theorem Let A and B be sets. If A B, then A \ B =. Proof. Suppose that A and B are sets with A B. Sftsoc that A \ B. Let x A \ B. By definition of the set difference, x A and x / B. By hypothesis, A B. By definition of subset, since x A B, we have x B. Now x B and x / B. Therefore, A \ B =.

Proof Template: Proving Uniqueness To prove that a particular object is unique: Suppose, for the sake of contradiction, that there are two such objects. Work to show a contradiction.

Example Theorem Let n be an integer. Then there is a unique integer m such that n + m = 0. Definition The integer m is called the additive inverse of n. Proof. First, note that there is at least one such integer, since n satisfies n + ( n) = 0. Sftsoc that there are two such integers. That is, there is an integer m such that n + m = 0 and an integer t m such that n + t = 0. Then we have n + m = n + t. Subtracting n from both sides, we have m = t, which contradicts our assumption that t m. Therefore, the additive inverse is unique.

Reframed as a proof by contrapositive Theorem Let n be an integer. Then there is a unique integer m such that n + m = 0. Proof. First, note that there is at least one such integer, since n satisfies n + ( n) = 0. Assume that m and t are integers such that n + m = 0 and n + t = 0. Then we have n + m = n + t. Subtracting n from both sides, we have m = t. Therefore, the additive inverse is unique.