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

单子交类型,关系化地(扩展版)

Monadic Intersection Types, Relationally (Extended Version)

Francesco Gavazzo, Riccardo Treglia, Gabriele Vanoni

AI总结:

本文将交类型扩展到带代数效应的计算性 λ-演算,提出单子交类型系统,并结合句法技术与抽象关系推理刻画程序与环境在有限及无限设定下的可观察交互行为。

摘要:

我们将交类型扩展到带有 Plotkin 和 Power 风格代数运算的计算性 λ-演算中。我们通过考虑单子交来实现这一点,其中计算效应不仅出现在操作语义中,也出现在类型系统中。由于在有效应设定下,终止性不再是唯一关心的性质,我们希望分析带类型程序与环境的交互行为。事实上,我们的类型系统能够刻画自然的观察概念,无论是在有限还是无限设定下,并且适用于广泛的效应类别,例如输出、代价、纯概率非确定性和概率非确定性,以及它们的组合。主要技术工具是句法技术与抽象关系推理的一种新颖结合,这使我们能够将所有必需的概念,例如可定型性和逻辑关系,提升到单子设定中。

英文摘要:

We extend intersection types to a computational $λ$-calculus with algebraic operations à la Plotkin and Power. We achieve this by considering monadic intersections, whereby computational effects appear not only in the operational semantics, but also in the type system. Since in the effectful setting termination is not anymore the only property of interest, we want to analyze the interactive behavior of typed programs with the environment. Indeed, our type system is able to characterize the natural notion of observation, both in the finite and in the infinitary setting, and for a wide class of effects, such as output, cost, pure and probabilistic nondeterminism, and combinations thereof. The main technical tool is a novel combination of syntactic techniques with abstract relational reasoning, which allows us to lift all the required notions, e.g. of typability and logical relation, to the monadic setting.

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

↑