Meta-variables in Logic Programming, or in Praise of Ambivalent Syntax

  • Authors:
  • Krzysztof R. Apt;Rachel Ben-Eliyahu

  • Affiliations:
  • CWI, P.O. Box 94079, 1090 GB Amsterdam, The Netherlands and Dept. of Mathematics, Computer Science, Physics & Astronomy, University of Amsterdam, Plantage Muidergracht 24, 1018 TV Amsterdam, The N ...;Mathematics and Computer Science Department, Ben-Gurion University of the Negev, Beer-Sheva 84105, Israel

  • Venue:
  • Fundamenta Informaticae
  • Year:
  • 1996

Quantified Score

Hi-index 0.00

Visualization

Abstract

We show here that meta-variables of Prolog admit a simple declarative interpretation. This allows us to extend the usual theory of SLD-resolution to the case of logic programs with meta-variables, and to establish soundness and strong completeness of the corresponding extension of the SLD-resolution. The key idea is the use of ambivalent syntax which allows us to use the same symbols as function and relation symbols. We also study the problem of absence of run-time errors in presence of meta-variables. We prove that this problem is undecidable. However, we also provide some sufficient and polynomial-time-decidable conditions which imply absence of run-time errors.