首页> 美国政府科技报告 >Reasoning About Termination of Prolog Programs
【24h】

Reasoning About Termination of Prolog Programs

机译:关于prolog程序终止的推理

获取原文

摘要

A theoretical basis for studying termination of (general) logic programs with thePROLOG selection rule is presented. To this end, the class of 'left terminating' programs is studied. These are logic programs that terminate with the PROLOG selection rule for all ground goals. A characterization of left terminating positive programs is offered by means of the notion of an 'acceptable program' that provides a practical method of proving termination. The method is illustrated by giving a simple proof of termination of the quicksort program for the desired class of goals. This approach is extended to the class of general logic programs by modifying the concept of acceptability. Acceptable general programs are proved to be left terminating. The converse implication does not hold but it is shown that under the assumption of non-floundering from ground goals every left terminating general program is acceptable. Various ways of defining semantics are shown to coincide for acceptable general programs. The use of this extension is illustrated by giving simple proofs of termination of a 'game' program and the transitive closure program for the desired class of goals.

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号