证明基于E-matching的公理化的实例化终止性的形式化模型(扩展版)
A Formal Model to Prove Instantiation Termination for E-matching-Based Axiomatisations (Extended Version)
AI总结:
本文提出一种新形式化模型,通过操作语义一劳永逸地证明将复杂基于E-matching的公理化提供给Z3或cvc5等SMT求解器不会导致非终止,并以Dafny和Viper的集合论公理化终止性证明验证有效性。
摘要:
基于SMT的程序分析与验证通常涉及对使用量词指定的程序特性进行推理;然而,将量词纳入基于SMT的推理是具有挑战性的。如果量词实例化未被谨慎控制,运行时和结果可能脆弱且难以预测。特别是,不受控的量词实例化可能导致意外的非完备性甚至非终止。E-matching是控制量词实例化最广泛使用的方法,但当公理化复杂时,即使是专家也无法判断其对E-matching的使用是否保证完备性或终止性。本文提出一种新形式化模型,一劳永逸地证明,将复杂的基于E-matching的公理化提供给Z3或cvc5等SMT求解器不会导致非终止。我们技术的关键是一种求解器行为的操作语义,它对大多数求解器通用的E-matching规则如何用于确定何时启用量词实例化进行建模,但抽象掉个别求解器的不相关细节。我们通过为改编自Dafny和Viper验证器使用的集合论公理化提供终止性证明,展示了技术的有效性。
英文摘要:
SMT-based program analysis and verification often involve reasoning about program features that have been specified using quantifiers; incorporating quantifiers into SMT-based reasoning is, however, known to be challenging. If quantifier instantiation is not carefully controlled, then runtime and outcomes can be brittle and hard to predict. In particular, uncontrolled quantifier instantiation can lead to unexpected incompleteness and even non-termination. E-matching is the most widely-used approach for controlling quantifier instantiation, but when axiomatisations are complex, even experts cannot tell if their use of E-matching guarantees completeness or termination. This paper presents a new formal model that facilitates the proof, once and for all, that giving a complex E-matching-based axiomatisation to an SMT solver, such as Z3 or cvc5, will not cause non-termination. Key to our technique is an operational semantics for solver behaviour that models how the E-matching rules common to most solvers are used to determine when quantifier instantiations are enabled, but abstracts over irrelevant details of individual solvers. We demonstrate the effectiveness of our technique by presenting a termination proof for a set theory axiomatisation adapted from those used in the Dafny and Viper verifiers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。