On the Formal Metatheory of the Pure Type Systems using One-sorted Variable Names and Multiple Substitutions
Urciuoli
We develop formal theories of conversion for Church-style lambda-terms with Pi-types in first-order syntax using one-sorted variables names and Stoughton's multiple substitutions. We then formalize the Pure Type Systems along some fundamental metatheoretic properties: weakening, syntactic validity, closure under alpha-conversion and substitution. Finally, we compare our formalization with others related. The whole development has been machine-checked using the Agda system. Our work demonstrates that the mechanization of dependent type theory by using conventional syntax and without identifying alpha-convertible lambda-terms is feasible.
academic
On the Formal Metatheory of the Pure Type Systems using One-sorted Variable Names and Multiple Substitutions
This paper develops a formal theory of conversion for Church-style λ-terms with Π types using first-order syntax, one-sorted variable names, and Stoughton's multiple substitutions. It then formalizes Pure Type Systems (PTS) and establishes fundamental metatheoretic properties: weakening, syntactic validity, closure under α-conversion, and closure under substitution. Finally, it compares related formalization work. The entire development has been mechanically verified using the Agda proof assistant. The work demonstrates the feasibility of mechanizing dependent type theory using traditional syntax without identifying α-convertible λ-terms.
Formalization Challenges: Mechanical verification of dependent type theory has been challenging, particularly when handling variable binding and α-equivalence
Syntax Selection Dilemma: Existing approaches typically employ de Bruijn indices or dual-sorted variable names to avoid name capture issues, but these diverge from actual implementations
Substitution Operation Complexity: Traditional unary substitution definitions are non-structurally recursive, requiring complex induction methods in mechanized proofs
Extended Stoughton Substitution Framework: Extended the original pure λ-calculus framework to support Church-style λ-abstraction and Π types
Improved α-Conversion Definition: Proposed a new α-conversion definition enabling key lemmas to be proven through structural induction
Formalized PTS Metatheory: Mechanically verified fundamental metatheoretic properties of PTS, including weakening, syntactic validity, α-conversion closure, and substitution closure
Equivalence Proofs: Established the equivalence between infinite rule systems using generalized induction and standard finite rule systems
Complete Agda Implementation: Provided a complete mechanized verification with approximately 3000 lines of code
The paper cites 31 important references, primarily including:
Stoughton (1988): Original theory of multiple substitutions
Barendregt (1992): Classical theory of PTS
McKinna & Pollack (1993, 1999): PTS formalization in LEGO
Barras & Werner: CC formalization in Coq
Urban et al. (2011): LF metatheory using Nominal Isabelle
Tasistro et al. (2015): Original work on Stoughton substitution framework
Overall Assessment: This is a high-quality theoretical computer science paper making important contributions to mechanized verification of dependent type theory. The paper's technical innovations are clear, the implementation is complete, and it provides valuable theoretical foundation and practical experience for subsequent research in this field.