GRAPH-GRAMMARS AND LOGIC PROGRAMMING

被引:0
|
作者
CORRADINI, A
MONTANARI, U
ROSSI, F
EHRIG, H
LOWE, M
机构
[1] UNIV PISA, DIPARTIMENTO INFORMAT, I-56125 PISA, ITALY
[2] TECH UNIV BERLIN, FACHBEREICH INFORMAT 20, W-1000 BERLIN 10, GERMANY
关键词
LOGIC PROGRAMMING; GRAPH GRAMMARS; TERM REWRITING SYSTEMS; HYPERGRAPHS; JUNGLES; DAGS;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper we investigate the relationship between the algebraic definition of graph grammars and logic programming. In particular, we show that the operational semantics of any logic program can be faithfully simulated by a particular context-free hypergraph grammar. In the process of doing that, we consider the issue of representing terms, formulas, and clauses as particular graphs or graph productions, by first evaluating the approaches already proposed for Term Rewriting Systems (TRS), and then by giving an original extension of those approaches, to be able to deal with the unique features of logic programming. Actually, not only does our representation of definite clauses by graph productions allow us to deal correctly with logical unification, but also it overcomes some of the problems encountered by other approaches for representing TRS's as graph grammars. The main result of the paper states the soundness and completeness of the representation of clauses by productions, and this correspondence is extended to entire computations, showing how a context-free grammar (over a suitable category of graphs) can be associated with a logic program. The converse holds as well, i.e. given any context-free graph grammar (over that category), a logic program can be extracted from it.
引用
收藏
页码:221 / 237
页数:17
相关论文
共 50 条