TY - GEN
T1 - Stratified context unification is NP-complete
AU - Levy, Jordi
AU - Schmidt-Schauß, Manfred
AU - Villaret, Mateu
PY - 2006
Y1 - 2006
N2 - Context Unification is the problem to decide for a given set of second-order equations E where all second-order variables are unary, whether there exists a unifier, such that for every second-order variable X, the abstraction λx.r instantiated for X has exactly one occurrence of the bound variable x in r. Stratified Context Unification is a specialization where the nesting of second-order variables in E is restricted. It is already known that Stratified Context Unification is deciclable, NP-hard, and in PSPACE, whereas the decidability and the complexity of Context Unification is unknown. We prove that Stratified Context Unification is in NP by proving that a size-minimal solution can be represented in a singleton tree grammar of polynomial size, and then applying a generalization of Plandowski's polynomial algorithm that compares compacted terms in polynomial time. This also demonstrates the high potential of singleton tree grammars for optimizing programs maintaining large terms. A corollary of our result is that solvability of rewrite constraints is NP-cornplete.
AB - Context Unification is the problem to decide for a given set of second-order equations E where all second-order variables are unary, whether there exists a unifier, such that for every second-order variable X, the abstraction λx.r instantiated for X has exactly one occurrence of the bound variable x in r. Stratified Context Unification is a specialization where the nesting of second-order variables in E is restricted. It is already known that Stratified Context Unification is deciclable, NP-hard, and in PSPACE, whereas the decidability and the complexity of Context Unification is unknown. We prove that Stratified Context Unification is in NP by proving that a size-minimal solution can be represented in a singleton tree grammar of polynomial size, and then applying a generalization of Plandowski's polynomial algorithm that compares compacted terms in polynomial time. This also demonstrates the high potential of singleton tree grammars for optimizing programs maintaining large terms. A corollary of our result is that solvability of rewrite constraints is NP-cornplete.
UR - https://www.scopus.com/pages/publications/33749580506
U2 - 10.1007/11814771_8
DO - 10.1007/11814771_8
M3 - Conference proceeding
AN - SCOPUS:33749580506
SN - 3540371877
SN - 9783540371878
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 82
EP - 96
BT - Automated Reasoning - Third International Joint Conference, IJCAR 2006, Proceedings
PB - Springer Verlag
T2 - Third International Joint Conference on Automated Reasoning, IJCAR 2006
Y2 - 17 August 2006 through 20 August 2006
ER -