Introduction to Proofs

Slides:



Advertisements
Similar presentations
With examples from Number Theory
Advertisements

Discrete Math Methods of proof 1.
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Direct Proof and Proof by Contrapositive
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
The Foundations: Logic and Proofs
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
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
So far we have learned about:
Copyright © Zeph Grunschlag,
1 Indirect Argument: Contradiction and Contraposition.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Methods of Proof & Proof Strategies
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.
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
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.
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
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.
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.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
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,
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Chapter 1, Part III: Proofs With Question/Answer Animations 1.
Copyright © Curt Hill Proofs An Introduction.
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.
Chapter 1, Part III: Proofs With Question/Answer Animations 1.
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
Mathematical Induction
CS104:Discrete Structures Chapter 2: Proof Techniques.
Introduction to Proofs
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
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.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
EXAMPLE 3 Write an indirect proof Write an indirect proof that an odd number is not divisible by 4. GIVEN : x is an odd number. PROVE : x is not divisible.
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.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
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.
Introduction to Proofs Goals 1.Introduce notion of proof & basic proof methods. 2.Distinguish between correct & incorrect arguments 3.Understand & construct.
The Foundations: Logic and Proofs
Indirect Argument: Contradiction and Contraposition
CSE15 Discrete Mathematics 02/01/17
Chapter 1: The Foundations: Logic and Proofs
Proof Techniques.
The Foundations: Logic and Proofs
CS 220: Discrete Structures and their Applications
CS 220: Discrete Structures and their Applications
Methods of Proof Rosen 1.7, 1.8 Lecture 4: Sept 24, 25.
Dr. Halimah Alshehri MATH 151 Dr. Halimah Alshehri Dr. Halimah Alshehri.
Mathematical Induction
Introduction to Proofs
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
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:

Introduction to Proofs

Introduction to Proofs A proof is a valid argument that establishes the truth of a statement. Previous section discussed formal proofs Informal proofs are common in math, CS, and other disciplines More than one rule of inference are often used in a step. Steps may be skipped. The rules of inference used are not explicitly stated. Easier to understand and to explain to people. They are generally shorter but it is also easier to introduce errors.

Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as true) rules of inference A lemma is a ‘helping theorem’ or a result that is needed to prove a theorem. A corollary is a result that follows directly from a theorem. A conjecture is a statement proposed to be true. If a proof of a conjecture is found, it becomes a theorem. It may turn out to be false.

Proving Theorems: Conditionals Many theorems have the form: To prove them, we consider an arbitrary element c of the domain and show that: The original statement follows by universal generalization So, we need methods for proving implications of the form:

Working with Integers and Reals Important definitions: An integer n is even if there exists an integer k such that n = 2k An integer n is odd if there exists an integer k, such that n = 2k + 1 Note that every integer is either even or odd and no integer is both A real number r is rational if there exist integers p and q such that r = p/q and q≠0. We can also assume that p and q have no common factors

Proving Conditional Statements: p → q Direct Proof: Assume that p is true. Use rules of inference, axioms, and logical equivalences to show that q is also true. Example: Give a direct proof of the theorem “If n is an odd integer, then n2 is odd.” Solution: Assume that n is odd. Then n = 2k + 1 for an integer k. Squaring both sides of the equation, we get: n2 = (2k + 1)2 = 4k2 + 4k +1 = 2(2k2 + 2k) + 1 2k2 + 2k is an integer, let’s say r So n2 = 2r + 1 and hence n2 is odd. This proves that if n is an odd integer, then n2 is an odd integer.

Proving Conditional Statements: p → q Example: Give a direct proof of the theorem “If c ≥ 6 then c2+c > 2c” Solution: Assume that c ≥ 6. Simplify the conclusion: Subtract c from both sides of c2+c > 2c to get c2 > c. c is always positive so divide both sides by c to get c > 1. With this simplification, the theorem states “If c ≥ 6 then c > 1” This is always true and hence the original formulation is also true

Proving Conditional Statements: p → q Proof by Contraposition: Assume ¬q and show ¬p is true also Recall that (¬q → ¬p ) ≡ (p → q) This is sometimes called an indirect proof method We use this method when the contraposition is easier to demonstrate than the proposition Consider this method when p is more complicated than q Examples: For any integer k, if 3k+1 is even then k is odd If n is an integer and n2 is odd then n is odd If n3+5 is odd then n is even

Proving Conditional Statements: p → q Example: Prove that if n is an integer and 3n+2 is odd, then n is odd. Solution: p ≡ 3n+2 is odd q ≡ n is odd First state the contrapositive: ¬q → ¬p If n is even (not odd) then 3n+2 is even (not odd) Assume n is even (¬q). So, n = 2k for some integer k. Thus 3n+2 = 3(2k)+2 = 6k +2 = 2(3k+1) = 2j for j = 3k+1 Therefore 3n+2 is even (¬p). Since we have shown ¬q → ¬p , p → q must hold as well If 3n+2 is odd then n is odd

Proving Conditional Statements: p → q Example: Prove that for an integer n, if n2 is odd, then n is odd. Solution: Use proof by contraposition: if n is even then n2 is even Assume n is even: n = 2k for some integer k Hence n2 = 4k2 = 2 (2k2) Since 2k2 is an integer, n2 is even We have shown that if n is even, then n2 is even. Therefore by contraposition, for an integer n, if n2 is odd, then n is odd.

Proof by Contradiction Another indirect form of proof To prove p, assume ¬p Derive a contradiction q such that ¬p → q This proves that p is true Why is this reasoning valid: A contradiction (e.g., r ∧ ¬r) is always F, hence ¬p → F Since ¬p → F is true, the contrapositive T→p is also true

Proof by Contradiction Example: prove by contradiction that √2 is irrational. Solution: Suppose √2 is rational. Then there exists integers a and b with √2=a/b, where b≠0 and a and b have no common factors Then and Therefore a2 must be even. If a2 is even then a must be even (shown separately as an exercise). Since a is even, a = 2c for some integer c, thus and Therefore b2 is even and thus b must be even as well. If a and b are both even they must be divisible by 2. This contradicts our assumption that a and b have no common factors. We have proved by contradiction that our initial assumption must be false and therefore √2 is irrational .

Proof by Contradiction Can also be applied to prove conditional statements: p → q To prove p → q, assume ¬(p → q) ≡ (p ∧ ¬q) Derive a contradiction such that (p ∧ ¬q) → F This proves the original statement Example: Prove that if 3n+2 is odd, then n is odd (n is an integer). Solution: p ≡ 3n+2 is odd q ≡ n is odd Assume: p ∧ ¬q 3n+2 is odd ∧ n is even Since n is even, n = 2k for some integer k. Thus 3n+2 = 3(2k)+2 = 6k +2 = 2(3k+1) = 2j for j = 3k+1 Therefore 3n+2 is even This contradicts the assumption that 3n+2 is odd Since the assumption implies F, the original statement is T: If 3n+2 is odd then n is odd