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
Linto Dafny.Note that in Dafny, the type
stringis defined to beseq<char>. So we can use the usual built-in methods of manipulating sequences on strings.