# How to pick w for the Pumping lemma if the language has no clear pattern?

I'm trying to understanding using the pumping lemma to prove that a language is not regular. I sort of understand how it works when the language describes strings with a particular form, like in this example, but what do you set w to if there isn't a particular form.

The particular problem I'm trying to prove isn't regular: The language is the set of strings that is composed of 60% or more As and Bs with the alphabet {A, B, C, D}

Because the form of the strings is indeterminate (i.e. it doesn't follow a pattern like a^i b^i, I'm not sure how to divide the strings into a w and x, y, z.

• You have to consider all possible ways of dividing $w$ into $x,y,z$. That's how the pumping lemma works. – Yuval Filmus Mar 17 '16 at 8:01
• Picking w is always a creative step; there is no general recipe. Be careful with words like "indeterminate form" because these have other meaning; you are overstating the issue here in the sense that you have come to rely on features of writing down languages that have nothing to do with the task at hand (overfitting!). That said, can you come up with a sublanguage that has a useful "form"? – Raphael Mar 17 '16 at 8:22

Take $w=C^{2N}A^{3N}$ (or $A^{3N}C^{2N}$) where $N$ is the pumping length and $w$ is a string in your language, and then follow the proof in similar lines as in How to prove that a language is not regular?.
You should prove by yourself that above string $w$ can not be pumped.