Let B be the language {0n1n | n >= 0} i.e. 0 and 1 has to have the same length
Let s in B be the string 0p1p
Assume B is regular so s must be divisible to s = xyz where xyiz i>=0 is still in B (Condition 1 of three conditions of pumping lemma).
Consider the case xyiz where i = 2 so xyyz: Pump y with all 0s
xyyz has more 0s and 1s so it cannot be in B. Therefore, B is not regular.
I am having a hard time understanding that if y is all 0s in xyyz, then # of 0s > # of 1s
Why can't |xyy| = |z| which then it would have the same # of 0s and 1s?