RE Closure Under Kleene Star #
This file proves that the class of recursively enumerable languages is closed under Kleene star.
The proof constructs an unrestricted grammar for L* given an unrestricted grammar for L,
following the construction from the Lean 3 proof RE_star.lean.
Grammar Construction #
Given a grammar g for L with nonterminals N and start symbol S:
- New nonterminals:
Z(start),H(separator),R(scanner), plus lifted originals - Rules:
Z → Z S H(generate another copy)Z → R H(start terminal scanning)R H → R(scanner jumps over separator)R H → ε(scanner+separator deleted at end)- All original rules (with nonterminals lifted)
R t → t Rfor each terminalt(scanner moves left past terminals)
Main declarations #
RE_of_star_RE— the main closure theorem
The class of recursively enumerable languages is closed under the Kleene star.
The class of recursively enumerable languages is closed under Kleene star.