Advertisement

An Equational Extension

  • Stan Raatz
Part of the Progress in Computer Science and Applied Logic book series (PCS, volume 10)

Abstract

It has been recognized for some time that Prolog will need to be extended in order for it to realize the vision of declarative programming. One example is the so-called problem of equality and functions. The underlying deduction mechanism for Prolog, SLD-resolution, is defined only for languages without equality. As mentioned in chapter 1, current Prolog systems include a collection of interpretations of the equality symbol which are basically inherited from LISP, and that it is even possible for the “equality” predicate to cause the side-effect of binding an uninstantiated variable to an instantiated variable. The absence of equality also means that value-returning functions cannot be defined equationally. Instead, an n-ary function f(x 1,..., x, n ) is defined by an n+1-ary predicate p(x 1,..., x n , x n+l) which “collects” the value in the n + 1 st argument. In order for Prolog to reason equationally, rules for rewriting one term to another must be expressed via a distinguished predicate (say rewrite).

Keywords

Logic Programming Free Variable Atomic Formula Horn Clause Existential Quantifier 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer Science+Business Media New York 1990

Authors and Affiliations

  • Stan Raatz
    • 1
  1. 1.Department of Computer ScienceRutgers UniversityNew BrunswickUSA

Personalised recommendations