Skip to main content

Tractable and Intractable Second-Order Matching Problems

  • Conference paper
  • First Online:
Computing and Combinatorics (COCOON 1999)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1627))

Included in the following conference series:

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

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Amiot, G.: The undecidability of the second order predicate unification problem, Archive for Mathematical Logic 30, 193–199, 1990.

    Article  MATH  MathSciNet  Google Scholar 

  2. Baxter, L. D.: The complexity of unification, Doctoral Thesis, Department of Computer Science, University of Waterloo, 1977.

    Google Scholar 

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

    Google Scholar 

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

    Article  MATH  MathSciNet  Google Scholar 

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

    Chapter  Google Scholar 

  6. Dowek, G.: A unification algorithm for second-order linear terms, manuscript, 1993, also available at http://coq.inria.fr/~dowek/.

  7. Farmer, W. M.: A unification algorithm for second-order monadic terms, Annals of Pure and Applied Logic 39, 131–174, 1988.

    Article  MATH  MathSciNet  Google Scholar 

  8. Farmer, W. M.: Simple second-order languages for which unification is undecidable, Theoretical Computer Science 87, 25–41, 1991.

    Article  MATH  MathSciNet  Google Scholar 

  9. Flener, P.: Logic program synthesis from incomplete information, Kluwer Academic Press, 1995.

    Google Scholar 

  10. Garey, M. R. and Johnson, D. S.: Computers and intractability: A guide to the theory of NP-completeness, W. H. Freeman and Company, 1979.

    Google Scholar 

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

    Google Scholar 

  12. Goldfarb, W. D.: The undecidability of the second-order unification problem, Theoretical Computer Science 13, 225–230, 1981.

    Article  MATH  MathSciNet  Google Scholar 

  13. Harao, M.: Proof discovery in LK system by analogy, Proc. 3rd Asian Computing Science Conference, LNCS 1345, 197–211, 1997.

    Google Scholar 

  14. Huet, G. P. and Lang, B.: Proving and applying program transformations expressed with second-order patterns, Acta Informatica 11, 31–55, 1978.

    Article  MATH  MathSciNet  Google Scholar 

  15. Levy, J.: Linear second-order unification, Proc. 7th International Conference on Rewriting Techniques and Applications, LNCS 1103, 332–346, 1996.

    Google Scholar 

  16. Levy, J.: Decidable and undecidable second-order unification problem, Proc. 9th International Conference on Rewriting Techniques and Applications, LNCS 1379, 47–60, 1998.

    Chapter  Google Scholar 

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

  18. Miller, D.: A logic programming language with lambda-abstraction, function variables, and simple unification, Journal of Logic and Computation 1, 497–536, 1991.

    Article  MATH  MathSciNet  Google Scholar 

  19. Prehofer, C.: Decidable higher-order unification problems, Proc. 12th International Conference on Automated Deduction (CADE 12), LNAI 814, 635–649, 1994.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics