Functional Logic Programming: Improving Logic Programs with Ease
Michael Hanus
Key points
From the paper's conclusion- Thus, functional logic programming provides an adequate basis to improve the operational behavior of logic programs without changing their semantics.
Abstract
Logic programming is based on defining relations. Functions are often considered as syntactic sugar which can be transformed into predicates so that their logic is not used for computational purposes. In this paper, we show that the use of functions improves the operational behavior of logic programs without loosing the flexibility of logic programming. For this purpose, we present a systematic transformation from predicates and goals into functions and nested expressions, respectively. By evaluating functions in a demand-driven manner and taking potential failures into account, it is ensured that the execution of the transformed programs will never require more steps than the original programs but can decrease the number of steps---in the best case reducing infinite search spaces to finite ones. Thus, functional logic programming provides an adequate basis to improve the operational behavior of logic programs without changing their semantics. This also shows that, from an operational point of view, functional logic programming has clear advantages compared to relation-based logic programming.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multimodal Logic Programming with Full FormulasarXiv · 2026
- A Parallel Functional Machine for the complexity analysis of parallel computationFormal Aspects of Computing · 2026
- Selective Chaining of Parameterised Boolean Equation SystemsarXiv · 2026
- Diamonds Are Forever: Stabilization Semantics for Unrestricted Aggregation and Recursion in LogicaTheory and Practice of Logic Programming · 2026
- Denotational Results in Compiler Correctness and Comparisons with Operational ApproachesarXiv · 2026
- Towards an Operational Proof-theoretic SemanticsarXiv · 2026