DECIDABILITY AND UNDECIDABILITY OF EQUIVALENCE FOR LINEAR DATALOG, WITH APPLICATIONS TO NORMAL-FORM OPTIMIZATIONS

被引:0
|
作者
FEDER, T [1 ]
SARAIYA, Y [1 ]
机构
[1] BELLCORE, RED BANK, NJ USA
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A variety of optimizations in logic databases [20] involve the transformation of safe, function-free (Datalog) logic programs to simpler, more efficiently evaluable programs. The essence of these transformations is the detection of program equivalence. Equivalence has been shown to be undecidable in [1, 17, 18, 19], but those results are unsatisfactory in that they involve highly nonlinear rules, or an unbounded number of linear recursive rules, and hence yield no insight into the behaviour of small, linear recursive programs. In this paper, we consider programs that consist of one nonrecursive linear rule, one linear recursive rule and one initialization rule. We provide a tight characterization of the decidability of program equivalence, proving it undecidable for such programs, and proving it decidable for a subclass that includes binary chain programs and programs with no repeated predicates in the rule body. We then apply these results to various normal-form optimizations [12, 18], including the detection of serializability, commutativity, basis-linearizability and rule redundancy.
引用
收藏
页码:297 / 311
页数:15
相关论文
共 21 条