Abstract
The second-order matching problem is the problem of determining, for a finite set \( \left\{ {\left\langle {t_i s_i } \right\rangle \left| {i \in I} \right.} \right\} \) of pairs of a second-order term t i and a first-order closed term s i , called a matching expression, whether or not there exists a substitution σ such that t iσ = s i for each i ∈ I. It is well-known that the second-order matching problem is NP-complete. In this paper, we introduce the following restrictions of a matching expression: k-ary, k-fv , predicate, ground, and function-free. Then, we show that the second-order matching problem is NP-complete for a unary predicate, a unary ground, a ternary function-free predicate, a binary function-free ground, and an 1-fv predicate matching expressions, while it is solvable in polynomial time for a binary function-free predicate, a unary function-free, a k-fv function-free (k ≥ 0), and a ground predicate matching expressions.
This work is partially supported by the Japanese Ministry of Education, Grant-in-Aid for Exploratory Research 10878055 and Kayamori Foundation of Informational Science Advancement.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Amiot, G.: The undecidability of the second order predicate unification problem, Archive for Mathematical Logic 30, 193–199, 1990.
Baxter, L. D.: The complexity of unification, Doctoral Thesis, Department of Computer Science, University of Waterloo, 1977.
Curien, R., Qian, Z. and Shi, H.: Efficient second-order matching, Proc. 7th International Conference on Rewriting Techniques and Applications, LNCS 1103, 317–331, 1996.
Défourneaux, G., Bourely, C. and Peltier, N.: Semantic generalizations for proving and disproving conjectures by analogy, Journal of Automated Reasoning 20, 27–45, 1998.
Donat, M. R. and Wallen, L. A.: Learning and applying generalized solutions using higher order resolution, Proc. 9th International Conference on Automated Deduction, LNCS 310, 41–60, 1988.
Dowek, G.: A unification algorithm for second-order linear terms, manuscript, 1993, also available at http://coq.inria.fr/~dowek/.
Farmer, W. M.: A unification algorithm for second-order monadic terms, Annals of Pure and Applied Logic 39, 131–174, 1988.
Farmer, W. M.: Simple second-order languages for which unification is undecidable, Theoretical Computer Science 87, 25–41, 1991.
Flener, P.: Logic program synthesis from incomplete information, Kluwer Academic Press, 1995.
Garey, M. R. and Johnson, D. S.: Computers and intractability: A guide to the theory of NP-completeness, W. H. Freeman and Company, 1979.
Ganzinger, H., Jacquemard, F. and Veanes, M.: Rigid reachability, Proc. 4th Asian Computing Science Conference, LNCS 1538, 1998, also available at http://www.mpi-sb.mpg.de/~hg/.
Goldfarb, W. D.: The undecidability of the second-order unification problem, Theoretical Computer Science 13, 225–230, 1981.
Harao, M.: Proof discovery in LK system by analogy, Proc. 3rd Asian Computing Science Conference, LNCS 1345, 197–211, 1997.
Huet, G. P. and Lang, B.: Proving and applying program transformations expressed with second-order patterns, Acta Informatica 11, 31–55, 1978.
Levy, J.: Linear second-order unification, Proc. 7th International Conference on Rewriting Techniques and Applications, LNCS 1103, 332–346, 1996.
Levy, J.: Decidable and undecidable second-order unification problem, Proc. 9th International Conference on Rewriting Techniques and Applications, LNCS 1379, 47–60, 1998.
Levy, L. and Veanes, M.: On unification problems in restricted second-order languages, Proc. Annual Conference of the European Association for Computer Science Logic (CSL'98), 1998, also available at http://www.iiia.csic.es/~levy/.
Miller, D.: A logic programming language with lambda-abstraction, function variables, and simple unification, Journal of Logic and Computation 1, 497–536, 1991.
Prehofer, C.: Decidable higher-order unification problems, Proc. 12th International Conference on Automated Deduction (CADE 12), LNAI 814, 635–649, 1994.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1999 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Hirata, K., Yamada, K., Harao, M. (1999). Tractable and Intractable Second-Order Matching Problems. In: Asano, T., Imai, H., Lee, D.T., Nakano, Si., Tokuyama, T. (eds) Computing and Combinatorics. COCOON 1999. Lecture Notes in Computer Science, vol 1627. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48686-0_43
Download citation
DOI: https://doi.org/10.1007/3-540-48686-0_43
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-66200-6
Online ISBN: 978-3-540-48686-2
eBook Packages: Springer Book Archive