Counterexamples
What you will get from this section. You will learn what a counterexample is, why a counterexample to an if-then statement must satisfy the if part, and how to find counterexamples to more complicated statements involving quantifiers and nested implications.
What is a counterexample?
A counterexample is an example that shows a general statement is false.
Many mathematical statements are claims about many things at once. For example:
This is really saying:
In symbols, this has the form
where is the set of square numbers. To disprove this kind of statement, we do not need to check every possible value of . We only need to find one value of for which the statement fails. This means the overall statement is false, since it requires to be true for all .
Here are some examples:
- To disprove: "All primes are odd", it is enough to find a prime that is not odd. In this case, is a counterexample, as it is a prime that is not odd.
- To disprove: " is always positive", which is the same as . In this case, is a counterexample, since , which is not greater than .
- To disprove: "Everyone loves horror movies", it is enough to find one person who does not love horror movies. That one person you found, who does not love horror movies, is a counterexample.
Technically, finding a counterexample is really the same as showing that the negation of the original statement is true. The original statement says "this works for every case"; the negation says "there exists at least one case where it does not work". Thus, if we are able to find a case where it does not work, this immediately proves that the negation is true. This case is called a counterexample.
Counterexamples to if-then statements
A common type of counterexample question asks us to find counterexamples to if-then statements. In the following examples, we will look carefully at both valid and invalid counterexamples.
Example 1: If can be written as a sum of two squares, then cannot be a cube.
Counterexample: , therefore it belongs to the set of integers about which the statement is making a claim. But , so it does not satisfy the claim. Hence, it is a valid counterexample.
Invalid counterexample: is not a valid counterexample, even though it is a cube. This is because it is not possible to write as a sum of two squares. The square numbers no bigger than are
and no two of these add to . Therefore, it does not belong to the set of integers about which the statement is making a claim, so it is simply not involved with the statement and cannot serve as a counterexample.
In these if-then statements, the whole statement can often be interpreted as a "for all" statement: the conditions in the if part define the set being quantified over. So the if part is really describing some set of integers, numbers, or other objects that satisfy the if conditions. Thus, these statements can often be interpreted as ", is true". The if part is actually just a description of what is in . Therefore, to be a valid counterexample, you must be a member of in the first place. This is the central concept tested in these problems.
Example 2: If a quadrilateral has all four sides equal, then it is a square.
Counterexample: a rhombus with angles . This works because the quadrilateral has all four sides equal, so the if part is true. It belongs to the set about which the statement is making a claim. But it is not a square, since its angles are not all .
Invalid counterexample: a rectangle with side lengths and . This is not a valid counterexample, because a by rectangle does not have all four sides equal. Therefore, it does not belong to the set about which the statement is making a claim, and so it is irrelevant to the statement and cannot serve as a counterexample.
Succinctly, we can summarise the situation for these if-then statements as follows: to serve as a counterexample, an object must first satisfy the if part, and then not satisfy the then part.
Example 3: If is a positive integer greater than , then there exists a positive integer such that for every integer with , is a positive factor of .
Is a valid counterexample? It is true that is a positive integer greater than , so it does satisfy the if part. Now suppose we try . The integers satisfying are and . But is not a positive factor of , so this particular choice of fails.
Does this mean is a counterexample? No! It is not a counterexample because, for the then part of the statement to fail, we would have to show that every positive integer fails. In this case, all we have shown is that the claim fails for . We have not shown that no valid value of can be found.
Indeed, works. The integers satisfying are and , and both are positive factors of . Therefore, is not a valid counterexample.
A valid counterexample is . For the statement to be true for , we would need to find a positive integer such that every integer with is a positive factor of . In other words, and must both be positive factors of .
This is impossible, since the positive factors of are , and no two of them differ by . Therefore, the then part of the statement fails for every positive integer , and so is a valid counterexample.
Example 4: If is a multiple of greater than , then for every integer with , if is a factor of , then is even.
Counterexample: , with .
This works because is a multiple of and , so the outer if part is true. Also, , and is a factor of , so the inner if part is true. But is not even, so the inner then part is false.
Incorrect counterexample: , with .
This is not a counterexample, even though is a factor of and is not even. The problem is that is not a multiple of , so the outer if part is false.
Incorrect counterexample: , with .
This is not a counterexample either. The number satisfies the outer if part, and , but is not a factor of . So the inner if part is false, and the inner implication has not been broken.
If-then counterexample summary
In general, we can view a valid counterexample as an that satisfies the if part, but for which the negation of the then part is true. The fact that satisfies the if part means it belongs to the set of objects that the statement is making a general claim about. The fact that the negation of the then part is true means that, for this relevant value of , the general claim fails.
Summary
- A counterexample to a statement that makes a general claim about a set of objects is one object in that set for which the claim fails.
- To disprove , or if then , find a case where is true and is false. This is a valid counterexample.