eprintid: 1347 rev_number: 6 eprint_status: archive userid: 40 dir: disk0/00/00/13/47 datestamp: 2012-09-14 14:10:59 lastmod: 2013-03-07 12:56:25 status_changed: 2012-09-14 14:10:59 type: article metadata_visibility: show creators_name: Pettorossi, Alberto creators_name: Proietti, Maurizio creators_name: Senni, Valerio creators_id: creators_id: creators_id: valerio.senni@imtlucca.it title: Constraint-based correctness proofs for logic program transformations ispublished: pub subjects: QA75 divisions: CSA full_text_status: none keywords: Constraints; Logic programming; Program correctness; Program transformation; Transformation rules note: This paper is an extended version of: Pettorossi A, Proietti M, Senni V (2007) Automatic correctness proofs for logic program transformations. In: Dahl V, Niemelä I (eds) Proceedings of the 23rd international conference on logic programming (ICLP ’07). Lecture Notes in Computer Science, vol 4670, pp 364–379[PPS07]. abstract: Many approaches proposed in the literature for proving the correctness of unfold/fold transformations of logic programs make use of measures associated with program clauses. When from a program P 1 we derive a program P 2 by applying a sequence of transformations, suitable conditions on the measures of the clauses in P 2 guarantee that the transformation of P 1 into P 2 is correct, that is, P 1 and P 2 have the same least Herbrand model. In the approaches proposed so far, clause measures are fixed in advance, independently of the transformations to be proved correct. In this paper we propose a method for the automatic generation of clause measures which, instead, takes into account the particular program transformation at hand. During the application of a sequence of transformations we construct a system of linear equalities and inequalities over nonnegative integers whose unknowns are the clause measures to be found, and the correctness of the transformation is guaranteed by the satisfiability of that system. Through some examples we show that our method is more powerful and practical than other methods proposed in the literature. In particular, we are able to establish in a fully automatic way the correctness of program transformations which, by using other methods, are proved correct at the expense of fixing in advance sophisticated clause measures. date: 2012 date_type: published publication: Formal Aspects of Computing volume: 24 number: 4-6 publisher: Springer pagerange: 569-594 id_number: 10.1007/s00165-012-0233-8 refereed: TRUE issn: 0934-5043 official_url: http://dx.doi.org/10.1007/s00165-012-0233-8 citation: Pettorossi, Alberto and Proietti, Maurizio and Senni, Valerio Constraint-based correctness proofs for logic program transformations. Formal Aspects of Computing, 24 (4-6). pp. 569-594. ISSN 0934-5043 (2012)