Deciding Context Unification

被引:3
|
作者
Jez, Artur [1 ]
机构
[1] Univ Wroclaw, Inst Comp Sci, Joliot Curie 15, PL-50383 Wroclaw, Poland
关键词
Context unification; second order unification; term rewriting; 2ND-ORDER UNIFICATION; 1ST-ORDER THEORY; DECISION ALGORITHM; REWRITE SYSTEMS; WORD EQUATIONS; CONSTRAINTS; COMPLEXITY; UNDECIDABILITY; APPROXIMATION; DECIDABILITY;
D O I
10.1145/3356904
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
In first-order term unification, variables represent well-formed terms over a given signature, and we are to solve equations built using function symbols from the signature and such variables; this problem is wellknown to be decidable (in linear time). In second-order term unification, the variables take arguments (i.e., other terms) and a substitution uses those arguments an arbitrary number of times; for instance, an equation f (X (c), X (c)) = X (f (c, c)) has a solution X = ., where . is a special symbol denoting the place in which the argument is substituted. Under this substitution, both sides evaluate to f (c. c). There are other solutions, for instance X = f (., .), which evaluates both sides to f (f (c, c). f (c, c)); in general, a solution that evaluates both sides to full binary tree of arbitrary height is easy to construct. Second-order unification is in general undecidable. Context unification is a natural problem in between first- and second-order unification-we deal with equations over terms, the variables take arguments, but we restrict the set of solutions: The argument is used exactly once. Formally, contexts are terms with exactly one occurrence of the special symbol . and in context unification, we are given an equation over terms with variables representing contexts and ask about the satisfiability of this equation. For instance, when the aforementioned equation f(X(c), X(c)) = X (f'(c, c)) is treated as a context unification problem, then it has exactly one solution: X = Other substitutions that are solutions of it as an instance of the second-unification problem, say X = f (., .), are not valid, as . is used more than once. Context unification also generalizes satisfiability of word equations, which is decidable (in PSPACE). The decidability status of context unification remained unknown for almost two decades. In this article, we show that context unification is in PSPACE (in EXPTIME, when tree regular constraints are also allowed). Those results are obtained by extending the recently developed recompression technique, which was previously defined for strings and used to obtain a new PSPACE algorithm for satisfiability of word equations. In this article, the technique is generalized to trees, and the corresponding algorithm is generalized from word equations to context unification. The idea of recompression is to apply simple compression rules (replacing pairs of neighboring function symbols) to the solution of the context equation; to this end, we appropriately modify the equation (without the knowledge of the actual solution) so compressing the solution can be simulated by compressing parts of the equation. It is shown that if the compression operations are appropriately chosen, then the size of the instance is polynomial during the whole algorithm, thus giving a PSPACE-upper bound.
引用
收藏
页数:45
相关论文
共 50 条
  • [1] Deciding Context Unification (with Regular Constraints)
    Jez, Artur
    [J]. DEVELOPMENTS IN LANGUAGE THEORY, DLT 2019, 2019, 11647 : 18 - 40
  • [2] Context unification with one context variable
    Gascon, Adria
    Godoy, Guillem
    Schmidt-Schauss, Manfred
    Tiwari, Ashish
    [J]. JOURNAL OF SYMBOLIC COMPUTATION, 2010, 45 (02) : 173 - 193
  • [3] Context Unification is in PSPACE
    Jez, Artur
    [J]. AUTOMATA, LANGUAGES, AND PROGRAMMING (ICALP 2014), PT II, 2014, 8573 : 244 - 255
  • [4] DECIDING TO INSTITUTIONALIZE IN THE FAMILY CONTEXT IN SHANGHAI
    不详
    [J]. GERONTOLOGIST, 2015, 55 : 17 - 17
  • [5] On rewrite constraints and context unification
    Niehren, J
    Tison, S
    Treinen, R
    [J]. INFORMATION PROCESSING LETTERS, 2000, 74 (1-2) : 35 - 40
  • [6] Deciding on death: Conventions and contestations in the context of disability
    Shildrick, Margrit
    [J]. JOURNAL OF BIOETHICAL INQUIRY, 2008, 5 (2-3) : 209 - 219
  • [7] Deciding on Death: Conventions and Contestations in the Context of Disability
    Margrit Shildrick
    [J]. Journal of Bioethical Inquiry, 2008, 5 : 209 - 219
  • [8] Deciding on ISO 14001: Economics, institutions, and context
    Bansal, P
    Bogner, WC
    [J]. LONG RANGE PLANNING, 2002, 35 (03) : 269 - 290
  • [9] On the complexity of Bounded Second-Order Unification and Stratified Context Unification
    Levy, Jordi
    Schmidt-Schauss, Manfred
    Villaret, Mateu
    [J]. LOGIC JOURNAL OF THE IGPL, 2011, 19 (06) : 763 - 789
  • [10] Well-nested context unification
    Levy, J
    Niehren, J
    Villaret, M
    [J]. AUTOMATED DEDUCTION - CADE-20, PROCEEDINGS, 2005, 3632 : 149 - 163