arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.17484cs.LO
收藏

容器在单子范畴中的导数

Derivatives for Containers in Univalent Foundations

Tallinn University of Technology(塔尔图理工大学)

Philipp Joram, Niccolò Veltri

AI总结:

本文在单子范畴中扩展了容器导数的概念,证明其在非截断容器中的普遍性质,并探讨了链式法则的可逆性问题。

摘要:

容器方便地代表了一类广泛的归纳数据类型。它们的导数计算了类型的一孔上下文的表示,这对实现树遍历算法很有用。在容器和笛卡尔态射的范畴中,离散容器(其位置具有可判定相等性)的导数满足一个普遍性质。在单子范畴中,我们扩展导数操作到非截断容器(其形状和位置是任意类型)。我们证明,这种导数,以一组孤立位置定义,在非截断容器和笛卡尔态射的野范畴中满足适当的普遍性质,并且在常量、和与积方面具有基本定律。存在链式法则,但通常非可逆。事实上,在非集合类型存在的情况下,全局可逆的链式法则是不一致的,并且在限制到集合截断容器时等价于一个经典原理。我们从链式法则导出了最小固定点的导数规则,并对其可逆性进行了特征化。所有结果都在立方阿格达中形式化。

英文摘要:

Containers conveniently represent a wide class of inductive data types. Their derivatives compute representations of types of one-hole contexts, useful for implementing tree-traversal algorithms. Derivatives of discrete containers (whose positions have decidable equality) satisfy a universal property with respect to linear morphisms of containers. This induces a well-behaved notion of linear substitution for one-hole contexts. Working in Univalent Foundations, we extend the derivative operation to untruncated containers (whose shapes and positions are arbitrary types). We prove that this derivative, defined in terms of a set of isolated positions, satisfies an appropriate universal property in the wild category of untruncated containers and linear morphisms, as well as basic laws with respect to constants, sums and products. A chain rule exists, but is in general non-invertible. In fact, a globally invertible chain rule is inconsistent in the presence of non-set types, and equivalent to a classical principle when restricted to set-truncated containers. We derive a rule for derivatives of least fixpoints from the chain rule, and characterize its invertibility. All of our results are formalized in Cubical Agda.

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

↑