Complexity of Two-Variable Logic on Finite Trees

Verification of properties expressed in the two-variable fragment of first-order logic FO2 has been investigated in a number of contexts. The satisfiability problem for FO2 over arbitrary structures is known to be NEXPTIME-complete, with satisfiable formulas having exponential-sized models. Over words, where FO2 is known to have the same expressiveness as unary temporal logic, satisfiability is again NEXPTIME-complete. Over finite labelled ordered trees, FO2 has the same expressiveness as navigational XPath, a popular query language for XML documents. Prior work on XPath and FO2 gives a 2EXPTIME bound for satisfiability of FO2 over trees. This work contains a comprehensive analysis of the complexity of FO2 on trees, and on the size and depth of models. We show that different techniques are required depending on the vocabulary used, whether the trees are ranked or unranked, and the encoding of labels on trees. We also look at a natural restriction of FO2, its guarded version,  GF2. Our results depend on an analysis of types in models of FO2 formulas, including techniques for controlling the number of distinct subtrees, the depth, and the size of a witness to satisfiability for FO2 sentences over finite trees.

[1]  Larry Joseph Stockmeyer,et al.  The complexity of decision problems in automata theory and logic , 1974 .

[2]  Wolfgang Thomas,et al.  Languages, Automata, and Logic , 1997, Handbook of Formal Languages.

[3]  Sergey Yekhanin,et al.  Towards 3-query locally decodable codes of subexponential length , 2008, JACM.

[4]  Maarten Marx,et al.  XPath with Conditional Axis Relations , 2004, EDBT.

[5]  Witold Charatonik,et al.  Satisfiability of the Two-Variable Fragment of First-Order Logic over Trees , 2013, ArXiv.

[6]  Michael Benedikt,et al.  XPath leashed , 2009, CSUR.

[7]  Tony Tan Extending two-variable logic on data trees with order on data values and its automata , 2014, ACM Trans. Comput. Log..

[8]  Johan van Benthem,et al.  Modal Languages and Bounded Fragments of Predicate Logic , 1998, J. Philos. Log..

[9]  Thomas Schwentick,et al.  Two-variable logic on data trees and XML reasoning , 2009, JACM.

[10]  Felix Naumann,et al.  Data fusion , 2009, CSUR.

[11]  Michael Benedikt,et al.  XPath satisfiability in the presence of DTDs , 2008, JACM.

[12]  James Worrell,et al.  Controlling the Depth, Size, and Number of Subtrees for Two-variable Logic on Trees , 2013, ArXiv.

[13]  Diego Figueira Satisfiability for two-variable logic with two successor relations on finite linear orders , 2012, ArXiv.

[14]  Emanuel Kieronski EXPSPACE-Complete Variant of Guarded Fragment with Transitivity , 2002, STACS.

[15]  Witold Charatonik,et al.  Two-Variable Logic with Counting and Trees , 2013, 2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science.

[16]  Diego Figueira,et al.  Decidability of Downward XPath , 2012, TOCL.

[17]  Witold Charatonik,et al.  Decidability of weak logics with deterministic transitive closure , 2014, CSL-LICS.

[18]  M. de Rijke,et al.  Semantic characterizations of navigational XPath , 2005, SGMD.

[19]  Erich Grädel,et al.  On the Restraining Power of Guards , 1999, Journal of Symbolic Logic.

[20]  Emanuel Kieronski,et al.  Results on the Guarded Fragment with Equivalence or Transitive Relations , 2005, CSL.

[21]  Phokion G. Kolaitis,et al.  On the Decision Problem for Two-Variable First-Order Logic , 1997, Bulletin of Symbolic Logic.

[22]  Wieslaw Szwast,et al.  FO^2 with one transitive relation is decidable , 2013, STACS.

[23]  Neil Immerman,et al.  Expressiveness and succinctness of first-order logic on finite words , 2011 .

[24]  Grzegorz Rozenberg,et al.  Handbook of Formal Languages , 1997, Springer Berlin Heidelberg.

[25]  Kousha Etessami,et al.  First-Order Logic with Two Variables and Unary Temporal Logic , 2002, Inf. Comput..

[26]  Wieslaw Szwast,et al.  The guarded fragment with transitive guards , 2004, Ann. Pure Appl. Log..

[27]  James Worrell,et al.  Verification of Two-Variable Logic Revisited , 2012, 2012 Ninth International Conference on Quantitative Evaluation of Systems.