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

符号堆分离逻辑中的自动引理综合

Automated Lemma Synthesis in Symbolic-Heap Separation Logic

Quang-Trung Ta, Ton Chanh Le, Siau-Cheng Khoo, Wei-Ngan Chin

摘要:

分离逻辑的符号堆片段已被积极开发和提倡用于验证计算机程序的存储器安全性质。目前,其最大的挑战之一是有效地证明包含归纳堆谓词的蕴涵。这些蕴涵通常是在验证操作复杂数据结构(如链表、树或图)的程序时生成的证明义务。为了帮助证明这样的蕴涵,本文介绍了一个引理合成框架,自动发现引理,作为尤里卡步骤的证明。数学归纳法和基于模板的约束求解是我们框架的两大支柱。为了导出给定蕴涵的支持引理,框架首先从蕴涵的堆结构中识别可能的引理模板。然后,它建立每个模板的变量之间的未知关系,并进行结构归纳证明,以产生这些关系的约束。最后求解约束条件,找出未知关系的实际定义,从而发现引理。我们已经将这个框架集成到一个原型证明器中,并在各种蕴涵基准上进行了实验。实验结果表明,我们的引理合成辅助证明器可以证明许多蕴涵,不能处理现有的技术。这个新提议为自动推理复杂的归纳堆谓词提供了更多的机会。

英文摘要:

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.

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

↑