Abstract
The unification problem for terms containing associative and commutative functions is of importance in theorem provers based on term rewriting and resolution methods as well as in logic programming. The complexity of determining whether two such terms are unifiable was known to be NP-hard. It is proved that the problem is NP-complete by describing a nondeterministic polynomial time algorithm for it. The case where the terms are linear and have no common variables is shown to be in P. The NP-completeness of other similar unification problems, in particular, when a function symbol is also idempotent and/or has a unit (identity), is also discussed. Finally, a table of the complexity of E-matching and E-unification problems is given.
Similar content being viewed by others
References
Arnborg, S. and Tiden, E., ‘Unification problems with one-sided distributivity’, in: Proc. First international conference on Rewriting Techniques and Applications (RTA-85), Dijon, France, May 1985, LNCS 202, Springer Verlag, pp. 398–406. A revised version appeared in J. Symbolic Computation 3 (1987).
Baader, F., ‘Unification in varieties of idempotent semigroups,’ Semigroup Forum 36, 132 (1987).
Benanav, D., Kapur, D. and Narendran, P., ‘Complexity of matching problems’, in : Proc. First international conference on Rewriting Techniques and Applications (RTA-85), Dijon, France, May 1985, LNCS 202, Springer Verlag. A revised version appeared in J. Symbolic Computation 3, 203–216 (1987).
Bürchert, H.-J., Herold, A., Kapur, D., Siekmann, J. H., Stickel, M., Tepp, M. and Zhang, H., ‘Opening the AC-unification race,’ J. Automated Reasoning 4, 465–474 (1988).
Chandra, A. and Kanellakis, P., Personal communication (1985).
Dowling, W. F. and Gallier, J., ‘Linear time algorithms for testing the satisfiability of propositional Horn formula,’ J. Logic Programming 3, 267–284 (1984).
Fages, F., ‘Associative-commutative unification’, in: Proc. 7th Conference on Automated Deduction (CADE-7), Napa Valley, California, 1984, LNCS 170, Springer Verlag. A revised version appeared in J. Symbolic Computation 3(3), June (1987).
Fay, M., ‘First-order unification in an equational theory’, in: Proc 4th Workshop on Automated Deduction, Austin, Texas (1979).
Fortenbacher, A., ‘An algebraic approach to unification under associativity and commutativity’, in: Proc. First international conference on Rewriting Techniques and Applications (RTA-85), Dijon, France, 1985, LNCS 202, Springer Verlag. A revised version appeared in J. Symbolic Computation 3, June (1987).
Garey, M. R. and Johnson, D. S., Computers and intractability: A Guide to the Theory of NP-Completeness W. H. Freeman and Co., San Francisco (1979).
Herold, A. and Siekmann, J., ‘Unification in Abelian semigroups’. Memo SEKI-85-III-KL, Universitaet Kaiserslautern (1985). A revised version appeared in J. Automated Reasoning 3(3) (1987).
Kandri-Rody, A., Kapur, D. and Narendran, P., ‘Word and unification problems over commutative algebras’, in: Proc. First international conference on Rewriting Techniques and Applications (RTA-85), Dijon, France, 1985, LNCS 202, Springer-Verlag.
Kapur, D. and Narendran, P., ‘NP-completeness of the set unification and matching problems’, in: Proc. 8th Conference on Automated Deduction (CADE-8), Oxford, U.K. (1986), LNCS 230, Springer Verlag.
Kapur, D. and Narendran, P., ‘NP-completeness of the associative-commutative unification and related problems’. Unpublished Manuscript, Computer Science Branch, General Electric Corporate Research and Development, Schenectady, NY (Dec. 1986). A preliminary version of this paper.
Kapur, D. and Narendran, P., ‘Matching, unification, and complexity’, SIGSAM Bulletin (1987).
Kapur, D., Narendran, P. and Otto, F., ‘On ground confluence of term rewriting systems’. Technical Report, Department of Computer Science, State University of New York at Albany (1988). A revised version appeared in Information and Computation (May 1990).
Knuth, D. E. and Bendix, P. B., ‘Simple word problems in universal algebras’, in Computational Problems in Abstract Algebras (ed. J. Leech), Pergamon Press, pp. 263–297 (1970).
Kozen, D., ‘Complexity of finitely presented algebras’. Report No. 76–294, Dept. of Computer Science, Cornell University, Ithaca, NY (1976). Cited in [10] p. 253.
Lankford, D. S., ‘Canonical inference’. Report ATP-32, Dept. of Mathematics and Computer Sciences, Univ. of Texas, Austin, TX (1975).
Lankford, D. S. and Ballantyne, A. M., ‘Decision procedures for simple equational theories with commutative-associative axioms: complete sets of commutative-associative reductions’. Memo ATP 39, Dept. of Mathematics and Computer Sciences, Univ. of Texas, Austin, TX (1977).
Livesey, M. and Siekmann, J., ‘Unification in sets and multisets’. Memo SEKI-76-11, Universitaet Karlsruhe (1976).
Livesey, M., Siekmann, J., Szabo, P. and Unvericht, E., ‘Unification problems for combinations of associativity, commutativity, distributivity, and idempotence axioms’, in: Proc. 4th Workshop on Automated Deduction, Austin, Texas, pp. 161–167 (1979).
Makanin, G. S. ‘The problem of solvability of equations in a free semi-group’. Akad. Nauk. SSSR, Transactions on Mathematics 233, 2, (1977).
Papadimitriou, C. H. and Steiglitz, K., Combinatorial Optimization: Algorithms and Complexity, Prentice-Hall (1982).
Paterson, M. S. and Wegman, M. N., ‘Linear unification’, J. Computer and System Sciences 16, 158–167 (1978).
Peterson, G. E. and Stickel, M. E., ‘Complete sets of reductions for some equational theories’, J. Assoc. Comp. Mach. 28(2), 233–264 (1981).
Plotkin, G., ‘Building in equational theories’, Machine Intelligene 7 (eds. Meltzer an Michie), pp. 73–90 (1972).
Sethi, R., cited in [10], p. 252.
Siekmann, J. H., ‘Universal unification’, in: Proc. 7th Conference on Automated Deduction (CADE-84), Napa Valley, California, LNCS 170, Springer Verlag (1984).
Siekmann, J. H., ‘Unification theory,’ J. Symbolic Computation 7, 207–274 (1989).
Slagle, J., ‘Automated theorem proving with simplifiers, commutativity and associativity’, J. Assoc. Comp. Mach. 21, 622–642 (1974).
Stickel, M. E., ‘A complete unification algorithm for associative-commutative functions’, 4th International Joint Conf. Artificial Intelligence, Tbilisi, USSR (1975).
Stickel, M. E., ‘A unification algorithm for associative-commutative functions,’ J. Assoc. Comp. Mach. 28, 423–434 (1981).
Szabo, P., ‘Unifikationstheorie erster Ordnung’, Dissertation, Universitat Karlsruhe, West Germany (1982).
Wos, L. and Robinson, G., ‘Paramodulation and set of support,’ Proceedings of the IRIA Symposium on Automatic Demonstration, Springer Verlag, New York, 1968.
Author information
Authors and Affiliations
Additional information
Partially supported by the National Science Foundation grant nos. DCR-8408461 and CCR-8906678. A preliminary version of this paper appeared earlier as a technical report of General Electric Corporate Research and Development, Dec. 1986.
Rights and permissions
About this article
Cite this article
Kapur, D., Narendran, P. Complexity of unification problems with associative-commutative operators. J Autom Reasoning 9, 261–288 (1992). https://doi.org/10.1007/BF00245463
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00245463