A Mechanized Proof of the Michaelis–Harkema Equivalence Theorem in Lean 4: Weak Equivalence of Minimalist Grammars and Linear Non-Erasing MCFGs
We present a complete, self-contained, machine-checked formalization in pure Lean 4.36.0 (zero external dependencies, zero sorry, zero custom axioms) of the Michaelis–Harkema Equivalence Theorem: the class of string languages generated by finite chain-based Minimalist Grammars (Stabler 1997; Stabler & Keenan 2003) coincides with that generated by finite Linear Non-Erasing Multiple Context-Free Grammars (equivalently Linear Context-Free Rewriting Systems, LCFRS; Seki et al. 1991; Vijay-Shanker, Weir & Joshi 1987). Spanning 6,788 lines across seven Lean 4 modules, the development formalizes Michaelis's forward compilation (MG → MCFG) via canonical licensee-indexed slot profiles, standalone arbitrary-rank LCFRS binarization into rank ≤ 2 normal form, and Michaelis's three-bank converse compiler (MCFG → MG) verified via an 18-constructor expression invariant and finite-map mover invariant. A separate module (MGOriginal.lean) formalizes the literal rules of Stabler & Keenan (2003) and proves language equivalence with the SMC-invariant presentation. Both compilers are exercised on {a^n b^n c^n | n ≥ 1} and audited via Lean's kernel #print axioms. Source code repository: https://github.com/bocchitherock888-ux/lean-grammar-equivalences (archived at DOI: 10.5281/zenodo.24622877). Keywords: Lean 4, formal linguistics, Minimalist Grammars, multiple context-free grammar, LCFRS, mildly context-sensitive languages, interactive theorem proving
Authors
- bocchitherock888-ux
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24623375
- Primary Topic
- semigroups and automata theory
- Type
- preprint