Skip to main content
QUICK REVIEW

[Paper Review] Satisfiability of the Two-Variable Fragment of First-Order Logic over Trees

Witold Charatonik, Emanuel Kieroński|arXiv (Cornell University)|Apr 26, 2013
semigroups and automata theoryComputer Science22 references5 citations
TL;DR

This paper establishes the exact complexity of the satisfiability problem for the two-variable fragment of first-order logic with navigational predicates over finite unranked trees. It proves that the logic with child, right-sibling, and their transitive closures is ExpSpace-complete over finite trees, and shows that complexity drops significantly under the singular tree constraint—reducing to NExpTime for $ ext{FO}^2[ ightarrow^+]$ and PSpace for its guarded variant.

ABSTRACT

We consider the satisfiability problem for the two-variable fragment of first-order logic over finite unranked trees. We work with signatures consisting of some unary predicates and the binary navigational predicates child, right sibling, and their respective transitive closures. We prove that the satisfiability problem for the logic containing all these predicates is EXPSPACE-complete. Further, we consider the restriction of the class of structures to singular trees, i.e., we assume that at every node precisely one unary predicate holds. We observe that the full logic and even for unordered trees remain EXPSPACE-complete over finite singular trees, but the complexity decreases for some weaker logics. Namely, the logic with one binary predicate, descendant is NEXPTIME-complete, and its guarded version is PSPACE-complete over finite singular trees, even though both these logics are EXPSPACE-complete over arbitrary finite trees.

Motivation & Objective

  • To determine the precise complexity of the satisfiability problem for the two-variable fragment of first-order logic with navigational predicates over finite unranked trees.
  • To investigate how the complexity changes when restricting models to singular trees, where exactly one unary predicate holds at each node.
  • To analyze the impact of different combinations of binary predicates—child ($ ightarrow$), right-sibling ($ ightarrow$), and their transitive closures—on the complexity of satisfiability.
  • To establish tight complexity bounds for various fragments, including guarded and non-guarded variants, under the singular tree assumption.
  • To explore connections with XPath and XML query languages, particularly in the context of finite tree structures.

Proposed method

  • Formalizing the logic $ ext{FO}^2[ ightarrow, ightarrow_+, ightarrow, ightarrow^+]$ over unranked trees with unary predicates and navigational relations.
  • Using a normal form transformation to simplify formulas and reduce the number of variables and subformulas while preserving satisfiability.
  • Applying tree decomposition and path-boundedness techniques to limit model size and control complexity.
  • Constructing exponential-size models to establish the NExpTime and PSpace upper bounds for restricted logics over singular trees.
  • Using reductions from known hard problems (e.g., binary counter encoding) to prove NExpTime and ExpSpace hardness results.
  • Leveraging the guarded fragment ($ ext{GF}^2$) to achieve lower complexity by restricting quantifier dependencies and bounding node degrees.

Experimental results

Research questions

  • RQ1What is the exact complexity of the satisfiability problem for $ ext{FO}^2[ ightarrow, ightarrow_+, ightarrow, ightarrow^+]$ over finite unranked trees?
  • RQ2How does the complexity of $ ext{FO}^2$ with navigational predicates change when restricted to singular trees, where exactly one unary predicate holds per node?
  • RQ3Can the complexity be reduced further when restricting to the guarded fragment of $ ext{FO}^2[ ightarrow^+]$ over singular trees?
  • RQ4What is the impact of adding transitive closures of child or sibling relations on the complexity of satisfiability over singular trees?
  • RQ5To what extent do model constructions with bounded path lengths and degrees enable tight complexity bounds for these logics?

Key findings

  • The satisfiability problem for $ ext{FO}^2[ ightarrow, ightarrow_+, ightarrow, ightarrow^+]$ over finite unranked trees is ExpSpace-complete.
  • Over singular trees, $ ext{FO}^2[ ightarrow^+]$ remains NExpTime-complete, while its guarded variant $ ext{GF}^2[ ightarrow^+]$ is PSpace-complete.
  • The logic $ ext{FO}^2[ ightarrow_+, ightarrow]$ is ExpSpace-hard over singular trees, indicating that adding even one additional navigational predicate beyond $ ightarrow^+$ increases complexity to ExpSpace.
  • For $ ext{FO}^2[ ightarrow^+]$, there exists a formula of size polynomial in $n$ whose models require a root with $2^n$ children, justifying the NExpTime lower bound.
  • The degree of nodes in models of $ ext{FO}^2[ ightarrow^+]$ over singular trees is bounded exponentially in the formula size, which supports the NExpTime upper bound.
  • The guarded fragment $ ext{GF}^2[ ightarrow^+]$ achieves PSpace-completeness over singular trees due to polynomial bounds on both path lengths and node degrees.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.