A transformational approach for proving properties of the CHR constraint store

  • Authors:
  • Paolo Pilozzi;Tom Schrijvers;Maurice Bruynooghe

  • Affiliations:
  • Department of Computer Science, K.U. Leuven, Belgium;Department of Computer Science, K.U. Leuven, Belgium;Department of Computer Science, K.U. Leuven, Belgium

  • Venue:
  • LOPSTR'09 Proceedings of the 19th international conference on Logic-Based Program Synthesis and Transformation
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Proving termination of, or generating efficient control for Constraint Handling Rules (CHR) programs requires information about the kinds of constraints that can show up in the CHR constraint store. In contrast to Logic Programming (LP), there are not many tools available for deriving such information for CHR. Hence, instead of building analyses for CHR from scratch, we define a transformation from CHR to Prolog and reuse existing analysis tools for Prolog. The proposed transformation has been implemented and combined with PolyTypes 1.3, a type analyser for Prolog, resulting in an accurate description of the types of CHR programs. Moreover, the transformation is not limited to type analysis. It can also be used to prove other properties of the constraints showing up in constraint stores, using tools for Prolog.