In my lecture materials on predicate logic I encountered the following equivalence:
$$[ \forall x\left( P\left( x\right) \Rightarrow q\right) ] \Leftrightarrow [ \left( \exists x:P\left( x\right) \right) \Rightarrow q]$$
However, I cannot make sense of it. Why is this equivalence true?
I understand the left part to mean the following: for each $x$, if $P(x)$ is true, then $q$. For example, in this picture $P(x)$ is true for $x_3,x_4,x_6$. For those $x$ it is the case of $q$ and for other $x$ it can be either $q$ or not $q$
I understand the right part to mean the following: if there exists at least one $x$ such that $P(x)$ is true, then $q$. For example, in this picture $P(x)$ is true for $x_4$. Thus, there exist at least one $x:P(x)$ and therefore $q$ must be true everywhere.
Now those two situations are obviously not equivalent, so where is my error?