arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.05167cs.PLcs.LOcs.SC
收藏

一种范畴程序设计语言

A Categorical Programming Language

Tatsuya Hagino

摘要:

提出了一种基于范畴理论的数据类型理论。我们将数据类型组织在一个新的范畴概念F,G-双代数之下,它是T-代数概念的推广。T-代数也用于域理论,但域理论需要一些原始的数据类型,如产品,开始,我们不需要任何。乘积、余积和指数(即函数空间)的定义与范畴论中的定义完全一样。F,G-双代数还使我们能够定义自然数对象,有限列表对象和编程中常见的其他数据类型。此外,它们的对称性允许我们拥有自然数对象和无限列表(或懒惰列表)对象的对偶。我们还介绍了一个程序设计语言在一个分类风格使用F,G-双代数作为其数据类型声明机制。我们定义的意义的语言操作和证明,任何程序终止使用泰特的可计算性方法。

英文摘要:

A theory of data types based on category theory is presented. We organize data types under a new categorical notion of F,G-dialgebras which is an extension of the notion of adjunctions as well as that of T-algebras. T-algebras are also used in domain theory, but while domain theory needs some primitive data types, like products, to start with, we do not need any. Products, coproducts and exponentiations (i.e. function spaces) are defined exactly like in category theory using adjunctions. F,G-dialgebras also enable us to define the natural number object, the object for finite lists and other familiar data types in programming. Furthermore, their symmetry allows us to have the dual of the natural number object and the object for infinite lists (or lazy lists). We also introduce a programming language in a categorical style using F,G-dialgebras as its data type declaration mechanism. We define the meaning of the language operationally and prove that any program terminates using Tait's computability method.

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

↑