Rewriting Abstract Reduction Relations

Total Page:16

File Type:pdf, Size:1020Kb

Rewriting Abstract Reduction Relations A Change in Notation From now on, when we write Γ j= ', 22c:295 Seminar in AI — Decision Procedures we will assume that all the free variables of ' and of each formula in Γ are universally quantified. Rewriting This is done for convenience, but note that it does change the Cesare Tinelli meaning of j= for non-closed formulas. [email protected] Example The University of Iowa Without implicit quantifiers: p(x) 6j= p(y). With the implicit quantifiers: p(x) j= p(y). Copyright 2004-05 — Cesare Tinelli and Clark Barrett. a a These notes were developed from a set of lecture notes originally written by Clark Barrett at New York University. These notes are copyrighted material and may not be used in other course settings outside of the University of Iowa in their current form or modified form without the express written permission of the copyright holders. Spring 04, 22c:295 Notes: Rewriting – p.1/25 Spring 04, 22c:295 Notes: Rewriting – p.3/25 Outline Rewriting • Rewriting Consider the general problem of establishing E j= s = t where E • Termination is a set of equations. • Completion Congruence closure handles the case when all equations are ground. (How?) Sources: There cannot be a simple procedure for the more general case Harrison, John. Introduction to Logic and Automated because first order logic with equality is, in general, undecidable. Theorem Proving. Unpublished manuscript. Used by permission. However, often the kind of equational reasoning needed is straightforward: equations are used in a predictable direction to simplify expressions. Using equations in a directional fashion is called rewriting, and there are indeed cases when this technique gives us a decision procedure. Spring 04, 22c:295 Notes: Rewriting – p.2/25 Spring 04, 22c:295 Notes: Rewriting – p.4/25 Rewriting Abstract Reduction Relations Suppose t is a term and l = r is an equation. An abstract reduction relation is any binary relation on a set X. 0 We will denote a generic abstract reduction relation by −!. We say that t results from rewriting t with l = r iff there is a subterm s of t and a substitution θ such that Every set R of rewrite rules induces an reduction relation on terms. We will denote that relation by . 1. s = θ(l), −!R 2. s0 = θ(r) and We will also denote by • 3. t0 is the result of replacing an occurrence of s by s0 in t. − the inverse of −! (i.e. x −! y iff y − x). • −!+ the transitive closure of −!. We call rewrite rules any (oriented) equations like l = r above. • −!∗ the reflexive-transitive closure of −!. 0 Given a set R of rewrite rules, we write t −! t iff there is some ∗ R • ! the reflexive-symmetric-transitive closure of −!. rule (l = r) 2 R which rewrites t to t0. Spring 04, 22c:295 Notes: Rewriting – p.5/25 Spring 04, 22c:295 Notes: Rewriting – p.7/25 Rewriting Abstract Reduction Relations 0 0 Theorem (Soundness or Rewriting) If t −!R t , then R j= t = t . Let −! be an abstract reduction relation on some set X. Proof Every rewrite can be duplicated by a single instantiation An element x 2 X is said to be in normal form (NF) with respect followed by a chain of congruences. 2 to −! iff there is no y 2 X such that x −! y. What about completeness? The relation −! is said to be terminating, strongly normalizing It depends on the rewrite rules. (SN), or noetherian iff there is no infinite reduction sequence: When a set of (oriented) equations R is canonical, the question x0 −! · · · −! xn −! · · · of whether R j= s = t for two terms s and t can be answered by rewriting. Note that −! is terminating iff − is well-founded. We will make this more precise later. Spring 04, 22c:295 Notes: Rewriting – p.6/25 Spring 04, 22c:295 Notes: Rewriting – p.8/25 Con¯uence Canonical Rewrite Systems Let −! be an abstract reduction relation on some set X. Theorem If R is a set of rewrite rules, then for all terms s and t, ∗ s !R t iff R j= s = t. • −! has the diamond property iff whenever x −! y and 0 0 Let s #R t denote that s and t are joinable, i.e., there exists a z x −! y , there is a z such that y −! z and y −! z. ∗ ∗ such that s −!R u and t −!R y. • −! is confluent or Church-Rosser (CR) if −!∗ has the ∗ diamond property. Theorem If −!R is confluent, then for any s and t, s !R t iff s # t. • −! is canonical if it is confluent and terminating. R • −! is weakly confluent or weakly Church-Rosser (WCR) if Corollary If −!R is terminating and weakly confluent, then it is whenever x −! y and x −! y0, there is a z such that canonical. Therefore, R j= s = t can be decided by rewriting s y −!∗ z and y0 −!∗ z. and t to normal forms and comparing them. Proof By Newman's Lemma, termination and weak con¯uence imply These notions are closely related: For instance, the diamond con¯uence. Also, termination implies the existence of normal forms. Thus, by property implies confluence which implies weak confluence. the above theorems, s and t have the same normal forms iff s #R t iff ∗ 2 s !R t iff R j= s = t. Spring 04, 22c:295 Notes: Rewriting – p.9/25 Spring 04, 22c:295 Notes: Rewriting – p.11/25 Con¯uence Reduction Orderings Weak confluence does not in general imply confluence, but A binary relation > on terms is said to be a rewrite ordering if it adding termination changes the story. is an ordering (i.e., an irreflexive and transitive relation) and is closed under instantiation and simple congruences, i.e. Newman's Lemma If −! is terminating and weakly confluent, then it is confluent. • It is never the case that t > t. ∗ ∗ 0 0 • Proof It suf®ces to show that if x −! y and x −! y with y and y in If s > t and t > u, then s > u. 0 normal form, then y = y . (Why?) This can be proved by well-founded • If s > t, then θ(s) > θ(t) for any substitution θ. 0 induction on −. Assume x writes to two normal forms: y and y . The only 0 • If s > t, then f(u1; : : : ; ui−1; s; ui+1; : : : ; un) > interesting case is when x differs from both y and y . (Why?) In that case, ∗ 0 ∗ 0 f(u1; : : : ; u −1; t; u +1; : : : ; u ). x −! w −! y and x −! w −! y . By weak con¯uence, there must i i n ∗ 0 ∗ 0 be a z such that w −! z and w −! z. Since w and w are A rewrite ordering > whose converse < is well-founded is said predecessors of x wrt −, by well-founded induction there must be a u such ∗ ∗ 0 ∗ 0 0 ∗ 0 to be a reduction ordering. that y −! u and z −! u, and a u such that z −! u and y −! u . 0 0 0 But y and y are in normal form, so it must be that y = u = z = u = y . 2 Spring 04, 22c:295 Notes: Rewriting – p.10/25 Spring 04, 22c:295 Notes: Rewriting – p.12/25 Reduction Orderings In Search of Less Partial Reduction Orderings Lemma If > is a reduction ordering and l > r for each equation The simple reduction ordering we defined earlier is not total. For l = r in R, then the rewrite relation −!R is terminating. instance, it does not order the following pairs of terms: Proof It is not hard to see that if s −!R t, then s > t. Thus, • (x ∗ y) ∗ z; x ∗ (y ∗ z) because < is well-founded, −!R must be terminating. 2 • x ∗ (y + z); x ∗ y + x ∗ z By this lemma, reduction orderings are very useful for proving To order such terms, we need more sophisticated orderings. the termination of a rewrite system R. Note While it is unreasonable to expect a reduction ordering to be total on arbitrary terms, reduction orderings that order more pairs of terms are preferable. Spring 04, 22c:295 Notes: Rewriting – p.13/25 Spring 04, 22c:295 Notes: Rewriting – p.15/25 Measure-based Orderings Lexicographic Path Orderings (simpli®ed version) Let us denote by jtj the number of variables and function symbol A sequence s1; : : : ; sm is lexicographically greater than a occurrences in t. sequence t1; : : : ; tm with respect to an ordering > on terms if there is some 1 ≤ n ≤ m such that s = t for all i < n and We might hope to define a reduction ordering s > t by jsj > jtj. i i s > t . However, this fails the instantiation property: n n Let be an ordering over function symbols. The lexicographic If s > t, then θ(s) > θ(t) for any substitution θ. path ordering lpo on terms induced by is defined as follows: Example Let θ = fy 7! f(x; x; x)g. • f(s1; : : : ; sm) lpo f(t1; : : : ; tm) if s1; : : : ; sm is f(x; x; x) > g(x; y) but θ(f(x; x; x)) 6> θ(g(x; y)). lexicographically greater than t1; : : : ; tm wrt lpo; What can we do to fix this? • f(s1; : : : ; sm) lpo t if si lpo t for some 1 ≤ i ≤ m; Let jtjx denote the number of occurrences of x in t. • f(s1; : : : ; sm) lpo g(t1; : : : ; tn) if f g and Define s > t if jsj > jtj and jsjx > jtjx for each variable x in t.
Recommended publications
  • Arxiv:1804.04307V1 [Math.RA] 12 Apr 2018 Prtr.A Xml Fsc Lersi H Di the Di Is Algebras of Such of Example an Operators
    FREE OPERATED MONOIDS AND REWRITING SYSTEMS JIN ZHANG AND XING GAO ∗ Abstract. The construction of bases for quotients is an important problem. In this paper, applying the method of rewriting systems, we give a unified approach to construct sections—an alternative name for bases in semigroup theory—for quotients of free operated monoids. As applications, we capture sections of free ∗-monoids and free groups, respectively. Contents 1. Introduction 1 2. Rewrting systems and sections 2 2.1. Operated monoids and operated congruences 2 2.2. Relationshipbetweenrewritingsystemsandsections 6 3. Applications 8 3.1. Free ∗-monoids 9 3.2. Free groups 12 References 16 1. Introduction In 1960, A.G. Kurosh [23] first introduced the concept of algebras with one or more linear operators. An example of such algebras is the differential algebra led by the algebraic abstraction of differential operator in analysis. Differential algebra is from a purely algebraic viewpoint to study differentiation and nonlinear differential equations without using an underlying topology, and has been largely successful in many crucial areas, such as uncoupling of nonlinear systems, classification of singular components, and detection of hidden equations [22, 28]. Another im- portant example of such algebras is the Rota-Baxter algebra (first called Baxter algebra) which is the algebraic abstraction of integral operator in analysis [17]. Rota-Baxter algebra, originated from probability study [5], is related beautifully to the classical Yang-Baxter equation, as well as to operads, to combinatorics and, through the Hopf algebra framework of Connes and Kreimer, to the renormalization of quantum field theory [1, 3, 4, 11, 12, 19].
    [Show full text]
  • Lectures on Algebraic Rewriting
    Lectures on Algebraic Rewriting Philippe Malbos Institut Camille Jordan Université Claude Bernard Lyon 1 - December 2019 - PHILIPPE MALBOS Univ Lyon, Université Claude Bernard Lyon 1 [email protected] CNRS UMR 5208, Institut Camille Jordan 43 blvd. du 11 novembre 1918 F-69622 Villeurbanne cedex, France — December 6, 2019 - 17:47 — Contents 1 Abstract Rewriting 1 1.1 Abstract Rewriting Systems . .2 1.2 Confluence . .4 1.3 Normalisation . .6 1.4 From local to global confluence . 10 2 String Rewriting 13 2.1 Preliminaries: one and two-dimensional categories . 13 2.2 String rewriting systems . 21 2.3 The word problem . 25 2.4 Branchings . 26 2.5 Completion . 30 2.6 Existence of finite convergent presentations . 32 3 Coherent presentations and syzygies 35 3.1 Introduction . 35 3.2 Categorical preliminaries . 37 3.3 Coherent presentation of categories . 40 3.4 Finite derivation type . 42 3.5 Coherence from convergence . 44 4 Two-dimensional homological syzygies 51 4.1 Preliminaries on modules . 51 4.2 Monoids of finite homological type . 55 4.3 Squier’s homological theorem . 61 4.4 Homology of monoids with integral coefficients . 63 4.5 Historical notes . 65 iii CONTENTS 5 Linear rewriting 69 5.1 Linear 2-polygraphs . 70 5.2 Linear rewriting steps . 77 5.3 Termination for linear 2-polygraphs . 79 5.4 Monomial orders . 80 5.5 Confluence and convergence . 82 5.6 The Critical Branchings Theorem . 85 5.7 Coherent presentations of algebras . 90 6 Paradigms of linear rewriting 95 6.1 Composition Lemma . 96 6.2 Reduction operators .
    [Show full text]
  • Arithmetic Equivalence and Isospectrality
    ARITHMETIC EQUIVALENCE AND ISOSPECTRALITY ANDREW V.SUTHERLAND ABSTRACT. In these lecture notes we give an introduction to the theory of arithmetic equivalence, a notion originally introduced in a number theoretic setting to refer to number fields with the same zeta function. Gassmann established a direct relationship between arithmetic equivalence and a purely group theoretic notion of equivalence that has since been exploited in several other areas of mathematics, most notably in the spectral theory of Riemannian manifolds by Sunada. We will explicate these results and discuss some applications and generalizations. 1. AN INTRODUCTION TO ARITHMETIC EQUIVALENCE AND ISOSPECTRALITY Let K be a number field (a finite extension of Q), and let OK be its ring of integers (the integral closure of Z in K). The Dedekind zeta function of K is defined by the Dirichlet series X s Y s 1 ζK (s) := N(I)− = (1 N(p)− )− I OK p − ⊆ where the sum ranges over nonzero OK -ideals, the product ranges over nonzero prime ideals, and N(I) := [OK : I] is the absolute norm. For K = Q the Dedekind zeta function ζQ(s) is simply the : P s Riemann zeta function ζ(s) = n 1 n− . As with the Riemann zeta function, the Dirichlet series (and corresponding Euler product) defining≥ the Dedekind zeta function converges absolutely and uniformly to a nonzero holomorphic function on Re(s) > 1, and ζK (s) extends to a meromorphic function on C and satisfies a functional equation, as shown by Hecke [25]. The Dedekind zeta function encodes many features of the number field K: it has a simple pole at s = 1 whose residue is intimately related to several invariants of K, including its class number, and as with the Riemann zeta function, the zeros of ζK (s) are intimately related to the distribution of prime ideals in OK .
    [Show full text]
  • Thue Systems As Rewriting Systems~
    J. Symbolic Computation (1987) 3, 39-68 Thue Systems as Rewriting Systems~ RONALD V. BOOK Department of Mathematics, University of California at Santa Barbara, Santa Barbara, California 93106, USA This paper is a survey of recent results on Thue systems, where the systems are viewed as rewriting systems on strings over a finite alphabet. The emphasis is on Thue systems with the Chureh-Rosser property, where the notion of reduction is based on length-decreasing rewriting rules. The main effort is expended in outlining the properties of such systems, paying close attention to the issue of the possible decidability of properties and to the issue of the computational complexity of decidable properties. Since Thue systems may also be considered as presentations of monoids, the language of monoids (and groups) is used to describe some of these properties. 1. Introduction Replacement systems arise in the study of formula manipulation systems such as theorem provers, program optimisers, and algebraic simplifiers. These replacement systems take such forms as term rewriting systems, tree manipulating systems, graph grammars, etc. The study of abstract data types is another area where such systems are useful. The principal problem in this context is the word problem: given a system and two objects, are the two objects equivalent? From a slightly different viewpoint the problem can be stated as follows: can one of these objects be transformed into the other by means of a finite number of applications of the rewriting rules in the given system? This leads naturally to the question of the decidability of the word problem for a given class of systems.
    [Show full text]
  • Relations 21
    2. CLOSURE OF RELATIONS 21 2. Closure of Relations 2.1. Definition of the Closure of Relations. Definition 2.1.1. Given a relation R on a set A and a property P of relations, the closure of R with respect to property P , denoted ClP (R), is smallest relation on A that contains R and has property P . That is, ClP (R) is the relation obtained by adding the minimum number of ordered pairs to R necessary to obtain property P . Discussion To say that ClP (R) is the “smallest” relation on A containing R and having property P means that • R ⊆ ClP (R), • ClP (R) has property P , and • if S is another relation with property P and R ⊆ S, then ClP (R) ⊆ S. The following theorem gives an equivalent way to define the closure of a relation. \ Theorem 2.1.1. If R is a relation on a set A, then ClP (R) = S, where S∈P P = {S|R ⊆ S and S has property P }. Exercise 2.1.1. Prove Theorem 2.1.1. [Recall that one way to show two sets, A and B, are equal is to show A ⊆ B and B ⊆ A.] 2.2. Reflexive Closure. Definition 2.2.1. Let A be a set and let ∆ = {(x, x)|x ∈ A}. ∆ is called the diagonal relation on A. Theorem 2.2.1. Let R be a relation on A. The reflexive closure of R, denoted r(R), is the relation R ∪ ∆. Proof. Clearly, R ∪ ∆ is reflexive, since (a, a) ∈ ∆ ⊆ R ∪ ∆ for every a ∈ A.
    [Show full text]
  • Strategy Independent Reduction Lengths in Rewriting and Binary Arithmetic
    Strategy Independent Reduction Lengths in Rewriting and Binary Arithmetic Hans Zantema University of Technology, Eindhoven, The Netherlands Radboud University, Nijmegen, The Netherlands [email protected] In this paper we give a criterion by which one can conclude that every reduction of a basic term to normal form has the same length. As a consequence, the number of steps to reach the normal form is independent of the chosen strategy. In particular this holds for TRSs computing addition and multiplication of natural numbers, both in unary and binary notation. 1 Introduction For many term rewriting systems (TRSs) the number of rewrite steps to reach a normal form strongly depends on the chosen strategy. For instance, in using the standard if-then-else-rules if(true;x;y) ! x if(false;x;y) ! y it is a good strategy to first rewrite the leftmost (boolean) argument of the symbol if until this argument is rewritten to false or true and then apply the corresponding rewrite rule for if. In this way redundant reductions in the third argument are avoided in case the condition rewrites to true, and redundant reduc- tions in the second argument are avoided in case the condition rewrites to false. More general, choosing a good reduction strategy is essential for doing efficient computation by rewriting. Roughly speaking, for erasing rules, that is, some variable in the left-hand side does not appear in the right-hand side, it seems a good strategy to postpone rewriting this possibly erasing argument, as is the case in the above if-then-else example.
    [Show full text]
  • 7.2 Binary Operators Closure
    last edited April 19, 2016 7.2 Binary Operators A precise discussion of symmetry benefits from the development of what math- ematicians call a group, which is a special kind of set we have not yet explicitly considered. However, before we define a group and explore its properties, we reconsider several familiar sets and some of their most basic features. Over the last several sections, we have considered many di↵erent kinds of sets. We have considered sets of integers (natural numbers, even numbers, odd numbers), sets of rational numbers, sets of vertices, edges, colors, polyhedra and many others. In many of these examples – though certainly not in all of them – we are familiar with rules that tell us how to combine two elements to form another element. For example, if we are dealing with the natural numbers, we might considered the rules of addition, or the rules of multiplication, both of which tell us how to take two elements of N and combine them to give us a (possibly distinct) third element. This motivates the following definition. Definition 26. Given a set S,abinary operator ? is a rule that takes two elements a, b S and manipulates them to give us a third, not necessarily distinct, element2 a?b. Although the term binary operator might be new to us, we are already familiar with many examples. As hinted to earlier, the rule for adding two numbers to give us a third number is a binary operator on the set of integers, or on the set of rational numbers, or on the set of real numbers.
    [Show full text]
  • 3. Closed Sets, Closures, and Density
    3. Closed sets, closures, and density 1 Motivation Up to this point, all we have done is define what topologies are, define a way of comparing two topologies, define a method for more easily specifying a topology (as a collection of sets generated by a basis), and investigated some simple properties of bases. At this point, we will start introducing some more interesting definitions and phenomena one might encounter in a topological space, starting with the notions of closed sets and closures. Thinking back to some of the motivational concepts from the first lecture, this section will start us on the road to exploring what it means for two sets to be \close" to one another, or what it means for a point to be \close" to a set. We will draw heavily on our intuition about n convergent sequences in R when discussing the basic definitions in this section, and so we begin by recalling that definition from calculus/analysis. 1 n Definition 1.1. A sequence fxngn=1 is said to converge to a point x 2 R if for every > 0 there is a number N 2 N such that xn 2 B(x) for all n > N. 1 Remark 1.2. It is common to refer to the portion of a sequence fxngn=1 after some index 1 N|that is, the sequence fxngn=N+1|as a tail of the sequence. In this language, one would phrase the above definition as \for every > 0 there is a tail of the sequence inside B(x)." n Given what we have established about the topological space Rusual and its standard basis of -balls, we can see that this is equivalent to saying that there is a tail of the sequence inside any open set containing x; this is because the collection of -balls forms a basis for the usual topology, and thus given any open set U containing x there is an such that x 2 B(x) ⊆ U.
    [Show full text]
  • Scalability of Reflexive-Transitive Closure Tables As Hierarchical Data Solutions
    Scalability of Reflexive- Transitive Closure Tables as Hierarchical Data Solutions Analysis via SQL Server 2008 R2 Brandon Berry, Engineer 12/8/2011 Reflexive-Transitive Closure (RTC) tables, when used to persist hierarchical data, present many advantages over alternative persistence strategies such as path enumeration. Such advantages include, but are not limited to, referential integrity and a simple structure for data queries. However, RTC tables grow exponentially and present a concern with scaling both operational performance of the RTC table and volume of the RTC data. Discovering these practical performance boundaries involves understanding the growth patterns of reflexive and transitive binary relations and observing sample data for large hierarchical models. Table of Contents 1 Introduction ......................................................................................................................................... 2 2 Reflexive-Transitive Closure Properties ................................................................................................. 3 2.1 Reflexivity ...................................................................................................................................... 3 2.2 Transitivity ..................................................................................................................................... 3 2.3 Closure .......................................................................................................................................... 4 3 Scalability
    [Show full text]
  • Verifying the Unification Algorithm In
    Verifying the Uni¯cation Algorithm in LCF Lawrence C. Paulson Computer Laboratory Corn Exchange Street Cambridge CB2 3QG England August 1984 Abstract. Manna and Waldinger's theory of substitutions and uni¯ca- tion has been veri¯ed using the Cambridge LCF theorem prover. A proof of the monotonicity of substitution is presented in detail, as an exam- ple of interaction with LCF. Translating the theory into LCF's domain- theoretic logic is largely straightforward. Well-founded induction on a complex ordering is translated into nested structural inductions. Cor- rectness of uni¯cation is expressed using predicates for such properties as idempotence and most-generality. The veri¯cation is presented as a series of lemmas. The LCF proofs are compared with the original ones, and with other approaches. It appears di±cult to ¯nd a logic that is both simple and exible, especially for proving termination. Contents 1 Introduction 2 2 Overview of uni¯cation 2 3 Overview of LCF 4 3.1 The logic PPLAMBDA :::::::::::::::::::::::::: 4 3.2 The meta-language ML :::::::::::::::::::::::::: 5 3.3 Goal-directed proof :::::::::::::::::::::::::::: 6 3.4 Recursive data structures ::::::::::::::::::::::::: 7 4 Di®erences between the formal and informal theories 7 4.1 Logical framework :::::::::::::::::::::::::::: 8 4.2 Data structure for expressions :::::::::::::::::::::: 8 4.3 Sets and substitutions :::::::::::::::::::::::::: 9 4.4 The induction principle :::::::::::::::::::::::::: 10 5 Constructing theories in LCF 10 5.1 Expressions ::::::::::::::::::::::::::::::::
    [Show full text]
  • MATH 213 Chapter 9: Relations
    MATH 213 Chapter 9: Relations Dr. Eric Bancroft Fall 2013 9.1 - Relations Definition 1 (Relation). Let A and B be sets. A binary relation from A to B is a subset R ⊆ A×B, i.e., R is a set of ordered pairs where the first element from each pair is from A and the second element is from B. If (a; b) 2 R then we write a R b or a ∼ b (read \a relates/is related to b [by R]"). If (a; b) 2= R, then we write a R6 b or a b. We can represent relations graphically or with a chart in addition to a set description. Example 1. A = f0; 1; 2g;B = f1; 2; 3g;R = f(1; 1); (2; 1); (2; 2)g Example 2. (a) \Parent" (b) 8x; y 2 Z; x R y () x2 + y2 = 8 (c) A = f0; 1; 2g;B = f1; 2; 3g; a R b () a + b ≥ 3 1 Note: All functions are relations, but not all relations are functions. Definition 2. If A is a set, then a relation on A is a relation from A to A. Example 3. How many relations are there on a set with. (a) two elements? (b) n elements? (c) 14 elements? Properties of Relations Definition 3 (Reflexive). A relation R on a set A is said to be reflexive if and only if a R a for all a 2 A. Definition 4 (Symmetric). A relation R on a set A is said to be symmetric if and only if a R b =) b R a for all a; b 2 A.
    [Show full text]
  • Properties of Binary Transitive Closure Logics Over Trees S K
    8 Properties of binary transitive closure logics over trees S K Abstract Binary transitive closure logic (FO∗ for short) is the extension of first-order predicate logic by a transitive closure operator of binary relations. Deterministic binary transitive closure logic (FOD∗) is the restriction of FO∗ to deterministic transitive closures. It is known that these logics are more powerful than FO on arbitrary structures and on finite ordered trees. It is also known that they are at most as powerful as monadic second-order logic (MSO) on arbitrary structures and on finite trees. We will study the expressive power of FO∗ and FOD∗ on trees to show that several MSO properties can be expressed in FOD∗ (and hence FO∗). The following results will be shown. A linear order can be defined on the nodes of a tree. The class EVEN of trees with an even number of nodes can be defined. On arbitrary structures with a tree signature, the classes of trees and finite trees can be defined. There is a tree language definable in FOD∗ that cannot be recognized by any tree walking automaton. FO∗ is strictly more powerful than tree walking automata. These results imply that FOD∗ and FO∗ are neither compact nor do they have the L¨owenheim-Skolem-Upward property. Keywords B 8.1 Introduction The question aboutthe best suited logic for describing tree properties or defin- ing tree languages is an important one for model theoretic syntax as well as for querying treebanks. Model theoretic syntax is a research program in mathematical linguistics concerned with studying the descriptive complex- Proceedings of FG-2006.
    [Show full text]