一句话:用范畴论与名义技术为局部无名语法表示建立等式公理与初始代数语义,并证明其范畴等价于有限支撑 M-集拓扑斯。
本文为带绑定子的语法局部无名表示提供新的数学基础,并借鉴名义技术。作者对“变量打开”和“变量关闭”给出等式公理化,证明许多局部无名基础设施可语法无关地定义,包括名称绑定的“移位”函子。该函子作用于对象称为局部无名集合的范畴;移位与和、积组合所得函子的初始代数,在有限情形恢复通常的局部无名语法表示。作者对 Plotkin 绑定签名的每个实例一致构造初始局部无名集合,并举例说明移位函子也适用于语义型局部无名集合。最后证明局部无名集合范畴同构于有限支撑 M-集的已知拓扑斯,其中 M 为可数无限集上的全变换幺半群,并推出文献中若干变量重命名模型范畴彼此等价。
This paper provides a new mathematical foundation for the locally nameless representation of syntax with binders, one informed by nominal techniques. It gives an equational axiomatization of two key locally nameless operations, "variable opening" and "variable closing" and shows that a lot of the locally nameless infrastructure can be defined from that in a syntax-independent way, including crucially a "shift" functor for name binding. That functor operates on a category whose objects we call locally nameless sets . Functors combining shift with sums and products have initial algebras that recover the usual locally nameless representation of syntax with binders in the finitary case. We demonstrate this by uniformly constructing such an initial locally nameless set for each instance of Plotkin's notion of binding signature. We also show by example that the shift functor is useful for locally nameless sets of a semantic rather than a syntactic character. The category of locally nameless sets is proved to be isomorphic to a known topos of finitely supported M-sets, where M is the full transformation monoid on a countably infinite set. A corollary of the proof is that several categories that have been used in the literature to model variable renaming operations on syntax with binders are all equivalent to each other and to the category of locally nameless sets.