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

索引容器上的幺半群结构

Monoid Structures on Indexed Containers

Tallinn University of Technology(塔林理工大学);Reykjavik University(雷克雅未克大学)

Michele De Pascalis, Tarmo Uustalu, Niccolò Veltrì

AI总结:

本文研究 I-索引容器范畴的张量积幺半群结构,刻画其中幺半群并证明其精确对应 Set^I 上的单子,且用 Cubical Agda 完成形式化。

摘要:

容器表示了与函数式编程和(共)归纳推理相关的一大类类型构造。索引容器推广了这一概念,以更好地适应依赖类型编程的范围。当将类型解释为集合时,一个容器描述了集合范畴上的一个自函子,而一个 I-索引容器则描述了集合的 I-索引族范畴 Set^I 上的一个自函子。我们考虑 I-索引容器范畴上的幺半群结构,其中容器的张量积描述了各自所诱导自函子的复合。随后,我们给出了该幺半群范畴中幺半群的组合刻画,并证明这些幺半群如何精确对应于 Set^I 上所诱导自函子上的单子。最后,我们通过给出一些符合我们刻画的 Set^I 上单子的示例来作结,包括两个单子的积、state 单子和 writer 单子的索引变体,以及一个自由单子的示例。这项工作的技术结果附有在证明助手 Cubical Agda 中的形式化。

英文摘要:

Containers represent a wide class of type constructions relevant for functional programming and (co)inductive reasoning. Indexed containers generalize this notion to better fit the scope of dependently typed programming. When interpreting types to be sets, a container describes an endofunctor on the category of sets while an I-indexed container describes an endofunctor on the category Set^I of I-indexed families of sets. We consider the monoidal structure on the category of I-indexed containers whose tensor product of containers describes the composition of the respective induced endofunctors. We then give a combinatorial characterization of monoids in this monoidal category, and we show how these monoids correspond precisely to monads on the induced endofunctors on Set^I. Lastly, we conclude by presenting some examples of monads on Set^I that fall under our characterization, including the product of two monads, indexed variants of the state and the writer monads and an example of a free monad. The technical results of this work are accompanied by a formalization in the proof assistant Cubical Agda.

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

↑