I have to prove with the pumping lemma that $L$ is not regular or to give a regular expression for that.
Let $L$ be all combinations of commands such that in the complete drawn result no line is drawn above another. At the starting point the pen is down.
The turtle graphic is created by the following commands:
u - pen up
d - pen down
g - go
l - move 10° left
r - move 10° right
I think think that the language is not regular because I think there is an expression that crosses a line for a big enough $n \in \mathbb N$.
Question: How can I find an expression that helps me to prove that this language is not regular to use the pumping lemma?
And if the language is regular, what technique should I use to find a regular expression?
By "crosses a line" do you mean draws a line (with pen down) and later that line is touched by another line (also with pen down)
yes, it means that @RickDecker $\endgroup$ – jublikon Jun 6 '17 at 15:19