There is a question in the book "Automata Theory and Applications" that talks about the language
How can I define such a language in Dafny?
There is a question in the book "Automata Theory and Applications" that talks about the language
How can I define such a language in Dafny?
Here is a straightforward transcription of the definition of
L
into Dafny.Note that in Dafny, the type
string
is defined to beseq<char>
. So we can use the usual built-in methods of manipulating sequences on strings.