Xsb: Extending prolog with tabled logic programming

  • Authors:
  • Terrance Swift;David s. Warren

  • Affiliations:
  • Centria, faculdade de ciências e tecnologia, univ. nova de lisboa, 2825-516 caparica, portugal (e-mail: tswift@cs.sunysb.edu);Department of computer science, suny stony brook, stony brook, new york, usa (e-mail: warren@cs.sunysb.edu)

  • Venue:
  • Theory and Practice of Logic Programming - Prolog Systems
  • Year:
  • 2012

Quantified Score

Hi-index 0.01

Visualization

Abstract

The paradigm of Tabled Logic Programming (TLP) is now supported by a number of Prolog systems, including XSB, YAP Prolog, B-Prolog, Mercury, ALS, and Ciao. The reasons for this are partly theoretical: tabling ensures termination and optimal known complexity for queries to a large class of programs. However, the overriding reasons are practical. TLP allows sophisticated programs to be written concisely and efficiently, especially when mechanisms such as tabled negation and call and answer subsumption are supported. As a result, TLP has now been used in a variety of applications from program analysis to querying over the semantic web. This paper provides a survey of TLP and its applications as implemented in the XSB Prolog, along with discussion of how XSB supports tabling with dynamically changing code, and in a multi-threaded environment.