Continued from a question I asked here, since I believed this question deserves its own thread.
When taking the contrapositive, I was taught to negate the quantifiers as well. For example, if we have the statement $$\forall x \in S, \exists y \in S, P(x) \implies P(y),$$ where $P$ is a statement over the domain $S$. Taking the contrapositive of the above statement would give us: $$\exists y \in S, \forall y \in S, \neg P(y) \implies \neg P(x),$$ correct? The logic behind this makes sense to me. Consider the simple example:
If every car has wheels, then there is a car with at least one wheel.
The contrapositive of this would be:
If there is a car which does not have at least one wheel, then not every car has wheels.
Symbolically, we could say that the original statement is:
$\forall c, \exists d, c \implies d$, and the contrapositive as $\exists c, \forall d, \neg d \implies \neg c.$
However, recently I've found out that this is not always the case. If we have something along the lines of:
If $a$ is a real number, such that $a < b$ for every positive real number $b$, then $a = 0$.
Expressing this symbolically, I would think we have that $$\exists a \in \mathbb{R}, \forall b \in \mathbb{R}^+, a < b \implies a = 0.$$
However, when we take the contrapositive of this statement, we get $$\exists a \in \mathbb{R}, \forall b \in \mathbb{R}^+, a \neq 0 \implies a \ge b,$$ and not $$\forall a \in \mathbb{R}, \exists b \in \mathbb{R}^+, a \neq 0 \implies a \ge b.$$ How can I know when to negate quantifiers, and when not to?