首页> 外文期刊>Computer languages >Semantics of well-moded input-consuming logic programs
【24h】

Semantics of well-moded input-consuming logic programs

机译:修改良好的输入消耗逻辑程序的语义

获取原文
获取原文并翻译 | 示例

摘要

Recent logic programming languages employ dynamic scheduling of calls to improve efficiency of programs. Dynamic scheduling is realized by allowing some calls to be dynamically “delayed” until their arguments are sufficiently instantiated. To this end, logic languages are extended with constructs such as delay declarations. However, many declarative properties that hold for logic and pure Prolog programs do not apply any longer in this extended setting. In particular, the equivalence between the model--theoretic and operational seman- tics does not hold. In this paper, we study the class of input-consuming programs. Firstly, we argue that input-consuming logic programs are suitable for modeling programs employing delay declarations. Secondly, we show that-under some syntactic restriction-the L-semantics of a program is correct and fully abstract also for input-consuming programs. This allows us to conclude that for a large class of programs employing delay declarations there exists a model--theoretic semantics which is equivalent to the operational one. Thus, input-consuming programs are shown to be the right answer for conjugate efficiency and declarativeness.
机译:最近的逻辑编程语言采用动态调用调度来提高程序效率。通过允许某些调用动态地“延迟”直到其参数被充分实例化,可以实现动态调度。为此,逻辑语言通过诸如延迟声明之类的结构进行了扩展。但是,适用于逻辑程序和纯Prolog程序的许多声明性属性在此扩展设置中不再适用。特别是,模型(理论和操作语义)之间不存在等价关系。在本文中,我们研究了输入消耗程序的类别。首先,我们认为消耗输入的逻辑程序适合于采用延迟声明的建模程序。其次,我们表明,在某些语法上的限制下,程序的L语义正确无误,并且对于使用输入的程序也完全抽象。这使我们可以得出结论,对于使用延迟声明的一大类程序,存在一种模型-理论语义,它等效于可操作的语义。因此,对于共轭效率和声明性,消耗输入的程序被证明是正确的答案。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号