arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1610.06768cs.PL
收藏

求解Horn子句的自动归纳法

Automating Induction for Solving Horn Clauses

Hiroshi Unno, Sho Torii

摘要:

在各种范式(如命令式,逻辑,并发,功能和面向对象的)编写的程序的验证问题,可以减少到解决的问题,表示未知的归纳不变量的谓词变量的Horn子句约束。提出了一种基于归纳定理证明的Horn约束求解方法:该方法将Horn约束求解归结为对带有归纳谓词的一阶公式进行有效性检验,然后对谓词的推导进行归纳检验.为了自动化归纳证明,我们引入了一个新的证明系统,适合霍恩约束求解,并使用SMT求解器来履行证明搜索中产生的证明义务。所提出的方法的主要优点是,它可以验证关系规范在各种范式的程序中,多个函数调用需要同时进行分析。这类规范包括实际重要的规范,例如函数等价性、结合性、交换性、分配性、单调性、幂等性和非干扰性。此外,我们的新组合的霍恩子句约束与归纳定理证明,使我们能够自然和自动公理化递归函数,可能是非终止的,非确定性的,高阶的,异常提升,并在非归纳定义的数据类型。我们已经实现了一个关系验证工具的OCaml函数式语言的基础上所提出的方法,并在初步实验中取得了可喜的成果。

英文摘要:

Verification problems of programs written in various paradigms (such as imperative, logic, concurrent, functional, and object-oriented ones) can be reduced to problems of solving Horn clause constraints on predicate variables that represent unknown inductive invariants. This paper presents a novel Horn constraint solving method based on inductive theorem proving: the method reduces Horn constraint solving to validity checking of first-order formulas with inductively defined predicates, which are then checked by induction on the derivation of the predicates. To automate inductive proofs, we introduce a novel proof system tailored to Horn constraint solving and use an SMT solver to discharge proof obligations arising in the proof search. The main advantage of the proposed method is that it can verify relational specifications across programs in various paradigms where multiple function calls need to be analyzed simultaneously. The class of specifications includes practically important ones such as functional equivalence, associativity, commutativity, distributivity, monotonicity, idempotency, and non-interference. Furthermore, our novel combination of Horn clause constraints with inductive theorem proving enables us to naturally and automatically axiomatize recursive functions that are possibly non-terminating, non-deterministic, higher-order, exception-raising, and over non-inductively defined data types. We have implemented a relational verification tool for the OCaml functional language based on the proposed method and obtained promising results in preliminary experiments.

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

↑