MaudeTypedLog: A Typed Interpreter for Prolog in Maude
Abstract
Prolog is traditionally thought of as an untyped logic programming language, although there are queries that result in a type error. Several attempts of statically introducing a type discipline in Prolog have been made but they have not been widely adopted. We use Maude to implement a typed unification algorithm and use it as the basis for an interpreter for Prolog called MaudeTypedLog. This interpreter follows the Typed SLD-resolution operational semantics for logic programming, that makes it possible to detect type errors in both programs and queries dynamically.
Create a lesson
Metadata
- Journal
- EPTCS 449, 2026, pp. 107-122
- Comments
- In Proceedings LSFA 2026, arXiv:2607.15904
Related papers
Hereditary permutations for simple types revisited: A baby case for University Algebra
Shared title terminologycs.LOThorsten Altenkirch
Probabilistic Simple Types for Almost-Sure Termination (Extended Version)
Shared title terminologycs.LOUgo Dal Lago, Willem Heijltjes
Graded Intersection Types
Shared title terminologycs.LORémy Cerda, Ugo Dal Lago
Typed Knowledge over Constructive Institutions: A Proof-Relevant Type Theory for Verified Science
Shared title terminologycs.LOHans-Martin Will
Typed Knowledge over Constructive Institutions
Shared title terminologycs.LOHans-Martin Will
Type classifiers
Shared title terminologycs.LOMartin E. Bidlingmaier