🤖 AI Summary
Traditional substitution definitions for languages with binding structure—such as the simply-typed λ-calculus—redundantly separate substitution from renaming, leading to duplicated reasoning in categorical semantics. Method: We propose a lightweight, unified approach by constructing an algebraic structure isomorphic to the initial Categories with Families (CwF), thereby integrating substitution and renaming into a single semantic mechanism. Our development is formalized in Agda using dependent types. Contribution/Results: We present a concise, reusable substitution system and rigorously verify its adherence to key categorical properties—including categorical consistency, associativity, and unit laws. This approach eliminates structural redundancy in both definition and proof, significantly improving the efficiency of formal verification. It provides a more principled algebraic foundation for semantic modeling of binding syntax.
📝 Abstract
Defining substitution for a language with binders like the simply typed $λ$-calculus requires repetition, defining substitution and renaming separately. To verify the categorical properties of this calculus, we must repeat the same argument many times. We present a lightweight method that avoids repetition and that gives rise to a simply typed category with families (CwF) isomorphic to the initial simply typed CwF. Our paper is a literate Agda script.