simp [last, fromDerivation, Fintype.wrap, toNFA]
α nt : Type
Z : Finset α
inst✝¹ : DecidableEq α
V : Finset nt
inst✝ : DecidableEq nt
G : RegularGrammar α nt
v✝ : { x // x ∈ G.V }
w✝ : Word { x // x ∈ (toNFA G).Z }
d : RegularDerivation G v✝ w✝
x✝ : { x // x ∈ G.V }
a✝ : { x // x ∈ G.Z }
h_v✝ : RegularProduction.alpha x✝ a✝ ∈ G.productions
h_w✝ : w✝ = [a✝]
⊢ last (fromDerivation G (RegularDerivation.alpha x✝ h_v✝ h_w✝)) ∈ (toNFA G).F
no goals