首页 | 本学科首页   官方微博 | 高级检索  
     

Prolog的语义保持变换
引用本文:余金山. Prolog的语义保持变换[J]. 华侨大学学报(自然科学版), 2001, 22(1): 100-104
作者姓名:余金山
作者单位:华侨大学信息科学与工程学院,
摘    要:程序变换方法在逻辑程序中的应用主要是基于这样的理论结果,即Fold/Unfold变换保持了逻辑程序的最小Herbrand模型语义和答复转换集语义,但是当逻辑程序的实现采用标准Prolog系统的最左计算规则和深度优先查找规则时,变换后的程序未必能保持原程序的语义,此外,程序的语义等价性证明也往往是难以理解和阅读的,为此,首先用与计算SLD-树叶结点有关的答复置换序列算法的方式,引入一个相对易于理解的Prolog语义定义,然后给出有关的语义保持变换规则并加以证明。

关 键 词:PROLOG 语义 逻辑程序 程序变换法 保持变换 变换规则 形式语言 变换序列
文章编号:1000-5013(2001)01-100-05
修稿时间:2000-07-02

Sematics Hold Transformation for Prolog
Yu Jinshan. Sematics Hold Transformation for Prolog[J]. Journal of Huaqiao University(Natural Science), 2001, 22(1): 100-104
Authors:Yu Jinshan
Abstract:The application of program transformation method to logic program is mainly based on such theory,namely,Fold/Unfold transformation holds the least Herbrand model semantics and the semantics of answer substitution set of logic program.However,when the leftmost computing rule and depth first searching rule of standard Prolog systems are adopted for implementing logic pragrams,the semantics of original program cannot necessarily be held by transformed program.Moreover,the proof of semantic equivalence of the program is often difficult to understand and to read.By the style of algorithm for computing answer substitution sequence relating to the node of leaves in SLD tree,the author puts forward a semantics definition of Prolog which is not diffcult to understand;and then,gives the rules for semantics hold transformation and offers proof.
Keywords:programtransformation   Prolog   semantics
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号