Automated Lemma Synthesis in Symbolic-Heap Separation Logic

被引:16
|
作者
Ta, Quang-Trung [1 ]
Le, Ton Chanh [1 ]
Khoo, Siau-Cheng [1 ]
Chin, Wei-Ngan [1 ]
机构
[1] Natl Univ Singapore, Sch Comp, Singapore, Singapore
关键词
Separation logic; entailment proving; mathematical induction; structural induction; lemma synthesis; proof theory; automated reasoning;
D O I
10.1145/3158097
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The symbolic-heap fragment of separation logic has been actively developed and advocated for verifying the memory-safety property of computer programs. At present, one of its biggest challenges is to effectively prove entailments containing inductive heap predicates. These entailments are usually proof obligations generated when verifying programs that manipulate complex data structures like linked lists, trees, or graphs. To assist in proving such entailments, this paper introduces a lemma synthesis framework, which automatically discovers lemmas to serve as eureka steps in the proofs. Mathematical induction and template-based constraint solving are two pillars of our framework. To derive the supporting lemmas for a given entailment, the framework firstly identifies possible lemma templates from the entailment's heap structure. It then sets up unknown relations among each template's variables and conducts structural induction proof to generate constraints about these relations. Finally, it solves the constraints to find out actual definitions of the unknown relations, thus discovers the lemmas. We have integrated this framework into a prototype prover and have experimented it on various entailment benchmarks. The experimental results show that our lemma-synthesis-assisted prover can prove many entailments that could not be handled by existing techniques. This new proposal opens up more opportunities to automatically reason with complex inductive heap predicates.
引用
收藏
页数:29
相关论文
共 50 条
  • [21] Automated mutual induction proof in separation logic
    Ta, Quang-Trung
    Le, Ton Chanh
    Khoo, Siau-Cheng
    Chin, Wei-Ngan
    FORMAL ASPECTS OF COMPUTING, 2019, 31 (02) : 207 - 230
  • [22] Automated Cyclic Entailment Proofs in Separation Logic
    Brotherston, James
    Distefano, Dino
    Petersen, Rasmus Lerchedahl
    AUTOMATED DEDUCTION - CADA-23, 2011, 6803 : 131 - +
  • [23] Verification Algorithms for Automated Separation Logic Verifiers
    Eilers, Marco
    Schwerhoff, Malte
    Mueller, Peter
    COMPUTER AIDED VERIFICATION, PT I, CAV 2024, 2024, 14681 : 362 - 386
  • [24] Evolutionary Approach to Quantum Symbolic Logic Synthesis
    Lukac, Martin
    Perkowski, Marek
    2008 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION, VOLS 1-8, 2008, : 3374 - 3380
  • [25] Quantum logic synthesis by symbolic reachability analysis
    Hung, WNNH
    Song, WY
    Yang, GW
    Perkowski, M
    41ST DESIGN AUTOMATION CONFERENCE, PROCEEDINGS 2004, 2004, : 838 - 841
  • [26] Automated Compatibility Testing Method for Software Logic by Using Symbolic Execution
    Uetsuki, Keiji
    Matsuodani, Tohru
    Tsuda, Kazuhiko
    2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,
  • [27] Automated Repair of Heap-Manipulating Programs Using Deductive Synthesis
    Thanh-Toan Nguyen
    Quang-Trung Ta
    Sergey, Ilya
    Chin, Wei-Ngan
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2021, 2021, 12597 : 376 - 400
  • [28] Automated Mutual Explicit Induction Proof in Separation Logic
    Ta, Quang-Trung
    Le, Ton Chanh
    Khoo, Siau-Cheng
    Chin, Wei-Ngan
    FM 2016: FORMAL METHODS, 2016, 9995 : 659 - 676
  • [29] AUTOMATED BIST FOR SEQUENTIAL LOGIC SYNTHESIS
    STROUD, CE
    IEEE DESIGN & TEST OF COMPUTERS, 1988, 5 (06): : 22 - 32
  • [30] Automated Theorem Proving for Assertions in Separation Logic with All Connectives
    Hou, Zhe
    Gore, Rajeev
    Tiu, Alwen
    AUTOMATED DEDUCTION - CADE-25, 2015, 9195 : 501 - 516