[step:Pass the viscous entropy inequality up to the initial boundary]
It remains to recover the initial datum in the entropy formulation. Fix the same constant state $k\in\mathbb R$ as above, and let
\begin{align*}
\Psi: [0,\infty)\times\mathbb{R}\to[0,\infty)
\end{align*}
be a function in $C_c^\infty([0,\infty)\times\mathbb{R})$. Repeating the smooth entropy calculation for $\eta_{k,\delta}$ on the half-space and integrating by parts in time gives
\begin{align*}
\int_{(0,\infty)\times\mathbb{R}} \eta_{k,\delta}(u_\varepsilon)\partial_t\Psi + q_{k,\delta}(u_\varepsilon)\partial_x\Psi \, d\mathcal{L}^2(t,x)
+\int_{\mathbb{R}}\eta_{k,\delta}(u_{0,\varepsilon}(x))\Psi(0,x)\,d\mathcal L^1(x)
\geq \varepsilon\int_{(0,\infty)\times\mathbb{R}}\eta_{k,\delta}'(u_\varepsilon)\partial_xu_\varepsilon\partial_x\Psi\,d\mathcal L^2(t,x).
\end{align*}
The boundary term has the displayed positive sign because $\Psi$ is supported in $t\geq0$ and the time [integration by parts](/theorems/210) contributes the initial trace at $t=0$. Let $K=\operatorname{supp}\Psi$. Since $|\eta_{k,\delta}'|\leq1$, the same Cauchy-Schwarz estimate used for open-time tests gives
\begin{align*}
\left|\varepsilon\int_{(0,\infty)\times\mathbb{R}}\eta_{k,\delta}'(u_\varepsilon)\partial_xu_\varepsilon\partial_x\Psi\,d\mathcal L^2(t,x)\right|
\leq \varepsilon^{1/2}\left(\varepsilon\int_K|\partial_xu_\varepsilon|^2\,d\mathcal L^2(t,x)\right)^{1/2}
\left(\int_K|\partial_x\Psi|^2\,d\mathcal L^2(t,x)\right)^{1/2}.
\end{align*}
The local viscous energy estimate applies to this compact set $K\subset[0,\infty)\times\mathbb R$, so the right-hand side tends to $0$ as $\varepsilon\to0$, uniformly in $\delta$. For fixed $\delta>0$, the uniform parabolic bound on $\operatorname{supp}\Psi\cap((0,\infty)\times\mathbb R)$ and the local convergence $u_\varepsilon\to u$ imply convergence of the two interior entropy terms exactly as in the open-time step. Also, since $\eta_{k,\delta}$ is Lipschitz with Lipschitz constant at most $1$ and $u_{0,\varepsilon}\to u_0$ in $L^1(\mathbb R)$,
\begin{align*}
\eta_{k,\delta}(u_{0,\varepsilon})\to\eta_{k,\delta}(u_0)
\end{align*}
in $L^1(\mathbb R)$. Passing first $\varepsilon\to0$ and then $\delta\to0$ therefore gives
\begin{align*}
\int_{(0,\infty)\times\mathbb{R}} |u-k|\partial_t\Psi + \operatorname{sgn}(u-k)(f(u)-f(k))\partial_x\Psi \, d\mathcal{L}^2(t,x) + \int_{\mathbb{R}} |u_0(x)-k|\Psi(0,x) \, d\mathcal{L}^1(x)\ge0.
\end{align*}
This is the Kruzhkov entropy inequality with the initial boundary term.
[/step]