[step:Show each $A_i$ is either in $V$ or in $V'$, with a unique transition point]
Classify each index $i \in \{0, 1, \dots, N - 1\}$ as:
- a **$V$-index** if $A_i \in V$, equivalently if the rule applied at step $i$ has left-hand side in $V$;
- a **$V'$-index** if $A_i \in V'$.
Every index falls into exactly one class because $V$ and $V'$ are disjoint (first step, after the renaming reduction).
[claim:The set of $V$-indices is a prefix $\{0, 1, \dots, k\}$ of $\{0, \dots, N - 1\}$ for some $k$]
We prove that once an index is a $V'$-index, all subsequent indices are $V'$-indices. Equivalently: if $A_i \in V'$ then $A_{i+1} \in V'$ (for $i < N - 1$).
Suppose $A_i \in V'$. Then the rule applied at step $i$ has $A_i \in V'$ as left-hand side; by inspection, this rule must lie in $P'$ (rules of $P^\star$ have left-hand side in $V$ — they were derived from $P$-rules, whose left-hand sides lie in $V$ by construction of $G$). Hence the rule is either $A_i \to a \in P'$ (terminal) or $A_i \to a B_i \in P'$ (nonterminal), with $B_i \in V'$ because $G'$ has variables $V'$. In the terminal case, $\tau_{i+1} = w_i a \in \mathbb{W}$ has no variable, so $i = N - 1$ (there is no $A_{i+1}$ to consider, and by the [Structure of Terminal Derivations](/theorems/1787) theorem the terminal step is the last). In the nonterminal case, $A_{i+1} = B_i \in V'$, so $i+1$ is a $V'$-index.
Combining, if index $i$ is a $V'$-index, either $i = N - 1$ (no successor to worry about) or $A_{i+1} \in V'$. By induction, all indices $\geq i$ are $V'$-indices.
[/claim]
[proof]
See the case analysis in the claim: a $V'$-index is followed either by termination or by another $V'$-index, by inspection of the two rule types of $P'$.
[/proof]
[claim:The set of $V$-indices is nonempty]
The initial variable is $A_0 = S \in V$ (since the first sentential form is $\tau_0 = S = \varepsilon S$, with $w_0 = \varepsilon$ and $A_0 = S$). Hence $0$ is a $V$-index.
[/claim]
[proof]
Direct from $S \in V$.
[/proof]
Combining the two claims: the $V$-indices form $\{0, 1, \dots, k\}$ for some $0 \leq k \leq N - 1$, and the $V'$-indices form $\{k+1, k+2, \dots, N - 1\}$ (possibly empty if $k = N - 1$). We show below that $k < N - 1$, i.e., the transition to $V'$ occurs strictly before the end.
[/step]