Variable binding and substitution for (nameless) dummies
André Hirschowitz, Tom Hirschowitz, Ambroise Lafont, Marco Maggesi
TL;DR
This paper develops a simple, set-based initial-algebra semantics for syntax with variable binding using nameless De Bruijn dummies. It formulates De Bruijn monads and binding signatures, proving the existence of an initial De Bruijn S-algebra that models substitution, and shows this framework aligns with Fiore–Plotkin–Turi’s presheaf approach when restricted to well-behaved objects. It further provides two abstract reinterpretations: a strength-based view identifying binding signatures with structurally strong endofunctors (Sigma-monoids) and a module-based view via parametric De Bruijn modules, both yielding category isomorphisms with S-DBAlg. The theory extends to simply-typed languages through De Bruijn T-monads, supports equations (via De Bruijn equational theories), and is mechanised in HOL Light and Coq. Together, these results offer a robust, implementation-friendly foundation for syntax with binding and substitution, bridging traditional approaches and enabling practical reasoning in proof assistants.
Abstract
By abstracting over well-known properties of De Bruijn's representation with nameless dummies, we design a new theory of syntax with variable binding and capture-avoiding substitution. We propose it as a simpler alternative to Fiore, Plotkin, and Turi's approach, with which we establish a strong formal link. We also show that our theory easily incorporates simple types and equations between terms.
