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

实现类型化抽象对象的范畴理论框架

Implementing a Category-Theoretic Framework for Typed Abstract Syntax

Benedikt Ahrens, Ralph Matthes, Anders Mörtberg

摘要:

在以前的工作(“从签名到单子在UniMath”)中,我们描述了一个抽象语法的范畴理论建设的签名,机械化的UniMath库的基础上Coq证明助手。在目前的工作中,我们描述了什么是必要的推广工作,占简单类型的语言。首先,必须推广某些定义,以解释简单类型情况下非内函子的自然外观。事实证明,在许多情况下,我们的机械化结果在没有任何代码更改的情况下延续到广义定义。第二,现有的机械化图书馆$ω$ -cocontinuous函子必须扩展的建设和必要的多排序语法定理。第三,语义签名的理论框架必须从monoidal推广到bicategorical设置,再次说明在类型化情况下出现的非内函子。这使用了具有给定源的函子上的内函子的动作,以及动作之间强函子的相应概念,所有这些都使用最近开发的双范畴理论库在UniMath中形式化。我们解释了需要做什么来将所有这些成分模块化地连接在一起。我们的工作的主要结果是一个一般的建设,当美联储与一个简单类型的语言的签名,返回该语言的实现与适当的样板代码,特别是,一个认证的一元替换操作。

英文摘要:

In previous work ("From signatures to monads in UniMath"), we described a category-theoretic construction of abstract syntax from a signature, mechanized in the UniMath library based on the Coq proof assistant. In the present work, we describe what was necessary to generalize that work to account for simply-typed languages. First, some definitions had to be generalized to account for the natural appearance of non-endofunctors in the simply-typed case. As it turns out, in many cases our mechanized results carried over to the generalized definitions without any code change. Second, an existing mechanized library on $ω$-cocontinuous functors had to be extended by constructions and theorems necessary for constructing multi-sorted syntax. Third, the theoretical framework for the semantical signatures had to be generalized from a monoidal to a bicategorical setting, again to account for non-endofunctors arising in the typed case. This uses actions of endofunctors on functors with given source, and the corresponding notion of strong functors between actions, all formalized in UniMath using a recently developed library of bicategory theory. We explain what needed to be done to plug all of these ingredients together, modularly. The main result of our work is a general construction that, when fed with a signature for a simply-typed language, returns an implementation of that language together with suitable boilerplate code, in particular, a certified monadic substitution operation.

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

↑