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

有限草堆中的无限根针:在演绎验证中寻找无限反模型

An Infinite Needle in a Finite Haystack: Finding Infinite Counter-Models in Deductive Verification

Neta Elad, Oded Padon, Sharon Shoham

AI总结:

针对演绎验证中可满足含量词公式仅有无限模型、现有求解器只能找有限反例且易发散的问题,提出符号结构、符号模型搜索过程及涵盖多种类 EPR 的新可判定片段。

摘要:

一阶逻辑,尤其是量词,在演绎验证中被广泛使用。量词对于描述具有无界域的系统至关重要,但对自动化求解器而言却十分困难。已有大量工作致力于寻找可建立不可满足性的量词实例化,从而确保系统验证条件的有效性。然而,在许多情况下,公式是可满足的:这在验证过程的中间步骤中经常出现。对于此类情况,现有工具仅限于寻找有限模型作为反例。然而,一些含量词的公式虽然可满足,却只拥有无限模型。当使用一阶逻辑来近似归纳定义(例如链表或自然数)时,这类无限反模型尤为典型。求解器无法找到无限模型,导致它们在这些情况下发生发散。本文中,我们解决寻找此类无限模型的问题。这些模型使用户能够识别并修复系统及其属性建模中的缺陷。我们的方法由三部分组成。首先,我们引入符号结构,作为表示某些无限模型的一种方式。其次,我们描述一种有效的模型寻找过程,该过程以符号方式探索给定的符号结构族。最后,我们识别出一阶逻辑的一个新可判定片段,该片段扩展并涵盖 EPR 的多种类变体;在该片段中,可满足公式始终拥有一个可由已知族内的符号结构表示的模型。我们在分布式共识协议和操作堆程序领域的示例上评估了我们的方法。我们的实现能够快速找到无限反模型,以简单方式展示验证失败的来源,而 Z3、cvc5 和 Vampire 等 SMT 求解器和定理证明器则会发散。

英文摘要:

First-order logic, and quantifiers in particular, are widely used in deductive verification. Quantifiers are essential for describing systems with unbounded domains, but prove difficult for automated solvers. Significant effort has been dedicated to finding quantifier instantiations that establish unsatisfiability, thus ensuring validity of a system's verification conditions. However, in many cases the formulas are satisfiable: this is often the case in intermediate steps of the verification process. For such cases, existing tools are limited to finding finite models as counterexamples. Yet, some quantified formulas are satisfiable but only have infinite models. Such infinite counter-models are especially typical when first-order logic is used to approximate inductive definitions such as linked lists or the natural numbers. The inability of solvers to find infinite models makes them diverge in these cases. In this paper, we tackle the problem of finding such infinite models. These models allow the user to identify and fix bugs in the modeling of the system and its properties. Our approach consists of three parts. First, we introduce symbolic structures as a way to represent certain infinite models. Second, we describe an effective model finding procedure that symbolically explores a given family of symbolic structures. Finally, we identify a new decidable fragment of first-order logic that extends and subsumes the many-sorted variant of EPR, where satisfiable formulas always have a model representable by a symbolic structure within a known family. We evaluate our approach on examples from the domains of distributed consensus protocols and of heap-manipulating programs. Our implementation quickly finds infinite counter-models that demonstrate the source of verification failures in a simple way, while SMT solvers and theorem provers such as Z3, cvc5, and Vampire diverge.

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

↑