The Extended Theory of Trees and Algebraic (Co)datatypes
Abstract
The first-order theory of finite and infinite trees has been studied since the eighties, especially by the logic programming community. Following Djelloul, Dao and Frühwirth, we consider an extension of this 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. We also provide a prototype implementation of our simplification procedure and evaluate it on instances from the SMT-LIB.
- Publication:
-
arXiv e-prints
- Pub Date:
- May 2020
- DOI:
- 10.48550/arXiv.2005.06659
- arXiv:
- arXiv:2005.06659
- Bibcode:
- 2020arXiv200506659Z
- Keywords:
-
- Computer Science - Logic in Computer Science;
- Computer Science - Symbolic Computation
- E-Print:
- In Proceedings VPT/HCVS 2020, arXiv:2008.02483