apply Set.ext
α qs : Type
inst✝¹ : DecidableEq α
inst✝ : DecidableEq qs
M : DFA α qs
⊢ Grammar.GeneratedLanguage (toGrammar M) = AcceptedLanguage M
case h
α qs : Type
inst✝¹ : DecidableEq α
inst✝ : DecidableEq qs
M : DFA α qs
⊢ ∀ (x : Word { x // x ∈ (toGrammar M).Z }), x ∈ Grammar.GeneratedLanguage (toGrammar M) ↔ x ∈ AcceptedLanguage M