A high-level Petri net for goal-directed semantics of Horn Clause Logic

被引:15
作者
Jeffrey, J [1 ]
Lobo, J [1 ]
Murata, T [1 ]
机构
[1] UNIV ILLINOIS,DEPT ELECT ENGN & COMP SCI,CHICAGO,IL 60680
基金
美国国家科学基金会;
关键词
high-level Petri nets; logic programming; visual languages; parallel execution model; Prolog; SLD-resolution; SLD-ALG-resolution; FGHC;
D O I
10.1109/69.494164
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A new high-level Petri net (HLPN) model is introduced as a graphical syntax for Horn Clause Logic (HCL) programs. We call these nets: Horn Clause Logic Coal-Directed Nets (HCLGNs). It is shown that there is a bijection between the queried definite programs and the class of HCLGNs. In addition, a visualization of SLD-resolution is realized through the enabling and firing rules and net markings. The correctness of these rules with respect to SLD-resolution is also proven. Using these notions, we model SLD-refutations and failing computations. Through minor modification of the definition of HCLGNs for pure HCL programs and of the enabling and firing rules, it is shown how HCLGNs can be used to model built-in atoms and provide a new AND/OR-parallel execution model. HCLGNs have also been used to: model a subset of Prolog; provide a framework for modeling variations on SLD-resolution, such as SLD-ALG; specify an operational semantics for committed-choice (flat-guarded) concurrent logic languages using FGHC as an example. Recently, several software packages have become available for editing and executing HLPNs. These graphical editors can now play the same role that string editors have played for many years. The simulation capabilities of the HLPN software offer opportunities to perform automated, interactive code walk-throughs and also have potential for providing a framework for visual debugging environments. We note however that HCLGNs differ from the major classes of HLPNs for which software tools have been developed in primarily two ways: 1) the tokens in the markings can have variables; and 2) the firing of a transition may not only update the marking of the adjacent places, but may instantiate variables in tokens in the markings of places that are non-adjacent to the fired transition. Thus, the existing packages can only provide graphical syntax editing and are not appropriate for graphical simulation of HCLGNs. In the paper, we provide an algebraic characterization of HCLGNs that can serve as a design guideline for implementing HCLGNs.
引用
收藏
页码:241 / 259
页数:19
相关论文
共 31 条
[1]  
[Anonymous], 1986, LOGIC COMPUTER SCI
[2]  
BARKLUND J, 1988, P 5 INT C LOG PROGR, P435
[3]  
CAMPBELL J, 1984, IMPLEMENTATIONS PROL
[4]   MAXIMAL UNIFIABLE SUBSETS AND MINIMAL NON-UNIFIABLE SUBSETS [J].
CHEN, TY ;
LASSEZ, JL ;
PORT, GS .
NEW GENERATION COMPUTING, 1986, 4 (02) :133-152
[5]  
CONERY J, 1987, PARALLEL EXECUTION M
[6]   STATIC INFERENCE OF MODES AND DATA DEPENDENCIES IN LOGIC PROGRAMS [J].
DEBRAY, SK .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1989, 11 (03) :418-450
[7]  
FERGUSON CJ, 1977, THESIS U WATERLOO
[8]  
FUKUZAWA T, 1991, 1991 P IEEE INT S CI, V2, P842
[9]  
Gallier J. H., 1985, 1985 Symposium on Logic Programming (Cat. No.85CH2205-3), P208
[10]  
GENRICH HJ, 1987, LECT NOTES COMPUT SC, V254, P207