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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Mechanized Proof of the Michaelis–Harkema Equivalence Theorem in Lean 4: Weak Equivalence of Minimalist Grammars and Linear Non-Erasing MCFGs

bocchitherock888-ux
Zenodo (CERN European Organization for Nuclear Research)
semigroups and automata theory
preprint

A Mechanized Proof of the Michaelis–Harkema Equivalence Theorem in Lean 4: Weak Equivalence of Minimalist Grammars and Linear Non-Erasing MCFGs

bocchitherock888-ux
preprint en

Abstract

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

Zenodo (CERN European Organization for Nuclear Research)
semigroups and automata theory
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon