代数数据类型的抽象推理
Reasoning about Algebraic Data Types with Abstractions
摘要:
对代数数据类型进行运算的函数的推理对于各种各样的应用来说是一个重要的问题。一个特别令人感兴趣的应用是处理或推理复杂消息结构(如XML消息)的网络应用。本文提出了一种决策过程的推理代数数据类型使用的抽象所提供的蜕变:折叠功能,映射实例的代数数据类型的值在一个可判定的域。我们表明,该过程是健全的,完全的一类退化,满足广义充分满射性条件。我们的工作扩展了以前的决策过程,展开变形函数,直到找到一个解决方案。我们使用广义充分满射性条件,以解决以前的展开算法(和相关的证明)的不完整性。然后,我们提出的单调和联想的蜕变,我们认为这提供了一个更直观的包含测试比广义充分满射条件的类别。我们使用这些概念来解决两个开放的问题,从以前的工作:(1)我们提供了一个界,相对于公式的大小,对完整性所需的展开的数量,表明它是线性的单调变质和指数小的联想变质,(2)我们证明,联想变质可以结合在一个公式,同时保持完整性。我们的组合结果扩展了可以使用基于异化的方法来推理的问题集。我们还描述了一个实现的方法,称为RADA,它接受公式的SMT-LIB 2.0语法的扩展版本。该过程是相当普遍的,是核心的推理基础设施的瓜多尔,一个特定于域的语言推理网络警卫。
英文摘要:
Reasoning about functions that operate over algebraic data types is an important problem for a large variety of applications. One application of particular interest is network applications that manipulate or reason about complex message structures, such as XML messages. This paper presents a decision procedure for reasoning about algebraic data types using abstractions that are provided by catamorphisms: fold functions that map instances of algebraic data types to values in a decidable domain. We show that the procedure is sound and complete for a class of catamorphisms that satisfy a generalized sufficient surjectivity condition. Our work extends a previous decision procedure that unrolls catamorphism functions until a solution is found. We use the generalized sufficient surjectivity condition to address an incompleteness in the previous unrolling algorithm (and associated proof). We then propose the categories of monotonic and associative catamorphisms, which we argue provide a more intuitive inclusion test than the generalized sufficient surjectivity condition. We use these notions to address two open problems from previous work: (1) we provide a bound, with respect to formula size, on the number of unrollings necessary for completeness, showing that it is linear for monotonic catamorphisms and exponentially small for associative catamorphisms, and (2) we demonstrate that associative catamorphisms can be combined within a formula while preserving completeness. Our combination results extend the set of problems that can be reasoned about using the catamorphism-based approach. We also describe an implementation of the approach, called RADA, which accepts formulas in an extended version of the SMT-LIB 2.0 syntax. The procedure is quite general and is central to the reasoning infrastructure for Guardol, a domain-specific language for reasoning about network guards.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。