Affiliation:
1. University of Oxford, Parks Road, Oxford UK
2. University of Wrocław, Wrocław, Poland
3. University of Oxford
4. University of Warsaw, Coventry, UK
Abstract
Verification of properties expressed in the two-variable fragment of first-order logic FO
2
has been investigated in a number of contexts. The satisfiability problem for FO
2
over arbitrary structures is known to be NEXPTIME-complete, with satisfiable formulas having exponential-sized models. Over words, where FO
2
is known to have the same expressiveness as unary temporal logic, satisfiability is again NEXPTIME-complete. Over finite labelled ordered trees, FO
2
has the same expressiveness as navigational XPath, a popular query language for XML documents. Prior work on XPath and FO
2
gives a 2EXPTIME bound for satisfiability of FO
2
over trees. This work contains a comprehensive analysis of the complexity of FO
2
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 FO
2
, its guarded version, GF
2
. Our results depend on an analysis of types in models of FO
2
formulas, including techniques for controlling the number of distinct subtrees, the depth, and the size of a witness to satisfiability for FO
2
sentences over finite trees.
Funder
Engineering and Physical Science Research Council projects “Enforcement of Constraints on XML Streams”
Polish National Science Centre
DBOnto: Bridging Ontologies and Databases
Publisher
Association for Computing Machinery (ACM)
Subject
Computational Mathematics,Logic,General Computer Science,Theoretical Computer Science
Cited by
4 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Lifted inference with tree axioms;Artificial Intelligence;2023-11
2. A Uniform One-Dimensional Fragment with Alternation of Quantifiers;Electronic Proceedings in Theoretical Computer Science;2023-09-30
3. One-dimensional fragment over words and trees;Journal of Logic and Computation;2022-02-19
4. Decidable XPath Fragments in the Real World;Proceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems - PODS '19;2019