分离逻辑的Bernays-Schoenfinkel-Ramsey片段中的推理
Reasoning in the Bernays-Schoenfinkel-Ramsey Fragment of Separation Logic
摘要:
分离逻辑(SL)是一种众所周知的断言语言,用于具有动态分配的数据结构的程序的霍尔式模块化证明系统中。在本文中,我们研究的片段限制到Bernays-Schoenfinkel-Ramsey量词前缀$\exists^*\forall^*$,其中的量化变量的范围内的一组内存位置的一阶SL。当这个集合是未解释的(没有相关的理论)时,片段是PSPACE完备的,这与无量词片段的复杂性相匹配。然而,当量词前缀属于$\exists^*\forall^*\exists^*$时,或者当存储器位置被解释为具有线性算术约束的整数时,SL变得不可判定,从而为SL内的可判定性设置了清晰的边界。我们已经实现了一个决策程序的可判定片段的$\exists^*\forall^*$ SL作为一个专门的求解器内的DPLL($T$)架构,在CVC 4 SMT求解器。我们的实现进行了评估,使用两组验证条件,产生(i)展开归纳谓词,和(ii)最弱的基于前置条件的验证条件生成器。实验数据表明,自动化的量词实例化具有很小的开销相比,手动基于模型的实例化。
英文摘要:
Separation Logic (SL) is a well-known assertion language used in Hoare-style modular proof systems for programs with dynamically allocated data structures. In this paper we investigate the fragment of first-order SL restricted to the Bernays-Schoenfinkel-Ramsey quantifier prefix $\exists^*\forall^*$, where the quantified variables range over the set of memory locations. When this set is uninterpreted (has no associated theory) the fragment is PSPACE-complete, which matches the complexity of the quantifier-free fragment. However, SL becomes undecidable when the quantifier prefix belongs to $\exists^*\forall^*\exists^*$ instead, or when the memory locations are interpreted as integers with linear arithmetic constraints, thus setting a sharp boundary for decidability within SL. We have implemented a decision procedure for the decidable fragment of $\exists^*\forall^*$SL as a specialized solver inside a DPLL($T$) architecture, within the CVC4 SMT solver. The evaluation of our implementation was carried out using two sets of verification conditions, produced by (i) unfolding inductive predicates, and (ii) a weakest precondition-based verification condition generator. Experimental data shows that automated quantifier instantiation has little overhead, compared to manual model-based instantiation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。