• Aucun résultat trouvé

Abstract: The Extended Theory of Trees and Algebraic (Co)datatypes

N/A
N/A
Protected

Academic year: 2022

Partager "Abstract: The Extended Theory of Trees and Algebraic (Co)datatypes"

Copied!
1
0
0

Texte intégral

(1)

Abstract: The Extended Theory of Trees and Algebraic (Co)datatypes

Fabian Zaiser, Luke Ong

University of Oxford, United Kingdom

Abstract

The first-order theory of algebraic datatypes (and codatatypes) is an important theory implemented in many SMT solvers. It is related to the theory of finite and infinite trees, which has been studied since the eighties, especially by the logic programming community. Following Djelloul, Dao and Frühwirth, we consider an extension of the latter theory with an additional predicate for finiteness of trees, which is useful for expressing properties about (not just datatypes but also) codatatypes. Based on their work, we present a simplification procedure that determines whether any given (not necessarily closed) formula is satisfiable, returning a simplified formula which enables one to read off all possible models. Our extension makes the algorithm usable for algebraic (co)datatypes, which was impossible in their original work due to restrictive assumptions. To this end, we clarify the relationship between the two theories and describe a translation procedure. We find that trees are in some ways more expressive than (co)datatypes while preserving decidability, which makes them interesting for SMT applications. We also provide a prototype implementation of our simplification procedure and evaluate it on instances from the SMT-LIB.

The full article (DOI:10.4204/EPTCS.320.14) is published in the proceedings of the 2020 ETAPS workshop Horn Clauses for Verification and Synthesis.

Keywords

theory of trees, decision procedure, first-order theory, algebraic datatypes, inductive datatypes, coinduc- tive datatypes

SMT’21: 19th International Workshop on Satisfiability Modulo Theories, July 18–19, 2021, Online

"[email protected](F. Zaiser);[email protected](L. Ong)

0000-0001-5158-2002(F. Zaiser);0000-0001-7509-680X(L. Ong)

© 2021 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).

CEUR Workshop Proceedings

http://ceur-ws.org

ISSN 1613-0073 CEUR Workshop Proceedings (CEUR-WS.org)

65

Références

Documents relatifs

Our work is therefore close to Casl-Chart, but our approach is more flexible at the dynamic specification level since, more than the integration of algebraic specification into a

The disjunction φ of general solved formulas extracted from the final working formula is either the formula false or true or a formula having at least one free variable,

We have extended this theory by giving a complete first-order axiomatization T of the evaluated trees [6] which are combination of finite or infinite trees with construction

The first configuration corresponds to the axiomatic approach presented in Section 3: the axioms Dist , Inj , Exhaust , Sub, NSub, App, Uniq, Cycl, and Hole are added to the set

The Hopf algebra of rooted trees associated to Butcher’s group (as well as the Hopf algebras of planar rooted trees in [MKW08, BO05]) can be seen as a particular instance of a

We represent the bio-sequence datatype class as a subclass of the character sequence datatype class with the defined semantic meaning in the NCI Thesaurus and the EDAM ontology 6..

We aim at a classification of the data complexity of query answering with OMQs (T , q, D) based on the datatype pattern dtype(q) of q that consists of all atoms using the relations

Since the full first-order theory of ordering constraints over sufficiently labeled (finite) feature trees can easily be encoded in (weak) second order monadic logic, decidability