Containment for Conditional Tree Patterns
Alessandro Facchini (University of Warsaw), Yoichi Hirai (National, Institute of Advanced Industrial Science, Technology), Maarten Marx, (University of Amsterdam), Evgeny Sherkhonov (University of Amsterdam)

TL;DR
This paper investigates the containment problem for Conditional Tree Patterns (CTP), revealing it is PSPACE-complete due to CTP's ability to encode label negation, and compares its expressiveness to other XPath fragments.
Contribution
It establishes the complexity of CTP containment as PSPACE-complete and analyzes its expressive power relative to other XPath fragments.
Findings
Containment for CTP is PSPACE-complete.
CTP can encode label negation, increasing complexity.
CTP with disjunction is as expressive as positive existential first order logic with until.
Abstract
A Conditional Tree Pattern (CTP) expands an XML tree pattern with labels attached to the descendant edges. These labels can be XML element names or Boolean CTPs. The meaning of a descendant edge labelled by A and ending in a node labelled by B is a path of child steps ending in a B node such that all intermediate nodes are A nodes. In effect this expresses the until B, A holds construction from temporal logic.This paper studies the containment problem for CTP. For tree patterns (TP), this problem is known to be coNP-complete. We show that it is PSPACE-complete for CTP. This increase in complexity is due to the fact that CTP is expressive enough to encode an unrestricted form of label negation: , meaning "any node except an a-node". Containment of TP expanded with this type of negation is already PSPACE-hard. CTP is a positive, forward, first order fragment of Regular…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
