Negation and Quantifiers
What you will 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 quantifiers "for all" and "there exists" (including a couple of those stacked together).
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. Another definition is: is a statement such that in any given situation, precisely one of or is true.
Negating basic statements
Negating everyday mathematical statements is just based on the idea of: is true exactly when is false, and false exactly when is true.
- "" negates to "".
- "Jane is in London" negates to "Jane is not in London".
- " is even" negates to " is odd" (for an integer ).
- "" negates to "" — not "".
Negating a negation!
This may or may not be obvious, but is simply . Here are some examples:
- The negation of "" is "".
- The negation of "Jane is not in London" is "Jane is in London".
- The negation of " is odd" is " is even". Notice how naturally this flows!
Negating "and"
A statement of the form " and " is true when both and are true. Therefore, its negation is: and are not both true. In other words, at least one of them must be false: either is false, or is false.
Formally, we write
Here are some examples:
- The negation of " and " is " or ".
- The negation of "James is naughty and clever" is "James is not naughty or James is not clever".
- The negation of " is even and " is " is odd or ", assuming is an integer.
The same idea holds for more than two statements:
- The negation of "James likes football, swimming and tennis" is "James does not like football, or James does not like swimming, or James does not like tennis".
- Notice that a more succinct way of saying the same thing is: "There is one sport, or at least one sport, among football, swimming and tennis that James does not like". This is a precursor to how we negate quantified statements involving and, which we will discuss shortly!
Negating "or"
A statement of the form " or " is true when at least one of and is true. Therefore, its negation is that and are both not true.
Formally, we write
The very keen-eyed among you may notice that we can obtain from by reading in reverse and replacing with and with .
Here are some examples:
- The negation of " or " is " and ".
- The negation of "James is naughty or clever" is "James is not naughty and James is not clever".
- The negation of " is even or " is " is odd and ", assuming is an integer.
The same idea holds for more than two statements:
- The negation of "James likes football, swimming or tennis" is "James does not like football, and James does not like swimming, and James does not like tennis".
- Notice that a more succinct way of saying the same thing is: "James likes none of football, swimming and tennis". This is a precursor to how we negate quantified statements involving or, which we will discuss shortly!
Quantifiers
Interesting mathematical claims are often about whole collections of objects, and these two phrases are often used:
- "for all", written For example: "" means "every has the property ".
- "there exists", written For example: "" means "at least one has the property ".
So "" reads "for every real number , is non-negative", and "" reads "There exists an integer for which squared is ".
Negating "for all" quantifiers
The quantifier for all is a general version of and, since for all requires all the involved statements to be true. Therefore, its negation is that at least one of the involved statements is false, or equivalently, that there exists one case for which the statement is false.
Here are some examples:
- The negation of "For all primes , is odd" is "There exists a prime that is not odd".
- The negation of "Every multiple of 2 is a multiple of 4" is "There exists a multiple of 2 that is not a multiple of 4".
- The negation of "For every positive integer , " is "There exists a positive integer for which ".
Negating "there exists" quantifiers
The quantifier there exists is a general version of or, since there exists only requires at least one of the involved statements to be true. Therefore, its negation is that none of the involved statements is true, or equivalently, that for all of the statements involved, each statement is false.
Here are some examples:
- The negation of "There exists a prime that is even" is "For all primes , is not even".
- The negation of "There exists a multiple of 2 that is not a multiple of 4" is "Every multiple of 2 is a multiple of 4".
- The negation of "There exists a positive integer for which " is "For every positive integer , ".
Negating "for all" and "there exists" quantifiers: algebraic rules
We can summarise these negation rules with one short, memorable phrase:
Swap the quantifier and negate the inside. That is,
and
Here are some examples.
- The negation of "For all primes , is odd" is "There exists a prime such that is not odd".
- The negation of "" is " such that ".
Negating nested quantifiers
Nested quantifiers are statements where one quantifier sits inside another, such as "for all ... there exists ..." or "there exists ... such that for all ...". The key rule is the same as before: swap each quantifier and negate the inside, working from the outermost quantifier inwards, one layer at a time.
For example,
Similarly,
Now I give a couple of actual concrete mathematical examples, these are definitions that naturally use nested statements involving quantifiers.
Example 1: Local maximum of a function
We define to have a local maximum at if
Intuitively, this is saying is a local maximum if you can find a small interval around for which of all the in that interval is not greater than .
Now let us examine what it means for not to be a local maximum. This is the negation of the statement above:
So the negation is
Intuitively, this is saying that no matter how small a neighbourhood we choose around , there is always some in that neighbourhood with , so is not a local maximum.
Example 2: Continuity of a function at a point
We define to be continuous at if
This is a difficult definition to understand, and it is usually first taught at undergraduate level. Intuitively, the idea of is continuous at is that passes without jumps or sudden breaks. If is sufficiently close to , then is also very close to . I will leave the intuition at this level, as this part is optional! However, we can nonetheless find its negation.
Now let us examine what it means for not to be continuous at . This is the negation of the statement above:
So the negation is
Intuitively, this says that we can find a gap for which, no matter how small a non-zero interval we choose around , we can always find a inside that interval, for which . In this case, is not continuous at , as the near it, not all converge to . What I gave here again is a hand wavy explanation to aid intuition, not a precise definition or statement, for that is where we turn to the formal negation!
Summary
- is true exactly when is false.
- is .
- "" is "".
- "" is "".
- Rule for negating quantifiers: swap the quantifier and negate the inside.
- When negating statements with nested quantifiers, apply swap the quantifier and negate the inside recursively, starting from the outermost quantifier.