A Mechanized Proof of Pentus's Theorem and Lambek Interpolation in Lean 4: Context-Freeness of Lambek Categorial Grammars via Concrete Free Groups
In 1963, Chomsky conjectured that categorial grammars based on the associative Lambek calculus L (Lambek 1958) generate only context-free languages; thirty years later, Pentus (1993) settled the conjecture in the affirmative. Together with the converse inclusion, which was known earlier, this shows that Lambek grammars generate precisely the ε-free context-free languages. We present a complete, self-contained mathematical exposition and its machine-checked formalization in pure Lean 4.36.0 core (zero Mathlib, zero external libraries, zero sorry, zero custom axioms), spanning 2,369 lines across seven modules inside the FormalLinguistics library. We work from Kanazawa's (2018) adaptation of Pentus's method to the Lambek calculus with brackets, specialised to the bracket-free calculus, and formalize: (i) the full Lambek calculus L with product, language-model soundness, and the easy inclusion via the 2-Greibach normal form lexicon of our companion Bar-Hillel–Gaifman–Shamir development (Lambek.lean); (ii) the cut-free atomic-axiom calculus and cut admissibility (LambekCore.lean, LambekCut.lean); (iii) thin sequents, in which every primitive type occurs at most twice (LambekThin.lean); (iv) Roorda–Pentus interpolation for L with bounds on primitive-type occurrences (LambekInterpolation.lean, proved without Classical.choice); (v) a Mathlib-free concrete free group of signed words with a normalizer, soundness of the free-group interpretation, and Pentus's free-group lemma (LambekFreeGroup.lean); and (vi) binary reduction, finite context-free grammar extraction, Pentus's theorem for grammars with a primitive distinguished type (lambek_to_cfg), and the full Chomsky–Pentus equivalence (chomsky_pentus) (LambekPentus.lean). Every headline theorem is audited with Lean's #print axioms command. Source code repository: https://github.com/bocchitherock888-ux/lean-grammar-equivalences (v2.1 archived at DOI: 10.5281/zenodo.24626843). Keywords: Lean 4, Lambek calculus, Pentus's theorem, Chomsky's conjecture, interpolation theorem, cut elimination, free groups, context-free grammars, 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.24627019
- Primary Topic
- Logic, programming, and type systems
- Type
- preprint