[step:Construct a minimizer of the Dirichlet energy over the obstacle set]Define the functional
\begin{align*}
J: H^1_0(\Omega) \to \mathbb{R}, \qquad J[v] := \frac{1}{2}\int_\Omega |\nabla v(x)|^2\,d\mathcal{L}^n(x)-f(v).
\end{align*}
The assumed [Poincare Inequality with Zero Trace](/theorems/76) gives a constant $C_P>0$ such that
\begin{align*}
\|w\|_{L^2(\Omega)} \leq C_P\|\nabla w\|_{L^2(\Omega)}
\end{align*}
for every $w \in H^1_0(\Omega)$. Thus $\|\nabla w\|_{L^2(\Omega)}$ is an equivalent Hilbert norm on $H^1_0(\Omega)$.
Since $f \in H^{-1}(\Omega)=(H^1_0(\Omega))^*$, define its operator norm by
\begin{align*}
\|f\|_{H^{-1}(\Omega)} := \sup\{|f(w)| : w \in H^1_0(\Omega), \ \|w\|_{H^1_0(\Omega)} \leq 1\}.
\end{align*}
Using boundedness of $f$ and the equivalence of norms, there is a constant $C_f>0$ such that
\begin{align*}
|f(w)| \leq C_f\|\nabla w\|_{L^2(\Omega)}
\end{align*}
for every $w \in H^1_0(\Omega)$. Therefore
\begin{align*}
J[w] \geq \frac{1}{2}\|\nabla w\|_{L^2(\Omega)}^2-C_f\|\nabla w\|_{L^2(\Omega)}.
\end{align*}
It follows that $J[w] \to \infty$ whenever $\|\nabla w\|_{L^2(\Omega)} \to \infty$, so $J$ is coercive on $K_\psi$. More explicitly, define the polynomial $q:[0,\infty)\to\mathbb{R}$ by
\begin{align*}
q(r):=\frac{1}{2}r^2-C_f r.
\end{align*}
Since $q$ is bounded below on $[0,\infty)$, $J$ is bounded below on $K_\psi$. Since $K_\psi\neq\varnothing$, choosing any $v_*\in K_\psi$ gives the finite comparison value $J[v_*]\in\mathbb{R}$, and therefore the infimum $\inf_{v\in K_\psi}J[v]$ is finite.
Let $(u_k)_k$ be a minimizing sequence in $K_\psi$, so
\begin{align*}
\lim_{k \to \infty} J[u_k] = \inf_{v \in K_\psi}J[v].
\end{align*}
The coercivity estimate implies that $(u_k)_k$ is bounded in $H^1_0(\Omega)$. Since $H^1_0(\Omega)$ is a Hilbert space and hence reflexive, the weak [compactness theorem](/theorems/2748) for bounded sequences in reflexive Banach spaces gives a subsequence, still denoted $(u_k)_k$, and an element $u \in H^1_0(\Omega)$ such that $u_k \rightharpoonup u$ weakly in $H^1_0(\Omega)$. Because $K_\psi$ is norm-closed and convex, the Hahn-Banach separation argument for closed convex subsets of Hilbert spaces implies that $K_\psi$ is weakly closed; hence $u \in K_\psi$. These are standard functional-analytic consequences of weak compactness in reflexive spaces, Hahn-Banach separation, and weak lower semicontinuity of Hilbert norms.
The map
\begin{align*}
w \mapsto \frac{1}{2}\int_\Omega |\nabla w(x)|^2\,d\mathcal{L}^n(x)
\end{align*}
is weakly lower semicontinuous on $H^1_0(\Omega)$ by the weak lower semicontinuity of the squared Hilbert norm, applied to the Hilbert norm $w\mapsto\|\nabla w\|_{L^2(\Omega)}$. The functional $f$ is weakly continuous because it is a bounded linear functional, so $u_k\rightharpoonup u$ implies $f(u_k)\to f(u)$. Hence
\begin{align*}
J[u] \leq \liminf_{k \to \infty}J[u_k] = \inf_{v \in K_\psi}J[v].
\end{align*}
Since $u \in K_\psi$, equality holds, and $u$ minimizes $J$ over $K_\psi$.[/step]