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

用于验证的可借用分数所有权类型

Borrowable Fractional Ownership Types for Verification

Takashi Nakayama, Yusuke Matsushita, Ken Sakayori, Ryosuke Sato, Naoki Kobayashi

AI总结:

本文融合 ConSORT 与 RustHorn,提出可借用分数所有权类型及相应类型系统,将带引用命令式程序验证自动归约为无引用函数式程序验证,并证明可靠性且实验验证有效。

摘要:

对带有引用(也称为指针)的命令式程序进行函数正确性的自动化验证,因引用别名而具有挑战性。所有权类型最近已被用于解决该问题,但现有方法存在局限:它们仅对引用使用遵循某种风格的一类程序有效。为放宽这一限制,我们结合了 ConSORT(基于分数所有权)与 RustHorn(基于可借用所有权)这两种近期基于所有权类型的自动化程序验证方法,并提出可借用分数所有权类型的概念。我们形式化了一种基于可借用分数所有权类型的新类型系统,并展示如何利用它将带引用的命令式程序的程序验证问题自动归约为不带引用的函数式程序的验证问题。我们还证明了类型系统与翻译的可靠性,并通过实验确认了该方法的有效性。

英文摘要:

Automated verification of functional correctness of imperative programs with references (a.k.a. pointers) is challenging because of reference aliasing. Ownership types have recently been applied to address this issue, but the existing approaches were limited in that they are effective only for a class of programs whose reference usage follows a certain style. To relax the limitation, we combine the approaches of ConSORT (based on fractional ownership) and RustHorn (based on borrowable ownership), two recent approaches to automated program verification based on ownership types, and propose the notion of borrowable fractional ownership types. We formalize a new type system based on the borrowable fractional ownership types and show how we can use it to automatically reduce the program verification problem for imperative programs with references to that for functional programs without references. We also show the soundness of our type system and the translation, and conduct experiments to confirm the effectiveness of our approach.

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

↑