Stellis:一种用于净化分离逻辑蕴含的策略语言
Stellis: A Strategy Language for Purifying Separation Logic Entailments
AI总结:
Stellis是一种用于净化分离逻辑蕴含的策略语言,通过去除空间公式简化蕴含,提升验证效率。
摘要:
自动证明分离逻辑蕴含是验证中的基本挑战。虽然基于规则的方法依赖于分离逻辑规则(引理)进行自动化,但这些规则陈述不足以描述自动化策略,通常涉及在特定场景中对相应内存布局的对齐和消除。为克服这一限制,我们提出了Stellis,一种用于净化分离逻辑蕴含的策略语言,即去除所有空间公式,将蕴含简化为更简单的纯蕴含。Stellis具有强大的匹配机制和灵活的动作描述,能够方便地编码多种策略。为了确保策略的正确性,我们引入了一个算法,为每个策略生成一个正确性条件,从而将每个策略的正确性归结为其正确性条件的正确性。此外,基于一个机械化的减少正确性定理,我们的原型实现为整体自动化生成正确性证明。我们评估了我们的系统在一个包含229个蕴含的基准上,这些蕴含来自标准链接数据结构和微内核内存模块的验证,评估结果表明,借助这种灵活性和便利性,我们的系统也具有很高的有效性,使用5个库和98种策略,自动净化了95.6%(219个 out of 229)的蕴含。
英文摘要:
Automatically proving separation logic entailments is a fundamental challenge in verification. While rule-based methods rely on separation logic rules (lemmas) for automation, these rule statements are insufficient for describing automation strategies, which usually involve the alignment and elimination of corresponding memory layouts in specific scenarios. To overcome this limitation, we propose Stellis, a strategy language for purifying separation logic entailments, i.e., removing all spatial formulas to reduce the entailment to a simpler pure entailment. Stellis features a powerful matching mechanism and a flexible action description, enabling the straightforward encoding of a wide range of strategies. To ensure strategy soundness, we introduce an algorithm that generates a soundness condition for each strategy, thereby reducing the soundness of each strategy to the correctness of its soundness condition. Furthermore, based on a mechanized reduction soundness theorem, our prototype implementation generates correctness proofs for the overall automation. We evaluate our system on a benchmark of 229 entailments collected from verification of standard linked data structures and the memory module of a microkernel, and the evaluation results demonstrate that, with such flexibility and convenience provided, our system is also highly effective, which automatically purifies 95.6% (219 out of 229) of the entailments using 5 libraries with 98 strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。