“…In this paper we have considered constraint logic programs, where the constraints are linear inequations over the rational (or real) numbers, and we have focused on the problem of automating the application of the folding rule. Indeed, the applicability conditions of the many folding rules for transforming constraint logic programs which have been proposed in the literature [3,7,8,9,10], are specified in a declarative way and no algorithm is given to determine whether or not, given a clause γ to be folded by using a clause δ, one can actually perform that folding step. The problem of checking the applicability conditions of the folding rule is not trivial (see, for instance, the example presented in the Introduction).…”