...
首页> 外文期刊>The Journal of Logic Programming >Approach to declarative programming based on a rewriting logic
【24h】

Approach to declarative programming based on a rewriting logic

机译:基于重写逻辑的声明式编程的方法

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

摘要

We propose an approach to declarative programming which integrates the functional and relational paradigms by taking possibly non-deterministic lazy functions as the fundamental notion. Classical equational logic does not supply a suitable semantics in a natural way. Therefore, we suggest to view programs as theories in a constructor-based conditional rewriting logic. We present proof calculi and a model theory for this logic, and we prove the existence of free term models which provide an adequate intended semantics for programs. We develop a sound and strongly complete lazy narrowing calculus, which is able to support sharing without the technical overhead of graph rewriting and to identify safe cases for eager variable elimination. Moreover, we give some illustrative programming examples, and we discuss the implementability of our approach.
机译:我们提出了一种声明式编程的方法,该方法通过将可能不确定的惰性函数作为基本概念来集成功能和关系范式。经典的等式逻辑不能自然地提供合适的语义。因此,我们建议将程序视为基于构造函数的条件重写逻辑中的理论。我们提供了这种逻辑的证明计算和模型理论,并且证明了免费术语模型的存在,这些术语为程序提供了足够的预期语义。我们开发了一个健全且完全完备的惰性变窄演算,它能够支持共享而无需图形重写的技术开销,并能够确定安全的案例以消除急切的变量。此外,我们提供了一些说明性的编程示例,并讨论了该方法的可实施性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号