通过高阶表示的单子的模块化规范
Modular specification of monads through higher-order presentations
摘要:
在二阶方程逻辑的研究中,Fiore和Hur通过生成绑定结构和方程来研究简单类型语言的表示。对于由绑定签名和一组方程组成的每一对,它们关联一个“模型”类别,并且它们给出一个单子性结果,该结果意味着该类别具有一个初始对象,该初始对象是由该对表示的语言。在目前的工作中,我们提出了一个变种,他们的方法,在他们的单子和模块的中心概念的无类型的设置。更确切地说,我们研究,单子集,介绍通过生成(“高阶”)的操作和方程。我们考虑一个概念的2-签名,它允许指定一个单子与一个家庭的绑定操作服从一个家庭的方程,是典型的例子的λ演算的情况下,指定其两个标准的建设(应用和抽象)服从$β$ -和$η$ -等式。因此,这样的2-签名是一对$(Σ,E)$的结合签名$Σ$和用于$Σ$的方程族$E$。这个2-签名的概念已经由Ahrens在稍有不同的上下文中介绍过。我们将每个2-签名$(Σ,E)$与一个“$(Σ,E)$的模型”范畴联系起来;我们说一个2-签名是“有效的”,如果这个范畴有一个初始对象;这个(本质上唯一的)对象下面的单子是“由2-签名指定的单子”。不是每个2-签名是有效的,我们确定了一类2-签名,我们称之为“代数”,是有效的。重要的是,我们的2-签名与它们的模型一起享有“模块性”:当我们将(代数)2-签名粘合在一起时,它们的初始模型也相应地粘合在一起。我们提供了一个计算机形式化我们的主要结果。
英文摘要:
In their work on second-order equational logic, Fiore and Hur have studied presentations of simply typed languages by generating binding constructions and equations among them. To each pair consisting of a binding signature and a set of equations, they associate a category of `models', and they give a monadicity result which implies that this category has an initial object, which is the language presented by the pair. In the present work, we propose, for the untyped setting, a variant of their approach where monads and modules over them are the central notions. More precisely, we study, for monads over sets, presentations by generating (`higher-order') operations and equations among them. We consider a notion of 2-signature which allows to specify a monad with a family of binding operations subject to a family of equations, as is the case for the paradigmatic example of the lambda calculus, specified by its two standard constructions (application and abstraction) subject to $β$- and $η$-equalities. Such a 2-signature is hence a pair $(Σ,E)$ of a binding signature $Σ$ and a family $E$ of equations for $Σ$. This notion of 2-signature has been introduced earlier by Ahrens in a slightly different context. We associate, to each 2-signature $(Σ,E)$, a category of `models of $(Σ,E)$; and we say that a 2-signature is `effective' if this category has an initial object; the monad underlying this (essentially unique) object is the `monad specified by the 2-signature'. Not every 2-signature is effective; we identify a class of 2-signatures, which we call `algebraic', that are effective. Importantly, our 2-signatures together with their models enjoy `modularity': when we glue (algebraic) 2-signatures together, their initial models are glued accordingly. We provide a computer formalization for our main results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。