Skip to main content

On Computing Constraint Abduction Answers

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 5330))

Abstract

We address the problem of computing and representing answers of constraint abduction problems over the Herbrand domain. This problem is of interest when performing type inference involving generalized algebraic data types. We show that simply recognizing a maximally general answer or fully maximal answer is co-NP complete. However we present an algorithm that computes the (finite) set of fully maximal answers of an abduction problem. The maximally general answers are generally infinite in number but we show how to generate a finite representation of them when only unary function symbols are present.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Diekert, V., Gutierrez, C., Hagenah, C.: The existential theory of equations with rational constraints in free groups is PSPACE-complete. Information and Computation 202(2), 105–140 (2005)

    Article  MathSciNet  MATH  Google Scholar 

  2. Lassez, J.-L., Maher, M.J., Marriott, K.G.: Unification Revisited. In: Minker, J. (ed.) Foundations of Deductive Databases and Logic Programming, pp. 587–625. Kauffman, San Francisco (1987)

    Google Scholar 

  3. Maher, M.J.: Herbrand Constraint Abduction. In: Proc. Symp. on Logic in Computer Science, pp. 397–406 (2005)

    Google Scholar 

  4. Maher, M.: Heyting Domains for Constraint Abduction. In: Sattar, A., Kang, B.-h. (eds.) AI 2006. LNCS (LNAI), vol. 4304, pp. 9–18. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  5. Martelli, A., Montanari, U.: An Efficient Unification Algorithm. ACM Trans. Program. Lang. Syst. 4(2), 258–282 (1982)

    Article  MATH  Google Scholar 

  6. Nelson, G., Oppen, D.C.: Fast Decision Procedures Based on Congruence Closure. JACM 27(2), 356–364 (1980)

    Article  MathSciNet  MATH  Google Scholar 

  7. Paterson, M., Wegman, M.N.: Linear Unification. J. Comput. Syst. Sci. 16(2), 158–167 (1978)

    Article  MathSciNet  MATH  Google Scholar 

  8. Peyton Jones, S., Vytiniotis, D., Weirich, S., Washburn, G.: Simple Unification-based Type Inference for GADTs. In: Proc. Int. Conf. Functional Programming, pp. 50–61. ACM Press, New York (2006)

    Google Scholar 

  9. Pottier, F., Régis-Gianas, Y.: Stratified type inference for generalized algebraic data types. In: Proc. POPL, pp. 232–244. ACM Press, New York (2006)

    Google Scholar 

  10. Robinson, J.A.: A Machine-Oriented Logic Based on the Resolution Principle. JACM 12(1), 23–41 (1965)

    Article  MathSciNet  MATH  Google Scholar 

  11. Simonet, V., Pottier, F.: Constraint-based type inference with guarded algebraic data types. ACM Transactions on Programming Languages and Systems 29(1) (2007)

    Google Scholar 

  12. Schrijvers, T.: Personal communication

    Google Scholar 

  13. Stuckey, P.J., Sulzmann, M., Wazny, J.: Type Processing by Constraint Reasoning. In: Kobayashi, N. (ed.) APLAS 2006. LNCS, vol. 4279, pp. 1–25. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  14. Sulzmann, M., Schrijvers, T., Stuckey, P.J.: Type inference for GADTs via Herbrand constraint abduction, Report CW 507, K.U.Leuven, Dept. of Computer Science (2008)

    Google Scholar 

  15. Xi, H., Chen, C., Chen, G.: Guarded recursive datatype constructors. In: Proc. POPL, pp. 224–235 (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Maher, M., Huang, G. (2008). On Computing Constraint Abduction Answers. In: Cervesato, I., Veith, H., Voronkov, A. (eds) Logic for Programming, Artificial Intelligence, and Reasoning. LPAR 2008. Lecture Notes in Computer Science(), vol 5330. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-89439-1_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-89439-1_30

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-89438-4

  • Online ISBN: 978-3-540-89439-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics