Under Consideration for Publication in Theory and Practice of Logic Programming the Witness Properties and the Semantics of the Prolog Cut
Under Consideration for Publication in Theory and Practice of Logic Programming the Witness Properties and the Semantics of the Prolog Cut
复制标题
考虑在《逻辑编程理论与实践》中发表 Prolog Cut 的见证属性和语义
DOI:
--
复制
发表时间:
2002
期刊:
影响因子:
--
通讯作者:
J. Andrews
中科院分区:
文献类型:
--
作者:
J. Andrews
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.