I need to prove that for an NFA that accepts all languages $L(M)=\{w \in \{a,b\}^* \mid wab \}$ with a suffix of $ab$ needs at least 3 states.
The smallest automata would look like this: $\to(s) \to a \to (a) \to b \to (accepting)$ Abviously you could create a self loop on $(s)$ that accepts $a,b$
I guess for proving it would be sufficient to show that it works with 3 states but not with 2. Can anyone give me a hint on how could I start the proof?