Effective Interactive Proofs for Higher-Order Imperative Programs

被引:0
作者
Chlipala, Adam [1 ]
Malecha, Gregory [1 ]
Morrisett, Greg [1 ]
Shinnar, Avraham [1 ]
Wisnesky, Ryan [1 ]
机构
[1] Harvard Univ, Cambridge, MA 02138 USA
来源
ICFP'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING | 2009年
关键词
functional programming; interactive proof assistants; dependent types; separation logic;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We present a new approach for constructing and verifying higher-order, imperative programs using the Coq proof assistant. We build on the past work on the Ynot system, which is based on Hoare Type Theory. That original system was a proof of concept, where every program verification was accomplished via laborious manual proofs, with much code devoted to uninteresting low-level details. In this paper, we present a re-implementation of Ynot which makes it possible to implement fully-verified, higher-order imperative programs with reasonable proof burden. At the same time, our new system is implemented entirely in Coq source files, showcasing the versatility of that proof assistant as a platform for research on language design and verification. Both versions of the system have been evaluated with case studies in the verification of imperative data structures, such as hash tables with higher-order iterators. The verification burden in our new system is reduced by at least an order of magnitude compared to the old system, by replacing manual proof with automation. The core of the automation is a simplification procedure for implications in higher-order separation logic, with hooks that allow programmers to add domain-specific simplification rules. We argue for the effectiveness of our infrastructure by verifying a number of data structures and a packrat parser, and we compare to similar efforts within other projects. Compared to competing approaches to data structure verification, our system includes much less code that must be trusted; namely, about a hundred lines of Coq code defining a program logic. All of our theorems and decision procedures have or build machine-checkable correctness proofs from first principles, removing opportunities for tool bugs to create faulty verifications.
引用
收藏
页码:79 / 90
页数:12
相关论文
共 25 条
  • [1] BARNETT M, 2004, P CASSIS
  • [2] BARRAS B, 2008, P FOSSACS
  • [3] Berdine Josh, 2005, P FMCO
  • [4] Bertot Y., 2004, TEXT THEORET COMP S
  • [5] BULWAHN L, 2008, P TPHOLS
  • [6] CHANG BYE, 2008, P POPL
  • [7] CHARGUERAUD A, 2008, P ICFP
  • [8] Chen Chiyan, 2005, P ICFP
  • [9] Delahaye David, 2000, P LPAR
  • [10] FLANAGAN C, 2002, P PLDI