Exercise722: nfa accepts nonempty iff short
ProvedScott1980.Neighborhood.Exercise722.nfa_accepts_nonempty_iff_shortscott1980
The Exercise722 construction uses the nfa accepts nonempty iff short property established by this source lemma. The formal statement records the complete hypotheses and conclusion.
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}
variable {σ : Type} [Fintype σ] {M : NFA Bool σ}Formal statement
theorem Scott1980.Neighborhood.Exercise722.nfa_accepts_nonempty_iff_short :
M.accepts.Nonempty ↔ ∃ w, w ∈ wordsUpTo (Fintype.card σ) ∧ w ∈ M.accepts := by sorrySource