Skip to content
Tape‑n‑Trace
PracticeSearch 26 tools

Pumping Lemma Game

The lemma is taught as a formula, but it is a two-player game with alternating quantifiers — ∃n, ∀w, ∃xyz, ∀i. You play the ∀ moves, the engine plays the ∃ moves, and it plays to win: it checks every decomposition and plays the one that is hardest to beat.

Prove a language is not regular

You attack. Beat the engine's best decomposition and the proof writes itself.

Defend a regular language

Reverse mode: you claim n and split; the engine attacks. Surviving teaches why the lemma cannot prove regularity.

The CFL variant

w = uvxyz with |vxy| ≤ n — v and y pump together. These languages are not even context-free.