Reasoning about Algebraic Data Types with Abstractions

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 decisio...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Pham, Tuan-Hung, Gacek, Andrew, Whalen, Michael W
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Pham, Tuan-Hung
Gacek, Andrew
Whalen, Michael W
description 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.
doi_str_mv 10.48550/arxiv.1603.08769
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_1603_08769</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>1603_08769</sourcerecordid><originalsourceid>FETCH-LOGICAL-a679-7bb4d5b856c181da17cb9a005f916be60afe1d41964cc9fe7556c7a57f60286d3</originalsourceid><addsrcrecordid>eNotj7FuwjAURb0wVMAHdKp_IMFu4md7jKBQJCSkKnv07NjUEk2Q7bbw91DodJaro3sIeeasrJUQbIHxHH5KDqwqmZKgnwh8OEzjEIYDRTN-Z9ocD85EDJauMCNtLyeX6G_In7QxKUe0OYxDmpGJx2Ny839OSbt-a5fvxW6_2S6bXYEgdSGNqXthlADLFe-RS2s0Mia85mAcMPSO9zXXUFurvZPitpQopAf2qqCvpuTlob0f704xfGG8dH8B3T2gugIDa0BC</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Reasoning about Algebraic Data Types with Abstractions</title><source>arXiv.org</source><creator>Pham, Tuan-Hung ; Gacek, Andrew ; Whalen, Michael W</creator><creatorcontrib>Pham, Tuan-Hung ; Gacek, Andrew ; Whalen, Michael W</creatorcontrib><description>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.</description><identifier>DOI: 10.48550/arxiv.1603.08769</identifier><language>eng</language><subject>Computer Science - Logic in Computer Science ; Computer Science - Programming Languages</subject><creationdate>2016-03</creationdate><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/1603.08769$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.1603.08769$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Pham, Tuan-Hung</creatorcontrib><creatorcontrib>Gacek, Andrew</creatorcontrib><creatorcontrib>Whalen, Michael W</creatorcontrib><title>Reasoning about Algebraic Data Types with Abstractions</title><description>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.</description><subject>Computer Science - Logic in Computer Science</subject><subject>Computer Science - Programming Languages</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2016</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotj7FuwjAURb0wVMAHdKp_IMFu4md7jKBQJCSkKnv07NjUEk2Q7bbw91DodJaro3sIeeasrJUQbIHxHH5KDqwqmZKgnwh8OEzjEIYDRTN-Z9ocD85EDJauMCNtLyeX6G_In7QxKUe0OYxDmpGJx2Ny839OSbt-a5fvxW6_2S6bXYEgdSGNqXthlADLFe-RS2s0Mia85mAcMPSO9zXXUFurvZPitpQopAf2qqCvpuTlob0f704xfGG8dH8B3T2gugIDa0BC</recordid><startdate>20160329</startdate><enddate>20160329</enddate><creator>Pham, Tuan-Hung</creator><creator>Gacek, Andrew</creator><creator>Whalen, Michael W</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20160329</creationdate><title>Reasoning about Algebraic Data Types with Abstractions</title><author>Pham, Tuan-Hung ; Gacek, Andrew ; Whalen, Michael W</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a679-7bb4d5b856c181da17cb9a005f916be60afe1d41964cc9fe7556c7a57f60286d3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2016</creationdate><topic>Computer Science - Logic in Computer Science</topic><topic>Computer Science - Programming Languages</topic><toplevel>online_resources</toplevel><creatorcontrib>Pham, Tuan-Hung</creatorcontrib><creatorcontrib>Gacek, Andrew</creatorcontrib><creatorcontrib>Whalen, Michael W</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Pham, Tuan-Hung</au><au>Gacek, Andrew</au><au>Whalen, Michael W</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Reasoning about Algebraic Data Types with Abstractions</atitle><date>2016-03-29</date><risdate>2016</risdate><abstract>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.</abstract><doi>10.48550/arxiv.1603.08769</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.1603.08769
ispartof
issn
language eng
recordid cdi_arxiv_primary_1603_08769
source arXiv.org
subjects Computer Science - Logic in Computer Science
Computer Science - Programming Languages
title Reasoning about Algebraic Data Types with Abstractions
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-19T07%3A22%3A17IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Reasoning%20about%20Algebraic%20Data%20Types%20with%20Abstractions&rft.au=Pham,%20Tuan-Hung&rft.date=2016-03-29&rft_id=info:doi/10.48550/arxiv.1603.08769&rft_dat=%3Carxiv_GOX%3E1603_08769%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true