Negation and Counter-Examples
What you'll get from this section. You'll learn how to write the opposite of a statement correctly: simple statements, statements joined by "and" or "or", and statements involving "for all" and "there exists" (including a couple of those stacked together). Then you'll see how negation hands you the single most efficient tool for disproving a sweeping claim — the counter-example.
We set the implication arrow aside completely for this section; it returns in Section 4.
What negation is
The negation of a statement is the statement "not ", written . It is true exactly when is false, and false exactly when is true. Negating twice gets you back to where you started: is just .
Negating everyday mathematical statements is mostly common sense, with one notorious trap:
- " is even" negates to " is odd" (for an integer).
- "" negates to "".
- "" negates to "" — not "".
That last one catches almost everyone. The opposite of "greater than " has to include itself, because is not greater than . So the negation of is , and the negation of is .
Negating "and" and "or"
When a statement is built from two parts, negation flips the joining word:
These are De Morgan's laws. The intuition is plain. For the first: if it's not true that both and hold, then at least one of them must fail. For the second: if neither happens, then fails and fails.
For instance, the negation of " is positive and even" is " is not positive or is not even" — i.e. is either non-positive or odd (or both). (You may also meet "and" and "or" written with the symbols and .)
Quantifiers: "for all" and "there exists"
Most interesting mathematical claims are about whole collections of objects, and two little phrases do that work:
- "for all", written : means every has the property .
- "there exists", written : means at least one has the property .
So "" reads "every real number has a non-negative square", and "" reads "some integer has square ".
Negating quantifiers
Here negation does something clean and memorable: it swaps the quantifier and negates the inside.
Read them aloud and they're obvious. If it's not true that everything has property , then something must fail it. If nothing has property , then everything fails it. (Notice the family resemblance to De Morgan: behaves like a long string of "and"s, like a long string of "or"s.)
An example. Take "every prime is odd", written " prime is odd". Its negation is
that is, "some prime is even". (That negation happens to be true — hold that thought for the last part of this section.)
Everyday version: the negation of "all swans are white" is not "all swans are non-white" — it's "there exists a swan that is not white". A single black swan does it.
Nested quantifiers
Statements often stack quantifiers. To negate them, apply the same rule repeatedly: keep the quantifiers in the same order, flip each one's type, and negate the statement they govern.
For a concrete case, consider
"for every real number there is a larger one" (true). Flipping each quantifier and negating the inside gives
"there is a real number that every other is less than or equal to" — a largest real number. That's false, which fits: the original was true, so its negation should be false.
In words it's just as natural. The negation of "everyone has someone they admire" is "there is someone who admires no one" — a person who, people, does not admire them.
Counter-examples
A claim of the form "" — every object has some property — is exactly the kind we just learned to negate, and its negation is "": there is one object that fails. That single object is a counter-example, and producing one is all it takes to prove the universal claim false.
This gives a powerful asymmetry. To prove a "for all" claim you need a general argument covering every case; but to disprove it you need just one well-chosen example.
- "Every prime is odd." Counter-example: , which is prime and even. One number settles it.
- " for every positive integer ." Counter-example: , since , which is not greater than .
- " is prime for every whole number ." This is prime for — thirty-nine straight successes — and yet it is false. At ,
which is not prime. Thirty-nine confirming cases prove nothing; one counter-example demolishes the claim.
That third example carries the real lesson: piling up examples that agree with a universal claim never establishes it, but a single example that disagrees refutes it outright.
Common mistakes
1. Negating as . The negation of "" is "", not "" — the boundary value belongs to the negation. Likewise negates to .
2. Forgetting to swap the quantifier. The negation of "" is "" — you must change to and negate the inside, not just one of the two.
3. Reordering nested quantifiers. When negating, keep the quantifiers in their original order; only their types flip. negates to , with still first.
4. Trying to confirm a "for all" claim with examples. Examples can only ever disprove a universal statement (via a counter-example); they can never prove one.
Summary
- is true exactly when is false; is .
- The negation of is (and of is ).
- De Morgan: "not (P and Q)" is "(not P) or (not Q)"; "not (P or Q)" is "(not P) and (not Q)".
- Negating a quantifier swaps and negates the inside; for nested quantifiers, do this to each in turn, keeping their order.
- A single counter-example disproves a "for all" claim — and no number of agreeing examples can prove one.
Next: Section 4 — The Contrapositive.