Typed SLD-Resolution: Dynamic Typing for Logic Programming

被引:0
|
作者
Barbosa, Joao [1 ]
Florido, Mario [1 ]
Costa, Vitor Santos [1 ]
机构
[1] Univ Porto, LIACC, INESC, Dept Ciencia Comp,Fac Ciencias, Rua Campo Alegre S-N, P-4169007 Porto, Portugal
关键词
Logic programming; Operational semantics; Types;
D O I
10.1007/978-3-031-16767-6_7
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:123 / 141
页数:19
相关论文
共 50 条