Expressiveness of spatial logic for trees

In this paper we investigate the quantifier-free fragment of the TQL logic proposed by Cardelli and Ghelli. The TQL logic, inspired from the ambient logic, is the core of a query language for semistructured data represented as unranked and unordered trees. The fragment we consider here, named STL, contains as main features spatial composition and location as well as a fixed point construct. We prove that satisfiability for STL is undecidable. We show also that STL is strictly more expressive than the Presburger monadic second-order logic (PMSO) of Seidl, Schwentick and Muscholl when interpreted over unranked and unordered edge-labelled trees. We define a class of tree automata whose transitions are conditioned by arithmetical constraints; we show then how to compute from a closed STL formula a tree automaton accepting precisely the models of the formula. Finally, still using our tree automata framework, we exhibit some syntactic restrictions over STL formulae that allow us to capture precisely the logics MSO and PMSO.

[1]  Thomas Schwentick,et al.  Numerical document queries , 2003, PODS.

[2]  Luca Cardelli,et al.  A Spatial Logic for Querying Graphs , 2002, ICALP.

[3]  Silvano Dal-Zilio,et al.  XML Schema, Tree Logic and Sheaves Automata , 2003, RTA.

[4]  Luca Cardelli,et al.  TQL: A Query Language for Semistructured Data Based on the Ambient Logic , 2003 .

[5]  Anuj Dawar,et al.  Expressiveness and complexity of graph logic , 2007, Inf. Comput..

[6]  Jean-Marc Talbot,et al.  Automata and Logics for Unranked and Unordered Trees , 2005, RTA.

[7]  Eric van der Vlist,et al.  XML Schema , 2002 .

[8]  M. Minsky Recursive Unsolvability of Post's Problem of "Tag" and other Topics in Theory of Turing Machines , 1961 .

[9]  Jean Goubault-Larrecq,et al.  Alternating two-way AC-tree automata , 2007, Inf. Comput..

[10]  Luca Cardelli,et al.  A spatial logic for concurrency (part I) , 2003, Inf. Comput..

[11]  Silvano Dal-Zilio,et al.  A logic you can count on , 2004, POPL.

[12]  Jim Melton,et al.  XML schema , 2003, SGMD.

[13]  Luca Cardelli,et al.  Anytime, anywhere: modal logics for mobile ambients , 2000, POPL '00.

[14]  Peter W. O'Hearn,et al.  Local Reasoning about Programs that Alter Data Structures , 2001, CSL.

[15]  Supratik Mukhopadhyay,et al.  Model checking mobile ambients , 2003, Theor. Comput. Sci..

[16]  Jean-Marc Talbot,et al.  On Complexity of Model-Checking for the TQL Logic , 2004, IFIP TCS.

[17]  Luca Cardelli,et al.  Mobile Ambients , 1998, FoSSaCS.

[18]  A. Arnold,et al.  Rudiments of μ-calculus , 2001 .

[19]  Luca Cardelli,et al.  A Query Language Based on the Ambient Logic , 2001, SEBD.

[20]  Denis Lugiez,et al.  Counting and Equality Constraints for Multitree Automata , 2003, FoSSaCS.

[21]  John C. Reynolds,et al.  Separation logic: a logic for shared mutable data structures , 2002, Proceedings 17th Annual IEEE Symposium on Logic in Computer Science.

[22]  Luca Cardelli,et al.  Deciding validity in a spatial logic for trees , 2003, TLDI '03.