Observational semantics of the Prolog Resolution Box Model

نویسندگان

  • Pierre Deransart
  • Mireille Ducassé
  • Gérard Ferrand
چکیده

This paper specifies an observational semantics and gives an original presentation of the Byrd box model. The approach accounts for the semantics of Prolog tracers independently of a particular Prolog implementation. Prolog traces are, in general, considered as rather obscure and difficult to use. The proposed formal presentation of its trace constitutes a simple and pedagogical approach for teaching Prolog or for implementing Prolog tracers. It is a form of declarative specification for the tracers. The trace model introduced here is only one example to illustrate general problems relating to tracers and observing processes. Observing processes know, from observed processes, only their traces. The issue is then to be able to reconstitute, by the sole analysis of the trace, part of the behaviour of the observed process, and if possible, without any loss of information. As a matter of fact, our approach highlights qualities of the Prolog resolution box model which made its success, but also its insufficiencies.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Specifying Prolog Trace Models with a Continuation Semantics

Byrd's box model is a ne grained Prolog execution model that can be the basis of high level debugging tools. In this article, we provide a formal speciication of Byrd's box model, based on an already existing operational and denotational continuation semantics for Pro-log with cut. We show how this speciication can be extended to specify richer Prolog trace models. To be able to experiment with...

متن کامل

Une sémantique observationnelle du modèle des boîtes pour la résolution de programmes logiques (version étendue)

This report specifies an observational semantics and gives an original presentation of the Byrd’s box model. The approach accounts for the semantics of Prolog tracers independently of a particular implementation. Traces are, in general, considered as rather obscure and difficult to use. The proposed formal presentation of a trace constitutes a simple and pedagogical approach for teaching Prolog...

متن کامل

Specifying Byrd's Box Model with a Continuation Semantics

We give a formal speciication of Byrd's box model. This speciication is based on a on a Prolog operational semantics with continuations. We also show how this speciication can be executed by a direct translation into Prolog, leading to a Prolog interpreter that produces execution traces. This interpreter can be used both to experiment various trace models to validate them. We have hence a forma...

متن کامل

A Sound Semantics for Bousi∼Prolog

Bousi∼Prolog is an extension of the standard Prolog language aiming at to make more flexible the query answering process and to deal with vagueness applying declarative techniques. In this paper we precise a model-theoretic semantics for a pure subset of this language, we recall both the WSLD-resolution principle and a similarity-based unification algorithm which is the basis of its operational...

متن کامل

SLDNF-Draw: a Visualisation Tool of Prolog Operational Semantics

Logic Programming is a programming paradigm widely used for teaching Artificial Intelligence in university courses. Also, learning it is propaedeutical for understanding formal specification languages, widely accepted tools in software engineering. Many widely used Logic Programming languages (such as Prolog) adopt the SLDNF resolution as operational semantics. However, after a first phase in w...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/0711.4071  شماره 

صفحات  -

تاریخ انتشار 2007