STRUCTURING LOGIC PROGRAMS - A MODAL APPROACH

被引:12
|
作者
GIORDANO, L [1 ]
MARTELLI, A [1 ]
机构
[1] UNIV TORINO,DIPARTIMENTO INFORMAT,I-10149 TURIN,ITALY
来源
JOURNAL OF LOGIC PROGRAMMING | 1994年 / 21卷 / 02期
关键词
Clause bodies - Dynamic visibility rules - Lexical visibility rules - Structuring constructs;
D O I
10.1016/0743-1066(94)90001-9
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Extensions of logic programming languages with structuring constructs have been extensively studied in the last years. A particularly clean approach consists in allowing implication goals to occur in goals and in clause bodies. Implication goals are implications of the form D double-line arrow pointing right G, where D is a set of clauses and G is a goal. The clauses in D are intended to be local to G, as they can be used only in the proof of G. So implication goals can be regarded as blocks of conventional programming languages and such an extension provides different kinds of block structured languages according to the visibility rules chosen for the local clauses. The choices are mainly two: either lexical (static) visibility rules or dynamic visibility rules. A further distinction can be made between closed and open blocks. In this paper we aim at showing that modal logic provides a unifying framework in which different logical languages with blocks and modules can be expressed. We show this by interpreting the different block languages within modal logic S4. Moreover, we will consider different kinds of modules that can be defined from blocks by introducing some syntactic sugar and compare them to other proposals in the literature.
引用
收藏
页码:59 / 94
页数:36
相关论文
共 50 条