A new generic scheme for functional logic programming with constraints

  • Authors:
  • Francisco J. López Fraguas;Mario Rodríguez Artalejo;Rafael Del Vírseda

  • Affiliations:
  • Departamento de Sistemas Informáticos y Programación, Facultad de Informática de la Universidad Complutense de Madrid, Madrid, Spain 28040;Departamento de Sistemas Informáticos y Programación, Facultad de Informática de la Universidad Complutense de Madrid, Madrid, Spain 28040;Departamento de Sistemas Informáticos y Programación, Facultad de Informática de la Universidad Complutense de Madrid, Madrid, Spain 28040

  • Venue:
  • Higher-Order and Symbolic Computation
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we propose a new generic scheme CFLP驴, intended as a logical and semantic framework for lazy Constraint Functional Logic Programming over a parametrically given constraint domain 驴. As in the case of the well known CLP驴 scheme for Constraint Logic Programming, 驴 is assumed to provide domain specific data values and constraints. CFLP驴 programs are presented as sets of constrained rewrite rules that define the behavior of possibly higher order and/or non-deterministic lazy functions over 驴. As a main novelty w.r.t. previous related work, we present a Constraint Rewriting Logic CRWL驴 which provides a declarative semantics for CFLP驴 programs. This logic relies on a new formalization of constraint domains and program interpretations, which allows a flexible combination of domain specific data values and user defined data constructors, as well as a functional view of constraints.