{aⁿbⁿcᵐ} is context-free #
The language lang_eq_any = {aⁿbⁿcᵐ | n,m ∈ ℕ} is context-free, presented as the
concatenation of the context-free factors {aⁿbⁿ} and {cᵐ}.
lang_aux_ab (the {aⁿbⁿ} factor over Fin 3) and its context-freeness are exposed
because the witness {aⁿbᵐcᵐ} reuses them via a letter permutation; see
Langlib.Classes.ContextFree.Examples.AnBmCm.
The {aⁿbⁿ} factor over the Fin 3 alphabet.
Equations
- lang_aux_ab w = ∃ (n : ℕ), w = List.replicate n a_ ++ List.replicate n b_