Live Verification in an Interactive Proof Assistant

被引:0
|
作者
Gruetter, Samuel [1 ]
Fukala, Viktor [1 ]
Chlipala, Adam [1 ]
机构
[1] MIT, Cambridge, MA 02139 USA
基金
美国国家科学基金会;
关键词
software verification; symbolic execution; interactive proof assistants;
D O I
10.1145/3656439
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a prototype for a tool that enables programmers to verify their code as they write it in real-time. After each line of code that the programmer writes, the tool tells the programmer whether it was able to prove absence of undefined behavior so far, and it displays a concise representation of the symbolic state of the program right after the added line. The user can then either write the next line of code, or if needed or desired, write a specially marked comment that provides hints on how to solve side conditions or on how to represent the symbolic state more nicely. Once the programmer has finished writing the program, it is already verified with a mathematical correctness proof. Other tools providing real-time feedback already exist, but ours is the first one that only relies on a small trusted proof checker and that provides a concise summary of the symbolic state at the point in the program currently being edited, as opposed to only indicating whether user-stated assertions or postconditions hold. Program verification requires loop invariants, which are hard to find and tedious to spell out. We explore a middle ground in the design space between the two extremes of requiring users to spell out loop invariants manually and attempting to infer loop invariants automatically: Since a loop invariant often looks quite similar to the symbolic state right before the loop, our tool asks the user to express the desired loop invariant as a diff from the symbolic state before the loop, which has the potential to lead to shorter, more maintainable proofs. We prototyped our technique in the interactive proof assistant Coq, so our framework creates machine-checked proofs that the developed functions satisfy their specifications when executed according to the formal semantics of the source language. Using a verified compiler proven against the same source-language semantics, we can ensure that the behavior of the compiled program matches the program's behavior as represented by the framework during the proof. Additionally, since our polyglot source files can be viewed as Coq or C files at the same time, users willing to accept a larger trusted code base can compile them with GCC.
引用
收藏
页数:24
相关论文
共 50 条
  • [21] PERSES - An interactive shopping assistant
    Bohme, H.-J.
    Wilhelm, T.
    Schroter, Chr.
    Gross, H.-M.
    VDI Berichte, 2002, (1679): : 641 - 646
  • [22] An Interactive Indoor Drone Assistant
    Fuhrman, Tino
    Schneider, David
    Altenberg, Felix
    Tung Nguyen
    Blasen, Simon
    Constantin, Stefan
    Waibel, Alex
    2019 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 2019, : 6052 - 6057
  • [23] Interactive Query Recommendation Assistant
    Khemiri, Rym
    Bentayeb, Fadila
    2012 23RD INTERNATIONAL WORKSHOP ON DATABASE AND EXPERT SYSTEMS APPLICATIONS (DEXA), 2012, : 93 - 97
  • [24] ArcAid Interactive Archery Assistant
    Vervaeke, Jeroen
    Ameye, Jente
    van Esch, Sievert
    Saldien, Jelle
    Verstockt, Steven
    PROCEEDINGS OF THE 2015 7TH INTERNATIONAL CONFERENCE ON INTELLIGENT TECHNOLOGIES FOR INTERACTIVE ENTERTAINMENT, 2015, : 4 - 8
  • [25] PERSES -: an interactive shopping assistant
    Böhme, HJ
    Wilhelm, I
    Schröter, C
    Gross, HM
    ROBOTIK 2002, 2002, 1679 : 641 - 646
  • [26] Recursion over Public-Coin Interactive Proof Systems; Faster Hash Verification
    Belling, Alexandre
    Soleimanian, Azam
    Begassat, Olivier
    PROCEEDINGS OF THE 2023 ACM SIGSAC CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, CCS 2023, 2023, : 1422 - 1436
  • [27] PANDA: A Proof Assistant in Natural Deduction for All. A Gentzen Style Proof Assistant for Undergraduate Students
    Gasquet, Olivier
    Schwarzentruber, Francois
    Strecker, Martin
    TOOLS FOR TEACHING LOGIC, 2011, 6680 : 85 - 92
  • [28] Proof verification and proof discovery for relativity
    Govindarajalulu, Naveen Sundar
    Bringsjord, Selmer
    Taylor, Joshua
    SYNTHESE, 2015, 192 (07) : 2077 - 2094
  • [29] Proof verification and proof discovery for relativity
    Naveen Sundar Govindarajalulu
    Selmer Bringsjord
    Joshua Taylor
    Synthese, 2015, 192 : 2077 - 2094
  • [30] Schematic Polymorphism in the Abella Proof Assistant
    Nadathur, Gopalan
    Wang, Yuting
    PPDP'18: PROCEEDINGS OF THE 20TH INTERNATIONAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, 2018,