PRholog中的策略
Strategies in PRholog
摘要:
PRholog是逻辑编程的一个实验性扩展,它结合了Prolog和Rholog演算。规则对套期保值执行不确定性转换。在回溯时,可以探索递归的几个结果。策略以声明的方式提供对规则应用程序的控制。使用策略组合子,用户可以从简单的策略构造更复杂的策略。与四种不同类型的变量匹配提供了在执行期间选择(子)项的灵活机制。我们给出了一个概述与PRholog的策略编程,并演示如何重写策略可以表示。
英文摘要:
PRholog is an experimental extension of logic programming with strategic conditional transformation rules, combining Prolog with Rholog calculus. The rules perform nondeterministic transformations on hedges. Queries may have several results that can be explored on backtracking. Strategies provide a control on rule applications in a declarative way. With strategy combinators, the user can construct more complex strategies from simpler ones. Matching with four different kinds of variables provides a flexible mechanism of selecting (sub)terms during execution. We give an overview on programming with strategies in PRholog and demonstrate how rewriting strategies can be expressed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。