arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1706.08007cs.PL
收藏

局部细化类型化

Local Refinement Typing

Benjamin Cosman, Ranjit Jhala

摘要:

我们介绍了融合算法的局部细化类型推断,产生一个新的SMT为基础的方法验证程序的多态数据类型和高阶函数。Fusion是简洁的,因为程序员只需要为(外部导出的)顶级函数和具有循环(递归)依赖关系的位置编写签名,之后Fusion可以可预测地合成所有中间项(可在可判定的细化逻辑中表达)的最精确的细化类型,从而检查程序而不会出现错误警报。我们已经实现了Fusion,并在LiquidHaskell套件的基准测试中对其进行了评估,总计约12 Kbps。Fusion检查现有的安全基准测试套件,使用的模板数量是以前的一半,速度快了近2倍。在一组新的定理证明基准测试中,Fusion的速度提高了10 - 50倍,并且通过合成最精确的类型,避免了误报,使验证成为可能。

英文摘要:

We introduce the Fusion algorithm for local refinement type inference, yielding a new SMT-based method for verifying programs with polymorphic data types and higher-order functions. Fusion is concise as the programmer need only write signatures for (externally exported) top-level functions and places with cyclic (recursive) dependencies, after which Fusion can predictably synthesize the most precise refinement types for all intermediate terms (expressible in the decidable refinement logic), thereby checking the program without false alarms. We have implemented Fusion and evaluated it on the benchmarks from the LiquidHaskell suite totalling about 12KLOC. Fusion checks an existing safety benchmark suite using about half as many templates as previously required and nearly 2x faster. In a new set of theorem proving benchmarks Fusion is both 10 - 50x faster and, by synthesizing the most precise types, avoids false alarms to make verification possible.

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

↑