Here I am going to give a proof that L = {w | w is an element of {0,1}* and w has an even number of 1's} is not regular (even though it is regular) and I would like someone to point out what is wrong with my proof.
This is a regular language because I can construct a Deterministic Finite Automaton that recognizes the language:
Here I choose the string w = 0110
Our pumping length will be p = 3, this satisfies the condition |w| >= p.
The string will be broken up as follows:
x = 0
y = 1
z = 10
this satisfies the condition |y| > 0
as well as |xy| <= p
however, if I pump the string y twice, then we get the string 01110 which is no longer in the language, since we cannot pump y, this is not a regular language.
What is wrong with my proof?