I have a question regarding topology of sets in $\mathbb{R^2}$ and $\mathbb{R^3}$. The question is as follows:
For each $A \subset \mathbb{R^3}$, we define $P(A) \subset \mathbb{R^2}$ by \begin{equation} P(A) := \{(x,y)\ |\ \exists\ z \in \mathbb{R}: (x,y,z) \in A\}.\end{equation}
I have the following statements:
"If A is open (in $\mathbb{R^3}$), then $P(A)$ is open (in $\mathbb{R^2}$)."
"If A is closed (in $\mathbb{R^3}$), then $P(A)$ is closed (in $\mathbb{R^2}$)."
"If A is compact (in $\mathbb{R^3}$), then $P(A)$ is compact (in $\mathbb{R^2}$)."
I think that the first statement is true, but I am in doubt about the second one. I was thinking of a set $A = \{(x,y,z)\ | \ x^2 + y^2 < 1, -1 \leq z \leq 1\}$, but I am now sure whether I am going in the correct direction. Could anyone help me out? Thanks in advance!