arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1107.5252cs.LOcs.PL
收藏

基于语法和语义的相对单子上的模块

Modules over relative monads for syntax and semantics

Benedikt Ahrens

摘要:

我们给出了一类变量绑定语言的语法和语义的代数刻画。我们引入了一个2-签名的概念:这样的签名不仅指定了语言的术语,而且还指定了这些术语的归约规则。对于任何2-签名$S$,我们关联$S$的“模型”类别。这个范畴有一个初始对象,它整合了由$S$自由生成的项,并配备了根据$S$中给出的不等式的约简。我们将这个初始对象称为由$S$生成的语言。2-签名的模型是从相对单子和这些单子上的模块构建的。通过使用单子,模型-特别是初始模型-配备了一个替换操作,该操作在适当的意义上与归约兼容。初始性定理在证明助手Coq中被形式化,产生一种机器,当被馈送2-签名时,该机器为相关的程序设计语言提供约简关系和经认证的替换。

英文摘要:

We give an algebraic characterization of the syntax and semantics of a class of languages with variable binding. We introduce a notion of 2-signature: such a signature specifies not only the terms of a language, but also reduction rules on those terms. To any 2-signature $S$ we associate a category of "models" of $S$. This category has an initial object, which integrates the terms freely generated by $S$, and which is equipped with reductions according to the inequations given in $S$. We call this initial object the language generated by $S$. Models of a 2--signature are built from relative monads and modules over such monads. Through the use of monads, the models---and in particular, the initial model---come equipped with a substitution operation that is compatible with reduction in a suitable sense. The initiality theorem is formalized in the proof assistant Coq, yielding a machinery which, when fed with a 2-signature, provides the associated programming language with reduction relation and certified substitution.

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

↑