Functional Logic Programming with Static Determinism Analysis: Design and Implementation
Year: 2026
Type: dissertation
Abstract: This thesis investigates the design, implementation, and analysis of functional logic programming languages with a particular focus on the combination of lazy evaluation and non-determinism. Functional logic languages combine functional and logic programming paradigms, enabling a flexible and expressive programming environment. The first main contribution is the development of a monadic run-time system for the programming language Curry. Emphasis is placed on an efficient implementation of pull-tabbing, a technique for handling non-determinism. Furthermore, we consider various extensions of functional logic languages and show how the run-time system can be optimized for deterministic program sections. The result is a compiler with a run-time system that achieves measurable improvements in executing functional logic programs compared to existing systems. The second main contribution addresses prototyping programming languages via compiler plugins, particularly in the context of the GHC (Glasgow Haskell Compiler). We demonstrate how prototypical language implementations, such as a Curry compiler, can be created using compiler plugins and discuss the advantages and challenges of this approach. The third main contribution develops determinism types for static analysis of functional logic programs. We define a type system that makes the determinism properties of functions and expressions statically analyzable and demonstrate its practical applicability. To this end, we introduce a formal semantics and prove the correctness of the approach using the Rocq theorem prover. Based on this determinism information, the optimization developed in the first contribution can be applied specifically to suitable program sections, further improving the efficiency of functional logic programs. Additionally, the static analysis provides programmers with more precise warnings and helpful information. Furthermore, we show how the inference of determinism types can be realized and present an implementation of the corresponding algorithm.
Author: Prott, Kai-Oliver
Institution: Christian-Albrechts-Universität zu Kiel
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7204739457
