Formalization of the pumping lemma for context-free languages