A pi-calculus Specification of Prolog
A pi-calculus Specification of Prolog
复制标题
Prolog 的 pi 演算规范
DOI:
10.1007/3-540-57880-3_25
复制
发表时间:
1993
期刊:
影响因子:
--
通讯作者:
Zhenzhong Li
中科院分区:
文献类型:
--
作者:
Zhenzhong Li
A clear and modular specification of Prolog using the π-calculus is presented in this paper. Prolog goals are represented as π-calculus processes, and Prolog predicate definitions are translated into π-calculus agent definitions. Prolog's depth-first left-right control strategy as well as the cut control operator are modeled by the synchronized communication among processes, which is similar in spirit to continuationpassing style implementation of Prolog. Prolog terms are represented by persistent processes, while logical variables are modeled by complex processes with channels that, at various times, can be written, read, and reset. Both unifications with and without backtracking are specified by π-calculus agent definitions. A smooth merging of the specification for control and the specification for unification gives a full specification for much of Prolog. Some related and further works are also discussed.