2-Introduction To Formal Proof, Inductive and Deductive Proofs, Problems On Mathematical Induction-04-01-2024
2-Introduction To Formal Proof, Inductive and Deductive Proofs, Problems On Mathematical Induction-04-01-2024
• Inductive proof:
• Recursive proofs of a parameterized statements
BCSE304L - TOC
Deductive Proofs
• Consists of a sequence of statements whose truth lead us from
some initial statement called the hypothesis / given statement to
a conclusion statement
• Hypothesis may be true / false, typically depending on the
values of its parameters
• When we go from hypothesis H to conclusion C
• IF H THEN C C is deduced from H
• Ex:
• If x >=4, then 2x >=x2
• If x is the sum of squares of four positive integers, then 2x >= x2
BCSE304L - TOC
Additional Forms of Proof
2. Proofs by contradiction
BCSE304L - TOC
1. Proving equivalence about sets
• If E and F are two expressions representing sets, the statement
E = F means that the two sets represented are the same.
• We can prove the equivalence of Sets E = F in the following
ways:
1. By commutative law of union of two sets R and S as R U S =
SUR
Where E is the expression for R U S and F is the expression for
SUR
So, E = F by commutative law of union
BCSE304L - TOC
Cont..
2.We can prove the set equality E = F by if and only if
statement, that is “an element ‘x’ is in E iff ‘x’ is in F”
BCSE304L - TOC
Contrapositive
• The contrapositive of the statement “if H then C” is “if not C then
not H”, and it is represented as
H C 7C 7H
• To prove that “if H then C” and “if not C, then not H” are logically
equivalent, there are four cases to consider:
• H and C both are true
• H is true and C is False
• C is true and H is False
• H and C both are False
BCSE304L - TOC
Example
BCSE304L - TOC
2. Proof by contradiction
• Another way to prove the statement “if H then C” by the form,
• Proof by Contradiction:
• We assume that the Hypothesis and the negation of the conclusion as
true and then we completed the proof by showing that something
known to be false.
BCSE304L - TOC
Example
• Prove the following statement by contradiction:
The sum of two even numbers is always even.
• Soln:
• Negate original statement:
The sum of two even numbers is not always even.
Take two even numbers, say 2 and 4, sum them (2 + 4 = 6) which is an even.
Take two even numbers, say 12 and 16, sum them (12 + 16 = 30) which is an
even.
Therefore, by contradiction, the sum of two even numbers is always even
BCSE304L - TOC
3. Counter Examples
b. Structural Induction
c. Mutual Induction
BCSE304L - TOC
a. Induction on Integers
• Suppose if we are given a statement, S(n) about an integer ‘n’
which is to be proved, then we have to prove the following:
• Basis: We prove S(n) for particular integer ‘n’ when n = 0,1,2
• Induction: If S(n) then S(n+1) when n>=i, where ‘i’ is basis integer
• General form of induction: S(i) S(i+1) S(i+2) …… S(n)
• Induction Principle:
• If we prove S(i) and we prove that for all n>=i, S(n) implies S(n+1)
then we conclude S(n) for all n>=i
BCSE304L - TOC
Proof by mathematical induction
Proof by mathematical induction consists of three basic steps. If
the statement S is to be proved then:
1) Show that S is true for some particular integer n0
- this is called Basis
2) Assume S is true for some particular integer k ≥ n0
-this is called Induction hypothesis
3) Then to prove S is true for k+1
- this is called Induction step
BCSE304L - TOC
Example: 1
Show that for any n ≥ 1, 1 + 2 + . . . + n = n(n+1)/2 by induction
Solution:
Let S(n) : 1 + 2 + . . . + n = n(n+1)/2
S(2) : 1+2 = 2(2+1)/2 = 3 S(3) : 1+2+3 = 3(3+1)/2 = 6
Basis step: S(1) : 1 = 1(1+1)/2 = 1 S(2) is true S(3) is true
S(1) is true.
Induction hypothesis: Assume that S(n) is true for some n.
S(n): 1 + 2 + . . . + n = n(n+1)/2 ------------(1)
Induction step: To prove S(n+1) is also true.
Take the LHS S(n+1) and prove the RHS.
1 + 2 + . . . + n + (n+1) = n(n+1)/2 + (n+1) = (n+1) (n/2 +1) using (1)
= (n+1)(n+2)/2
Therefore, S(n+1) is true and henceBCSE304L
S(n) is true for any n.
- TOC
Problem 2
Prove the following by induction for all n >= 0,
12+ 22 + . . . + n2 = n(n+1)(2n+1)/6
BCSE304L - TOC
Cont…
BCSE304L - TOC
Cont…
BCSE304L - TOC
Problem 3
Prove 13+ 23 + . . . + n3 = n2(n+1)2/4 by mathematical
induction for n>=0.
BCSE304L - TOC
Cont..
BCSE304L - TOC
Problem 4
Prove that S(n) = an – bn is divisible by (a-b) for all n>0
BCSE304L - TOC
BCSE304L - TOC
b) Structural Induction
• Deals with recursive definition
that has
1. Basis: Where one or more
elementary structures are defined
BCSE304L - TOC
c) Mutual Inductions
When there are several independent statements to prove then
we keep the statements separate and prove them all in their own
parts of the basis and inductive step.
BCSE304L - TOC