Queries, Modalities, Relations, Trees, XPath Lecture VII Core XPath and beyond
|
|
- Kerry Carson
- 5 years ago
- Views:
Transcription
1 Queries, Modalities, Relations, Trees, XPath Lecture VII Core XPath and beyond Tadeusz Litak Department of Computer Science University of Leicester July 2010: draft Tadeusz Litak Lecture VII: CXPath and beyond (1/46)
2 Basic Axioms I: Idempotent Semirings ISAx1 (A B) C A (B C) ISAx2 A B B A ISAx3 A A A ISAx4 A/(B/C) (A/B)/C ISAx5{ /A A A/ A A/(B C) A/B A/C ISAx6{ (A B)/C A/C B/C ISAx7 A Distributive lattices, Kleene algebras, Tarski s relation algebras: they all have idempotent semiring reducts. Idempotency is the axiom ISAx3. abbreviates [ ] Tadeusz Litak Lecture VII: CXPath and beyond (2/46)
3 Basic Axioms II: Predicate Axioms PrAx1 A [ B ] /B PrAx2 A [φ ψ] A [φ] A [ψ] PrAx3 (A/B) [φ] A/B [φ] PrAx4 [ ] In Tarski s relation algebras and XPath 2.0, predicates can be defined away Note that PrAx3 would not be valid if we allowed unrestricted positional predicates Tadeusz Litak Lecture VII: CXPath and beyond (3/46)
4 Basic Axioms III: Node Axioms NdAx1 φ ( φ ψ) ( φ ψ) NdAx2 A B A B NdAx3 A/B A [ B ] NdAx4 [φ] φ Note how little was needed to ensure booleanity! (by Huntington s result from the 1930 s) And NdAx2 NdAx4 just mimick PrAx2 PrAx4 (redundancy: price to pay for two-sorted signature) Tadeusz Litak Lecture VII: CXPath and beyond (4/46)
5 Axioms in one-sorted signature Recall all the two-sorted axioms for predicates and expressions: PrAx1 A [ B ] /B PrAx2 A [φ ψ] A [φ] A [ψ] PrAx3 (A/B) [φ] A/B [φ] PrAx4 [ ] NdAx1 φ ( φ ψ) ( φ ψ) NdAx2 A B A B NdAx3 A/B A [ B ] NdAx4 [φ] φ Tadeusz Litak Lecture VII: CXPath and beyond (5/46)
6 Axioms in one-sorted signature Here is a one-sorted axiomatization for over idempotent semi-ring axioms found by Hollenberg: A/A A/A A (A/B)/A ( (A/B)/A)/ B (A B) A/ B A B ( A B) We need to add one more axiom for tests:?p?p Tadeusz Litak Lecture VII: CXPath and beyond (5/46)
7 Now, you may have the feeling that there was nothing XPath-specific yet Tadeusz Litak Lecture VII: CXPath and beyond (6/46)
8 Now, you may have the feeling that there was nothing XPath-specific yet But in fact there is a fragment for which it is all there is: Tadeusz Litak Lecture VII: CXPath and beyond (6/46)
9 Theorem Now, you may have the feeling that there was nothing XPath-specific yet But in fact there is a fragment for which it is all there is: Core XPath( ), the child-axis-only fragment! The axioms presented so far are complete for all valid equivalences of Core XPath( ). Tadeusz Litak Lecture VII: CXPath and beyond (6/46)
10 Theorem Now, you may have the feeling that there was nothing XPath-specific yet But in fact there is a fragment for which it is all there is: Core XPath( ), the child-axis-only fragment! The axioms presented so far are complete for all valid equivalences of Core XPath( ). In order to find more interesting equivalences, we have to move to other fragments Tadeusz Litak Lecture VII: CXPath and beyond (6/46)
11 Axioms for Linear Axes The non-transitive case: LinAx1 s [ φ] [ s [φ] ] /s for s {,, } This forces functionality of the corresponding axis Tadeusz Litak Lecture VII: CXPath and beyond (7/46)
12 Axioms for Transitive Axes One for node expressions, one for path expressions: TransAx1 s + [φ] s + [φ s + [φ] ] TransAx2 s + s + s + /s + The first one is called the Löb axiom and forces well-foundedness Don t get modal logicians started on it people wrote books about this formula In particular, all the consequences of TransAx2 for node expressions can be already derived from TransAx1 I can neither prove nor disprove that for path expressions TransAx2 is (ir-)redundant Tadeusz Litak Lecture VII: CXPath and beyond (8/46)
13 Finally, Axes which Are Both Transitive and Linear LinAx2 [ s + [φ] ] /s + s + [φ] s + [φ] /s + s + [ s + [φ] ] for s {,, } together with transitivity axioms This forces the corresponding axis is a linear order Tadeusz Litak Lecture VII: CXPath and beyond (9/46)
14 Single Axis Completeness Result Theorem Base axioms are complete for Core XPath( ) Base axioms with LinAx1 are complete for other intransitive single axis fragments Base axioms with TransAx1 and TransAx2 are complete for Core XPath( + ) Base axioms with TransAx1, TransAx2 and LinAx2 are complete for other transitive single axis fragments Tadeusz Litak Lecture VII: CXPath and beyond (10/46)
15 A Few Words About Proofs First, rewrite node expressions to simple node expressions: sinode ::= p a [sinode] sinode sinode sinode Tadeusz Litak Lecture VII: CXPath and beyond (11/46)
16 A Few Words About Proofs First, rewrite node expressions to simple node expressions: sinode ::= p a [sinode] sinode sinode sinode They are isomorphic variants of modal formulas Tadeusz Litak Lecture VII: CXPath and beyond (11/46)
17 A Few Words About Proofs First, rewrite node expressions to simple node expressions: sinode ::= p a [sinode] sinode sinode sinode They are isomorphic variants of modal formulas Using normal form theorems for modal logic, we provide a completeness proof for node expressions Tadeusz Litak Lecture VII: CXPath and beyond (11/46)
18 A Few Words About Proofs cntd. Then we rewrite all path expressions as sums of sum-free expressions of the form (all β i are normal forms of S = [β 1 ] /a [β 2 ] /... /a [β l ], the same nesting degree in case of transitive axes strictly decreasing degree for intransitive axes) In case of linear axes, we can even guarantee that every formula is witnessed further down the chain Tadeusz Litak Lecture VII: CXPath and beyond (12/46)
19 A Few Words About Proofs cntd. Then we rewrite all path expressions as sums of sum-free expressions of the form (all β i are normal forms of S = [β 1 ] /a [β 2 ] /... /a [β l ], the same nesting degree in case of transitive axes strictly decreasing degree for intransitive axes) In case of linear axes, we can even guarantee that every formula is witnessed further down the chain We prove that for every two such expressions either Tadeusz Litak Lecture VII: CXPath and beyond (12/46)
20 A Few Words About Proofs cntd. Then we rewrite all path expressions as sums of sum-free expressions of the form (all β i are normal forms of S = [β 1 ] /a [β 2 ] /... /a [β l ], the same nesting degree in case of transitive axes strictly decreasing degree for intransitive axes) In case of linear axes, we can even guarantee that every formula is witnessed further down the chain We prove that for every two such expressions either one is a subsequence of the other provably contained or Tadeusz Litak Lecture VII: CXPath and beyond (12/46)
21 A Few Words About Proofs cntd. Then we rewrite all path expressions as sums of sum-free expressions of the form (all β i are normal forms of S = [β 1 ] /a [β 2 ] /... /a [β l ], the same nesting degree in case of transitive axes strictly decreasing degree for intransitive axes) In case of linear axes, we can even guarantee that every formula is witnessed further down the chain We prove that for every two such expressions either one is a subsequence of the other provably contained or there is a countermodel for containment Tadeusz Litak Lecture VII: CXPath and beyond (12/46)
22 Aside: the issue of labels There is a fact about XML trees we did not take into account (unless we opt to render attribute-value pairs as additional labels) Tadeusz Litak Lecture VII: CXPath and beyond (13/46)
23 Aside: the issue of labels There is a fact about XML trees we did not take into account (unless we opt to render attribute-value pairs as additional labels) The labels are disjoint! Tadeusz Litak Lecture VII: CXPath and beyond (13/46)
24 Aside: the issue of labels There is a fact about XML trees we did not take into account (unless we opt to render attribute-value pairs as additional labels) The labels are disjoint! However, this is easy to fix: add node axiom p q for distinct p and q This axiom itself is not substitution-invariant, this is why we do not like it Tadeusz Litak Lecture VII: CXPath and beyond (13/46)
25 Aside: the issue of labels There is a fact about XML trees we did not take into account (unless we opt to render attribute-value pairs as additional labels) The labels are disjoint! However, this is easy to fix: add node axiom p q for distinct p and q This axiom itself is not substitution-invariant, this is why we do not like it But as our proofs used only Birkhoff s rules they are quite flexible and adding this axiom does not hurt Tadeusz Litak Lecture VII: CXPath and beyond (13/46)
26 Starting from the Other End Instead of beginning with single axes and then trying to combine two or more Tadeusz Litak Lecture VII: CXPath and beyond (14/46)
27 Starting from the Other End Instead of beginning with single axes and then trying to combine two or more LET S GO FOR THE WHOLE CORE XPATH! Tadeusz Litak Lecture VII: CXPath and beyond (14/46)
28 Axiom For Axes Dependencies TreeAx1{ s+ /s s s + s/s + s s + TreeAx2 s [φ] /s [ s [φ] ] ( for s distinct than ) TreeAx3 [φ] / ( + + ) [ [φ] ] TreeAx4{ + + [ ] + + [ ] TreeAx1 says: s + is a transitive closure of s TreeAx2 says non-child axes are functional and describes their converse TreeAx3 forces is the converse of (non-functional) with TreeAx4, it also describes how horizontal and vertical axes interplay Tadeusz Litak Lecture VII: CXPath and beyond (15/46)
29 Theorem The axioms presented so far are complete for Core XPath node expressions Tadeusz Litak Lecture VII: CXPath and beyond (16/46)
30 Theorem The axioms presented so far are complete for Core XPath node expressions Proof. By reduction to simple node expressions and derivation of all axioms of modal logic of finite trees by Blackburn, Meyer-Viol, de Rijke Tadeusz Litak Lecture VII: CXPath and beyond (16/46)
31 (boolean axioms) s [ ] s [φ ψ] s [φ] s [ψ] φ s [ s [φ] ] s [ φ] s [φ] ( for s distinct than ) s [φ] s [ s + [φ] ] s + [φ] s [φ] s + [φ] s + [ φ s [φ] ] s [ ] s + [ s [ ] ] TransAx1 for + and + [ [φ] ] [φ] [φ] [ ] [ ] Tadeusz Litak Lecture VII: CXPath and beyond (17/46)
32 A Nasty Trick Tadeusz Litak Lecture VII: CXPath and beyond (18/46)
33 A Nasty Trick We can use this to provide an axiomatization for path expressions... Tadeusz Litak Lecture VII: CXPath and beyond (18/46)
34 A Nasty Trick We can use this to provide an axiomatization for path expressions of a sort a non-orthodox one! Tadeusz Litak Lecture VII: CXPath and beyond (18/46)
35 A Nasty Trick We can use this to provide an axiomatization for path expressions of a sort a non-orthodox one! Add the separability rule: (Sep) IF A [p] B [p] for p not occurring in A, B THEN A B. Tadeusz Litak Lecture VII: CXPath and beyond (18/46)
36 A Nasty Trick We can use this to provide an axiomatization for path expressions of a sort a non-orthodox one! Add the separability rule: (Sep) IF A [p] B [p] for p not occurring in A, B THEN A B. Except for spoiling the whole equational story, it does not sit too well with the labelling axiom... Tadeusz Litak Lecture VII: CXPath and beyond (18/46)
37 The Nasty Trick Does Its Job... but it s perfect for obtaining complexity results for query equivalence problem by using reductions to corresponding modal logics Tadeusz Litak Lecture VII: CXPath and beyond (19/46)
38 Complexity Theorem Theorem Query equivalence of Core XPath( +, + ), Core XPath( + ), Core XPath(s) (for s {,, }) is conp-complete. Query equivalence of Core XPath( +,, +,, +, ) is PSPACE-complete. Thus, the PSPACE upper bound applies to all its sublanguages. Query equivalence of Core XPath( ) and Core XPath( + ) is PSPACE-complete. Thus, all extensions of this fragment are PSPACE-hard. Query equivalence of Core XPath(, + ) is EXPTIME-complete. Thus, all extensions of this fragment are EXPTIME-hard. Tadeusz Litak Lecture VII: CXPath and beyond (20/46)
39 Proofs... by reductions to complexity results for modal logics like K, K4, Alt.1 and fragments of tense/temporal logic on linear and branching orders. The most interesting one is for the second clause somewhat tricky embedding into a logic of Sistla and Clarke. Tadeusz Litak Lecture VII: CXPath and beyond (21/46)
40 What we have seen so far... We have seen: equational axiomatizations for path equivalences of all eight single axis fragments of Core XPath Tadeusz Litak Lecture VII: CXPath and beyond (22/46)
41 What we have seen so far... We have seen: equational axiomatizations for path equivalences of all eight single axis fragments of Core XPath equational axiomatizations for node equivalences of full Core XPath 1.0 Tadeusz Litak Lecture VII: CXPath and beyond (22/46)
42 What we have seen so far... We have seen: equational axiomatizations for path equivalences of all eight single axis fragments of Core XPath equational axiomatizations for node equivalences of full Core XPath 1.0 non-orthodox axiomatization for path equivalences of full Core XPath 1.0 Tadeusz Litak Lecture VII: CXPath and beyond (22/46)
43 What we have seen so far... We have seen: equational axiomatizations for path equivalences of all eight single axis fragments of Core XPath equational axiomatizations for node equivalences of full Core XPath 1.0 non-orthodox axiomatization for path equivalences of full Core XPath 1.0 computational complexity results for path equivalences in most meaningful sublanguages of Core XPath 1.0 Tadeusz Litak Lecture VII: CXPath and beyond (22/46)
44 What we have not seen so far... Definability and expressivity results (for finite sibling-ordered trees... ) Results for fragments of XPath stronger than CoreXPath 1.0 From now on, I am going to use Balder Ten Cate s M4M 2007 slides Tadeusz Litak Lecture VII: CXPath and beyond (23/46)
45 Expressive power Possible yardsticks for expressive power on trees: First-order logic (FO), (cf. Codd completeness of SQL/RA) Monadic second-order logic (MSO)... e.g., in between FO and MSO lies FO(TC) Tadeusz Litak Lecture VII: CXPath and beyond (24/46)
46 Expressive power Possible yardsticks for expressive power on trees: First-order logic (FO), (cf. Codd completeness of SQL/RA) Monadic second-order logic (MSO)... e.g., in between FO and MSO lies FO(TC) What kind of queries do we want to characterize Tadeusz Litak Lecture VII: CXPath and beyond (24/46)
47 Expressive power Possible yardsticks for expressive power on trees: First-order logic (FO), (cf. Codd completeness of SQL/RA) Monadic second-order logic (MSO)... e.g., in between FO and MSO lies FO(TC) What kind of queries do we want to characterize Binary relations definable by path expressions? Node sets definable by node expressions? Properties of trees definable by node expressions evaluated at the root? Tadeusz Litak Lecture VII: CXPath and beyond (24/46)
48 Expressive power Possible yardsticks for expressive power on trees: First-order logic (FO), (cf. Codd completeness of SQL/RA) Monadic second-order logic (MSO)... e.g., in between FO and MSO lies FO(TC) What kind of queries do we want to characterize Binary relations definable by path expressions? Node sets definable by node expressions? Properties of trees definable by node expressions evaluated at the root? Possible types of characterizations: Tadeusz Litak Lecture VII: CXPath and beyond (24/46)
49 Expressive power Possible yardsticks for expressive power on trees: First-order logic (FO), (cf. Codd completeness of SQL/RA) Monadic second-order logic (MSO)... e.g., in between FO and MSO lies FO(TC) What kind of queries do we want to characterize Binary relations definable by path expressions? Node sets definable by node expressions? Properties of trees definable by node expressions evaluated at the root? Possible types of characterizations: Syntactic (e.g. L is equivalent to the two variable... ) versus semantic (e.g., bisimulation invariant fragment... ) Tadeusz Litak Lecture VII: CXPath and beyond (24/46)
50 Expressive power Possible yardsticks for expressive power on trees: First-order logic (FO), (cf. Codd completeness of SQL/RA) Monadic second-order logic (MSO)... e.g., in between FO and MSO lies FO(TC) What kind of queries do we want to characterize Binary relations definable by path expressions? Node sets definable by node expressions? Properties of trees definable by node expressions evaluated at the root? Possible types of characterizations: Syntactic (e.g. L is equivalent to the two variable... ) versus semantic (e.g., bisimulation invariant fragment... ) Decidable characterizations? Tadeusz Litak Lecture VII: CXPath and beyond (24/46)
51 Expressive power (ct d) Descendant-only fragment CoreXPath( ) node expressions have the same expressive power as MSO formulas ϕ(x) for which (i) truth of ϕ(x) at a node depends only on the subtree (ii) ϕ(x) does not distinguish children from descendants, i.e., the following operation preserves truth/falsity at the root: Tadeusz Litak Lecture VII: CXPath and beyond (25/46)
52 Expressive power (ct d) Descendant-only fragment CoreXPath( ) node expressions have the same expressive power as MSO formulas ϕ(x) for which (i) truth of ϕ(x) at a node depends only on the subtree (ii) ϕ(x) does not distinguish children from descendants, i.e., the following operation preserves truth/falsity at the root: Easy proof from De Jongh-Sambin fixed point theorem for GL and Janin-Walukiewicz theorem for µ-calculus, see M4M proceedings paper. Tadeusz Litak Lecture VII: CXPath and beyond (25/46)
53 Expressive power (ct d) Descendant-only fragment CoreXPath( ) node expressions have the same expressive power as MSO formulas ϕ(x) for which (i) truth of ϕ(x) at a node depends only on the subtree (ii) ϕ(x) does not distinguish children from descendants, i.e., the following operation preserves truth/falsity at the root: Easy proof from De Jongh-Sambin fixed point theorem for GL and Janin-Walukiewicz theorem for µ-calculus, see M4M proceedings paper. Moreover, the proof is effective: it yields a decision procedure. Tadeusz Litak Lecture VII: CXPath and beyond (25/46)
54 A Lost Exercise Exercise 1 Prove that finite sibling-ordered trees are bisimiliar iff they are ismorphic 2 Does this result hold for arbitrary trees? Tadeusz Litak Lecture VII: CXPath and beyond (26/46)
55 Expressive power (ct d) What about the full Core XPath language? Tadeusz Litak Lecture VII: CXPath and beyond (27/46)
56 Expressive power (ct d) What about the full Core XPath language? No decidable characterization in terms of MSO is known. All we have is: Tadeusz Litak Lecture VII: CXPath and beyond (27/46)
57 Expressive power (ct d) What about the full Core XPath language? No decidable characterization in terms of MSO is known. All we have is: Syntactic characterization of Core XPath (Marx-De Rijke 05) Core XPath node expressions have the same expressive power as formulas φ(x) in the two-variable fragment of FO[R, R, R, R ]. There is a similar characterization for path expressions. Tadeusz Litak Lecture VII: CXPath and beyond (27/46)
58 Brief recap In summary... Core XPath is reasonably expressive yet computationally attractive. Tadeusz Litak Lecture VII: CXPath and beyond (28/46)
59 Brief recap In summary... Core XPath is reasonably expressive yet computationally attractive. In the remainder of this talk, we consider two extensions: Tadeusz Litak Lecture VII: CXPath and beyond (28/46)
60 Brief recap In summary... Core XPath is reasonably expressive yet computationally attractive. In the remainder of this talk, we consider two extensions: 1 Regular XPath: the extension of Core XPath with full transitive closure. Tadeusz Litak Lecture VII: CXPath and beyond (28/46)
61 Brief recap In summary... Core XPath is reasonably expressive yet computationally attractive. In the remainder of this talk, we consider two extensions: 1 Regular XPath: the extension of Core XPath with full transitive closure. 2 Core XPath 2.0: the navigational core of XPath 2.0, featuring path intersection and complementation and more. Tadeusz Litak Lecture VII: CXPath and beyond (28/46)
62 Motivation for adding transitive closure Several people have proposed extending XPath with transitive closure, for various reasons. Tadeusz Litak Lecture VII: CXPath and beyond (29/46)
63 Motivation for adding transitive closure Several people have proposed extending XPath with transitive closure, for various reasons. Practical reasons: some applications require the use of transitive closure. Tadeusz Litak Lecture VII: CXPath and beyond (29/46)
64 Motivation for adding transitive closure Several people have proposed extending XPath with transitive closure, for various reasons. Practical reasons: some applications require the use of transitive closure. Core XPath extended with transitive closure has full first-order expressive power, is rich enough to express DTDs, and admits view based query rewriting with recursive views. Tadeusz Litak Lecture VII: CXPath and beyond (29/46)
65 Motivation for adding transitive closure Several people have proposed extending XPath with transitive closure, for various reasons. Practical reasons: some applications require the use of transitive closure. Core XPath extended with transitive closure has full first-order expressive power, is rich enough to express DTDs, and admits view based query rewriting with recursive views. From the perspective of PDL, extending XPath with transitive closure seems a very natural thing to do. Tadeusz Litak Lecture VII: CXPath and beyond (29/46)
66 Motivation for adding transitive closure Several people have proposed extending XPath with transitive closure, for various reasons. Practical reasons: some applications require the use of transitive closure. Core XPath extended with transitive closure has full first-order expressive power, is rich enough to express DTDs, and admits view based query rewriting with recursive views. From the perspective of PDL, extending XPath with transitive closure seems a very natural thing to do. The extension of Core XPath with transitive closure is called Regular XPath. Tadeusz Litak Lecture VII: CXPath and beyond (29/46)
67 Syntax of Regular XPath Regular XPath has two types of expressions: Tadeusz Litak Lecture VII: CXPath and beyond (30/46)
68 Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::=. α/β α β α α[φ] Tadeusz Litak Lecture VII: CXPath and beyond (30/46)
69 Syntax of Regular XPath Regular XPath has two types of expressions: path expressions α ::=. α/β α β α α[φ] node expressions φ ::= p φ φ ψ α Tadeusz Litak Lecture VII: CXPath and beyond (30/46)
70 An example Go to the next book that has at least two authors. In Regular XPath: Tadeusz Litak Lecture VII: CXPath and beyond (31/46)
71 An example Go to the next book that has at least two authors. In Regular XPath: ( [ twoauthorbook]) / [twoauthorbook] where twoauthorbook stands for book [author]/ + [author]. Tadeusz Litak Lecture VII: CXPath and beyond (31/46)
72 Another example The following can be expressed in Regular XPath: The tree has an even number of nodes To see this, note that Tadeusz Litak Lecture VII: CXPath and beyond (32/46)
73 Another example The following can be expressed in Regular XPath: The tree has an even number of nodes To see this, note that Let (α while φ) be shorthand for (.[φ]/α). Tadeusz Litak Lecture VII: CXPath and beyond (32/46)
74 Another example The following can be expressed in Regular XPath: The tree has an even number of nodes To see this, note that Let (α while φ) be shorthand for (.[φ]/α). Let root be short for. Let leaf be short for. Let first be short for. Let last be short for. Tadeusz Litak Lecture VII: CXPath and beyond (32/46)
75 Another example The following can be expressed in Regular XPath: The tree has an even number of nodes To see this, note that Let (α while φ) be shorthand for (.[φ]/α). Let root be short for. Let leaf be short for. Let first be short for. Let last be short for. Let suc be shorthand for [first].[leaf ]/ ( while last ) / (the successor in depth first left-to-right ordering). Tadeusz Litak Lecture VII: CXPath and beyond (32/46)
76 Another example The following can be expressed in Regular XPath: The tree has an even number of nodes To see this, note that Let (α while φ) be shorthand for (.[φ]/α). Let root be short for. Let leaf be short for. Let first be short for. Let last be short for. Let suc be shorthand for [first].[leaf ]/ ( while last ) / (the successor in depth first left-to-right ordering). Then (suc/suc) [leaf ]/ ( while last ) [root] is true at the root iff the number of nodes is even. Tadeusz Litak Lecture VII: CXPath and beyond (32/46)
77 One more example Consider game trees: leafs are labeled by Anne-wins or Bob-wins inner nodes are labeled by Anne s-move or Bob s-move Tadeusz Litak Lecture VII: CXPath and beyond (33/46)
78 One more example Consider game trees: leafs are labeled by Anne-wins or Bob-wins inner nodes are labeled by Anne s-move or Bob s-move Puzzle: Show that Anne has a winning strategy is expressible. Tadeusz Litak Lecture VII: CXPath and beyond (33/46)
79 Expressive power of Regular XPath Tadeusz Litak Lecture VII: CXPath and beyond (34/46)
80 Expressive power of Regular XPath What is the expressive power of Regular XPath? We know that FO Regular XPath FO(TC) (The first inclusion follows from results by Marx 2004). Tadeusz Litak Lecture VII: CXPath and beyond (34/46)
81 Expressive power of Regular XPath What is the expressive power of Regular XPath? We know that FO Regular XPath FO(TC) (The first inclusion follows from results by Marx 2004). A natural conjecture: Regular XPath FO(TC) (after all, Regular XPath has a transitive closure operator!) Tadeusz Litak Lecture VII: CXPath and beyond (34/46)
82 Expressive power of Regular XPath What is the expressive power of Regular XPath? We know that FO Regular XPath FO(TC) (The first inclusion follows from results by Marx 2004). A natural conjecture: Regular XPath FO(TC) (after all, Regular XPath has a transitive closure operator!) We managed to prove this only if we extend Regular XPath with a within operator W : T, n = W φ iff T n, n = φ (cf. temporal logics with forgettable past) Tadeusz Litak Lecture VII: CXPath and beyond (34/46)
83 Expressive power of Regular XPath (ct d) Tadeusz Litak Lecture VII: CXPath and beyond (35/46)
84 Expressive power of Regular XPath (ct d) FO(TC) is the extension of first-order logic with a transitive closure operator for binary relations. Tadeusz Litak Lecture VII: CXPath and beyond (35/46)
85 Expressive power of Regular XPath (ct d) FO(TC) is the extension of first-order logic with a transitive closure operator for binary relations. Theorem: (Ten Cate and Segoufin, PODS 2008, JACM 2010) Regular XPath(W) path expressions define the same binary relations as FO(TC) formulas with two free variables. Similarly for node expressions. Tadeusz Litak Lecture VII: CXPath and beyond (35/46)
86 Expressive power of Regular XPath (ct d) FO(TC) is the extension of first-order logic with a transitive closure operator for binary relations. Theorem: (Ten Cate and Segoufin, PODS 2008, JACM 2010) Regular XPath(W) path expressions define the same binary relations as FO(TC) formulas with two free variables. Similarly for node expressions. Corollary: Regular XPath(W) is closed under path intersection and complementation. Tadeusz Litak Lecture VII: CXPath and beyond (35/46)
87 Axiomatizations and complexity No axiomatizations are known yet for Regular XPath and Regular XPath(W). Tadeusz Litak Lecture VII: CXPath and beyond (36/46)
88 Axiomatizations and complexity No axiomatizations are known yet for Regular XPath and Regular XPath(W). As for complexity, Tadeusz Litak Lecture VII: CXPath and beyond (36/46)
89 Axiomatizations and complexity No axiomatizations are known yet for Regular XPath and Regular XPath(W). As for complexity, Query evaluation can still be performed in PTime even for Regular XPath(W). Query containment is still ExpTime-complete for Regular XPath but it is 2ExpTime-complete for Regular XPath(W) Tadeusz Litak Lecture VII: CXPath and beyond (36/46)
90 Core XPath 2.0 Tadeusz Litak Lecture VII: CXPath and beyond (37/46)
91 XPath 2.0 extends XPath 1.0 with many features, including the following new navigational operations: Intersection and complementation of path expressions. α intersect β and α except β Tadeusz Litak Lecture VII: CXPath and beyond (38/46)
92 XPath 2.0 extends XPath 1.0 with many features, including the following new navigational operations: Intersection and complementation of path expressions. α intersect β and α except β Example: [p] except [q]/ [p] Tadeusz Litak Lecture VII: CXPath and beyond (38/46)
93 XPath 2.0 extends XPath 1.0 with many features, including the following new navigational operations: Intersection and complementation of path expressions. α intersect β and α except β Example: [p] except [q]/ [p] Variables and for loops for $x in α return β α[. is $x] and Tadeusz Litak Lecture VII: CXPath and beyond (38/46)
94 XPath 2.0 extends XPath 1.0 with many features, including the following new navigational operations: Intersection and complementation of path expressions. α intersect β and α except β Example: [p] except [q]/ [p] Variables and for loops for $x in α return β α[. is $x] and Example: for $x in. return [p [q]/ [. is $x] ] Tadeusz Litak Lecture VII: CXPath and beyond (38/46)
95 XPath 2.0 extends XPath 1.0 with many features, including the following new navigational operations: Intersection and complementation of path expressions. α intersect β and α except β Example: [p] except [q]/ [p] Variables and for loops for $x in α return β α[. is $x] and Example: for $x in. return [p [q]/ [. is $x] ] Core XPath 2.0 is the extension of Core XPath with these features. Tadeusz Litak Lecture VII: CXPath and beyond (38/46)
96 The path intersection and complementation turn Core XPath 2.0 into a version of Tarski s relation algebra (interpreted on finite ordered trees). Tadeusz Litak Lecture VII: CXPath and beyond (39/46)
97 The path intersection and complementation turn Core XPath 2.0 into a version of Tarski s relation algebra (interpreted on finite ordered trees). The variables and for-loops make it possible to give a linear translation from first-order logic to Core XPath 2.0: TR(φ(x, y)) = for $x in., $y in return $y[tr (φ)] TR (x = y) = [. is $x. is $y] TR (R xy) = [. is $x [. is $y] ] TR (R xy) = [. is $x [. is $y] ] TR (R xy) = [. is $x [. is $y] ] TR (R xy) = [. is $x [. is $y] ] TR (φ ψ) = TR (φ) TR (ψ) TR ( φ) = TR (φ) TR ( x.φ) = for $x in return TR (φ) where is shorthand for / (the universal relation) Tadeusz Litak Lecture VII: CXPath and beyond (39/46)
98 Expressivity and complexity Core XPath 2.0 has the same expressive power as first-order logic, both with and without variables (in the case with variables there is a linear translation). Tadeusz Litak Lecture VII: CXPath and beyond (40/46)
99 Expressivity and complexity Core XPath 2.0 has the same expressive power as first-order logic, both with and without variables (in the case with variables there is a linear translation). The complexity of the query equivalence problem is non-elementary, both with and without variables. Tadeusz Litak Lecture VII: CXPath and beyond (40/46)
100 Expressivity and complexity Core XPath 2.0 has the same expressive power as first-order logic, both with and without variables (in the case with variables there is a linear translation). The complexity of the query equivalence problem is non-elementary, both with and without variables. (even adding only path intersection to Core XPath makes it 2ExpTime-complete.) Tadeusz Litak Lecture VII: CXPath and beyond (40/46)
101 Expressivity and complexity Core XPath 2.0 has the same expressive power as first-order logic, both with and without variables (in the case with variables there is a linear translation). The complexity of the query equivalence problem is non-elementary, both with and without variables. (even adding only path intersection to Core XPath makes it 2ExpTime-complete.) Is there anything interesting left to say about XPath 2.0? Tadeusz Litak Lecture VII: CXPath and beyond (40/46)
102 Expressivity and complexity Core XPath 2.0 has the same expressive power as first-order logic, both with and without variables (in the case with variables there is a linear translation). The complexity of the query equivalence problem is non-elementary, both with and without variables. (even adding only path intersection to Core XPath makes it 2ExpTime-complete.) Is there anything interesting left to say about XPath 2.0? Sure! For example, axiomatization. Tadeusz Litak Lecture VII: CXPath and beyond (40/46)
103 Expressivity and complexity Core XPath 2.0 has the same expressive power as first-order logic, both with and without variables (in the case with variables there is a linear translation). The complexity of the query equivalence problem is non-elementary, both with and without variables. (even adding only path intersection to Core XPath makes it 2ExpTime-complete.) Is there anything interesting left to say about XPath 2.0? Sure! For example, axiomatization. We have two complete axiomatizations of path equivalence in Core XPath 2.0: one with and one without variables. Tadeusz Litak Lecture VII: CXPath and beyond (40/46)
104 The case without variables Recall that, without variables, Core XPath 2.0 is essentially a version of Relation Algebra interpreted on finite sibling ordered trees. Tadeusz Litak Lecture VII: CXPath and beyond (41/46)
105 The case without variables Recall that, without variables, Core XPath 2.0 is essentially a version of Relation Algebra interpreted on finite sibling ordered trees. One apparent problem: Relation Algebra has no node tests. However, these can easily be translated away: Pred1. α[φ ψ] α[φ][ψ] Pred2. α[φ ψ] α[φ] α[ψ] Pred3. α[ φ] α α[φ] Pred4. α[ β ] α/((β/ ).) Tadeusz Litak Lecture VII: CXPath and beyond (41/46)
106 The case without variables Recall that, without variables, Core XPath 2.0 is essentially a version of Relation Algebra interpreted on finite sibling ordered trees. One apparent problem: Relation Algebra has no node tests. However, these can easily be translated away: Pred1. α[φ ψ] α[φ][ψ] Pred2. α[φ ψ] α[φ] α[ψ] Pred3. α[ φ] α α[φ] Pred4. α[ β ] α/((β/ ).) Besides these axioms, our axiomatization for variable free Core XPath 2.0 contains two groups of axioms: General axioms of Boolean Algebra and Relation Algebra Axioms describing (first-order) properties of trees. Tadeusz Litak Lecture VII: CXPath and beyond (41/46)
107 Axioms of Boolean algebra BA1. α (β γ) (α β) γ BA2. α (β γ) (α β) γ BA3. α β β α BA4. α β β α BA5. α (β γ) (α β) (α γ) BA6. α (β γ) (α β) (α γ) BA7. α (α β) α BA8. α (α β) α BA9. α ( α) BA10. α ( α) BA11. α ( β) α β Tadeusz Litak Lecture VII: CXPath and beyond (42/46)
108 The axioms of Relation algebra RA1. α/(β/γ) (α/β)/γ RA2. α/. α RA3. (α β)/γ α/γ β/γ RA4. (α β) α β RA5. (α/β) β /α RA6. (α ) α RA7. (α/( (α /β)) except β To completely axiomatize relation algebra, normally, one needs to add also Venema s Rule: If X is a relation variable not occurring in α and X (((.)/X/ ) ( /X/(.))) α then α. Fortunately, this rule turns out to be derivable in our case. Tadeusz Litak Lecture VII: CXPath and beyond (43/46)
109 The axioms for finite sibling ordered trees Tr1. + / + + Tr Tr3a. + ( / + ) Tr3b. + ( + / + ) Tr4..[ ].[ + [ ]] Tr5. + / + +.[ ].[ ]/ + Tr6. + / + + Tr Tr8a. + ( / + ) Tr8b. + ( + / + ) Tr9..[ ].[ + [ ] ] Tr ( / ). Tr ( / + / ) ( / + / ) Ind. [ α ] [ α (α/ <<) ] Tadeusz Litak Lecture VII: CXPath and beyond (44/46)
110 Rounding up Three languages: Tadeusz Litak Lecture VII: CXPath and beyond (45/46)
111 Rounding up Three languages: Core XPath: the navigational core of XPath 1.0 Expressivity: FO 2 Query evaluation: PTime Query equivalence: ExpTime-complete Tadeusz Litak Lecture VII: CXPath and beyond (45/46)
112 Rounding up Three languages: Core XPath: the navigational core of XPath 1.0 Expressivity: FO 2 Query evaluation: PTime Query equivalence: ExpTime-complete Regular XPath(W): the extension with and W. Expressivity: same as FO(TC) Query evaluation: PTime Query equivalence: 2ExpTime-complete. Tadeusz Litak Lecture VII: CXPath and beyond (45/46)
113 Rounding up Three languages: Core XPath: the navigational core of XPath 1.0 Expressivity: FO 2 Query evaluation: PTime Query equivalence: ExpTime-complete Regular XPath(W): the extension with and W. Expressivity: same as FO(TC) Query evaluation: PTime Query equivalence: 2ExpTime-complete. Core XPath 2.0: the navigational core of XPath 2.0 Expressivity: same as FO. Query evaluation: PSpace-complete Query equivalence: non-elementary hard. Tadeusz Litak Lecture VII: CXPath and beyond (45/46)
114 Some references Tadeusz Thank Litak you! Lecture VII: CXPath and beyond (46/46) Expressive power: Marx and De Rijke. Semantic characterizations of navigational XPath. SIGMOD Record 34(2), 2005 Ten Cate, Fontaine and Litak. Some modal aspects of XPath. M4M 07. Journal version for a special issue of JANCL 2010 in preparation Ten Cate and Segoufin. XPath, transitive closure logic, and nested tree walking automata. Journal of the ACM, Extended abstract appeared in PODS Axiomatization: Ten Cate, Fontaine and Litak. Some modal aspects of XPath. M4M 07. Journal version for a special issue of JANCL 2010 in preparation Ten Cate, Litak and Marx. Complete axiomatizations of XPath fragments. JAL Extended abstract presented at LiD Ten Cate and Marx. Axiomatizing the logical core of XPath 2.0. ICDT 07. Complexity: Gottlob, Koch and Pichler. Efficient algorithms for processing XPath queries. TODS 30(2), 2005 Ten Cate and Lutz. Query containment in very expressive XPath dialects. PODS 07.
Some Modal Aspects of XPath
M4M 2007 Some Modal Aspects of XPath Balder ten Cate 1,2 Informatics Institute, University of Amsterdam Kruislaan 403, 1098 SJ, Amsterdam, The Netherlands Gaëlle Fontaine 3 ILLC, University of Amsterdam
More informationJournal of Applied Logic
Journal of Applied Logic 8 (2010) 153 172 Contents lists available at ScienceDirect Journal of Applied Logic www.elsevier.com/locate/jal Complete axiomatizations for XPath fragments Balder ten Cate a,
More informationTransitive Closure Logic, Nested Tree Walking Automata, and XPath
Transitive Closure Logic, Nested Tree Walking Automata, and XPath Balder ten Cate ISLA, Universiteit van Amsterdam and Luc Segoufin INRIA, ENS-Cachan We study FO(MTC), first-order logic with monadic transitive
More informationAbstract model theory for extensions of modal logic
Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for
More informationIntroduction to Tree Logics
1 / 26 Introduction to Tree Logics Pierre Genevès CNRS (slides mostly based on the ones by W. Martens and T. Schwentick) University of Grenoble, 2014 2015 2 / 26 Why Logic? Tree automaton algorithm Logical
More informationQuery Reasoning on Data Trees with Counting
Query Reasoning on Data Trees with Counting Everardo Bárcenas 1,2, Edgard Benítez-Guerrero 2, and Jesús Lavalle 3,4 1 CONACYT 2 Universidad Veracruzana 3 Benemérita Universidad Autónoma de Puebla 4 Instituto
More informationDefinability for Downward and Vertical XPath on Data Trees
Definability for Downward and Vertical XPath on Data Trees Sergio Abriola 1, María Emilia Descotte 1, and Santiago Figueira 1,2 1 University of Buenos Aires, Argentina 2 CONICET, Argentina Abstract. We
More informationModel Theory of Modal Logic Lecture 5. Valentin Goranko Technical University of Denmark
Model Theory of Modal Logic Lecture 5 Valentin Goranko Technical University of Denmark Third Indian School on Logic and its Applications Hyderabad, January 29, 2010 Model Theory of Modal Logic Lecture
More informationAxiomatizing the logical core of XPath 2.0
Axiomatizing the logical core of XPath 2.0 Balder ten Cate, Maarten Marx ISLA Informatics Institute, Universiteit van Amsterdam Kruislaan 403, 1098SJ Amsterdam, The Netherlands balder.tencate@uva.nl /
More informationThe Complexity of Query Containment in Expressive Fragments of XPath 2.0
The Complexity of Query Containment in Expressive Fragments of XPath 2.0 (full version, including appendices, of the PODS 07 paper) ABSTRACT Balder ten Cate ISLA Informatics Institute Universiteit van
More informationChapter 4: Computation tree logic
INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification
More informationContainment for XPath Fragments under DTD Constraints
Containment for XPath Fragments under DTD Constraints Peter Wood School of Computer Science and Information Systems Birkbeck College University of London United Kingdom email: ptw@dcs.bbk.ac.uk 1 Outline
More informationModel Theory of XPath on Data Trees. Part II: Binary Bisimulation and Definability
Model Theory of XPath on Data Trees. Part II: Binary Bisimulation and Definability Sergio Abriola María Emilia Descotte Santiago Figueira University of Buenos Aires Abstract We study the expressive power
More informationSatisfiability of XPath Queries with Sibling Axes
Satisfiability of XPath Queries with Sibling Axes Floris Geerts 1 and Wenfei Fan 2 1 Hasselt University and University of Edinburgh 2 University of Edinburgh and Bell Laboratories Abstract. We study the
More informationSatisfiability of Downward XPath with Data Equality Tests
Satisfiability of Downward XPath with Data Equality Tests Diego Figueira LSV, ENS Cachan, CNRS, INRIA Saclay, France ABSTRACT In this work we investigate the satisfiability problem for the logic XPath(,,
More informationReasoning about XML with Temporal Logics and Automata
Reasoning about XML with Temporal Logics and Automata Leonid Libkin 1 and Cristina Sirangelo 1,2 1 University of Edinburgh 2 LSV, ENS Cachan, INRIA Abstract. We show that problems arising in static analysis
More informationAlternating nonzero automata
Alternating nonzero automata Application to the satisfiability of CTL [,, P >0, P =1 ] Hugo Gimbert, joint work with Paulin Fournier LaBRI, Université de Bordeaux ANR Stoch-MC 06/07/2017 Control and verification
More informationJournal of Applied Logic
Journal of Applied Logic 8 (2010) 210 232 Contents lists available at ScienceDirect Journal of Applied Logic www.elsevier.com/locate/jal Reasoning about XML with temporal logics and automata Leonid Libkin
More informationLanguages, logics and automata
Languages, logics and automata Anca Muscholl LaBRI, Bordeaux, France EWM summer school, Leiden 2011 1 / 89 Before all that.. Sonia Kowalewskaya Emmy Noether Julia Robinson All this attention has been gratifying
More informationIntroduction to Metalogic
Introduction to Metalogic Hans Halvorson September 21, 2016 Logical grammar Definition. A propositional signature Σ is a collection of items, which we call propositional constants. Sometimes these propositional
More informationTree Automata and Rewriting
and Rewriting Ralf Treinen Université Paris Diderot UFR Informatique Laboratoire Preuves, Programmes et Systèmes treinen@pps.jussieu.fr July 23, 2010 What are? Definition Tree Automaton A tree automaton
More informationPattern Logics and Auxiliary Relations
Pattern Logics and Auxiliary Relations Diego Figueira Leonid Libkin University of Edinburgh Abstract A common theme in the study of logics over finite structures is adding auxiliary predicates to enhance
More informationPreliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic
Introduction to EF-games Inexpressivity results for first-order logic Normal forms for first-order logic Algorithms and complexity for specific classes of structures General complexity bounds Preliminaries
More informationLecture 2: Syntax. January 24, 2018
Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified
More informationMODAL LOGICS OF SPACE
MODAL LOGICS OF SPACE Johan van Benthem, Amsterdam & Stanford, http://staff.science.uva.nl/~johan/ Handbook Launch Spatial Logics, Groningen, 14 November 2007 Pictures: dynamically in real-time on the
More informationAxiomatizing the logical core of XPath 2.0
Axiomatizing the logical core of XPath 2.0 Full version Balder ten Cate and Maarten Marx ISLA Informatics Institute, Universiteit van Amsterdam Kruislaan 403, 1098SJ Amsterdam, The Netherlands balder.tencate@uva.nl
More informationLogics and automata over in nite alphabets
Logics and automata over in nite alphabets Anca Muscholl LIAFA, Univ. Paris 7 & CNRS Joint work with: Miko!aj Bojańczyk (Warsaw, Paris), Claire David (Paris), Thomas Schwentick (Dortmund) and Luc Segou
More informationInterpretability Logic
Interpretability Logic Logic and Applications, IUC, Dubrovnik vukovic@math.hr web.math.pmf.unizg.hr/ vukovic/ Department of Mathematics, Faculty of Science, University of Zagreb September, 2013 Interpretability
More informationPositive provability logic
Positive provability logic Lev Beklemishev Steklov Mathematical Institute Russian Academy of Sciences, Moscow November 12, 2013 Strictly positive modal formulas The language of modal logic extends that
More informationAlgebraizing Hybrid Logic. Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation
Algebraizing Hybrid Logic Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation etzanis@science.uva.nl May 1, 2005 2 Contents 1 Introduction 5 1.1 A guide to this thesis..........................
More informationBalder ten Cate has been funded partially by the ERC grant Webdam, agreement , and partially by the NSF grant IIS
Unary negation Balder ten Cate 1 and Luc Segoufin 2 1 University of California, Santa Cruz http://users.soe.ucsc.edu/~btencate 2 INRIA and ENS Cachan, LSV http://www-rocq.inria.fr/~segoufin Abstract We
More informationNeighborhood Semantics for Modal Logic Lecture 5
Neighborhood Semantics for Modal Logic Lecture 5 Eric Pacuit ILLC, Universiteit van Amsterdam staff.science.uva.nl/ epacuit August 17, 2007 Eric Pacuit: Neighborhood Semantics, Lecture 5 1 Plan for the
More informationOn the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic
On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic Domenico Cantone and Marianna Nicolosi Asmundo Dipartimento di Matematica e Informatica Università
More informationWeek 4. COMP62342 Sean Bechhofer, Uli Sattler
Week 4 COMP62342 Sean Bechhofer, Uli Sattler sean.bechhofer@manchester.ac.uk, uli.sattler@manchester.ac.uk Today Some clarifications from last week s coursework More on reasoning: extension of the tableau
More informationPropositional Logic: Syntax
Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic
More informationRelational semantics for a fragment of linear logic
Relational semantics for a fragment of linear logic Dion Coumans March 4, 2011 Abstract Relational semantics, given by Kripke frames, play an essential role in the study of modal and intuitionistic logic.
More informationMonodic fragments of first-order temporal logics
Outline of talk Most propositional temporal logics are decidable. But the decision problem in predicate (first-order) temporal logics has seemed near-hopeless. Monodic fragments of first-order temporal
More informationIntroduction to Kleene Algebras
Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)
More information2.5.2 Basic CNF/DNF Transformation
2.5. NORMAL FORMS 39 On the other hand, checking the unsatisfiability of CNF formulas or the validity of DNF formulas is conp-complete. For any propositional formula φ there is an equivalent formula in
More informationOverview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang
Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions
More informationExpressive power of pebble automata
Expressive power of pebble automata Miko laj Bojańczyk 1,2, Mathias Samuelides 2, Thomas Schwentick 3, Luc Segoufin 4 1 Warsaw University 2 LIAFA, Paris 7 3 Universität Dortmund 4 INRIA, Paris 11 Abstract.
More informationAn Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras
An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California 1. Residuated Lattices with iteration 2. Background: Semirings and Kleene algebras 3. A Gentzen system
More informationOn the Complexity of the Reflected Logic of Proofs
On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,
More informationFirst-order resolution for CTL
First-order resolution for Lan Zhang, Ullrich Hustadt and Clare Dixon Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK {Lan.Zhang, U.Hustadt, CLDixon}@liverpool.ac.uk Abstract
More informationTableaux for Hybrid XPath with Data
Tableaux for Hybrid XPath with Data Carlos Areces,, Raul Fervari,, and Nahuel Seiler FaMAF, Universidad Nacional de Córdoba, Argentina CONICET, Argentina Abstract. We provide a sound, complete and terminating
More informationCombining Propositional Dynamic Logic with Formal Concept Analysis
Proc. CS&P '06 Combining Propositional Dynamic Logic with Formal Concept Analysis (extended abstract) N.V. Shilov, N.O. Garanina, and I.S. Anureev A.P. Ershov Institute of Informatics Systems, Lavren ev
More informationAn n! Lower Bound On Formula Size
An n! Lower Bound On Formula Size Micah Adler Computer Science Dept. UMass, Amherst, USA http://www.cs.umass.edu/ micah Neil Immerman Computer Science Dept. UMass, Amherst, USA http://www.cs.umass.edu/
More informationA generalization of modal definability
A generalization of modal definability Tin Perkov Polytechnic of Zagreb Abstract. Known results on global definability in basic modal logic are generalized in the following sense. A class of Kripke models
More informationLecture 7. Logic. Section1: Statement Logic.
Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement
More informationAlternating Time Temporal Logics*
Alternating Time Temporal Logics* Sophie Pinchinat Visiting Research Fellow at RSISE Marie Curie Outgoing International Fellowship * @article{alur2002, title={alternating-time Temporal Logic}, author={alur,
More informationPhilosophy 148 Announcements & Such. The Probability Calculus: An Algebraic Approach XI. The Probability Calculus: An Algebraic Approach XII
Branden Fitelson Philosophy 148 Lecture 1 Branden Fitelson Philosophy 148 Lecture 2 Philosophy 148 Announcements & Such Administrative Stuff Branden s office hours today will be 3 4. We have a permanent
More informationReasoning about Strategies: From module checking to strategy logic
Reasoning about Strategies: From module checking to strategy logic based on joint works with Fabio Mogavero, Giuseppe Perelli, Luigi Sauro, and Moshe Y. Vardi Luxembourg September 23, 2013 Reasoning about
More informationSeptember 13, Cemela Summer School. Mathematics as language. Fact or Metaphor? John T. Baldwin. Framing the issues. structures and languages
September 13, 2008 A Language of / for mathematics..., I interpret that mathematics is a language in a particular way, namely as a metaphor. David Pimm, Speaking Mathematically Alternatively Scientists,
More informationLocal variations on a loose theme: modal logic and decidability
Local variations on a loose theme: modal logic and decidability Maarten Marx and Yde Venema Institute for Logic, Language and Computation University of Amsterdam Plantage Muidergracht 24 1018 TV Amsterdam
More informationAlgebra for Infinite Forests with an Application to the Temporal Logic EF
Algebra for Infinite Forests with an Application to the Temporal Logic EF Miko laj Bojańczyk and Tomasz Idziaszek University of Warsaw, Poland {bojan,idziaszek}@mimuw.edu.pl Abstract. We define an extension
More informationConditional XPath. MAARTEN MARX Informatics Institute, Universiteit van Amsterdam The Netherlands. No Institute Given
Conditional XPath MAARTEN MARX Informatics Institute, Universiteit van Amsterdam The Netherlands No Institute Given Abstract. XPath 1.0 is a variable free language designed to specify paths between nodes
More informationLogic. Propositional Logic: Syntax
Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about
More informationModel Theory of Modal Logic Lecture 1: A brief introduction to modal logic. Valentin Goranko Technical University of Denmark
Model Theory of Modal Logic Lecture 1: A brief introduction to modal logic Valentin Goranko Technical University of Denmark Third Indian School on Logic and its Applications Hyderabad, 25 January, 2010
More informationBetween proof theory and model theory Three traditions in logic: Syntactic (formal deduction)
Overview Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction) Jeremy Avigad Department of Philosophy Carnegie Mellon University avigad@cmu.edu http://andrew.cmu.edu/
More informationBasic Algebraic Logic
ELTE 2013. September Today Past 1 Universal Algebra 1 Algebra 2 Transforming Algebras... Past 1 Homomorphism 2 Subalgebras 3 Direct products 3 Varieties 1 Algebraic Model Theory 1 Term Algebras 2 Meanings
More informationDeciding Twig-definability of Node Selecting Tree Automata
Deciding Twig-definability of Node Selecting Tree Automata Timos Antonopoulos Hasselt University and Transnational University of Limburg timos.antonopoulos@uhasselt.be Wim Martens Institut für Informatik
More informationThe power of Tarski s relation algebra on trees
The power of Tarski s relation algebra on trees Jelle Hellings 1, Yuqing Wu 2, Marc Gyssens 1, and Dirk Van Gucht 3 1 Hasselt University, Martelarenlaan 42, 3500, Hasselt, Belgium 2 Pomona College, 185
More informationLecture 8: Introduction to Game Logic
Lecture 8: Introduction to Game Logic Eric Pacuit ILLC, University of Amsterdam staff.science.uva.nl/ epacuit epacuit@science.uva.nl Lecture Date: April 6, 2006 Caput Logic, Language and Information: Social
More informationPart II. Logic and Set Theory. Year
Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]
More informationStructural Characterizations of the Semantics of XPath as Navigation Tool on a Document
Structural Characterizations of the Semantics of XPath as Navigation Tool on a Document Marc Gyssens Hasselt University & Transnational University of Limburg marc.gyssens@uhasselt.be Jan Paredaens University
More informationHalting and Equivalence of Program Schemes in Models of Arbitrary Theories
Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Dexter Kozen Cornell University, Ithaca, New York 14853-7501, USA, kozen@cs.cornell.edu, http://www.cs.cornell.edu/~kozen In Honor
More informationFINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS
FINITE MODEL THEORY (MATH 285D, UCLA, WINTER 2017) LECTURE NOTES IN PROGRESS ARTEM CHERNIKOV 1. Intro Motivated by connections with computational complexity (mostly a part of computer scientice today).
More informationFirst-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms
First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO
More information2.2 Lowenheim-Skolem-Tarski theorems
Logic SEP: Day 1 July 15, 2013 1 Some references Syllabus: http://www.math.wisc.edu/graduate/guide-qe Previous years qualifying exams: http://www.math.wisc.edu/ miller/old/qual/index.html Miller s Moore
More informationOn the Satisfiability of Two-Variable Logic over Data Words
On the Satisfiability of Two-Variable Logic over Data Words Claire David, Leonid Libkin, and Tony Tan School of Informatics, University of Edinburgh Abstract. Data trees and data words have been studied
More informationModel Checking in the Propositional µ-calculus
Model Checking in the Propositional µ-calculus Ka I Violet Pun INF 9140 - Specification and Verification of Parallel Systems 13 th May, 2011 Overview Model Checking is a useful means to automatically ascertain
More informationAutomata, Logic and Games: Theory and Application
Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June
More informationTwo-Variable Logic on Data Trees and XML Reasoning
Two-Variable Logic on Data Trees and XML Reasoning Miko laj Bojańczyk Warsaw University and Anca Muscholl LABRI & Université Bordeaux 1 and Thomas Schwentick Universität Dortmund and Luc Segoufin INRIA
More informationWhat happens to the value of the expression x + y every time we execute this loop? while x>0 do ( y := y+z ; x := x:= x z )
Starter Questions Feel free to discuss these with your neighbour: Consider two states s 1 and s 2 such that s 1, x := x + 1 s 2 If predicate P (x = y + 1) is true for s 2 then what does that tell us about
More informationCHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC
CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC 1 Motivation and History The origins of the classical propositional logic, classical propositional calculus, as it was, and still often is called,
More informationAutomata theory. An algorithmic approach. Lecture Notes. Javier Esparza
Automata theory An algorithmic approach Lecture Notes Javier Esparza July 2 22 2 Chapter 9 Automata and Logic A regular expression can be seen as a set of instructions ( a recipe ) for generating the words
More informationA Propositional Dynamic Logic for Instantial Neighborhood Semantics
A Propositional Dynamic Logic for Instantial Neighborhood Semantics Johan van Benthem, Nick Bezhanishvili, Sebastian Enqvist Abstract We propose a new perspective on logics of computation by combining
More informationPropositional Logic: Part II - Syntax & Proofs 0-0
Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems
More informationMajority Logic. Introduction
Majority Logic Eric Pacuit and Samer Salame Department of Computer Science Graduate Center, City University of New York 365 5th Avenue, New York 10016 epacuit@cs.gc.cuny.edu, ssalame@gc.cuny.edu Abstract
More informationLogic: The Big Picture
Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving
More informationCS357: CTL Model Checking (two lectures worth) David Dill
CS357: CTL Model Checking (two lectures worth) David Dill 1 CTL CTL = Computation Tree Logic It is a propositional temporal logic temporal logic extended to properties of events over time. CTL is a branching
More informationFirst-Order and Temporal Logics for Nested Words
First-Order and Temporal Logics for Nested Words Rajeev Alur Marcelo Arenas Pablo Barceló University of Pennsylvania Pontificia Universidad Católica de Chile Universidad de Chile Kousha Etessami Neil Immerman
More informationAn Automata-Theoretic Approach to Regular XPath
An Automata-Theoretic Approach to Regular XPath Diego Calvanese 1, Giuseppe De Giacomo 2, Maurizio Lenzerini 2, and Moshe Y. Vardi 3 1 KRDB Research Centre, Free University of Bozen-Bolzano, Italy calvanese@inf.unibz.it
More informationNode Selection Query Languages for Trees
Node Selection Query Languages for Trees Diego Calvanese KRDB Research Centre Free University of Bozen-Bolzano, Italy calvanese@inf.unibz.it Giuseppe De Giacomo, Maurizio Lenzerini Dip. di Informatica
More informationCombining Temporal Logics for Querying XML Documents
Combining Temporal Logics for Querying XML Documents Marcelo Arenas 1 Pablo Barceló 2 Leonid Libkin 3 1 Pontificia Universidad Católica de Chile 2 Universidad de Chile 3 University of Edinburgh Abstract.
More informationPropositional and Predicate Logic - VII
Propositional and Predicate Logic - VII Petr Gregor KTIML MFF UK WS 2015/2016 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - VII WS 2015/2016 1 / 11 Theory Validity in a theory A theory
More informationValentin Goranko Stockholm University. ESSLLI 2018 August 6-10, of 33
ESSLLI 2018 course Logics for Epistemic and Strategic Reasoning in Multi-Agent Systems Lecture 4: Logics for temporal strategic reasoning with complete information Valentin Goranko Stockholm University
More informationTwo-Variable Logic on Data Trees and XML Reasoning
Two-Variable Logic on Data Trees and XML Reasoning Miko laj Bojańczyk Warsaw University and Anca Muscholl LABRI & Université Bordeaux 1 and Thomas Schwentick Universität Dortmund and Luc Segoufin INRIA
More information9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete
9. PSPACE PSPACE complexity class quantified satisfiability planning problem PSPACE-complete Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley Copyright 2013 Kevin Wayne http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationGeneralising Automaticity to Modal Properties of Finite Structures
Generalising Automaticity to Modal Properties of Finite Structures Anuj Dawar University of Cambridge Computer Laboratory, Cambridge CB3 0FD, UK. anuj.dawar@cl.cam.ac.uk Stephan Kreutzer Institut für Informatik,
More informationPeano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now
CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano
More informationPREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2
PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 14 September, 2005 Some slides today new, some based on logic 2004 (Nils Andersen) OUTLINE,
More informationSyntactic Characterisations in Model Theory
Department of Mathematics Bachelor Thesis (7.5 ECTS) Syntactic Characterisations in Model Theory Author: Dionijs van Tuijl Supervisor: Dr. Jaap van Oosten June 15, 2016 Contents 1 Introduction 2 2 Preliminaries
More informationModal Logic XIII. Yanjing Wang
Modal Logic XIII Yanjing Wang Department of Philosophy, Peking University Apr 16th, 2015 Advanced Modal Logic (2015 Spring) 1 Frames Frames and validity Why do we study frames? Frames as tools for analysing
More informationFrom Constructibility and Absoluteness to Computability and Domain Independence
From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main
More informationModal and temporal logic
Modal and temporal logic N. Bezhanishvili I. Hodkinson C. Kupke Imperial College London 1 / 83 Overview Part II 1 Soundness and completeness. Canonical models. 3 lectures. 2 Finite model property. Filtrations.
More informationArrows and Boxes. Tadeusz Litak (based on a joint work with Albert Visser) November 15, 2016
Arrows and Boxes Tadeusz Litak (based on a joint work with Albert Visser) November 15, 2016 1 Reminder from the last week... (slides of Miriam and Ulrich, with some corrections) 2 Intuitionistic Modal
More informationLogic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014
Logic and Automata I EATCS School, Telc, July 2014 The Plan We present automata theory as a tool to make logic effective. Four parts: 1. Some history 2. Automata on infinite words First step: MSO-logic
More informationSYNTACTIC CHARACTERISATIONS OF SEMANTIC PROPERTIES
Logical Methods in Computer Science Vol. 14(1:14)2018, pp. 1 51 https://lmcs.episciences.org/ Submitted Nov. 24, 2010 Published Feb. 06, 2018 SOME MODEL THEORY FOR THE MODAL µ-calculus: SYNTACTIC CHARACTERISATIONS
More informationLogic. Propositional Logic: Syntax. Wffs
Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about
More information