arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.06841cs.PL
收藏

从逻辑到函数式逻辑程序

From Logic to Functional Logic Programs

Michael Hanus

摘要:

逻辑编程是一种灵活的编程范式,因为它使用了谓词而没有固定的数据流。为了用函数式编程的紧凑符号扩展逻辑语言,有各种各样的建议将可评估函数映射到谓词中,以便留在逻辑编程框架中。由于融合函数逻辑语言提供灵活,以及有效的评估策略,我们提出了一个相反的方法在本文中。通过将逻辑程序映射为函数式逻辑程序,并利用基于函数依赖关系推断的转换方法,提出了一种全自动转换方法,该方法既保持了逻辑程序设计的灵活性,又能将无限搜索空间缩减为有限搜索空间,从而提高了计算效率.

英文摘要:

Logic programming is a flexible programming paradigm due to the use of predicates without a fixed data flow. To extend logic languages with the compact notation of functional programming, there are various proposals to map evaluable functions into predicates in order to stay in the logic programming framework. Since amalgamated functional logic languages offer flexible as well as efficient evaluation strategies, we propose an opposite approach in this paper. By mapping logic programs into functional logic programs with a transformation based on inferring functional dependencies, we develop a fully automatic transformation which keeps the flexibility of logic programming but can improve computations by reducing infinite search spaces to finite ones.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑