Confluence Modulo Equivalence with Invariants in Constraint Handling Rules
Confluence denotes the property of a state transition system that states can be rewritten in more than one way yielding the same result. Although it is a desirable property, confluence is often too strict in practical applications because it also considers states that can never be reached in practice. Additionally, sometimes states that have the same semantics in the practical context are considered as different states due to different syntactic representations. By introducing suitable invariants and equivalence relations on the states, programs may have the property to be confluent modulo the equivalence relation w.r.t. the invariant which often is desirable in practice.
In this paper, a sufficient and necessary criterion for confluence modulo equivalence w.r.t. an invariant for Constraint Handling Rules (CHR) is presented. It is the first approach that covers invariant-based confluence modulo equivalence for the de facto standard semantics of CHR. There is a trade-off between practical applicability and the simplicity of proving a confluence property. Therefore, a better manageable subset of equivalence relations has been identified that allows for the proposed confluence criterion and simplifies the confluence proofs by using well established CHR analysis methods.
The authors would like to thank Henning Christiansen and Maja H. Kirkeby for the valuable discussions and ideas for future work. Additionally, the authors would like to thank the anonymous reviewers for their valuable comments.
- 6.Duck, G.J., Stuckey, P.J., Sulzmann, M.: Observable confluence for Constraint Handling Rules. In: Schrijvers, T., Frühwirth, T. (eds.) CHR 2006. K.U. Leuven, Department of Computer Science, Technical report CW 452, pp. 61–76, July 2006Google Scholar
- 7.Raiser, F.: Graph transformation systems in constraint handling rules: improved methods for program analysis. Ph.D. thesis, Ulm University, Germany (2010)Google Scholar
- 10.Raiser, F., Betz, H., Frühwirth, T.: Equivalence of CHR states revisited. In: Raiser, F., Sneyers, J. (eds.) 6th International Workshop on Constraint Handling Rules (CHR), KULCW, Technical report CW 555, pp. 33–48, July 2009Google Scholar