I have had some difficulties understanding proofs that a language is not regular using the Pumping Lemma, and now I need to prove that the following language
$$A = \{w \mid \text{ w has even length and the first half of w has more 0s than the second half of w} \}$$
is not regular.
I would start by assuming that $A$ is regular, and then I should pick a string in $A$ that for a certain $p$ (pumping length) would contradict the assumptions, i.e. $A$ is regular.
I think I first need to choose a string $s$, which of course must have even length, and the first part of that string must contain more $0$s than the second part. For example, $0001$ would be a string in $A$.
The length of $s$ must be greater or equal to $p$. Moreover, $s$ can be divided into three pieces, like $s = xyz$.
Now, how would I choose $s$? I saw that some proofs make $s$ depend on $p$. Is this strictly necessary, or is this just convenient, and why?
Could you please help me proceeding with the proof?