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

依赖效果系统的范畴论框架

A Category-Theoretic Framework for Dependent Effect Systems

Waseda University(早稻田大学);Boston University(波士顿大学);National Institute of Informatics(信息学综合研究所);SOKENDAI(日本综合研究大学院大学);Tohoku University(东北大学)

Satoshi Kura, Marco Gaboardi, Taro Sekiyama, Hiroshi Unno

AI总结:

本文提出索引分级monad,用于描述依赖效果的类型系统,并展示了其在成本分析、概率界推理等领域的应用。

摘要:

分级monad通过在传统monad中使用效果注解来细化,以定量描述程序可能生成的计算效果。它们已成功应用于各种形式系统中,用于推理关于效果计算的性质。然而,现有的范畴论框架对于分级monad并不支持可能依赖于程序值的效果,我们称之为依赖效果,这限制了它们的表达能力。我们通过引入索引分级monad来解决这一限制,这是一种受纤维化“索引”观点和经典依赖类型理论范畴语义启发的分级monad的范畴论扩展。我们展示了索引分级monad如何为具有依赖效果的细化类型系统提供语义。我们还展示了如何通过特定参数选择将该类型系统实例化为几种用于推理特定程序性质的形式系统。这些实例包括成本分析、概率界推理、期望界推理和时间安全验证。

英文摘要:

Graded monads refine traditional monads using effect annotations in order to describe quantitatively the computational effects that a program can generate. They have been successfully applied to a variety of formal systems for reasoning about effectful computations. However, existing categorical frameworks for graded monads do not support effects that may depend on program values, which we call dependent effects, thereby limiting their expressiveness. We address this limitation by introducing indexed graded monads, a categorical generalization of graded monads inspired by the fibrational "indexed" view and by classical categorical semantics of dependent type theories. We show how indexed graded monads provide semantics for a refinement type system with dependent effects. We also show how this type system can be instantiated with specific choices of parameters to obtain several formal systems for reasoning about specific program properties. These instances include, in particular, cost analysis, probability-bound reasoning, expectation-bound reasoning, and temporal safety verification.

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

↑