TY - JOUR
T1 - Structuring logic programs
T2 - a modal approach
AU - Giordano, Laura
AU - Martelli, Alberto
N1 - Funding Information:
*This work has been partially supported by CNR-Progetto Calcolo Parallelo” under grant 92.01577.PF69. TDipartimento di Informatica, Universiti di Torino. Email: [email protected]. Address correspondence to Laura Giordano, Dipartimento di Informatica, Svizzera 18.5, 10149 Torino, Italy. Email: [email protected]. Received July 1992; accepted October 1993.
PY - 1994/10
Y1 - 1994/10
N2 - 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 ⇒ 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.
AB - 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 ⇒ 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.
UR - http://www.scopus.com/inward/record.url?scp=0028516604&partnerID=8YFLogxK
U2 - 10.1016/0743-1066(94)90001-9
DO - 10.1016/0743-1066(94)90001-9
M3 - Article
SN - 0743-1066
VL - 21
SP - 59
EP - 94
JO - Journal of Logic Programming
JF - Journal of Logic Programming
IS - 2
ER -