arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.03740cs.LOcs.PL
收藏

可呈现的签名与初始语义

Presentable signatures and initial semantics

Benedikt Ahrens, André Hirschowitz, Ambroise Lafont, Marco Maggesi

AI总结:

本文提出可呈现签名框架,用于指定数据类型和编程语言语法,通过初始语义生成语法,涵盖变量绑定并支持组合构造,且经计算机验证。

摘要:

我们提出了一种用于指定和推理数据类型、编程语言及逻辑演算语法的装置。更精确地说,我们研究了一种用于指定语法构造的“签名”概念。秉承初始语义的精神,我们将“由签名生成的语法”定义为——若存在——某个合适的模型范畴中的初始对象。在我们的框架中,签名关联语法的存在性并非自动保证。我们通过签名的呈现概念,识别出一大类确实能生成语法的签名。我们的(可呈现的)签名涵盖了经典代数签名(即带有变量绑定语言的签名,如纯lambda演算),并将其扩展以包含其他几个重要的语法构造实例。我们关于签名、语法和呈现的概念的一个关键特征是它们高度组合,即复杂示例可通过粘合更简单的示例获得。此外,通过初始语义方法,我们的框架在期望的项代数之外,还提供了行为良好的替换以及与该语法相关的归纳和递归原理。本文建立在Hirschowitz-Maggesi先前尝试的思想之上,而该尝试又直接受到Ghani-Uustalu-Hamana和Matthes-Uustalu早期工作的启发。论文中呈现的主要结果已在UniMath系统内通过计算机验证。

英文摘要:

We present a device for specifying and reasoning about syntax for datatypes, programming languages, and logic calculi. More precisely, we study a notion of "signature" for specifying syntactic constructions. In the spirit of Initial Semantics, we define the "syntax generated by a signature" to be the initial object -- if it exists -- in a suitable category of models. In our framework, the existence of an associated syntax to a signature is not automatically guaranteed. We identify, via the notion of presentation of a signature, a large class of signatures that do generate a syntax. Our (presentable) signatures subsume classical algebraic signatures (i.e., signatures for languages with variable binding, such as the pure lambda calculus) and extend them to include several other significant examples of syntactic constructions. One key feature of our notions of signature, syntax, and presentation is that they are highly compositional, in the sense that complex examples can be obtained by gluing simpler ones. Moreover, through the Initial Semantics approach, our framework provides, beyond the desired algebra of terms, a well-behaved substitution and the induction and recursion principles associated to the syntax. This paper builds upon ideas from a previous attempt by Hirschowitz-Maggesi, which, in turn, was directly inspired by some earlier work of Ghani-Uustalu-Hamana and Matthes-Uustalu. The main results presented in the paper are computer-checked within the UniMath system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑