[step:Show $\mathcal{L}(N) \subseteq \mathcal{L}(G)$ by converting an accepting $N$-run into a $G$-derivation]Conversely, let $w \in \mathcal{L}(N)$, so $H \in \hat{\delta}(S, w)$. Since $H$ has no outgoing transitions ($\delta(H, a) = \varnothing$ for all $a \in \Sigma$), $H$ cannot appear in any intermediate state of a run that is then extended by further letters. Formally:
[claim:If $H \in \hat{\delta}(X, w)$ for some $w \in \Sigma^\star$ and $X \subseteq V$, then there is a sequence of states $A_0, A_1, \dots, A_n, H$ with $A_0 \in X$, $A_1, \dots, A_n \in V$, and $A_{i+1} \in \delta(A_i, a_i)$ for $i < n$, $H \in \delta(A_n, a_n)$, where $w = a_0 a_1 \cdots a_n$]
Write $w = a_0 a_1 \cdots a_n$. Unfolding the definition of $\hat{\delta}$, the condition $H \in \hat{\delta}(X, w)$ is equivalent to the existence of a sequence of states $q_0, q_1, \dots, q_{n+1}$ with $q_0 \in X$, $q_{i+1} \in \delta(q_i, a_i)$ for $i = 0, \dots, n$, and $q_{n+1} = H$. We verify inductively that $q_i \in V$ for $i \leq n$. If $q_i = H$ for some $i \leq n$, then the inductive hypothesis on the length of the remaining suffix would force $q_{i+1} \in \delta(H, a_i) = \varnothing$, a contradiction. Hence $q_i \in V$ for $i \leq n$, and we may take $A_i := q_i$.
[/claim]
[proof]
Unfolding $\hat{\delta}$ and checking that $H$ is a dead-end: if $H$ appeared at an intermediate step, the next transition from $H$ would have to be nonempty, contradicting $\delta(H, a) = \varnothing$.
[/proof]
Apply the claim with $X = \{S\}$: there exists a sequence $A_0, A_1, \dots, A_n \in V$ and the terminal state $H$, with $A_0 = S$, $A_{i+1} \in \delta(A_i, a_i)$ for $i = 0, \dots, n - 1$, and $H \in \delta(A_n, a_n)$, where $w = a_0 a_1 \cdots a_n$.
Decode each transition into a $G$-rule:
- For $i = 0, \dots, n - 1$: $A_{i+1} \in \delta(A_i, a_i)$ and $A_{i+1} \in V$, so by the first clause of $\delta$'s definition, the rule $A_i \to a_i A_{i+1}$ lies in $P$. (The second clause, which would contribute $H \in \delta(A_i, a_i)$, cannot give us $A_{i+1} \in V$ since $A_{i+1} \neq H$.)
- For the final step: $H \in \delta(A_n, a_n)$, so by the second clause of $\delta$'s definition, the rule $A_n \to a_n$ lies in $P$.
Applying these rules in order,
\begin{align*}
S = A_0 \to_G a_0 A_1 \to_G a_0 a_1 A_2 \to_G \cdots \to_G a_0 \cdots a_{n-1} A_n \to_G a_0 \cdots a_{n-1} a_n = w.
\end{align*}
This exhibits a $G$-derivation of $w$ from $S$, so $w \in \mathcal{L}(G)$. Hence $\mathcal{L}(N) \subseteq \mathcal{L}(G)$.[/step]