【24h】

A Decidable Logic for Tree Data-Structures with Measurements

机译:具有度量的树型数据结构的可确定逻辑

获取原文

摘要

We present Dryad_(dec), a decidable logic that allows reasoning about tree data-structures with measurements. This logic supports user-defined recursive measure functions based on Max or Sum, and recursive predicates based on these measure functions, such as AVL trees or red-black trees. We prove that the logic's satisfiability is decidable. The crux of the decidability proof is a small model property which allows us to reduce the satisfiability of DRYAD_(dec) to quantifier-free linear arithmetic theory which can be solved efficiently using SMT solvers. We also show that Dryad_(dec) can encode a variety of verification and synthesis problems, including natural proof verification conditions for functional correctness of recursive tree-manipulating programs, legality conditions for fusing tree traversals, synthesis conditions for conditional linear-integer arithmetic functions. We developed the decision procedure and successfully solved 220+ DRYAD_(dec) formulae raised from these application scenarios, including verifying functional correctness of programs manipulating AVL trees, red-black trees and treaps, checking the fusibility of height-based mutually recursive tree traversals, and counterexample-guided synthesis from linear integer arithmetic specifications. To our knowledge, Dryad_(dec) is the first decidable logic that can solve such a wide variety of problems requiring flexible combination of measure-related, data-related and shape-related properties for trees.
机译:我们介绍了Dryad_(dec),这是一种可确定的逻辑,它允许对带有测量结果的树数据结构进行推理。该逻辑支持基于Max或Sum的用户定义的递归度量函数,以及基于这些度量函数的递归谓词,例如AVL树或红黑树。我们证明了逻辑的可满足性是可以决定的。可判定性证明的关键是一个小的模型属性,它使我们能够将DRYAD_(dec)的可满足性降低到无量词线性算法,可以使用SMT求解器对其进行有效求解。我们还显示Dryad_(dec)可以编码各种验证和综合问题,包括递归树操作程序的功能正确性的自然证明验证条件,融合树遍历的合法性条件,条件线性整数算术函数的综合条件。我们开发了决策程序,并成功解决了从这些应用场景中提出的220多个DRYAD_(dec)公式,包括验证处理AVL树,红黑树和树的程序的功能正确性,检查基于高度的相互递归树遍历的可行性,以及基于线性整数算术规范的反例指导的综合。据我们所知,Dryad_(dec)是第一个可解决的逻辑,可以解决各种各样的问题,这些问题需要对树的与度量相关,与数据相关和与形状相关的属性进行灵活组合。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号