Exercise722: nfa accepts nonempty iff
ProvedScott1980.Neighborhood.Exercise722.nfa_accepts_nonempty_iffscott1980
A nonempty accepted language ⟺ some accept state is reachable by reading some word.
Preamble
import Definitions.Def_Scott1980_Neighborhood_Exercise722DFA
import Definitions.Def_Scott1980_Neighborhood_Exercise722Cat
import Definitions.Def_Scott1980_Neighborhood_Exercise722Words
import Definitions.Def_Scott1980_Neighborhood_Exercise722Decide
set_option autoImplicit true
open Scott1980 Scott1980.Neighborhood
open Scott1980.Neighborhood.Exercise722
open scoped Computability
open Sum Set
variable {σ₁ σ₂ : Type}
variable {σ : Type}Formal statement
theorem Scott1980.Neighborhood.Exercise722.nfa_accepts_nonempty_iff (M : NFA Bool σ) :
M.accepts.Nonempty ↔ ∃ s ∈ M.accept, ∃ x, s ∈ M.eval x := by sorrySource