GP 2(长版本)的统一算法
A Unification Algorithm for GP 2 (Long Version)
摘要:
图形程序设计语言GP 2允许非确定性地应用规则模式(或“属性化”规则)的集合。为了静态地分析程序冲突,用表达式标记的图被叠加以构造关键规则应用对。每一个叠加都包含一个方程组,其解代表不同的冲突。我们提出了一个基于规则的统一算法的GP表达式,是终止,声音和完整的。对于每个输入方程,该算法生成有限的替换集。合理性意味着这些替换中的每一个都求解了输入方程。由于GP标签是通过连接构造的列表,因此需要统一模结合性和单位律。这个问题,也被称为词统一,一般是无限的,但由于GP的规则模式语法和规则模式是左线性的假设而成为有限的。我们的统一算法是完整的,因为输入方程的每一个解都是生成集合中某些替换的实例。
英文摘要:
The graph programming language GP 2 allows to apply sets of rule schemata (or "attributed" rules) non-deterministically. To analyse conflicts of programs statically, graphs labelled with expressions are overlayed to construct critical pairs of rule applications. Each overlay induces a system of equations whose solutions represent different conflicts. We present a rule-based unification algorithm for GP expressions that is terminating, sound and complete. For every input equation, the algorithm generates a finite set of substitutions. Soundness means that each of these substitutions solves the input equation. Since GP labels are lists constructed by concatenation, unification modulo associativity and unit law is required. This problem, which is also known as word unification, is infinitary in general but becomes finitary due to GP's rule schema syntax and the assumption that rule schemata are left-linear. Our unification algorithm is complete in that every solution of an input equation is an instance of some substitution in the generated set.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。