The Witness Properties and the Semantics of the Prolog Cut

Computer Science – Programming Languages

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

60 pages, 15 figures. Accepted for publication in Theory and Practice of Logic Programming

Scientific paper

The semantics of the Prolog ``cut'' construct is explored in the context of some desirable properties of logic programming systems, referred to as the witness properties. The witness properties concern the operational consistency of responses to queries. A generalization of Prolog with negation as failure and cut is described, and shown not to have the witness properties. A restriction of the system is then described, which preserves the choice and first-solution behaviour of cut but allows the system to have the witness properties. The notion of cut in the restricted system is more restricted than the Prolog hard cut, but retains the useful first-solution behaviour of hard cut, not retained by other proposed cuts such as the ``soft cut''. It is argued that the restricted system achieves a good compromise between the power and utility of the Prolog cut and the need for internal consistency in logic programming systems. The restricted system is given an abstract semantics, which depends on the witness properties; this semantics suggests that the restricted system has a deeper connection to logic than simply permitting some computations which are logical. Parts of this paper appeared previously in a different form in the Proceedings of the 1995 International Logic Programming Symposium.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

The Witness Properties and the Semantics of the Prolog Cut does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with The Witness Properties and the Semantics of the Prolog Cut, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and The Witness Properties and the Semantics of the Prolog Cut will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-163633

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.