Local refinement typing

Author:

Cosman Benjamin1,Jhala Ranjit1

Affiliation:

1. University of California at San Diego, USA

Abstract

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 2 × faster. In a new set of theorem proving benchmarks FUSION is both 10 — 50 × faster and, by synthesizing the most precise types, avoids false alarms to make verification possible.

Funder

National Science Foundation

Microsoft Research

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference50 articles.

1. C. Barrett P. Fontaine and C. Tinelli. 2016. The Satisfiability Modulo Theories Library (SMT-LIB). www.SMT-LIB.org. (2016). C. Barrett P. Fontaine and C. Tinelli. 2016. The Satisfiability Modulo Theories Library (SMT-LIB). www.SMT-LIB.org. (2016).

2. J. Bengtson K. Bhargavan C. Fournet A.D. Gordon and S. Maffeis. 2008. Refinement Types for Secure Implementations. In CSF . 10.1109/CSF.2008.27 J. Bengtson K. Bhargavan C. Fournet A.D. Gordon and S. Maffeis. 2008. Refinement Types for Secure Implementations. In CSF . 10.1109/CSF.2008.27

3. Dirk Beyer Alessandro Cimatti Alberto Griggio M. Erkan Keremoglu and Roberto Sebastiani. 2009. Software model checking via large-block encoding. In FMCAD. 10.1109/FMCAD.2009.5351147 Dirk Beyer Alessandro Cimatti Alberto Griggio M. Erkan Keremoglu and Roberto Sebastiani. 2009. Software model checking via large-block encoding. In FMCAD. 10.1109/FMCAD.2009.5351147

4. Nikolaj Bjørner Arie Gurfinkel Ken McMillan and Andrey Rybalchenko. 2015. Horn Clause Solvers for Program Verification. In Fields of Logic and Computation. 10.1007/978-3-319-23534-9_2 Nikolaj Bjørner Arie Gurfinkel Ken McMillan and Andrey Rybalchenko. 2015. Horn Clause Solvers for Program Verification. In Fields of Logic and Computation. 10.1007/978-3-319-23534-9_2

5. A Transformation System for Developing Recursive Programs

Cited by 10 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Towards a Dynabook for verified VM construction;Journal of Computer Languages;2024-08

2. Mechanizing Refinement Types;Proceedings of the ACM on Programming Languages;2024-01-05

3. Flux: Liquid Types for Rust;Proceedings of the ACM on Programming Languages;2023-06-06

4. Grammar Inference for Ad Hoc Parsers;Companion Proceedings of the 2022 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software for Humanity;2022-11-29

5. Refinement Types: A Tutorial;Foundations and Trends® in Programming Languages;2021

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3