Decidability of the purely existential fragment of the theory of term algebras
- 1 April 1987
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 34 (2) , 492-510
- https://doi.org/10.1145/23005.24037
Abstract
This paper is concerned with the question of the decidability and the complexity of the decision problem for certain fragments of the theory of free term algebras . The existential fragment of the theory of term algebras is shown to be decidable through the presentation of a nondeterministic algorithm, which, given a quantifier-free formula P , constructs a solution for P if it has one and indicates failure if there are no solutions. It is shown that the decision problem is in NP by proving that, if a quantifier-free formula P has a solution, then there is one that can be represented as a dag in space at most cubic in the length of P . The decision problem is shown to be complete for NP by reducing 3-SAT to that problem. Thus it is established that the existential fragment of the theory of pure list structures in the language of NIL, CONS, CAR, CDR, =, ≤ (subexpression) is NP-complete. It is further shown that even a slightly more expressive fragment of the theory of term algebras, the one that allows bounded universal quantifiers, is undecidable.Keywords
This publication has 9 references indexed in Scilit:
- A view of computability on term algebrasJournal of Computer and System Sciences, 1983
- Variations on the Common Subexpression ProblemJournal of the ACM, 1980
- Reasoning About Recursively Defined Data StructuresJournal of the ACM, 1980
- Fast Decision Procedures Based on Congruence ClosureJournal of the ACM, 1980
- The Computational Complexity of Logical TheoriesLecture Notes in Mathematics, 1979
- Abstract data types and software validationCommunications of the ACM, 1978
- The polynomial-time hierarchyTheoretical Computer Science, 1976
- Proving Theorems about LISP FunctionsJournal of the ACM, 1975
- On the number of solutions of Diophantine equationsProceedings of the American Mathematical Society, 1972