I want to practice proving a language is regular or not using the MyHill-Nerode theorm, but for that I need to be able to describe the classes. Here's my practice attempt:
For the language $$L=\{\omega \in \{a,b\}^* \colon \omega \text{ contains at most 1 } 'a' \}$$ The classes are $$M_1=\{\omega \in b^*\}$$ $$M_2=\{\omega \in b^*ab^*\}$$ $$M_3=\{\omega \in b^*ab^*a(a\cup b)^*\}$$
Now, the way I understand it I need to prove 2 things:
- For each $u,v\in M_i (1\le i\le 3)$ and for each $x\in \Sigma^*$ $$ux\in L \iff vx\in L$$
- There exists $u\in M_i,v\in M_j(1\le i \neq j \le 3)$ and $x\in \Sigma^*$ such that $$ux\in L,vx\notin L$$
Am I right about how I described the classes, and about how to prove it?
Beside that, your EC are Ok, indeed you need 3 classes in this case
– Roi Divon Jun 29 '14 at 11:44