Langlib

Langlib.Classes.ContextFree.Closure.Permutation

Context-Free Closure Under Permutations #

This file specializes bijective terminal renaming to permutations of a fixed alphabet.

Proof idea: a permutation is a terminal bijection whose source and target alphabets coincide, so the result is immediate from context-free closure under bijective terminal renaming.

Main declarations #

@[simp]
theorem CF_of_permute_CF {T : Type} (π : Equiv.Perm T) (L : Language T) :

A language is context-free iff its image under a permutation of terminals is context-free.