Skip to main content
Log in

Complexity of unification problems with associative-commutative operators

  • Published:
Journal of Automated Reasoning Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Similar content being viewed by others

References

  1. 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).

  2. Baader, F., ‘Unification in varieties of idempotent semigroups,’ Semigroup Forum 36, 132 (1987).

    Google Scholar 

  3. 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).

  4. 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).

    Google Scholar 

  5. Chandra, A. and Kanellakis, P., Personal communication (1985).

  6. Dowling, W. F. and Gallier, J., ‘Linear time algorithms for testing the satisfiability of propositional Horn formula,’ J. Logic Programming 3, 267–284 (1984).

    Google Scholar 

  7. 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).

  8. Fay, M., ‘First-order unification in an equational theory’, in: Proc 4th Workshop on Automated Deduction, Austin, Texas (1979).

  9. 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).

  10. 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).

    Google Scholar 

  11. 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).

  12. 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.

  13. 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.

  14. 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.

    Google Scholar 

  15. Kapur, D. and Narendran, P., ‘Matching, unification, and complexity’, SIGSAM Bulletin (1987).

  16. 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).

  17. 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).

  18. 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.

    Google Scholar 

  19. Lankford, D. S., ‘Canonical inference’. Report ATP-32, Dept. of Mathematics and Computer Sciences, Univ. of Texas, Austin, TX (1975).

    Google Scholar 

  20. 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).

    Google Scholar 

  21. Livesey, M. and Siekmann, J., ‘Unification in sets and multisets’. Memo SEKI-76-11, Universitaet Karlsruhe (1976).

  22. 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).

  23. Makanin, G. S. ‘The problem of solvability of equations in a free semi-group’. Akad. Nauk. SSSR, Transactions on Mathematics 233, 2, (1977).

    Google Scholar 

  24. Papadimitriou, C. H. and Steiglitz, K., Combinatorial Optimization: Algorithms and Complexity, Prentice-Hall (1982).

  25. Paterson, M. S. and Wegman, M. N., ‘Linear unification’, J. Computer and System Sciences 16, 158–167 (1978).

    Google Scholar 

  26. Peterson, G. E. and Stickel, M. E., ‘Complete sets of reductions for some equational theories’, J. Assoc. Comp. Mach. 28(2), 233–264 (1981).

    Google Scholar 

  27. Plotkin, G., ‘Building in equational theories’, Machine Intelligene 7 (eds. Meltzer an Michie), pp. 73–90 (1972).

  28. Sethi, R., cited in [10], p. 252.

  29. Siekmann, J. H., ‘Universal unification’, in: Proc. 7th Conference on Automated Deduction (CADE-84), Napa Valley, California, LNCS 170, Springer Verlag (1984).

  30. Siekmann, J. H., ‘Unification theory,’ J. Symbolic Computation 7, 207–274 (1989).

    Google Scholar 

  31. Slagle, J., ‘Automated theorem proving with simplifiers, commutativity and associativity’, J. Assoc. Comp. Mach. 21, 622–642 (1974).

    Google Scholar 

  32. Stickel, M. E., ‘A complete unification algorithm for associative-commutative functions’, 4th International Joint Conf. Artificial Intelligence, Tbilisi, USSR (1975).

  33. Stickel, M. E., ‘A unification algorithm for associative-commutative functions,’ J. Assoc. Comp. Mach. 28, 423–434 (1981).

    Google Scholar 

  34. Szabo, P., ‘Unifikationstheorie erster Ordnung’, Dissertation, Universitat Karlsruhe, West Germany (1982).

  35. Wos, L. and Robinson, G., ‘Paramodulation and set of support,’ Proceedings of the IRIA Symposium on Automatic Demonstration, Springer Verlag, New York, 1968.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

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

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00245463

Key words

Navigation