Participants: Eric Osborn (24-924-839), Lu Qiyu (25-927-120), Zhu Haochen (24-919-482)
Task 5

a)
Suppose is regular. Then there is an automaton with . let We consider the words with , which is more than the number of states of . Therefore, there exists with such that
By Lemma 3.3, it follows that for all ,
We choose .
Then , but (because we have ab and ba in this word ())
Contradiction to Lemma 3.3
b)

Task 6

Suppose, for contradiction, that is regular. Then there exists a DFA such that . Let
Since the alphabet contains only one symbol, every state has exactly one outgoing transition. Therefore, when repeatedly reading starting from , some state must eventually be visited twice. Hence the automaton eventually enters a cycle. Let the length of this cycle be . Then
Since is infinite, at least one state in the cycle must be accepting. Otherwise, after entering the cycle no more words could be accepted, and would be finite.
Therefore, once the automaton has entered the cycle, if then also This is because reading another zeros traverses the whole cycle and returns to the same accepting state.
Now, Therefore, we can choose sufficiently large such that and such that is long enough that the automaton has already entered its cyclic part. By the assumption on the gaps,
Since , periodicity of the DFA implies that
But Thus there exists another word in whose length lies strictly between and . This contradicts the fact that and are consecutive words of when ordered by increasing length. Therefore, is not regular