Skip to main content

Proving Termination of Constraint Solver Programs

  • Conference paper
  • First Online:

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

Abstract

We adapt and extend existing approaches to termination in rule-based languages (logic programming and rewriting systems) to prove termination of actually implemented CHR constraint solvers. CHR (Constraint Handling Rules) are a declarative language especially designed for writing constraint solvers. CHR are a concurrent constraint logic programming language consisting of multi-headed guarded rules that rewrite constraints into simpler ones until they are solved. The approach allows to prove termination of many constraint solvers, from Boolean and arithmetic to terminological and path-consistent constraints. Because of multi-heads, our termination orders must consider conjunctions, while atomic formulas suffice in usual approaches. Our results indicate that in practice, proving termination for concurrent constraint logic programs may not be harder than for other classes of logic programming languages, contrary to what has been feared in the literature.

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. S. Abdennadher, Operational Semantics and Confluence of Constraint Propagation Rules, 3rd Intl Conf on Principles and Practice of Constraint Programming (CP’97), Linz, Austria, Springer LNCS 1330, pp 252–265, October/November 1997.

    Chapter  Google Scholar 

  2. S. Abdennadher and T. Frühwirth, Operational Equivalence of CHR Programs and Constraints, 5th Intl Conf on Principles and Practice of Constraint Programming (CP’99), Alexandra, Virginia, USA, Springer LNCS, 1999.

    Google Scholar 

  3. S. Abdennadher, T. Frühwirth and H. Meuss, Confluence and Semantics of Constraint Simplification Rules, Journal Constraints Vol. 4(2), Kluwer Academic Publishers, May 1999.

    Google Scholar 

  4. K.R. Apt and D. Pedreschi, Studies in Pure Prolog: Termination, ESPRIT Computational Logic Symposium, Springer 1990, pp 150–176.

    Google Scholar 

  5. F. Baader and P. Hanschke. A scheme for integrating concrete domains into concept languages. 12th International Joint Conference on Artificial Intelligence, 1991.

    Google Scholar 

  6. F. Baader and T. Nipkow, Term Rewriting and All That, Cambridge University Press, 1998.

    Google Scholar 

  7. F. Benhamou and W.J. Older, Bell Northern Research, Applying interval arithmetic to Integer and Boolean constraints, Technical Report, June 1992.

    Google Scholar 

  8. M. Bezem, Strong Termination of Logic Programs, Journal of Logic Programming Vol. 15(1,2), pp. 79–98, 1993.

    Article  MATH  MathSciNet  Google Scholar 

  9. H. Comon, M. Dincbas, J.-P. Jouannaud and C. Kirchner, A Methodological View of Constraint Solving, Constraints Journal Vol. 4(4), pp. 337–361, Kluwer Academic Publishers, December 1999.

    Google Scholar 

  10. L. Colussi, E. Marchiori and M. Marchiori, On Termination of Constraint Logic Programs, 1st Intl Conf on Principles and Practice of Constraint Programming (PPCP’95), Cassis, France, Springer LNCS 976, 1995.

    Google Scholar 

  11. N. Dershowitz, Termination of Rewriting, Journal of Symbolic Computation Vol. 3(1+2), pp. 69–116, 1987.

    Article  MATH  MathSciNet  Google Scholar 

  12. D. de Schreye and St. Decorte, Termination of Logic Programs: The Never-Ending Story, Journal of Logic Programming Vol. 19, 20, pp. 199–260, Elsevier, New York, USA, 1994.

    Google Scholar 

  13. T. Frühwirth and S. Abdennadher, Constraint-Programmierung (in German), Textbook, Springer Verlag, Heidelberg, Germany, September 1997.

    Google Scholar 

  14. T. Frühwirth and P. Brisset, Optimal Placement of Base Stations in Wireless Indoor Communication Networks, Special Issue of the IEEE Intelligent Systems Magazine on Practical Applications of Constraint Technology, (M. Wallace and G. Freuder, Eds.), IEEE Press, Vol. 15(1), pp. 49–53, January/February 2000.

    Google Scholar 

  15. T. Frühwirth and P. Hanschke, Terminological Reasoning with Constraint Handling Rules, in Principles and Practice of Constraint Programming, (P. van Hentenryck and V.J. Saraswat, Eds.), MIT Press, Cambridge, Mass., USA, 1995.

    Google Scholar 

  16. T. Frühwirth, Theory and Practice of Constraint Handling Rules, Special Issue on Constraint Logic Programming (P. J. Stuckey and K. Marriot, Eds., Journal of Logic Programming Vol. 37(1–3), pp. 95–138, Oct–Dec 1998.

    Google Scholar 

  17. C. Holzbaur and T. Frühwirth, A Prolog Constraint Handling Rules Compiler and Runtime System, Special Issue of the Journal of Applied Artificial Intelligence on Constraint Handling Rules (C. Holzbaur and T. Fr”uhwirth, Eds., Taylor & Francis, to appear 2000.

    Google Scholar 

  18. J.-L. J. Imbert, Linear Constraint Solving in CLP-Languages, in Constraint Programming: Basics and Trends, (A. Podelski, Ed.), LNCS 910, March 1995.

    Google Scholar 

  19. J. Jaffar and M. J. Maher, Constraint Logic Programming: A Survey, Journal of Logic Programming Vol. 19,20, pp. 503–581, 1994.

    Article  MathSciNet  Google Scholar 

  20. M.R.K. Krishna Rao, D. Kapur and R. K. Shyamasundar, Proving Termination of GHC Programs, New Generation Computing, 1997.

    Google Scholar 

  21. A. K. Mackworth and E. C. Freuder, The Complexity of Some Polynomial Network Consistency Algorithms for Constraint Satisfaction Problems, Journal of Artificial Intelligence Vol. 25, pp. 65–74, 1985.

    Article  Google Scholar 

  22. K. Marriott and P. J. Stuckey, Programming with Constraints, MIT Press, USA, March 1998.

    MATH  Google Scholar 

  23. E. Marchiori and F. Teusink, Proving Termination of Logic Programs with Delay Declarations, ILPS 95, 1995.

    Google Scholar 

  24. M. J. Maher, Logic Semantics for a Class of Committed-Choice Programs, 4th Intl Conf on Logic Programming, Melbourne, Australia, pp 858–876, MIT Press, Cambridge, Mass., USA, 1987.

    Google Scholar 

  25. F. Mesnard, Inferring Left-terminating Classes of Queries for Constraint Logic Programs, Joint Intl Conf and Symposium on Logic Programming (JICSLP’96), (M. Maher, Ed.), pp 7–21, Bonn, Germany, MIT Press, September 1996.

    Google Scholar 

  26. L. Naish, Coroutining and the Construction of Terminating Logic Programs, Technical Report 92/5, Dept of Computer Science, University of Melbourne, Australia, 1992.

    Google Scholar 

  27. L. Plümer, Automatic Verification of GHC-Programs: Termination, Fifth Generation Computer Systems, (FGCS’92), Tokyo, Japan, June 1992.

    Google Scholar 

  28. S. Ruggieri, Termination of Constraint Logic Programs, ICALP 1997, Springer LNCS 1256, pp. 838–848, 1997.

    Google Scholar 

  29. P. van Hentenryck, H. Simonis and M. Dincbas, Constraint Satisfaction Using Constraint Logic Programming, Artificial Intelligence, 58(1–3):113–159, December 1992.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Frühwirth, T. (2000). Proving Termination of Constraint Solver Programs. In: Apt, K.R., Monfroy, E., Kakas, A.C., Rossi, F. (eds) New Trends in Constraints. WC 1999. Lecture Notes in Computer Science(), vol 1865. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44654-0_15

Download citation

  • DOI: https://doi.org/10.1007/3-540-44654-0_15

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

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

  • Online ISBN: 978-3-540-44654-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics