arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.08581cs.PLcs.LO
收藏

面向 Future 的依值类型细化

Dependent Type Refinements for Futures

Siva Somayyajula, Frank Pfenning

AI总结:

本文提出将依值类型细化应用于基于 future 的进程演算 SAX,综合无穷证明论、双向类型检查与 Hoare logic,实现了支持 codata 信息隐藏的程序部分正确性推理,并证明了语法类型可靠性。

摘要:

类型细化结合了类型检查的组合性与程序逻辑的表达力,为程序验证提供了一种协同方法。本文将依值类型细化应用于 SAX,这是一种基于 future 的进程演算,源自直觉主义半公理化矢列演算的 Curry-Howard 解释,并在类型和进程层面包含无限制递归。借助该类型细化系统,我们能够推理 SAX 程序的部分正确性,补充了先前支持终止性推理的 sized type refinements 工作。我们的设计体系综合了 SAX 的无穷证明论、双向类型检查与 Hoare logic,推导出数据和(余)递归的标准推理原则,同时支持 codata 的信息隐藏。我们证明了语法类型可靠性,蕴含了尊重 codata 封装的部分正确性概念。通过几个简单示例展示了该语言。

英文摘要:

Type refinements combine the compositionality of typechecking with the expressivity of program logics, offering a synergistic approach to program verification. In this paper we apply dependent type refinements to SAX, a futures-based process calculus that arises from the Curry-Howard interpretation of the intuitionistic semi-axiomatic sequent calculus and includes unrestricted recursion both at the level of types and processes. With our type refinement system, we can reason about the partial correctness of SAX programs, complementing prior work on sized type refinements that supports reasoning about termination. Our design regime synthesizes the infinitary proof theory of SAX with that of bidirectional typing and Hoare logic, deriving some standard reasoning principles for data and (co)recursion while enabling information hiding for codata. We prove syntactic type soundness, which entails a notion of partial correctness that respects codata encapsulation. We illustrate our language through a few simple examples.

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

↑