[guided]Assume that $u$ satisfies the classical equation pointwise:
\begin{align*}
F(t,x,u(t,x),\partial_t u(t,x),\nabla_x u(t,x)) = 0
\end{align*}
for every $(t,x) \in Q$.
We must prove the two viscosity inequalities. Fix an arbitrary point $(t_0,x_0) \in Q$, an arbitrary open neighbourhood $V \subset \mathbb{R} \times \mathbb{R}^n$ of $(t_0,x_0)$, and an arbitrary $C^1$ test function
\begin{align*}
\phi: V \to \mathbb{R}.
\end{align*}
Because $Q$ is open and $V$ is open, the contact point is an interior point of $Q \cap V$. Thus there is a number $\rho > 0$ such that the Euclidean ball $B((t_0,x_0),\rho)$, defined by
\begin{align*}
B((t_0,x_0),\rho) = \{(s,y) \in \mathbb{R} \times \mathbb{R}^n : |(s,y)-(t_0,x_0)| < \rho\},
\end{align*}
satisfies
\begin{align*}
B((t_0,x_0),\rho) \subset Q \cap V.
\end{align*}
This reduction to an actual open ball is what lets us use one-variable derivatives along the Euclidean coordinate directions $(t,x)$.
Define the difference function
\begin{align*}
w: B((t_0,x_0),\rho) \to \mathbb{R}
\end{align*}
by
\begin{align*}
w(t,x) = u(t,x)-\phi(t,x).
\end{align*}
Since both $u$ and $\phi$ are $C^1$ on this ball, $w$ is $C^1$ there.
Suppose first that $\phi$ touches $u$ from above in the viscosity sense, meaning that $u-\phi$ has a local maximum at $(t_0,x_0)$ relative to $Q \cap V$. By shrinking $\rho$ if needed, this becomes a local maximum of $w$ on the open ball $B((t_0,x_0),\rho)$. We now prove directly that all first partial derivatives vanish at the contact point. For the time direction, the one-variable map $s \mapsto w(t_0+s,x_0)$ is $C^1$ for all sufficiently small $s$ and has a local maximum at $s=0$, so its derivative at $0$ is zero. For each spatial index $i \in \{1,\dots,n\}$, the one-variable map $s \mapsto w(t_0,x_0+s e_i)$ is also $C^1$ for all sufficiently small $s$ and has a local maximum at $s=0$, where $e_i \in \mathbb{R}^n$ is the $i$-th coordinate vector. Hence
\begin{align*}
\partial_t w(t_0,x_0) = 0
\end{align*}
and, for each spatial index $i \in \{1,\dots,n\}$,
\begin{align*}
\partial_{x_i} w(t_0,x_0) = 0.
\end{align*}
Using the definition $w=u-\phi$, this gives
\begin{align*}
\partial_t u(t_0,x_0)-\partial_t \phi(t_0,x_0) = 0
\end{align*}
and, for each $i \in \{1,\dots,n\}$,
\begin{align*}
\partial_{x_i}u(t_0,x_0)-\partial_{x_i}\phi(t_0,x_0) = 0.
\end{align*}
Equivalently,
\begin{align*}
\partial_t \phi(t_0,x_0) = \partial_t u(t_0,x_0)
\end{align*}
and
\begin{align*}
\nabla_x \phi(t_0,x_0) = \nabla_x u(t_0,x_0).
\end{align*}
Now evaluate the assumed classical equation at the contact point $(t_0,x_0)$:
\begin{align*}
F(t_0,x_0,u(t_0,x_0),\partial_t u(t_0,x_0),\nabla_x u(t_0,x_0)) = 0.
\end{align*}
Because the first derivatives of $u$ and $\phi$ agree at the contact point, this is the same as
\begin{align*}
F(t_0,x_0,u(t_0,x_0),\partial_t \phi(t_0,x_0),\nabla_x \phi(t_0,x_0)) = 0.
\end{align*}
In particular the left-hand side is less than or equal to $0$, which is exactly the viscosity subsolution inequality.
The supersolution inequality is obtained from the identical coordinate-direction argument at a local minimum. If $u-\phi$ has a local minimum at $(t_0,x_0)$, then the same function $w=u-\phi$ has an interior local minimum after restricting to a sufficiently small ball. Applying the preceding one-variable argument to $s \mapsto w(t_0+s,x_0)$ and to $s \mapsto w(t_0,x_0+s e_i)$ for each spatial index gives
\begin{align*}
\partial_t \phi(t_0,x_0) = \partial_t u(t_0,x_0)
\end{align*}
and
\begin{align*}
\nabla_x \phi(t_0,x_0) = \nabla_x u(t_0,x_0).
\end{align*}
Substituting these equalities into the classical equation gives
\begin{align*}
F(t_0,x_0,u(t_0,x_0),\partial_t \phi(t_0,x_0),\nabla_x \phi(t_0,x_0)) = 0.
\end{align*}
In particular the left-hand side is greater than or equal to $0$, which is the viscosity supersolution inequality. Since the point and test function were arbitrary, $u$ is both a viscosity subsolution and a viscosity supersolution, hence a viscosity solution.[/guided]