Chapter-1 6

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 16

Chapter 1.

Introduction to PROOFs
PROOFs
Two types of proof:
Formal proof
Informal proof

2 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Formal Proofs
A formal proof of a conclusion C, given premises p1 ,
p2 , ...,pn consists of a sequence of steps, each of
which applies some inference rule to premises or to
previously proven statements (as hypotheses) to yield a
new true statement (the conclusion)

A proof demonstrates that if the truth of the premises


implies that the conclusion is true.

3 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Informal Proofs
Where the axioms being assumed.
Where the rule of inference used are not explicitly
stated.

Methods of proving theorems:


Direct Proof
Indirect Proof (Proof by Contrapositive)
Proof by Contradiction

4 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Direct Proof
The implication p→q can be proved by showing that if
p is true then q must be true.

This shows that the combination p true and q false


never occurs.

 A proof of this kind is called a DIRECT PROOF.

5 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Examples of Direct Proof
Before the examples of direct proof, we need to learn
some definition:
DEFINITION 1: The integer n is even if there exists an
integer k such that n=2k and it is odd if there exists an
integer k such that n=2k+1

DEFINITION 2: An integer a is a perfect square if


there is an integer b such that a=b2 .

6 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Examples of direct proofs
EXAMPLE 1: Give a direct proof of the theorem “If n
is an odd integer, then n2 is an odd integer”.

EXAMPLE 2: Give a direct proof of the theorem “If


m and n are both perfect squares, then mn is also a
perfect square”.

7 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Indirect Proofs (Proof by Contrapositive)
Since the implication p→q is equivalent to its
contrapositive ¬q→¬p, the implication p→q can be
proved by showing that its contrapositive ¬q→¬p is
true.

An argument of this type is called an INDIRECT


PROOF or Proof by Contrapositive.

8 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Examples of Indirect Proof
Give an indirect proof of the theorem, “If 3n+2 is odd,
then n is odd”

Give an indirect proof of the theorem, “If n2 is odd,


then n is odd”

DEFINITION 3: The real number r is rational if


there exist integers p and q with q≠0 such that r=p/q.
A real number that is not rational is called irrational.

9 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Examples of Indirect Proof
Prove that the sum of two rational numbers is rational.

Proof by contrapositive of Indirect Proof can succeed


when we cannot easily find a direct proof.

10 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Example
Prove: If n is an integer and 3n + 2 is odd, then n
is odd.
First, attempt a direct proof:
Assume that 3n + 2 is odd, thus 3n + 2 = 2k + 1 for some k
Can solve to find that n = (2k – 1)/3

Where do we go from here?!?


Now, try proof by contraposition:
Assume n is even, so n = 2k for some k
3(2k) + 2 = 6k + 2 = 2(3k + 1)
So, 3n + 2 is also even.
Since we proved ¬“n is odd” → ¬“3n+2 is odd”, we can
conclude that “3n + 2 is odd” → “n is odd” ☐
11 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Another Example
Prove that if n2 is odd, then n is odd.

12 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Proof by Contradiction
Given a conditional p → q, the only way to reject this claim
is to prove that p ∧ ¬q is true.
¬ (p→q)  ¬(¬pq)  p ∧ ¬q

In a proof by contradiction we:


1. Assume that p ∧ ¬q is true
2. Proceed with the proof
3. If this assumption leads us to a contradiction, we can
conclude that p → q is true

Let’s revisit an earlier example…


13 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Previous Example
Prove: If n is an integer and 3n + 2 is odd, then n
is odd.
Proof:
Assume that 3n + 2 is odd and n is even (i.e., n = 2k)
3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1)
The above statement tells us that 3n + 2 is even, which is a
contradiction of our assumption that 3n + 2 is odd.
Therefore, we have shown that if 3n + 2 is odd, then n is also
odd.

We can also use proof by contradiction in cases where were


the theorem to be proved is not of the form p → q
14 nazia.majadi.googlepages.com/dm_cse09 08/01/21
Group work!
Problem: Prove the following claims
Use a direct proof to show that the square of an even
number is an even number.
Show that if m + n and n + p are even integers, then the
sum m + p is also an even integer.
Use proof by contraposition to show that if n is an
integer and n3 + 5 is odd, then n is even.

15 nazia.majadi.googlepages.com/dm_cse09 08/01/21
END

16 nazia.majadi.googlepages.com/dm_cse09 08/01/21

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy