In computer science, in particular in formal language theory, the pumping lemma for context-free languages, also known as the Bar-Hillel lemma, is a lemma that gives a property shared by all context-free languages and generalizes the pumping lemma for regular languages. The pumping lemma can be used to construct a proof by contradiction that a specific language is not context-free. Conversely, the pumping lemma does not suffice to guarantee that a language is context-free; there are other necessary conditions, such as Ogden's lemma, or the Interchange lemma. If a language is context-free, then there exists some integer (called a "pumping length") such that every string in that has a length of or more symbols (i.e. with ) can be written as with substrings and , such that
Viktor Kuncak, Jad Hamza, Romain Edelmann
Marie-Valentine Renée Agnès Florin, Anjali Devi Vanapilli Nursimulu
Viktor Kuncak, Mikaël Mayer, Jad Hamza