Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.

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.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
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
– Alfred North Whitehead,
Induction and recursion
CSE115/ENGR160 Discrete Mathematics 02/07/12
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
So far we have learned about:
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
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
CS 2210 (22C:019) Discrete Structures Logic and Proof Spring 2015 Sukumar Ghosh.
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
Induction and recursion
Introduction to Proofs
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
Introduction to Proofs
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
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
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
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.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Foundations of Discrete Mathematics Chapters 5 By Dr. Dalia M. Gil, Ph.D.
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.
Mathematical Induction
CS104:Discrete Structures Chapter 2: Proof Techniques.
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.
ICS 253: Discrete Structures I
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and proofs
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.
Chapter 1 Logic and Proof.
Chapter 1 Logic and Proof.
The Foundations: Logic and Proofs
Indirect Argument: Contradiction and Contraposition
CS 2210:0001 Discrete Structures Logic and Proof
CSE15 Discrete Mathematics 02/01/17
CSE15 Discrete Mathematics 02/08/17
Chapter 4 (Part 1): Induction & Recursion
Advanced Algorithms Analysis and Design
Chapter 3 The Real Numbers.
Induction and recursion
Chapter 1: The Foundations: Logic and Proofs
Proof Techniques.
The Foundations: Logic and Proofs
Induction and recursion
CS 220: Discrete Structures and their Applications
Elementary Number Theory & Proofs
Foundations of Discrete Mathematics
Copyright © Cengage Learning. All rights reserved.
Foundations of Discrete Mathematics
Mathematical Induction
Introduction to Proofs
Copyright © Cengage Learning. All rights reserved.
Agenda Proofs (Konsep Pembuktian) Direct Proofs & Counterexamples
Presentation transcript:

Proof And Strategies Chapter 2

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete structure deals with discrete objects. Discrete objects are those which are separated from (not connected) each other. Examples: Integers (whole numbers 5, 10, 15), rational numbers (ones that can be expressed as the share of two integers i.e. 10/5) are discrete object.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Importance of Discrete Structures It provides foundation objects for computer science. It includes important material from such areas as set theory, logic, graph theory, Relation …etc. It enables students to create and understand a proof is essential in formal specification, in verification, in databases, and in cryptography. The graph theory concepts are used in networks, operating systems, and compilers. Set theory concepts are used in software engineering and in databases. In engineering, It can be used to control multiproduct batch plants, production of new multifunctional and design of a new class of simulator.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Topics Proof methods and strategy Number theory Recursive Relations Modeling computation

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Introduction to Proof

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Outlines Proof Methods & types of proof Proof Strategies Introduction to Proof

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods Proof : A proof is a valid argument that establishes the truth of mathematical statement. There are two types of proofs; Formal Proof: In this type all steps are supplied (complete) and rules for each step in the arguments are given. Useful theorems can be long and hard to follow.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Informal Proof: Proof of theorems designed for the human consumption are always informal proofs. More than one rule of inference may be used in each step. Steps may be skipped. Rules of inference are not explicitly stated. Proof Methods: The following are the proofs methods; 1) Direct Proof: It is a way of showing the truth of a given statement by a straightforward combination of established facts. Proof Methods

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods Example: Sum of two even integers is an even number. Proof: Let x and y are two even numbers. Since they are even therefore we can write x= 2a, y = 2b for all integers a and b. x + y = 2a + 2b = 2 (a + b) From this it is clear that x + y has 2 as a factor and therefore is even. Hence, sum of two even integers is an even number.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods 2) Indirect Proof: It is also known as proof by contradiction. It is a form of proof that establishes the proof or validity of a proposition by showing that proposition is being false would involve a contradiction. A proposition must be either true or false and its falsity has been shown impossible, then proposition must be true.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods Example: For all integers n, (if 3n + 1 is even, then n is odd). Solution: Suppose the contradiction that n is not odd. It means n is even. We can write for all integers n, 3n + 1 is even then n is even. If n is even mean n is multiple of 2, therefore n = 2a, for integers a. Then 3n + 1 = 3(2a) +1 = 6a + 1 ………………………. (1) 6a is even because 2(3a). But 6a + 1 is odd. Therefore 3n + 1 is odd from equation (1). By assuming n is even, we shown that 3n + 1 is odd which is an contradiction to our assumption. Therefore if n is odd then 3n +1 is even, which is possible. It follows that the original statement (if 3n + 1 is even, then n is odd is true).

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods 3) Exhaustive Proof : It is also known as proof by cases. It is a special type of proof by cases where each case involves checking a single example. Example 1: Prove that (n + 1) 3 > 3 n, if n is a positive integer with n ≤ 4. Solution: Proof by exhaustion need only to verify for n=1,2,3,4 n=1, (n + 1) 3 = (2) 3 = 8 and 3 n = 3 1 = 3; It follows 8 > 3; n = 2, (n + 1) 3 = (3) 3 = 27 and 3 n = 3 2 = 9; It follows 27 > 9; n = 3, (n + 1) 3 = (4) 3 = 64 and 3 n =3 3 = 27; It follows 64 > 27; n = 4, (n + 1) 3 = (5) 3 =125 and 3 n = 3 4 = 81; It follows 125>81

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods 4) Proof by cases: A proof by cases must cover all cases that arises in a theorem. Example : Prove that if n is an integer then n 2 ≥ n Solution: We can prove for every integer by considering three cases when n=0, n ≥1 and n ≤ -1 Case (i)n=0, because 0 2 =0 therefore n 2 ≥ n holds. Case (ii) n ≥1, multiply both sides of inequality by positive n, we get n. n ≥ n.1, implies n 2 ≥ n hold for n ≥1. Case (iii) n ≤ -1, however n 2 ≥ 0, implies n 2 ≥n. Hence n 2 ≥n hold for all inequalities.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Lec 2

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods 4) Existence Proof: It is a theorem with a statement involving the existential qualifier. It has two types; a)Constructive Existence Proof: It proves the existence of a mathematical object with certain properties by creating or providing a method to create this object. Example :Show that there is a positive integer that can be written as the sum of cubes of positive integers in two different ways; Solution : After doing some computation we found that 1729 = and also 1729 =

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods b)Non-constructive Existence Proof: It proves the existence of a mathematical object with certain properties, but does not provide a means of constructing an example.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods Rather we have shown that either the pair have the desired property and we do not know which of these pairs work.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods Uniqueness Proofs: It has two fundamental properties; a)Existence: We show that an element x with the desired property exists. b)Uniqueness: We show that if y ≠ x, then y does not have the desired property (of X). Equivalently, we can show that if x and y both have the desired property, then x = y.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Methods

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies Proof Strategies: Generally, if the statement is a conditional statement, you should first try a direct proof; if this fails, you can try an indirect proof if neither of these approaches works, you might try a proof by contradiction. Forward and Backward Reasoning :To begin a direct proof of a conditional statement, you start with the premises (content). Using these premises, together with axioms and known theorems, you can construct a proof using a sequence of steps that leads to the conclusion. This type of reasoning is called forward reasoning (see example in direct proof). But forward reasoning is often difficult to use to prove more complicated results. In such cases it is helpful to use backward reasoning.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies Set to power 2 Multiply by 4 Extract first Add -4xy to each side Because (x -y) 2 > 0 when x <> y, it follows that the final inequality is true. Since all these inequalities are equivalent, it follows that (x + y)/2 > Sqrt( xy) when x <> y:

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies Looking for Counter examples : Counter examples show that certain statements are false. When confronted with a conjecture, you might first try to prove this conjecture, and if your attempts are unsuccessful, you might try to find a counterexample. Example 17:Show that the statement “ Every positive integer is the sum of the square of three integers” is false by finding a counterexample.

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies Solution : We first look for a counterexample that “Every positive integer is the sum of three squares of integers” is false, If we find a particular integer that is not the sum of the squares of three integers. To look for a counterexample, we try successive positive integers as a sum of three squares, we find that

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies Example 18: Can we tile the standard checkerboard using dominoes. How many ways we have to fill it? Solution: There are the following ways to tile the checkerboard. 1)Tile it by placing 32 dominoes horizontally. 2)Tile it by placing 32 dominoes vertically. 3)Tile it by placing some horizontally and some vertically dominoes. This method is called constructive existence proof

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Proof Strategies

Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering END