Hostname: page-component-cd9895bd7-fscjk Total loading time: 0 Render date: 2024-12-26T07:39:24.835Z Has data issue: false hasContentIssue false

Decidability properties for fragments of CHR

Published online by Cambridge University Press:  09 July 2010

MAURIZIO GABBRIELLI
Affiliation:
Dipartimento di Scienze dell'Informazione and Lab. Focus INRIA, Università di Bologna, Italy (e-mail: gabbri@cs.unibo.it)
JACOPO MAURO
Affiliation:
Dipartimento di Scienze dell'Informazione, Università di Bologna, Italy (e-mail: jmauro@cs.unibo.it)
MARIA CHIARA MEO
Affiliation:
Dipartimento di Scienze, Università di Chieti Pescara, Italy (e-mail: cmeo@unich.it)
JON SNEYERS
Affiliation:
Departement Computerwetenschappen, K.U. Leuven, Belgium (e-mail: jon.sneyers@cs.kuleuven.be)

Abstract

We study the decidability of termination for two CHR dialects which, similarly to the Datalog like languages, are defined by using a signature which does not allow function symbols (of arity > 0). Both languages allow the use of the = built-in in the body of rules, thus are built on a host language that supports unification. However each imposes one further restriction. The first CHR dialect allows only range-restricted rules, that is, it does not allow the use of variables in the body or in the guard of a rule if they do not appear in the head. We show that the existence of an infinite computation is decidable for this dialect. The second dialect instead limits the number of atoms in the head of rules to one. We prove that in this case, the existence of a terminating computation is decidable. These results show that both dialects are strictly less expressive1 than Turing Machines. It is worth noting that the language (without function symbols) without these restrictions is as expressive as Turing Machines.

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2010

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

Abdulla, P. A., Cerans, K., Jonsson, B., and Tsay, Y.-K. 1996. General decidability theorems for infinite-state systems. In Proceedings, 11th Annual IEEE Symposium on Logic in Computer Science. IEEE, 313321.CrossRefGoogle Scholar
Betz, H. 2007. Relating coloured Petri nets to Constraint Handling Rules. In 4th Workshop on Constraint Handling Rules, Djelloul, K., Duck, G. J., and Sulzmann, M., Eds. Porto, Portugal, 3347.Google Scholar
Busi, N., Gabbrielli, M., and Zavattaro, G. 2004. Comparing recursion, replication, and iteration in process calculi. In ICALP, Díaz, J., Karhumäki, J., Lepistö, A., and Sannella, D., Eds. Lecture Notes in Computer Science, vol. 3142. Springer, 307319.Google Scholar
de Boer, F. S., Gabbrielli, M., and Meo, M. C. 2000. A timed concurrent constraint language. Information and Computation 161, 1, 4583.CrossRefGoogle Scholar
de Boer, F. S. and Palamidessi, C. 1990. On the asynchronous nature of communication in concurrent logic languages: A fully abstract model based on sequences. In CONCUR, Baeten, J. C. M. and Klop, J. W., Eds. Lecture Notes in Computer Science, vol. 458. Springer, 99114.Google Scholar
Di Giusto, C., Gabbrielli, M., and Meo, M. C. 2009. Expressiveness of multiple heads in CHR. In SOFSEM, Nielsen, M., Kucera, A. et al. , Eds. Lecture Notes in Computer Science, vol. 5404. Springer, 205216.Google Scholar
Duck, G. J., Stuckey, P. J., García de la Banda, M., and Holzbaur, C. 2004. The refined operational semantics of Constraint Handling Rules. In ICLP '04, Demoen, B. and Lifschitz, V., Eds. Lecture Notes in Computer Science, vol. 3132. Springer, Saint-Malo, France, 90104.Google Scholar
Finkel, A. and Schnoebelen, P. 2001. Well-structured transition systems everywhere! Theoretical Computer Science 256, 1–2, 6392.CrossRefGoogle Scholar
Frühwirth, T. 1998. Theory and practice of Constraint Handling Rules. Journal of Logic Programming, Special Issue on Constraint Logic Programming 37, 1–3, 95138.CrossRefGoogle Scholar
Frühwirth, T. 2009. Constraint Handling Rules. Cambridge University Press.CrossRefGoogle Scholar
Frühwirth, T. W. 2002. As time goes by: Automatic complexity analysis of simplification rules. In KR, Fensel, D., Giunchiglia, F., McGuinness, D. L., and Williams, M.-A., Eds. Morgan Kaufmann, 547557.Google Scholar
Frühwirth, T. W. and Abdennadher, S. 2001. The Munich rent advisor: A success for logic programming on the internet. TPLP 1, 3, 303319.Google Scholar
Gabbrielli, M., Mauro, J., Meo, M. C., and Sneyers, J. 2010. Decidability Properties for Fragments of CHR. Technical report Available from http://www.cs.unibo.it/~jmauro/papers/tech_report_iclp_2010.Google Scholar
Sneyers, J. 2008. Turing-complete subclasses of CHR. In ICLP, de la Banda, M. G. and Pontelli, E., Eds. Lecture Notes in Computer Science, vol. 5366. Springer, 759763.Google Scholar
Sneyers, J., Schrijvers, T., and Demoen, B. 2009. The computational power and complexity of Constraint Handling Rules. ACM Transactions on Programming Languages and Systems 31, 2.CrossRefGoogle Scholar
Sneyers, J., Van Weert, P., De Koninck, L., and Schrijvers, T. 2010. As time goes by: Constraint Handling Rules—A survey of CHR research between 1998 and 2007. Theory and Practice of Logic Programming 10, 1 (January), 147.CrossRefGoogle Scholar