I'm doing the practice questions in my text book so I can gain some experience, but this question keeps getting the better of me.
Let $\Sigma = \{1 , \#\}$ and let $Y=\{w \mid w = x_1\#x_2\#...\#x_k, k \ge 0, x_i ∈ 1^* , i \neq j \rightarrow x_i \neq x_j \}$. Prove that Y is not regular. Can you please help?
Hint: Use the Pumping Lemma for regular languages. Assume that $Y$ is regular and has pumping constant $p$. We must then have that whenever $s \in Y$ and $|s| \geq p$, we can write $s = xyz$ for some strings $x$, $y$ and $z$ such that
Now consider the string $s$ given by
$$1^p \# 1^{p-1} \# 1^{p-2} \ldots 1^2 \# 1$$
Clearly, $s \in Y$. Where should $y$ be? Can condition 3 hold for all $i \geq 0$?