×

zbMATH — the first resource for mathematics

Analysing definitional trees: looking for determinism. (English) Zbl 1122.68374
Kameyama, Yukiyoshi (ed.) et al., Functional and logic programming. 7th international symposium, FLOPS 2004, Nara, Japan, April 7–9, 2004. Proceedings. Berlin: Springer (ISBN 3-540-21402-X/pbk). Lecture Notes in Computer Science 2998, 55-69 (2004).
Summary: This paper describes how high level implementations of (need-ed) narrowing into Prolog can be improved by analysing definitional trees. First, we introduce a refined representation of definitional trees that handles properly the knowledge about the inductive positions of a pattern. The aim is to take advantage of the new representation of definitional trees to improve the aforementioned kind of implementation systems. Second, we introduce selective unfolding transformations, on determinate atom calls in the Prolog code, by examining the existence of what we call “deterministic (sub)branches” in a definitional tree. As a result of this analysis, we define some generic algorithms that allow us to compile a functional logic program into a set of Prolog clauses which increases determinism and incorporates some refinements that are obtained by ad hoc artifices in other similar implementations of functional logic languages. We also present and discuss the advantages of our proposals by means of some simple examples.
For the entire collection see [Zbl 1048.68005].
Reviewer: Reviewer (Berlin)

MSC:
68N17 Logic programming
68N18 Functional programming and lambda calculus
Software:
BABEL
PDF BibTeX XML Cite
Full Text: DOI