[step:Construct a nonempty compact sublevel set containing all near minimizers]Since $f$ is proper, its effective domain
\begin{align*}
\operatorname{dom} f := \{x \in \mathbb{R}^n : f(x) < +\infty\}
\end{align*}
is nonempty. Choose $x_0 \in \operatorname{dom} f$, and define the finite real number
\begin{align*}
c := f(x_0) + 1.
\end{align*}
By coercivity applied with the stricter threshold $a = c + 1$, there exists $R_{c+1} > 0$ such that $f(x) \geq c + 1$ whenever $|x| \geq R_{c+1}$. Define
\begin{align*}
R := \max\{R_{c+1}, |x_0|\}.
\end{align*}
Define the closed Euclidean ball centered at $0$ with radius $R$ by
\begin{align*}
\overline{B}(0,R) := \{x \in \mathbb{R}^n : |x| \leq R\}.
\end{align*}
Define the sublevel set
\begin{align*}
S := \{x \in \mathbb{R}^n : f(x) \leq c\}.
\end{align*}
Then $x_0 \in S$, so $S$ is nonempty. Also, if $x \in S$ and $|x| \geq R$, then $|x| \geq R_{c+1}$, hence $f(x) \geq c + 1$. This contradicts $f(x) \leq c$. Therefore every $x \in S$ satisfies $|x| < R$, and hence
\begin{align*}
S \subset \overline{B}(0,R).
\end{align*}
We next show that $S$ is closed. Let $(y_k)_{k \in \mathbb{N}}$ be a sequence in $S$ converging in $\mathbb{R}^n$ to a point $y \in \mathbb{R}^n$. Since $f$ is lower semicontinuous,
\begin{align*}
f(y) \leq \liminf_{k \to \infty} f(y_k).
\end{align*}
Because $y_k \in S$ for every $k \in \mathbb{N}$, we have $f(y_k) \leq c$ for every $k$, and hence
\begin{align*}
\liminf_{k \to \infty} f(y_k) \leq c.
\end{align*}
Thus $f(y) \leq c$, so $y \in S$. Therefore $S$ is closed.
[claim:The sublevel set $S$ is compact]
The set $S$ is compact.
[/claim]
[proof]
Let $(z_k)_{k \in \mathbb{N}}$ be a sequence in $S$. Since $S \subset \overline{B}(0,R)$, each coordinate sequence $(z_{k,i})_{k \in \mathbb{N}}$ is bounded in $\mathbb{R}$ for every $i \in \{1,\dots,n\}$. Use the fact that every bounded sequence in $\mathbb{R}$ has a convergent subsequence successively on the coordinates: first extract a subsequence along which the first coordinate converges, then extract from that subsequence one along which the second coordinate converges, and continue through the $n$-th coordinate. This gives a subsequence $(z_{k_j})_{j \in \mathbb{N}}$ and [real numbers](/page/Real%20Numbers) $z_{*,1},\dots,z_{*,n}$ such that $z_{k_j,i} \to z_{*,i}$ for every $i \in \{1,\dots,n\}$.
Define $z_* := (z_{*,1},\dots,z_{*,n}) \in \mathbb{R}^n$. Coordinatewise convergence in $\mathbb{R}^n$ is equivalent to Euclidean convergence, so $z_{k_j} \to z_*$. Since $S$ is closed and each $z_{k_j}$ lies in $S$, the limit $z_*$ lies in $S$. Thus every sequence in $S$ has a subsequence converging to a point of $S$. In metric spaces, compactness is equivalent to this [sequential compactness](/page/Sequential%20Compactness) property, so $S$ is compact.
[/proof][/step]