首页> 外文期刊>ACM transactions on computational logic >On the Expressive Power of Multiple Heads in CHR
【24h】

On the Expressive Power of Multiple Heads in CHR

机译:论CHR中多头的表达能力

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

摘要

Constraint Handling Rules (CHR) is a committed-choice declarative language that has been originally designed for writing constraint solvers and is nowadays a general purpose language. CHR programs consist of multiheaded guarded rules which allow to rewrite constraints into simpler ones until a solved form is reached. Many empirical evidences suggest that multiple heads augment the expressive power of the language, however no formal result in this direction has been proved, so far. In the first part of this article we analyze the Turing completeness of CHR with respect to the underlying constraint theory. We prove that if the constraint theory is powerful enough then restricting to single head rules does not affect the Turing completeness of the language. On the other hand, differently from the case of the multiheaded language, the single head CHR language is not Turing powerful when the underlying signature (for the constraint theory) does not contain function symbols. In the second part we prove that, no matter which constraint theory is considered, under some reasonable assumptions it is not possible to encode the CHR language (with multi-headed rules) into a single headed language while preserving the semantics of the programs. We also show that, under some stronger assumptions, considering an increasing number of atoms in the head of a rule augments the expressive power of the language. These results provide a formal proof for the claim that multiple heads augment the expressive power of the CHR language.
机译:约束处理规则(CHR)是一种承诺选择的声明性语言,最初是为编写约束求解器而设计的,如今已成为一种通用语言。 CHR程序由多头保护规则组成,这些规则允许将约束重写为更简单的约束,直到达到可解决的形式为止。许多经验证据表明,多个头部增强了语言的表达能力,但是到目前为止,尚未证明在此方向上有任何正式的结果。在本文的第一部分中,我们根据基本约束理论分析了CHR的图灵完备性。我们证明,如果约束理论足够强大,那么限制为单头规则不会影响语言的图灵完整性。另一方面,与多头语言的情况不同,当基础签名(用于约束理论)不包含功能符号时,单头CHR语言不是图灵强大的。在第二部分中,我们证明,无论考虑哪种约束理论,在合理的假设下,都不可能在保留程序语义的情况下将CHR语言(具有多头规则)编码为单头语言。我们还表明,在一些更强的假设下,考虑到规则顶部的原子数量不断增加,可以增强语言的表达能力。这些结果为多头增加了CHR语言的表达能力的说法提供了形式上的证明。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号