arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.09162cs.LO
收藏

变量绑定中语法和操作语义的签名和模型

Signatures and models for syntax and operational semantics in the presence of variable binding

Ambroise Lafont

摘要:

本文研究了程序设计语言的语法和操作语义的规范和构造。我们使用签名的一般概念来指定给定类别的对象作为合适类别的模型中的初始对象。这种表征,在初始语义学的精神中,给出了递归原则的理由。带有变量绑定的语言,例如纯λ演算,是通过经典代数签名指定的集合范畴上的单子。第一次扩展语法与方程,我们认为是这些代数签名的继承人。例如,它们允许指定二元交换操作。但有些方程,如结合论,似乎仍然遥不可及。因此,我们介绍的概念2签名,包括两个部分:规范的操作,通过一个通常的签名,如前所述,和一组方程。我们确定的代数2-签名类的存在相关联的语法是有保证的。最后,我们给出了一种程序设计语言(如λ演算)的操作语义的规范化描述。为此,我们引入了约简单子及其签名的概念,并将其推广为运算单子的概念。

英文摘要:

This thesis deals with the specification and construction of syntax and operational semantics of a programming language. We work with a general notion of signature for specifying objects of a given category as initial objects in a suitable category of models.This characterization, in the spirit of Initial Semantics, gives a justification of the recursion principle. Languages with variable binding, such as the pure lambda calculus, are monads on the category of sets specified through the classical algebraic signatures. The first extensions to syntaxes with equations that we consider are quotients of these algebraic signatures. They allow, for example, to specify a binary commutative operation. But some equations, such as associativity, seem to remain out of reach. We thus introduce the notion of 2-signature, consisting in two parts: a specification of operations through a usual signature as before, and a set of equations among them. We identify the class of algebraic 2-signatures for which the existence of the associated syntax is guaranteed. Finally, we takle the specification of the operational semantics of a programming language such as lambda calculus with beta-reduction. To this end, we introduce the notion of reduction monad and their signatures, then we generalize them to get the notion of operational monad.

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

↑