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

类型化SLD-解析:逻辑程序设计的动态类型化

Typed SLD-Resolution: Dynamic Typing for Logic Programming

João Barbosa, Mário Florido, Vítor Santos Costa

摘要:

逻辑编程的语义基础通常分为两种不同的方法。操作语义,它使用SLD解析,证明方法,计算逻辑编程中的答案,和声明语义,它把逻辑程序看作公式,把它的语义看作模型。在这里,我们定义了一个新的操作语义,称为TLDD-解析,它代表类型化的SLD-解析,其中我们包括一个值“错误”,对应于在运行时检测到类型错误。为此,我们定义了一个新的类型统一算法。最后,我们证明了TSLD-决议的正确性方面的一个类型的声明语义。

英文摘要:

The semantic foundations for logic programming are usually separated into two different approaches. The operational semantics, which uses SLD-resolution, the proof method that computes answers in logic programming, and the declarative semantics, which sees logic programs as formulas and its semantics as models. Here, we define a new operational semantics called TSLD-resolution, which stands for Typed SLD-resolution, where we include a value "wrong", that corresponds to the detection of a type error at run-time. For this we define a new typed unification algorithm. Finally we prove the correctness of TSLD-resolution with respect to a typed declarative semantics.

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

↑