2-函子性与初始语义,及其应用
2-Functoriality of Initial Semantics, and Applications
AI总结:
本文研究初始语义在不同单调范畴下的2-范畴结构,探讨变量绑定语言模型的比较与关联,提出通用的递归原理。
摘要:
初始语义旨在建模归纳结构及其性质,并为它们提供尊重这些性质的递归原理。一个普遍的例子是列表的折叠运算符。我们关注的是能够建模具有变量绑定的语言及其替换结构的初始语义,并为其提供安全的替换递归原理。实现具有变量绑定的语言有不同的方法,这取决于上下文和自由变量的表示选择,例如无作用域语法或具有有限或无限上下文的良作用域语法。抽象地说,每种方法对应于选择不同的单向量范畴来建模上下文和绑定,每种选择都会产生不同的“模型”概念对于相同的抽象规范(或“签名”)。在本工作中,我们提供了比较和关联不同选择的单向量范畴所得模型的工具。我们通过展示初始语义在由单向量范畴建模上下文参数化时自然具有2-范畴结构来实现这一点。因此,我们可以通过单向量范畴本身之间的关系来关联不同选择所得的模型。特别是,我们利用我们的结果来关联不同实现——德布鲁因 vs 局部无名,有限 vs 无限上下文——并为简单类型语法提供通用的递归原理。
英文摘要:
Initial semantics aims to model inductive structures and their properties, and to provide them with recursion principles respecting these properties. An ubiquitous example is the fold operator for lists. We are concerned with initial semantics that model languages with variable binding and their substitution structure, and that provide substitution-safe recursion principles. There are different approaches to implementing languages with variable binding depending on the choice of representation for contexts and free variables, such as unscoped syntax, or well-scoped syntax with finite or infinite contexts. Abstractly, each approach corresponds to choosing a different monoidal category to model contexts and binding, each choice yielding a different notion of "model" for the same abstract specification (or "signature"). In this work, we provide tools to compare and relate the models obtained from a signature for different choices of monoidal category. We do so by showing that initial semantics naturally has a 2-categorical structure when parametrized by the monoidal category modeling contexts. We thus can relate models obtained from different choices of monoidal categories provided the monoidal categories themselves are related. In particular, we use our results to relate the models of the different implementation -- de Bruijn vs locally nameless, finite vs infinite contexts -- , and to provide a generalized recursion principle for simply-typed syntax.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。