Reasoning About Algebraic Data Types with Abstractions

被引:0
|
作者
Tuan-Hung Pham
Andrew Gacek
Michael W. Whalen
机构
[1] University of Minnesota,Department of Computer Science and Engineering
[2] Rockwell Collins,undefined
[3] Advanced Technology Center,undefined
来源
关键词
Decision procedures; Algebraic data types; SMT solvers;
D O I
暂无
中图分类号
学科分类号
摘要
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.
引用
收藏
页码:281 / 318
页数:37
相关论文
共 50 条
  • [1] Reasoning About Algebraic Data Types with Abstractions
    Tuan-Hung Pham
    Gacek, Andrew
    Whalen, Michael W.
    JOURNAL OF AUTOMATED REASONING, 2016, 57 (04) : 281 - 318
  • [2] Decision Procedures for Algebraic Data Types with Abstractions
    Suter, Philippe
    Dotta, Mirco
    Kuncak, Viktor
    POPL'10: PROCEEDINGS OF THE 37TH ANNUAL ACM SIGPLAN-SIGACT SYMPOSIUM ON PRINCIPLES OF PROGRAMMING LANGUAGES, 2010, : 199 - 210
  • [3] Decision Procedures for Algebraic Data Types with Abstractions
    Suter, Philippe
    Dotta, Mirco
    Kuncak, Viktor
    ACM SIGPLAN NOTICES, 2010, 45 (01) : 199 - 210
  • [4] Reasoning about clinical guidelines based on algebraic data types and constraint logic programming
    Perez, Beatriz
    JOURNAL OF BIOMEDICAL INFORMATICS, 2019, 92
  • [5] Representing and reasoning about privacy abstractions
    Li, YH
    Benbernou, S
    WEB INFORMATION SYSTEMS ENGINEERING - WISE 2005, 2005, 3806 : 390 - 403
  • [6] Abstractions of data types
    Ferucio Laurenţiu Ţiplea
    Constantin Enea
    Acta Informatica, 2006, 42 : 639 - 671
  • [7] Abstractions of data types
    Tiplea, FL
    Enea, C
    ACTA INFORMATICA, 2006, 42 (8-9) : 639 - 671
  • [8] Inductive Reasoning about Effectful Data Types
    Filinski, Andrzej
    Stovring, Kristian
    ICFP'07 PROCEEDINGS OF THE 2007 ACM SIGPLAN INTERNATIONAL CONFERENCE ON FUNCTIONAL PROGRAMMING, 2007, : 97 - 110
  • [9] Inductive reasoning about effectful data types
    Filinski, Andrzej
    Stovring, Kristian
    ACM SIGPLAN NOTICES, 2007, 42 (09) : 97 - 110
  • [10] Reasoning about Multiple Related Abstractions with MultiStar
    van Staden, Stephan
    Calcagno, Cristiano
    ACM SIGPLAN NOTICES, 2010, 45 (10) : 504 - 519