Concept: An indirect proof, also known as proof by contraposition, is a method of proving a statement by assuming the negation of the conclusion and showing that it leads to the negation of the hypothesis.
Form: To prove ∀n:(P(n)→Q(n)), instead of directly showing that P(n) implies Q(n), we show that ¬Q(n) implies ¬P(n).
Validity: This method is valid because the implication P(n)→Q(n) is logically equivalent to its contrapositive ¬Q(n)→¬P(n).
Example: Proof that if n2 is divisible by 3, then n is divisible by 3
Statement: If n2 is divisible by 3, then n is divisible by 3.
P(n): n is divisible by 3.
Q(n): n2 is divisible by 3.
Indirect Proof:
Assume that n is not divisible by 3.
We want to show that this implies n2 is not divisible by 3.
Case 1: If n is not divisible by 3, it leaves a remainder of 1 when divided by 3.
n=3k+1 for some integer k.
Then, n2=(3k+1)2=9k2+6k+1=3(3k2+2k)+1.
Thus, n2 is not divisible by 3, as it leaves a remainder of 1.
Case 2: If n is not divisible by 3, it leaves a remainder of 2 when divided by 3.
Thus, n2 is not divisible by 3, as it leaves a remainder of 1.
In both cases, if n is not divisible by 3, then n2 is not divisible by 3. This completes the indirect proof.
Proof by Contradiction
Concept: A proof by contradiction involves assuming the negation of the statement to be proven and showing that this assumption leads to a contradiction.
Method:
Assume ¬P is true, where P is the statement to be proven.
Show that this assumption leads to a contradiction (a statement that is always false, denoted as F).
Conclude that P must be true.
Validity:
The logical equivalence ¬P→F implies P is true.
Truth table verification:
| P | ¬P | F | ¬P → F | P |
|---|----|---|--------|---|
| T | F | F | T | T |
| F | T | F | F | F |
Since the columns for P and ¬P→F are the same, the equivalence is verified.
Theorem: 2 is irrational
Proof (by contradiction):
Assume that 2 is rational. This is the negation of what we want to prove.
If 2 is rational, then it can be written as 2=ba, where a and b are integers with no common factors, and a and b are positive.
It follows that a2=2b2.
Since b is an integer, b2 is also an integer, so a2 is even.
If a2 is even, then a must be even. If a were odd, then a2 would also be odd.
Since a is even, we can write a=2k for some positive integer k.
By substitution, (2k)2=2b2, which gives 4k2=2b2, and thus b2=2k2.
This tells us that b2 is even. Using the same reasoning as before, b must also be even.
Now we have that both a and b are even, which contradicts our initial assumption that a and b have no common factors.
Therefore, our assumption that 2 is rational must be false, and 2 is irrational.
Theorem: There are infinitely many primes
Proof (by contradiction):
Assume that there are finitely many primes: p<em>1,p</em>2,p<em>3,…,p</em>n (where pn is the largest prime).
Consider the number q=p<em>1∗p</em>2∗p<em>3∗…∗p</em>n+1.
q is greater than pn (the largest prime).
Note that if we divide q by any of the primes pi, we get a remainder of 1.
q cannot be prime because it's greater than pn (the supposed largest prime).
However, q is not divisible by any of the primes p<em>1,p</em>2,p<em>3,…,p</em>n, meaning it has no prime factors from that set.
This contradicts the Fundamental Theorem of Arithmetic, which states that every integer greater than 1 can be represented uniquely as a product of prime numbers.
Therefore, our assumption that there are finitely many primes must be false, and there are infinitely many primes.