Complement problems and tree automata in AC-like theories

From MaRDI portal





Many problems arising in computer science involve formulae built on terms and the equality predicate. For instance, to decide whether a function definition like \(f(x,0)\to 0\), \(f(x,s(y))\to s(f(x,y))\) is complete amounts to solving the formula \[ \exists x,y \forall:\;z_ 1,z_ 2,z_ 3\;f(x,y)\neq f(z_ 1,0)\wedge f(x,y)\neq f(z_ 2, s(z_ 3)). \] This formula belongs to the general class of complement problems \(t\neq t_ 1\wedge \dots\wedge t\neq t_ n\) which is relevant in many applications from automated theorem proving to logic programming via functional programming and machine learning. Pure syntactic terms lacks expressivity, and the usual cure is to add axioms. The most useful one are the associative and commutative axioms, in short AC axioms, and some variant of them. An immediate consequence of adding axioms is that formulae on equality become undecidable: the \(\Sigma_ 2\) class for associativity and \(\Sigma_ 3\) class for associativity-commutativity are undecidable. Therefore the complement problem modulo these theories is likely to be difficult, for example a solution in the associative- commutative case contains unifiability modulo associativity-commutativity which is NP-complete. This paper is devoted to the complement problem modulo AC and AC-like axioms. We give two different kinds of solution. The first one is a new one, and it comes from language theory and uses tree automata. It gives simple decidability proofs and can be generalized in several ways, either by considering other theories or by considering other types of automata. It yields a whole class of decision procedures and extends previous known results. Moreover it gives for free the decidability of inductive reducibility modulo these theories for left-linear term rewrite systems which is a key concept in the inductionless induction proof method used in automated theorem proving. At the present time, it is mainly limited to linear complement problems although it can handle some nonlinear cases. The second type of decision procedures is based on an instantiation scheme already presented by the first author, \textit{E. Kounalis} and \textit{L. Pottier} [Lect. Notes Comput. Sci. 520, 287-297 (1991; Zbl 0776.68101)]. It relies on the fact that there is a solution of the complement problem if and only if there is a solution in some bounded set of terms. Unfortunately, the proofs are tuned for the particular theory that we consider, therefore we have ad-hoc methods which do not generalize fairly well. To illustrate this approach we extend a proof of the above cited article to a restricted nonlinear case in the AC theory. For the entire collection see [Zbl 0866.00060].











This page was built for publication: Complement problems and tree automata in AC-like theories

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4281554)