A general framework for lazy functional logic programming with algebraic polymorphic types

  • Authors:
  • Puri Arenas-Sá/nchez;Mario Rodrí/guez-Artalejo

  • Affiliations:
  • Dpto. de Sistemas Informá/ticos y Programació/n, Universidad Complutense de Madrid, Avenida Complutense s//n, 28040 Madrid, Spain/ (e-mail: puri@sip.ucm.es, mario@sip.ucm.es);Dpto. de Sistemas Informá/ticos y Programació/n, Universidad Complutense de Madrid, Avenida Complutense s/n, 28040 Madrid, Spain/ (e-mail: puri@sip.ucm.es, mario@sip.ucm.es)

  • Venue:
  • Theory and Practice of Logic Programming
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

We propose a general framework for first-order functional logic programming, supporting lazy functions, non-determinism and polymorphic datatypes whose data constructors obey a set 𝒞 of equational axioms. On top of a given 𝒞, we specify a program as a set ℛ of 𝒞-based conditional rewriting rules for defined functions. We argue that equational logic does not supply the proper semantics for such programs. Therefore, we present an alternative logic which includes 𝒞-based rewriting calculi and a notion of model. We get soundness and completeness for 𝒞-based rewriting w.r.t. models, existence of free models for all programs, and type preservation results. As operational semantics, we develop a sound and complete procedure for goal solving, which is based on the combination of lazy narrowing with unification modulo 𝒞. Our framework is quite expressive for many purposes, such as solving action and change problems, or realizing the GAMMA computation model.