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

区分真麦与糟粕:理解带有归纳定义的分离逻辑证明机制的(不)完备性

Separating the Wheat from the Chaff: Understanding (In-)Completeness of Proof Mechanisms for Separation Logic with Inductive Definitions

Tel Aviv University(特拉维夫大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Neta Elad, Adithya Murali, Sharon Shoham

AI总结:

本文研究了分离逻辑中证明机制的不完整性来源,并通过弱分离逻辑的完整性和非标准模型分析,揭示了证明失败的原因。

摘要:

在超过二十年的时间里,分离逻辑被认为是分析堆栈操作程序以及共享资源和权限的最流行框架之一。分离逻辑经常扩展以包含归纳定义的谓词,解释为最小固定点,形成带有归纳定义的分离逻辑(SLID)。在开发自动化证明机制方面,SLID已取得许多理论和实际进展,但这些机制并不完善,需要更深入地理解其失败的原因。尽管分离逻辑表达力强,但并不令人意外的是它不完整,事实上,它包含几个来源的不完整性,这些不完整性挑战着自动化推理。在本文中,我们研究这些不完整性来源以及它们如何与证明机制的失败相关联。我们将SLID置于一个更大的逻辑中,称为弱分离逻辑(WSL)。我们证明,与SLID不同,WSL在量化蕴含的非平凡片段中,结合背景理论和归纳定义时是完整的,通过将其减少到一阶逻辑(FOL)。此外,我们还表明,普遍的折叠/展开证明机制在理论无关、量词无关的WSL蕴含中是正确且完整的。通过这种方式,我们理解证明失败源于WSL中存在的非标准模型,但这些模型在SLID中是不允许的。这些恶意模型通常是无限的,我们使用符号结构的正式主义来表示和自动寻找它们。我们展示了一个原型工具,实现了WSL的一阶逻辑编码,并在现有的基准测试上测试它,该基准测试包含超过700个带有归纳定义的量化蕴含问题。我们的工具能够找到许多示例的反例模型,我们提供了一些恶意模型的分类,为现实世界的证明失败提供了一些见解。

英文摘要:

For over two decades Separation Logic has been arguably the most popular framework for reasoning about heap-manipulating programs, as well as reasoning about shared resources and permissions. Separation Logic is often extended to include inductively-defined predicates, interpreted as least fixpoints, forming Separation Logic with Inductive Definitions (SLID). Many theoretical and practical advances have been made in developing automated proof mechanisms for SLID, but these mechanisms are imperfect, and a deeper understanding of their failures is desired. As expressive as Separation Logic is, it is not surprising that it is incomplete, and in fact, it contains several sources of incompleteness that defy automated reasoning. In this paper we study these sources of incompleteness and how they relate to failures of proof mechanisms. We place SLID within a larger logic, that we call Weak Separation Logic (WSL). We prove that unlike SLID, WSL is complete for a non-trivial fragment of quantified entailments with background theories and inductive definitions, via a reduction to first-order logic (FOL). Moreover, we show that the ubiquitous fold/unfold proof mechanism is sound and complete for theory-free, quantifier-free WSL entailments with inductive definitions. Through this, we understand proof failures as stemming from nonstandard models present in WSL, but not allowed in SLID. These rogue models are typically infinite, and we use the formalism of symbolic structures to represent and automatically find them. We present a prototype tool that implements the FOL encoding of WSL and test it on an existing benchmark, which contains over 700 quantified entailment problems with inductive definitions. Our tool is able to find counter-models to many of the examples, and we provide a partial taxonomy of the rogue models, shedding some light on real-world proof failures.

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

↑