Comments

Notes

MCS 212

6 topics

Methods of proof

Updated Feb 16, 20256 min read

​In Discrete Mathematics, several proof methods are used to establish the validity of statements. Here are some of the most common methods:

1. Direct Proof

​Approach:

A direct proof of p ⇒\rArr⇒​ q is a logically valid argument that begins withthe assumptions that p is true and, in one or more applications of the law of detachment, concludes that q must be true.
So, to construct a direct proof of p 
⇒\rArr⇒​ q, we start by assuming that p is true. Then, in one or more steps of the form p ⇒\rArr⇒​ q1, q1 ⇒\rArr⇒​ q2, ......., qn  ⇒\rArr⇒ q, we conclude that q istrue. Consider the following examples.

Example:

Give a direct proof of the statement ‘The product of two odd integers is odd’.

Solution: Let us clearly analyse what our hypotheses are, and what we have to prove.We start by considering any two odd integers x and y. So our hypothesis is p: x and yare odd.

The conclusion we want to reach isq : xy is odd.

Let us first prove that p ⇒\rArr⇒​ q.
Since x is odd, x = 2m + 1 for some integer m.Similarly, y = 2n + 1 for some integer n.
Then xy = (2m + 1) (2n + 1) = 2(2mn + m + n) +1Therefore, xy is odd.
So we have shown that p ⇒\rArr⇒​
 q.

Now we can apply modus ponens to p ∧ ( p ⇒\rArr⇒​ q) to get the required conclusion.Note that the essence of this direct proof lies in showing p ⇒\rArr⇒ q.

Indirect Proofs

In this sub-section we shall consider two round about methods for proving p ⇒\rArr⇒ q.


Proof by contrapositive: In the first method, we use the fact that the proposition p ⇒\rArr⇒​

q is logically equivalent to its contrapositive (~ q ⇒\rArr⇒​ ~ p),i.e.,

(p ⇒\rArr⇒​ q) ≡ ( ~ q ⇒\rArr⇒​ ~ For instance, ‘If Ammu does not agree with communalists, then she is not orthodox.’is the same as ‘If Ammu is orthodox, then she agrees with communalists.’

Because of this equivalence, to prove p ⇒\rArr⇒ q, we can, instead, prove ~ q ⇒\rArr⇒​ ~ p. This means that we can assume that ~ q is true, and then try to prove that ~ p is true. In other words, what we do to prove p ⇒\rArr⇒ q in this method is to assume that q is false and then show that p is false. Let us consider an example.

Prove that ‘If x, y ∈ Z such that xy is odd, then both x and y are odd’, byproving its contrapositive.

Solution: Let us name the statements involved as below.p : xy is oddq : both x and y are odd.So,

~ p : xy is even, and
~ q : x is even or y is even, or both are even.

Wewanttoprovep ⇒\rArr⇒ q,by proving that~q ⇒\rArr⇒ ~p.So we start by assuming that~q is true, i.e., we suppose that x is even.

The x = 2n for some n ∈ N.Therefore, xy = 2ny.
Therefore xy is even, by definition.
That is, ~ p is true.

So, we have shown that ~ q ⇒\rArr⇒​ ~p. Therefore, p ⇒\rArr⇒​ q.


Proof by contradiction: In this method, to prove q is true, we start by assuming that q is false (i.e., ~ q is true). Then, by a logical argument we arrive at a situation where a statement is true as well as false, i.e., we reach a contradiction r ∧ ~ r for some statement that is always false. This can only happen when ~ q is false also. Therefore,q must be true.

This method is called proof by contradiction. It is also called reductio ad absurdum(a Latin phrase) because it relies on reducing a given assumption to an absurdity.

Example

Show that 5\sqrt{\smash[b]{5}}5​ is irrational.

Solution: Let us try and prove the given statement by contradiction. For this, we begin by assuming that 5\sqrt{\smash[b]{5}}5​ is rational. This means that there exist positive integers a and b such that 5\sqrt{\smash[b]{5}}5​ = ab\frac{a}{b}ba​,  where a and b have no common factors.

This implies a = 5b⇒a2=5b2⇒5/a2⇒5/a\sqrt{\smash[b]{5b}} \rArr {a^2} = 5{b^2} \rArr {5/a^2} \rArr {5/a}5b​⇒a2=5b2⇒5/a2⇒5/a

Therefore, by definition, a = 5c for some c ∈ Z.

Therefore, a2= 25c2.

But a2 = 5b2 also.

So 25c2=5b2⇒5c2=b2⇒5/b2⇒5/b.25c^2 = 5b^2 \rArr 5c^2 = b^2 \rArr 5/ b ^2 \rArr 5 /b .25c2=5b2⇒5c2=b2⇒5/b2⇒5/b.

But now we find that 5 divides both a and b, which contradicts our earlier assumption

that a and b have no common factor.
Therefore, we conclude that our assumption that 5\sqrt{\smash[b]{5}}5​ is rational is false, i.e, 5\sqrt{\smash[b]{5}}5​ is irrational.

​

Counter Examples

Suppose I make the statement ‘All human beings are 5 feet tall.’. You are quite likely to show me an example of a human being standing nearby for whom the statement is not true. And, as you know, the moment we have even one example for which the statement (∀x)p(x) is false [i.e.,(∃x) (~p(x)) is true], then the statement is false.

An example that shows that a statement is false is a counter example to such astatement. The name itself suggests that it is an example to counter a given statement.

A common situation in which we look for counter examples is to disprove statements of the form p → q needs to be an example wherep ∧~q. Therefore, acounter example to p → q needs to be an example where p ∧ ~ q is true, i.e., p is true and ~ q is true, i.e., the hypothesis p holds but the conclusion q does not hold.

For instance, to disprove the statement ‘If n is an odd integer, then n is prime.’, we need to look for an odd integer which is not a prime number. 15 is one such integer.So, n = 15 is a counter example to the given statement.

Notice that a counter example to a statement p proves that p is false, i.e., ~ p is true.

Share