[guided]We need a well-defined vector $p$ before we can discuss the decomposition. The natural candidate is the nearest point in $K$ to $v$. Because $K$ may be unbounded, we first reduce the minimization to a compact set.
Choose one point $x_0 \in K$, which is possible because $K$ is nonempty. Define
\begin{align*}
\Phi: K \to [0,\infty), \qquad x \mapsto |v - x|^2.
\end{align*}
If $x \in K$ satisfies $|v-x| > |v-x_0|$, then $\Phi(x) > \Phi(x_0)$, so such an $x$ cannot minimize $\Phi$. Let $\overline{B}(v, |v-x_0|)$ denote the closed Euclidean ball
\begin{align*}
\overline{B}(v, |v-x_0|) := \{x \in \mathbb{R}^n : |x-v| \leq |v-x_0|\}.
\end{align*}
Therefore every minimizer must lie in
\begin{align*}
K \cap \overline{B}(v, |v - x_0|).
\end{align*}
This set is nonempty, closed, and bounded in $\mathbb{R}^n$, hence compact. Since $\Phi$ is continuous, it attains its minimum on this compact set. Let $p \in K \cap \overline{B}(v, |v - x_0|)$ be a minimizer. For any $x \in K \setminus \overline{B}(v, |v-x_0|)$, we have $\Phi(x)>\Phi(x_0)\geq \Phi(p)$, so this $p$ is not merely a minimizer on the compact truncation; it is a global minimizer over all of $K$.
Now we prove uniqueness, because later the theorem identifies $p$ with $P_K(v)$. Suppose $p_1,p_2 \in K$ are two minimizers. Since $K$ is convex, their midpoint
\begin{align*}
m := \frac{p_1+p_2}{2}
\end{align*}
belongs to $K$. The parallelogram identity gives
\begin{align*}
|v-m|^2 = \frac{1}{2}|v-p_1|^2 + \frac{1}{2}|v-p_2|^2 - \frac{1}{4}|p_1-p_2|^2.
\end{align*}
If $p_1 \neq p_2$, then $|p_1-p_2|^2 > 0$, so $|v-m|^2$ is strictly smaller than the common minimal value. This contradicts the definition of $p_1$ and $p_2$ as minimizers. Hence $p_1=p_2$, and the minimizer is unique.
Thus $p=P_K(v)$. We now define the residual vector
\begin{align*}
q := v-p.
\end{align*}
The rest of the proof shows that this residual is exactly the polar projection.[/guided]