78. Negating quantifiers
Negating quantifiers must be handled with care, too:
78.1 Theorem: Moving “not” past a quantifier
For any predicate $P$,
Q.1 $\neg ((\exists x)P(x))\Leftrightarrow (\forall x)(\neg P(x))$
Q.2 $\neg ((\forall x)P(x))\Leftrightarrow (\exists x)(\neg P(x))$.
Proof We give the argument for Q.1; the argument for Q.2 is similar.
For $(\exists x{:}A)P(x)$ to be false requires that $P (x)$ be false for every $x$ of type $A$; in other words, that $\neg P (x)$ be true for every $x$ of type $A$. For example, if $P (x)$ is the predicate $(x > 5)\wedge (x <3)$, then $(\exists x{:}\mathrm{R})P(x)$ is false. In other words, the rule Q.1 is valid.
78.1.1 Remark Finding the negation of a proposition with several quantifiers can be done mechanically by applying the rules (Q.1) and (Q.2) over and over.
78.1.2 Example The negation of the Archimedean property can take any of the following equivalent forms:
a) $\neg\bigl((\forall x{:}\mathrm{R})(\exists n{:}\mathrm{N})(x < n)\bigr)$
b) $(\exists x{:}\mathrm{R})\neg\bigl((\exists n{:}\mathrm{N})(x < n)\bigr)$
c) $(\exists x{:}\mathrm{R})(\forall n{:}\mathrm{N})(x \geq n)$
The last version is easiest to read, and clearly false — there is no real number bigger than any integer. It is usually true that the easiest form to understand is the one with the ‘$\neg$’ as “far in as possible”.
78.1.3 Worked Exercise Express the negation of $(\forall x )(x <7)$ without using a word or symbol meaning “not”. Answer $(\exists x )(x \geq 7)$.
78.1.4 Exercise Express the negation of $(\exists x )(x \leq 7)$ without using a word or symbol meaning “not”.
78.1.5 Exercise Write a statement in symbolic form equivalent to the negation of
$$(\forall x )(P (x )\Rightarrow Q (x))$$
without using the ‘$\forall$’ symbol.
78.1.6 Exercise Write a statement in symbolic form equivalent to the negation of the expression “$(\exists x )(P (x )\Rightarrow \neg Q (x))$” without using ‘$\exists$’, ‘$\Rightarrow$’ or ‘$\neg$’.
Pages 116–117 of the book (PDF).