arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1412.7148cs.PLcs.LOmath.CT
收藏

单子不必是闭函子

Monads need not be endofunctors

Thosten Altenkirch, James Chapman, Tarmo Uustalu

摘要:

我们引入了一个广义的单子,称为相对单子,允许不同类别之间的底层函子。例子包括有限维向量空间、无类型和有类型的递归演算语法和索引容器。我们表明,Kleisli和Eilenberg-Moore结构结转到相对单子,并与相对排斥。在合理的假设下,相对单子是函子范畴中的幺半群,并扩展到单子,从而产生了相对单子和单子之间的共反射。箭头也是相对单子的一个实例。

英文摘要:

We introduce a generalization of monads, called relative monads, allowing for underlying functors between different categories. Examples include finite-dimensional vector spaces, untyped and typed lambda-calculus syntax and indexed containers. We show that the Kleisli and Eilenberg-Moore constructions carry over to relative monads and are related to relative adjunctions. Under reasonable assumptions, relative monads are monoids in the functor category concerned and extend to monads, giving rise to a coreflection between relative monads and monads. Arrows are also an instance of relative monads.

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

↑