The ε-NA of a regular expression #
Thompson's construction [Thompson1968]: every regular expression is sent to an εNA with finitely
many states that accepts exactly its language, by assembling the automata of
Cslib.Computability.Automata.EpsilonNA.ThompsonConstruction.
Main definitions #
RegularExpression.State r: the states of the automaton ofr.RegularExpression.toEpsilonNA r: the automaton ofr.
Main statements #
RegularExpression.language_toEpsilonNA: the automaton ofraccepts exactlyr.matches'.
References #
- [K. Thompson, Regular expression search algorithm][Thompson1968]
The states of the automaton of a regular expression.
Instances For
The automaton of a regular expression has finitely many states.
Thompson's construction: the εNA of a regular expression.
@[simp]
The automaton of a regular expression accepts exactly its language.