Zur Erlangung des akademischen Grades eines. Doktors der Naturwissenschaften. der Technischen Fakultat. der Universitat Bielefeld. vorgelegte.

Size: px
Start display at page:

Download "Zur Erlangung des akademischen Grades eines. Doktors der Naturwissenschaften. der Technischen Fakultat. der Universitat Bielefeld. vorgelegte."

Transcription

1 Modular Properties of Composable Term Rewriting Systems Zur Erlangung des akademischen Grades eines Doktors der Naturwissenschaften der Technischen Fakultat der Universitat Bielefeld vorgelegte Dissertation von Enno Ohlebusch Bielefeld, im Mai 1994

2

3 Acknowledgements I am much obliged to my supervisor Robert Giegerich who made the writing of this thesis possible. His attitude towards teaching and research and his ability to break with traditional thought patterns has always been an example to me. I am much indebted to Aart Middeldorp. His excellent thesis called my attention to modularity issues in term rewriting and his willingness to referee this thesis completes the circle. I have benetted from many discussions with him and a good many of his suggestions have improved previous papers. I am grateful to my former and present colleagues in Bielefeld for creating a pleasant atmosphere. Special thanks go to Horst Hogenkamp for the LaT E X support, to Anke Bodzin for typesetting parts of previous papers, and to Stefan Kurtz and Bernd Butow. Last, but not least I thank my wife Silvia for her continuous encouragement.

4

5 Contents 1 Introduction 1 2 Preliminaries Abstract Reduction Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : Partial Orderings : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Term Rewriting Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Decidability of Properties : : : : : : : : : : : : : : : : : : : : : : : : 22 3 Modular Properties Various Combinations : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Results: An Overview : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Composable Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Basic Notions : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Testing for Pairwise Composibility : : : : : : : : : : : : : : : : : : : Dependency Components : : : : : : : : : : : : : : : : : : : : : : : : : Local Conuence and Normalization : : : : : : : : : : : : : : : : : : : : : : Semi-Completeness : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 44 4 Conuence A Counterexample : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : A Sucient Criterion : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Collapsing Reduction : : : : : : : : : : : : : : : : : : : : : : : : : : : Conuence of White Preserved Terms : : : : : : : : : : : : : : : : : : Conuence is Modular if! c is Normalizing : : : : : : : : : : : : : : Consequences of the Sucient Criterion : : : : : : : : : : : : : : : : : : : : : Toyama's Theorem : : : : : : : : : : : : : : : : : : : : : : : : : : : : Modularity of Semi-Completeness for Constructor-Sharing Systems : Left-Linear Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 59 i

6 ii CONTENTS 5 Termination Simple Termination : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Disjoint Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : The Famous Counterexample : : : : : : : : : : : : : : : : : : : : : : Non-Collapsing and Non-Duplicating Systems : : : : : : : : : : : : : Sucient Conditions for the Modularity of Termination : : : : : : : : Composable Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Layer-Preservation and Non-Duplication : : : : : : : : : : : : : : : : The Simplifying Property : : : : : : : : : : : : : : : : : : : : : : : : 84 6 Completeness Disjoint Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Counterexamples : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Left-Linear Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : Variable-Preserving Systems : : : : : : : : : : : : : : : : : : : : : : : Composable Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Overlay Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Combining Reduction Strategies Disjoint Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Constructor-Sharing Systems : : : : : : : : : : : : : : : : : : : : : : : : : : Conditional Term Rewriting Systems Basic Notions : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Results: A Brief Summary : : : : : : : : : : : : : : : : : : : : : : : : : : : : Constructor-Sharing Systems : : : : : : : : : : : : : : : : : : : : : : : : : : Local Conuence and Normalization : : : : : : : : : : : : : : : : : : Conuence and Semi-Completeness : : : : : : : : : : : : : : : : : : : Termination and Completeness : : : : : : : : : : : : : : : : : : : : : Combining Reduction Strategies : : : : : : : : : : : : : : : : : : : : : Composable Systems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : The Simplifying Property : : : : : : : : : : : : : : : : : : : : : : : : Conditional Constructor Systems : : : : : : : : : : : : : : : : : : : : Related Subjects Unique Normal Forms and Related Properties : : : : : : : : : : : : : : : : : 153

7 CONTENTS iii 9.2 Hierarchical Combinations : : : : : : : : : : : : : : : : : : : : : : : : : : : : Commutation : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Term Graph Rewriting : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Many-Sorted Term Rewriting : : : : : : : : : : : : : : : : : : : : : : : : : : Applicative Term Rewriting : : : : : : : : : : : : : : : : : : : : : : : : : : : Open Problems : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 161 A Kruskal's Tree Theorem 165 A.1 Well-Quasi-Orderings : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 165 A.2 Kruskal's Tree Theorem : : : : : : : : : : : : : : : : : : : : : : : : : : : : : 166 Bibliography 169 Index 179 List of Notations 183

8

9 Chapter 1 Introduction and Overview Equations belong to the rst mathematical achievements of mankind. For instance, they appear in old Babylonian texts written in cuneiform characters dating back as far as to the third millennium B.C. This is not so surprising because equational reasoning (replacing equals with equals, that is) occurs frequently in day-to-day life, for example in calculating simple arithmetic expressions like (1 + 2) 3. Using the equation = 3, the expression or the term (1 + 2) 3 is replaced with 3 3 which further rewrites to 9. In calculating the intuitively simplest term equal to (1 + 2) 3, no one would use the equation = 3 to replace the term (1+2)3 with the term (1+2)(1+2). So the equation 1+2 = 3 is used only in one direction, and this one-directional replacement of equals with equals is the basis of term rewriting. Thus a term rewriting system consists of a set of directed equations, so-called rewrite rules. Representing natural numbers by the terms 0; S(0); S(S(0)); S(S(S(0))); : : : the simplest form of every simple arithmetical expression of the above form can be computed using the term rewriting system R = 8 >< >: 0 + x! x S(x) + y! S(x + y) 0 x! 0 S(x) y! (x y) + y For instance, 2 1 is represented by the term S(S(0)) S(0) which, by the above rewrite rules, rewrites to the term S(S(0)) as follows: S(S(0)) S(0)! (S(0) S(0)) + S(0)! ((0 S(0)) + S(0)) + S(0)! (0 + S(0)) + S(0)! S(0) + S(0)! S(0 + S(0))! S(S(0)) The term S(S(0)) cannot be further rewritten, this so-called normal form is the result of the computation. So a term rewriting system is a kind of program that computes by rewriting or reducing terms to other terms until a normal form is obtained. Hence the theory of rewriting is concerned with the computation of normal forms. The above term rewriting system has two fundamental properties, it is conuent and terminating. If a term rewriting system is conuent, then the normal form of a given term is 1

10 2 CHAPTER 1. INTRODUCTION unique. A terminating term rewriting system does not permit innite computations, that is, every computation starting at a term ends nally in a normal form. A term rewriting system that is both conuent and terminating is said to be complete. So if a term rewriting system is complete, then every computation leads to a result and this result is unique { no matter in which order the rewrite rules are applied. Another property weaker than termination is normalization. A term rewriting system is normalizing if every term t has a normal form; in other words, there exists a terminating computation starting from t. The combination of conuence and normalization is called semi-completeness. Thus, if a term rewriting system is semi-complete, then every term has a unique normal form and all that is further needed is a good normalizing reduction strategy { a strategy which eciently computes that unique normal form. Term rewriting has applications in various elds of computer science such as symbolic computation, functional programming, abstract data type specications, program verication, program synthesis, and automated theorem proving. We refer to the surveys of Dershowitz & Jouannaud [DJ90] and Klop [Klo92] for details. Term rewriting has its roots in -calculi (Church [Chu41]) and combinatory logic (Curry & Feys [CF58]). In their outstanding paper [KB70], Knuth & Bendix describe a completion procedure which can often be successfully used to transform a given set of equations into a complete term rewriting system which denes the same equational theory (see also Bachmair [Bac89]). Thus term rewriting systems provide an operational model of algebraic specications of abstract data types (cf. [GTW78]). Large specications, however, must be written in a modular way according to the one page principle of Mark Ardis: \A specication that will not t on one page of 8:5 11 inch paper cannot be understood". Modularity is a well-known programming paradigm in computer science. Programmers should design their programs in a modular way, that is, as a combination of small programs. These so-called modules are implemented separately and are then integrated to form the whole program. Since term rewriting systems have important applications in computer science, it is { not only from a theoretical viewpoint but also from a practical point of view { of utmost importance to know under which conditions a combined system inherits desirable properties from its constituent systems. For this reason modular aspects of term rewriting have been receiving increasing attention. A property P of term rewriting systems (like conuence, termination etc.) is called modular if whenever R 1 and R 2 are term rewriting systems both satisfying P, then their combined system R 1 [ R 2 also satises P. Since all interesting properties are in general not modular, the starting-point of research were disjoint unions, combinations of term rewriting systems having no function symbols in common (see [Toy87b, Toy87a, Rus87a, TKB89, Mid90b]). Kurihara and Ohuchi [KO91, KO92] investigated constructor-sharing systems; constructors are function symbols that do not occur at the root position of the left-hand side of any rewrite rule, the others are called dened symbols. Middeldorp and Toyama [MT93] introduced composable systems which have to contain all rewrite rules that dene a dened symbol whenever that symbol is shared. The authors, however, restricted their investigations to constructor systems (where no proper subterm of a left-hand side of a rewrite rule is allowed to contain dened symbols). We drop the latter requirement, so the composable systems we consider are a proper generalization of constructor-sharing systems. The title of this thesis reects that the combination of composable systems is the most general kind of combination which will be investigated here. Nevertheless, many results only apply to constructor-sharing or disjoint systems. The

11 3 remainder of this chapter consists of a brief overview of the thesis. In Chapter 2, we follow Klop's approach to term rewriting (see [Klo92]). This introduction to term rewriting is more or less self-contained. Section 2.1 is concerned with abstract reduction systems which are just pairs consisting of a set and a binary relation thereon. The fundamental properties of term rewriting systems are described on this abstract level. Section 2.2 deals with the basic notions of terms and term rewriting systems which are just special abstract reduction systems. In Chapter 3, we start the investigation of modular properties of term rewriting systems. Section 3.1 contains the exact denitions of the dierent kinds of combinations including hierarchical combinations which are also a proper generalization of constructor-sharing systems (cf. [Der93, KR93a, KR94]). Composable systems, however, are neither a generalization of hierarchical systems nor vice versa. We focus on composable systems rather than hierarchical systems. In Section 3.2, the principal new results of this thesis (concerning unconditional term rewriting) are summarized and related to known modularity results. Section 3.3 is dedicated to composable systems: At rst, all the technical denitions needed for the subsequent analysis of combinations of composable systems are supplied. Then it is shown how a nite number of term rewriting systems can eciently be tested for pairwise composibility. Finally, we prove that under certain conditions a term rewriting system has a property modular for composable systems if and only if each of its dependency components has that property. Subsections and will hopefully help the reader to acquaint herself/himself with combinations of composable systems notwithstanding the fact that the results of these subsections will not be used in subsequent sections. In the remainder of Chapter 3, the modularity of local conuence, normalization, innermost termination, and semi-completeness for composable term rewriting systems is proved. The most remarkable result is certainly the modularity of semi-completeness. Chapter 4 deals exclusively with the conuence property. By now, it is well-known that conuence is modular for disjoint systems. This was rst proved by Toyama in his pioneering paper [Toy87b]. This result is thus sometimes referred to as Toyama's Theorem. In contrast to this encouraging result, conuence is not modular for constructor-sharing systems (cf. [KO92]). So Kurihara and Krishna Rao posed the problem whether there are some interesting sucient conditions (independent of termination) which ensure the modularity of conuence for constructor-sharing systems. This question occurred as Problem 59 in the list of open problems in term rewriting, see [DJK93]. A positive solution to Problem 59 has appeared in [Ohl94b]. In Chapter 4, the results of [Ohl94b] are partially generalized. By an extension of the techniques used by Klop et al. [KMTV94] for disjoint unions, it will indeed be proved that conuence is a modular property for composable systems provided that a certain collapsing reduction relation is normalizing. Toyama's Theorem is a corollary thereof and furthermore an alternative proof for the modularity of semi-completeness for constructor-sharing systems can be given. The chapter is concluded with some remarks on the special behavior of leftlinear systems with respect to the preservation of conuence. Chapter 5 is devoted to the termination property. First, the closely related properties simple termination, C E -termination, and the simplifying property are introduced and the relationships between them are analysed. Section 5.2 starts with the famous counterexample of Toyama [Toy87a] to the modularity of termination for disjoint systems. The rst sucient criteria ensuring a modular behavior of termination were obtained by Rusinowitch [Rus87a].

12 4 CHAPTER 1. INTRODUCTION He showed that termination is modular for non-collapsing and for non-duplicating disjoint term rewriting systems. Moreover, he conjectured that the disjoint union of two terminating term rewriting systems is also terminating provided that one of them contains neither collapsing nor duplicating rewrite rules. This conjecture has been proven true by Middeldorp [Mid89a]. Subsection contains one simple proof for the three results mentioned above. This proof has already appeared in [Ohl93a]. In Subsection more sucient conditions for the modularity of termination for disjoint systems are supplied (see also [Ohl93c]). We generalize results of [Gra93a] from nitely branching systems to arbitrary systems, thereby solving a conjecture of Gramlich [Gra93a]. The most important consequences are the modularity of simple termination and C E -termination, respectively. Unfortunately, these results do not extend to constructor-sharing systems as is shown at the beginning of Section 5.3. To the contrary, the results of Rusinowitch and Middeldorp do extend, mutatis mutandis, to constructor-sharing systems (see [Ohl93c]), and even to composable systems (Subsection 5.3.1). In an inuential paper, Kurihara and Ohuchi [KO92] proved that the simplifying property (simple termination in their terminology) is modular for constructor-sharing systems. Chapter 5 is concluded with a proof showing that this holds true even for composable systems. In Chapter 6, we consider completeness, the conjunction of conuence and termination. To begin with, we recall the interesting history of conjectures and counterexamples concerning the modularity of completeness for disjoint systems. Then we provide an alternative proof for a special case of the deep theorem of Toyama et al. [TKB89] stating that completeness is modular for left-linear disjoint term rewriting systems. Their theorem suggests investigating whether completeness is also modular for variable-preserving disjoint systems. Surprisingly, this is not the case. Owing to a suggestion of Hans Zantema, the presentation of the complex counterexample in Subsection diers from the one in [Ohl93d]. A counterexample at the beginning of Section 6.2 demonstrates that the result of Toyama et al. [TKB89] does not extend to constructor-sharing systems. Furthermore, we proer a new simple proof for an interesting result of Gramlich [Gra92b, Gra93b] saying that an overlay system is complete if and only if it is locally conuent and innermost terminating. Since local conuence and innermost termination are modular for composable systems, the modularity of completeness for composable overlay systems is an immediate consequence. This slightly generalizes modularity results of [Gra92b, Gra93b] and [MT93]. In Chapter 7, we introduce the so-called modular reduction relation which is due to Kurihara and Kaji [KK88]. It has been shown by the aforesaid authors that this modular reduction relation is terminating whenever the constituent term rewriting systems are pairwise disjoint (cf. [KK88, KK90]). In [KO91], Kurihara and Ohuchi remarked that the proof idea of [KK90] also applies to pairwise constructor-sharing systems. We provide a rigorous proof for this fact under the premise that the constituent systems are normalizing. Moreover, the modular reduction relation proves to be complete whenever the constituent term rewriting systems are pairwise constructor-sharing and semi-complete (this was already known for pairwise disjoint systems, see [KK88, Mid90b]). Chapter 8 deals with conditional term rewriting systems. The rewrite rules of those systems may possess conditions, and such a conditional rewrite rule is only applicable if its conditions are fullled. We focus on the most prominent kind of conditional term rewriting systems, the so-called join or standard systems. Section 8.1 provides a summary of the basic concepts of conditional term rewriting which is inherently more complicated than

13 5 unconditional term rewriting. A brief overview of our new results concerning conditional term rewriting is contained in Section 8.2. Most of our results only apply to constructorsharing systems { as a matter of fact, up until now no positive modularity result is known for the combination of composable conditional term rewriting systems which may have extra variables in their conditions. Middeldorp [Mid90b, Mid93b] was the rst to investigate modular properties of (disjoint) conditional term rewriting systems. Among other things, he showed that for disjoint conditional term rewriting systems conuence and semi-completeness are modular whereas local conuence and normalization lack a modular behavior. So the best one can hope for when considering constructor-sharing conditional term rewriting systems is the modularity of semi-completeness (all other above-mentioned properties cannot be modular for those systems since they already fail to be modular for more restricted systems). We prove that semi-completeness is indeed modular for constructor-sharing conditional term rewriting systems. Middeldorp [Mid90b, Mid93b] has also shown that termination is modular for non-collapsing, and completeness is modular for non-duplicating disjoint conditional term rewriting systems. Furthermore, he conjectured (see [Mid90b, Mid93b]) that the disjoint union of two terminating join conditional term rewriting systems is terminating if one of them contains neither collapsing nor duplicating rules and the other is conuent. We will refute this conjecture by a simple counterexample. Moreover, it will be shown that his results also hold, mutatis mutandis, in the presence of shared constructors. We point out that our proof (though based on the ideas of [Mid93b]) is considerably simpler than that of [Mid93b]. At the end of Section 8.3, we extend the results of Chapter 7 to pairwise constructor-sharing conditional term rewriting systems. In this context, nite and decreasing conditional term rewriting systems play a special r^ole. Finally, it is shown in Section 8.4 that the simplifying property is modular, even for composable conditional term rewriting systems. Parts of the results of Chapter 8 are stated in [Ohl94a] and previously obtained special cases of some of these results have appeared already in [Ohl93b]. Various results from related subjects are collected in Chapter 9. In Section 9.1, simple counterexamples show that none of the known modularity results for disjoint term rewriting systems about unique normal forms and related properties extend to constructor-sharing systems. Several recent modularity results for hierarchical systems are gathered in Section 9.2. Some commutation results proved to be useful in establishing the preservation of properties like conuence and termination. The fundamental ones are recalled in Section 9.3. Since term rewriting is often implemented by means of the more ecient graph rewriting, we also summarize the modularity results concerning term graph rewriting systems. In Section 9.5, modular aspects of many-sorted term rewriting are recapitulated. Finally, in Section 9.6, we briey summarize related work on applicative term rewriting and -calculus extensions. Chapter 9 is concluded with a list of interesting open problems. Some of the results of Chapter 5 depend on a well-known theorem, viz. Kruskal's Tree Theorem. For the sake of completeness, Appendix A contains a proof of the nite version of that theorem in the setting of term rewriting.

14

15 Chapter 2 Preliminaries We will introduce term rewriting systems by rst abstracting from the term structure. That is to say, at rst we shall concentrate on the so-called abstract reduction systems. This approach to term rewriting has been propagated by Klop [Klo87, Klo92] and it has two main advantages. Firstly, it is instructive to see which denitions and properties depend on the term structure and which are more fundamental. Secondly, abstract reduction systems comprise both unconditional and conditional term rewriting systems. So a repetition of similar denitions and concepts is avoided by stating them once and for all on an abstract level. 2.1 Abstract Reduction Systems Denition An abstract reduction system (ARS) is a pair A = (A;!) consisting of a set A and a binary relation! AA. We write a! b for (a; b) 2! and say that a reduces to b in one step and that b is a one step reduct of a. A reduction sequence or derivation is a sequence a 1 ; a 2 ; a 3 ; : : : of elements of A such that a 1! a 2! a 3! : : :. Denition Let A = (A;!) be an ARS. 1. The transitive closure of! is denoted by! + and! = denotes the reexive closure. 2. The reexive transitive closure of! is denoted by!. If a! b, we say that a reduces or rewrites to b and we call b a reduct of a. We use the notation a a b if b! a and b! a, respectively. b and 3. The symmetric closure of! is denoted by $ (i.e., $ =! [ ). The reexive transitive closure of $ is called conversion or convertibility and denoted by $. 4. Two elements a; b 2 A are joinable, written a # b, if there is a c 2 A such that a! c b. We call c a common reduct of a and b. The following denitions describe basic properties of ARSs. Dierent terminology also used in the literature is supplied in parenthesis. In the sequel, the phrases \an ARS A = (A;!) has a certain property" and \! has a certain property" are used synonymously whenever the underlying set A is clear from the context. 7

16 8 CHAPTER 2. PRELIMINARIES Denition Let A = (A;!) be an ARS. 1. A is locally conuent (weakly Church-Rosser) if, for all a; b; c 2 A with b a! c, the elements b and c have a common reduct, that is, there exists a d 2 A such that b! d c. 2. A is conuent (Church-Rosser) if, for all a; b; c 2 A with b a! c, the elements b and c have a common reduct d. a a b local confluence c b * * confluence c d * * * * d Figure 2.1 It is easy to see that conuence implies local conuence. The next example given by Hindley [Hin74] shows that the converse is not true. Example The following ARS is locally conuent but not conuent: a b c d Figure 2.2 The next well-known proposition will be tacitly used in the sequel. Proposition An ARS A = (A;!) is conuent if and only if every pair of convertible elements of A is joinable. Proof: Let A = (A;!) be conuent and let a; b 2 A such that a $ b. It will be shown that a and b have a common reduct. We proceed by induction on the number of reduction steps in a $ b. The case of zero steps holds trivially. Consider a $ c $ b. By the induction hypothesis, there is a d 2 A such that a! d c. Now c b immediately implies a # b. If c! b, then conuence of! yields a common reduct e of d and b which is also a common reduct of a and b. The converse direction (if-case) is trivial. 2 Denition Let A = (A;!) be an ARS. 1. An element a 2 A is in normal form w.r.t! or irreducible w.r.t! if there is no element b 2 A with a! b. An element a 2 A has a normal form w.r.t.! if a! b for some normal form b. The phrase \w.r.t.!" will be suppressed whenever! can be inferred from the context. The set of normal forms of A is denoted by NF(A) or NF(!) if there is no ambiguity about the set A.

17 2.1. ABSTRACT REDUCTION SYSTEMS 9 2. A is normalizing (weakly normalizing) if every term has a normal form. 3. A is terminating (strongly normalizing, noetherian) if there is no innite reduction sequence a 1! a 2! a 3! : : :. Termination obviously implies normalization. Example refutes the converse. Denition A conuent and normalizing ARS is said to be semi-complete (uniquely normalizing). 2. A conuent and terminating ARS is said to be complete (convergent). It is clear that completeness implies semi-completeness. The removal of the arrow from b to a in Example yields an ARS which is semi-complete but not complete. Denition Let A = (A;!) be an ARS. 1. A has unique normal forms with respect to reduction if no element of A reduces to dierent normal forms (i.e., 8a; b; c 2 A if a! b, a! c and b; c 2 NF (!), then b = c). 2. A has unique normal forms if dierent normal forms are not convertible (i.e., 8a; b 2 A if a $ b and a; b 2 NF (!), then a = b). 3. A has the normal form property if every element convertible to a normal form reduces to that normal form (i.e., 8a; b 2 A if a $ b and b 2 NF (!), then a! b). Proposition and Example illustrate the connections between the properties dened in Denition The simple proofs are omitted. Proposition Conuence implies the normal form property. 2. The normal form property implies unique normal forms. 3. An ARS with unique normal forms has unique normal forms w.r.t. reduction. 2 Example Consider the ARSs A 1, A 2 and A 3 dened by: (1) a (2) a (3) a d b c b c b c e It is easy to see that A j disproves the converse of the j-th statement in Proposition Another important fact is that an ARS is semi-complete if and only if it is normalizing and has unique normal forms w.r.t. reduction. This can be concluded from Proposition in combination with the following proposition.

18 10 CHAPTER 2. PRELIMINARIES Proposition A normalizing ARS A = (A;!) with unique normal forms w.r.t. reduction is conuent. Proof: Let a; b, and c be elements of A such that b a! c. It has to be shown that b # c. Since A is normalizing, b and c reduce to normal forms b 0 and c 0, respectively. Hence b 0 b a! c! c 0, where b 0 ; c 0 2 NF (A). It follows that b 0 = c 0 because A has unique normal forms w.r.t. reduction. b 0 = c 0 is evidently a common reduct of b and c. 2 The next lemma was rst proved by Newman [New42] and is thus referred to as Newman's Lemma. A simple proof of this very famous lemma was given by Huet [Hue80] but instead we will follow the elegant indirect proof of Barendregt [Bar84]. Lemma A terminating ARS A = (A;!) is conuent if and only if it is locally conuent. Proof: We have to prove that for a terminating ARS, local conuence implies conuence. According to Proposition it suces to show that A has unique normal forms w.r.t. reduction. For a proof by contradiction, suppose that A does not have unique normal forms w.r.t. reduction. Consequently, the set S = fa 2 A j a 1 a! a 2 ; a 1 ; a 2 2 NF (A); a 1 6= a 2 g is not empty. It is shown that for every a 2 S, there is an a 0 2 S such that a! a 0. This implies the existence of an innite reduction sequence a! a 0! a 00! : : : and contradicts the termination of A. So let a 2 S, i.e., a reduces to two distinct normal forms a 1 and a 2. It is clear that there are b 1 ; b 2 2 A such that a 1 b 1 a! b 2! a 2. Since A is locally conuent, b 1 and b 2 have a common reduct b. b reduces to some a 3 2 NF (A) because A is terminating (see Figure 2.3). Now set a 0 = b 1 if a 3 = a 2 6= a 1 and a 0 = b 2 otherwise. Evidently, a 0 2 S and a! a a X X X b XXXz 1 X X X z b 9 b 2??? a 1 a 3 a 2 Figure 2.3 Denition An ARS A = (A;!) is called nitely branching if for all a 2 A the set fb 2 A j a! bg of one step reducts of a is nite. Moreover, the set G(a) = fb 2 A j a! bg is called the reduction graph of a 2 A. Structuring the set G(a) by the relation! yields an ARS (cf. Klop [Klo92]). The next lemma is a reformulation of Konig's Lemma. Lemma Let A = (A;!) be a nitely branching and terminating ARS. Then G(a) is nite for any a 2 A. 2 Figure 2.4 summarizes the relationships between the various properties.

19 2.1. ABSTRACT REDUCTION SYSTEMS 11 termination & local completeness confluence normalization confluence normal form property semi- & completeness Partial Orderings unique normal forms w.r.t. -> Figure 2.4 unique normal forms Partial orderings can be regarded as abstract reduction systems with special properties. In the following, the phrase \partial ordering" will always mean \irreexive partial ordering". Denition A (irreexive) partial ordering (A; >) is a pair consisting of a set A and a binary irreexive and transitive relation > on A. 2. A partial ordering (A; >) is said to be well-founded if there are no innite reduction sequences a 1 > a 2 > a 3 > : : : of elements from A. Note that every partial ordering (A; >) is asymmetric (i.e., there are no elements a; b 2 A such that a > b and b > a). Denition A quasi-ordering (A; ) is a pair consisting of a set A and a binary reexive and transitive relation on A. 2. A reexive partial ordering (A; ) is a quasi-ordering which is also anti-symmetric. Note that a quasi-ordering may fail to be a reexive partial ordering because it is not anti-symmetric, i.e., there may be two distinct elements a; b 2 A such that a b and b a. Due to the next lemma, we can alternate between reexive and irreexive partial orderings.

20 12 CHAPTER 2. PRELIMINARIES Lemma Given a partial ordering (A; >), the denition a b if a > b or a = b yields a reexive partial ordering (A; ). 2. Given a reexive partial ordering (A; ), the denition a > b if a b and a 6= b yields a partial ordering (A; >). 3. Given a quasi-ordering (A; ), the denition a > b if a b but b 6 a yields a partial ordering (A; >). Proof: Routine. 2 The reexive or irreexive partial ordering obtained by one of the above denitions is called the associated partial ordering. It should be pointed out that given a quasi-ordering the denition a > b if a b and a 6= b does not in general yield an irreexive partial ordering. If, however, the quasi-ordering is actually a reexive partial ordering (i.e., it is also anti-symmetric), then the two above denitions of the associated irreexive partial ordering coincide. New partial orderings evolve by means of the denitions below. Denition The lexicographic product of n partial orderings (A j ; > j ), j 2 f1; : : : ; ng, is the partial ordering (A 1 : : : A n ; > lex ), where > lex is dened by (a 1 ; : : : ; a n ) > lex (b 1 ; : : : ; b n ) if a j > j b j at the least j 2 f1; : : : ; ng for which a j 6= b j. 2. For a set A, let S(A) denote the set of all nite subsets of A. The set extension of a partial ordering (A; >) is the partial ordering (S(A); > set ) dened as follows: S 1 > set S 2 if there exist sets X; Y 2 S(A) such that ; 6= X S 1, S 2 = (S 1 n X) [ Y for all y 2 Y there exists an x 2 X such that x > y. 3. A multiset is a collection in which elements are allowed to occur more than once. 1 In order to distinguish multisets from sets, we use brackets instead of braces for the former. If A is a set, then the set of all nite multisets over A is denoted by M(A). 4. The multiset extension of a partial ordering (A; >) is the partial ordering (M(A); > mul ) dened by: M 1 > mul M 2 if there exist multisets X; Y 2 M(A) such that ; 6= X M 1, M 2 = (M 1 n X) [ Y, where [ denotes the sum of multisets, for all y 2 Y there exists an x 2 X such that x > y. 1 Formal denitions concerning multisets can for example be found in [MW85].

21 2.1. ABSTRACT REDUCTION SYSTEMS 13 Example Let > be the usual well-founded partial ordering on the natural numbers IN. In its set extension (S(IN); > set ), there is the following reduction sequence: f3; 4; 0g > set f2; 1; 4; 0g > set f4; 0g > set f3; 1; 0g > set fg Analogously, in its multiset extension (M(IN); > mul ), we have a reduction sequence: [3; 3; 4; 0] > mul [3; 2; 2; 1; 1; 1; 4; 0] > mul [3; 4] > mul [3; 3; 3; 3; 2; 2] > mul [ ] Proposition A lexicographic product of well-founded partial orderings is wellfounded. Proof: Straightforward. 2 Proposition The multiset extension (M(IN); > mul ) of the usual well-founded ordering > on natural numbers is well-founded. Proof: It will be shown that the well-foundedness of (M(IN); > mul ) follows from the wellfoundedness of (IN n+1 ; > lex ), where IN n+1 denotes the (n + 1)-fold cartesian product of IN. Suppose there is an innite sequence M 1 > mul M 2 > mul M 3 > mul : : : of nite multisets M j 2 M(IN). Let n be the largest number occurring in M 1. Moreover, let c : IN M(IN)! IN be the function dened by the property that c(i; M j ) counts the multiplicity (i.e., the number of occurrences) of the number i in the multiset M j. Then (c(n; M 1 ); : : : ; c(0; M 1 )) > lex (c(n; M 2 ); : : : ; c(0; M 2 )) > lex (c(n; M 3 ); : : : ; c(0; M 3 )) > lex : : : is an innite reduction sequence in (IN n+1 ; > lex ) contrary to Proposition Hans Zantema (personal communication) called the author's attention to the simple proof of the preceding proposition. Dershowitz and Manna [DM79] proved that the preceding proposition extends to arbitrary partial orderings. Theorem The multiset extension of a partial ordering is well-founded if and only if the partial ordering is well-founded. 2 Although the proof of Theorem is not very dicult, we would like to stress that the proof of the preceding proposition is much simpler. Proposition The set extension of a partial ordering is well-founded if and only if the partial ordering is well-founded. Proof: Let (A; >) be a well-founded partial ordering. Suppose that the partial ordering (S(A); > set ) is not well-founded, that is to say, there is an innite sequence S 1 > set S 2 > set S 3 > set : : : of elements from S(A). Obviously, every S j can be considered as an element of M(A). Moreover, S j > set S j+1 implies S j > mul S j+1. Hence there is an innite sequence S 1 > mul S 2 > mul S 3 > mul : : : of elements from M(A). This contradicts Theorem The other implication is trivial. 2

22 14 CHAPTER 2. PRELIMINARIES 2.2 Term Rewriting Systems Now we present the basic concepts of term rewriting which are required in this thesis. More details on term rewriting, its applications, and related subjects can be found in the surveys of Dershowitz & Jouannaud [DJ90] and Klop [Klo92]. An early forerunner which can also be consulted, is the survey of Huet & Oppen [HO80]. Denition A signature is a countable set F of function symbols or operators, where every f 2 F is associated with a natural number denoting its arity (the number of \arguments" it is supposed to have). F n denotes the set of all function symbols of arity n, hence F = S n0 F n. Elements of F 0 are called constants. Denition Let F be a signature and let V be a countable set of variables with F \ V = ;. The set of terms T (F; V) is dened to be the smallest set such that V T (F; V) if f 2 F n and t 1 ; : : : ; t n 2 T (F; V), then f(t 1 ; : : : ; t n ) 2 T (F; V). We write f instead of f() for every constant f. The set of function symbols appearing in a term t 2 T (F; V) is denoted by Fun(t), and the set of variables occurring in t is denoted by Var(t). Terms without variables are called ground terms. The set of all ground terms is denoted by T (F). If a term t does not contain multiple occurrences of the same variable, it is said to be linear. Denition Let T (F; V) be given, and let t 2 T (F; V). symbol of t and is dened by: root(t) denotes the root root(t) = t if t 2 V, and root(t) = f if t = f(t 1 ; : : : ; t n ). Let sym 2 F [ V. jtj sym stands for the number of occurrences of the symbol sym in t. More precisely: jtj sym = 1 if t 2 V and t = sym, jtj sym = 1 + jt 1 j + : : : + jt n j if t = f(t 1 ; : : : ; t n ) and f = sym, where f 2 F 0 if n = 0 jtj sym = 0 if t 2 V and t 6= sym, jtj sym = 0 + jt 1 j + : : : + jt n j if t = f(t 1 ; : : : ; t n ) and f 6= sym, where f 2 F 0 if n = 0 jtj = S sym2f[v jtj sym denotes the overall number of symbols in t and is called the size of t. Denition Let 2 be a special constant symbol. A context is a term in T (F]f2g; V) 2. From the very beginning we distinguish between three kinds of contexts. This will be very convenient for later purposes. The context 2 The symbol ] denotes the union of disjoint sets.

23 2.2. TERM REWRITING SYSTEMS 15 C[; : : :; ] contains at least one occurrence of 2 and may be equal to 2. Ch; : : : ; i contains zero or more occurrences of 2 and may be equal to 2. Cf; : : : ; g contains zero or more occurrences of 2 and is dierent from 2. If C[; : : : ; ] is a context with n occurrences of 2 and t 1 ; : : : ; t n are terms, then C[t 1 ; : : : ; t n ] is the result of replacing from left to right the occurrences of 2 with t 1 ; : : : ; t n. The meaning of Cht 1 ; : : : ; t n i and Cft 1 ; : : : ; t n g is dened analogously. A context containing precisely one occurrence of 2 is denoted by C[ ]. A term t is a subterm of a term s if there exists a context C[ ] such that s = C[t]. A subterm t of s is proper, denoted by s > t, if s 6= t. By abuse of notation we write T (F; V) for T (F ] f2g; V), interpreting 2 as a special constant which is always available but used only for the aforementioned purpose. In those cases where the above notion of subterm is not precise enough, we will distinguish occurrences of subterms by means of positions. Denition Let t 2 T (F; V). 1. The set Pos(t) of positions in t is dened inductively: - Pos(t) = fg if t 2 V, - Pos(t) = fg [ fi:p j p 2 Pos(t i ) and 1 i ng if t = f(t 1 ; : : : ; t n ). A position p within a term t is thus a sequence of natural numbers (where denotes the empty sequence and the numbers are separated by dots) describing the path from the root of t to the root of the subterm occurrence tj p, where ( tj p = t if p = t i j q if p = i:q; 1 i n; and t = f(t 1 ; : : : ; t n ): 2. Positions are partially ordered by the so-called prex ordering, i.e., p q if there is an o such that p = q:o. In this case we say that p is below q or q is above p. If moreover p 6= q, then we say that p is strictly below q or q is strictly above p. Two positions are disjoint or independent if neither one is below the other. 3. Let p 2 Pos(t) and s 2 T (F; V). The term t[p s] is dened as follows: - t[p s] = s if p =, - t[p s] = f(t 1 ; : : : ; t i [q s]; : : : ; t n ) if p = i:q, 1 i n, and t = f(t 1 ; : : : ; t n ). If p 1 ; : : : ; p n 2 Pos(t) are pairwise disjoint, then t[p i s i j 1 i n] stands for t[p 1 s 1 ] : : : [p n s n ] (the order of the p i is irrelevant because the positions are pairwise disjoint). Example Let the signature F = fadd; Mult; 0; 1; 2; 3; : : :g be given. Consider the ground term t = Add(Mult(2; 3); Add(1; Mult(2; 3))). Its root symbol is Add, jtj M ult = 2, and its size is 9. The positions in t are depicted in Figure 2.5. There are two occurrences of the subterm Mult(2; 3) in t, viz. at the positions 1 and 2:2. Moreover, we have for instance t[2 Mult(4; 3)] = Add(Mult(2; 3); Mult(4; 3)).

24 16 CHAPTER 2. PRELIMINARIES Add λ Mult Add Mult Figure 2.5 Denition A substitution is a mapping from V to T (F; V) such that the domain Dom() = fx 2 V j (x) 6= xg of is nite. Occasionally we present a substitution as fx 7! (x) j x 2 Dom()g. The substitution with empty domain will be denoted by ". Every substitution extends uniquely to a morphism : T (F; V)! T (F; V), where (f(t 1 ; : : : ; t n )) = f((t 1 ); : : : ; (t n )) for each n-ary function symbol f and terms t 1 ; : : : ; t n. (t) is said to be an instance of t. We also use the notation t for (t). The composition of two substitutions and is dened by ( )(x) = ((x)). A substitution is a variable renaming if there is a substitution such that is the identity function on V. Denition Let s; t 2 T (F; V). s matches t if t is an instance of s. s and t are uniable if there is a substitution such that s = t. If s = t for some substitution, then is called a unier of s and t. A most general unier of s and t is a unier such that for every unier there exists a substitution with =. Matching and uniability of two terms s and t is decidable. Furthermore, if two terms are uniable, then they have a most general unier which is unique up to variable renamings. For instance, the algorithms of Robinson [Rob65] and Martelli & Montanari [MM82] construct a most general unier of two terms. Example Let F = ff; g; ag. If s = x and t = f(x), then s matches t via the substitution = fx 7! f(x)g but the terms s and t are not uniable. On the other hand, if s = g(f(x); y) and t = g(y; f(x)), then s does not match t but s and t are uniable. A unier is for instance the substitution = fy 7! f(a); x 7! ag. However, is not most general. A most general unier of s and t is = fy 7! f(x)g. Denition A term rewriting system (TRS for short) is a pair (F; R) consisting of a signature F and a set R T (F; V) T (F; V) of rewrite rules or reduction rules. Every rewrite rule (l; r) must satisfy the following two constraints:

25 2.2. TERM REWRITING SYSTEMS 17 l 62 V, i.e., the left-hand side l is not a variable, and Var(r) Var(l), i.e., variables occurring in the right-hand side r also occur in l. Rewrite rules (l; r) will be denoted by l! r. The rewrite rules of a TRS (F; R) dene a rewrite relation! R on T (F; V) as follows: s! R t if there exists a rewrite rule l! r in R, a substitution and a context C[ ] such that s = C[l] and t = C[r]. We call s! R t a rewrite step or reduction step. We also say that s rewrites to t by contracting redex l, where an instance of a left-hand side of a rewrite rule is called a redex (reducible expression). We often simply write R instead of (F; R) if the signature is clear from the context (by default we will assume F to consist of the function symbols occurring in R). All notions dened in Section 2.1 for abstract reduction systems carry over to term rewriting systems by associating the ARS (T (F; V);! R ) with the TRS (F; R). We will also use \localized" versions of these notions. The phrase \a term t is terminating" means for instance that there is no innite reduction sequence starting from t. We illustrate the above denition by a small example. The TRS we are going to present translates simple arithmetic expressions into code for a stack-machine. Example Let F = fcons, Nil, app, Load, trans, Add, Mult, ADD, MULT, 0; 1; 2; 3; : : :g and R = 8 >< >: app(n il; z)! z app(cons(x; y); z)! Cons(x; app(y; z)) app(x; app(y; z))! app(app(x; y); z) trans(add(x; y))! app(trans(x); app(trans(y); Cons(ADD; N il))) trans(m ult(x; y))! app(trans(x); app(trans(y); Cons(M U LT; N il))) trans(0)! Cons(Load(0); N il) trans(1)! Cons(Load(1); N il) trans(2)! Cons(Load(2); N il). In the following examplary reduction sequence every contracted redex is written in bold-face. trans(add(mult(2; 3); 4))! R app(trans(mult(2; 3)); app(trans(4); Cons(ADD; Nil)))! R app(trans(mult(2; 3)); app(cons(load(4); Nil); Cons(ADD; Nil)))! R app(trans(mult(2; 3)); Cons(Load(4); app(nil; Cons(ADD; Nil))))! R app(trans(mult(2; 3)); Cons(Load(4); Cons(ADD; Nil)))! + R Cons(Load(2); Cons(Load(3); Cons(MULT; Cons(Load(4); Cons(ADD; Nil))))) Denition Let (F; R) be a TRS. A reduction step s! R t is innermost, denoted by s! im R t if no proper subterm of the contracted redex is itself a redex. An innermost reduction sequence consists only of innermost reduction steps. R is innermost normalizing if, for every term s, there is an innermost reduction sequence s im! R t so that t 2 NF (! R ). R is innermost terminating if there is no innite innermost reduction sequence. A reduction step s! R t is outermost if the contracted redex is not a proper subterm of another redex. The notions outermost normalization and outermost termination are dened in analogy to the above notions.

26 18 CHAPTER 2. PRELIMINARIES Lemma We have the following implications: termination ) innermost termination ) innermost normalization ) normalization None of the converse implications is true in general. Of course the lemma remains true when \innermost" is replaced with \outermost". Proof: Routine. 2 Note that the beginning of the reduction sequence of Example is innermost. Like Dershowitz and Jouannaud [DJ90], we distinguish canonical TRSs from complete TRSs (although, in the literature, canonical is usually synonymous with complete). Denition A TRS (F; R) is called irreducible or (inter-)reduced, if every rewrite rule l! r of R satises: 1. the left-hand side l is irreducible w.r.t. R n fl! rg. 2. the right-hand side r is irreducible w.r.t. R. Denition A TRS (F; R) is called canonical if it is complete and irreducible. The TRS of Example cannot be canonical because the right-hand side of the fourth rewrite rule can for instance be reduced by the third rule. In this context, the following theorem of Metivier [Met83] is important. Theorem For every complete TRS (F; R), there is a canonical TRS (F; R 0 ) such that the relations $ R and $ R0 coincide on T (F; V). 2 The following classication of operators will be of utmost importance. It separates functions from data. Denition The rules of a TRS (F; R) partition F into two disjoint sets D = froot(l) j l! r 2 Rg of dened symbols, and C = F n D of constructors. The phrase dened function symbol is justied by the existence of dening rules for that symbol. The same holds true for constructors which only construct terms. Denition A TRSs (F; R) is a constructor system if every left-hand side F (t 1 ; : : : ; t n ) of a rewrite rule of R satises t 1 ; : : : ; t n 2 T (C; V). For the TRS (F; R) of Example , the set of dened symbols is D = fapp; transg and the set of constructors is C = fcons; Nil; Load; Add; Mult; ADD; MULT; 0; 1; 2; 3; : : :g. The system is not a constructor system but the removal of the third rule from R yields a constructor system. We shall next concern ourselves with a syntactic classication of reduction rules.

27 2.2. TERM REWRITING SYSTEMS 19 Denition Let (F; R) be a TRS. A rewrite rule l! r 2 R is called 1. left-linear if l is linear, 2. right-linear if r is linear, 3. variable-preserving (or non-erasing) if Var(l) = Var(r). (F; R) is said to have one of the properties (1){(3) if all of its rewrite rules have the respective property. The reduction rule l! r is called 4. collapsing if r 2 V, 5. duplicating if there is a variable x 2 V with jrj x > jlj x. (F; R) has one of the properties (4){(5) if one of its rewrite rules has the respective property. A glance at Example reveals that that system is left-linear, right-linear, variablepreserving, collapsing, and non-duplicating. In Section 5.1 we will acquaint ourselves with methods for proving termination of a given TRS. For terminating systems, there is a renowned sucient criterion which ensures conuence (Theorem ). Let us state some prerequisites rst. Denition Let R be a TRS. 1. Let l 1! r 1 and l 2! r 2 be (variable) renamed versions of rewrite rules of R such that they have no variables in common. Suppose l 1 = C[t] with t 62 V such that t and l 2 are uniable. Let be a most general unier of t and l 2. We call (C[r 2 ]; r 1 ) a critical pair of R. If the two rules are renamed versions of the same rewrite rule of R, we do not consider the case C[ ] = CP (R) denotes the set of all critical pairs between rules of R. 3. A critical pair (s; t) 2 CP (R) is called convergent if s and t are joinable w.r.t. R. Once again, consider the TRS R of Example The left-hand sides of the renamed rules app(cons(x; y); z)! Cons(x; app(y; z)) and app(u; app(v; w))! app(app(u; v); w) are unied via the most general unier = fu 7! Cons(x; y); z 7! app(v; w)g. Thus (app(app(cons(x; y); v); w); Cons(x; app(y; app(v; w)))) is a critical pair of R. The reader is invited to check that this critical pair is convergent and that CP (R) = f(app(app(n il; y); z); app(y; z)); (app(app(cons(x; y); v); w); Cons(x; app(y; app(v; w))))g: The next lemma is due to Huet [Hue80]. It is called the Critical Pair Lemma. Lemma A term rewriting system is locally conuent if and only if all its critical pairs are convergent. 2

Abstract. We introduce a new technique for proving termination of. term rewriting systems. The technique, a specialization of Zantema's

Abstract. We introduce a new technique for proving termination of. term rewriting systems. The technique, a specialization of Zantema's Transforming Termination by Self-Labelling Aart Middeldorp, Hitoshi Ohsaki, Hans Zantema 2 Instite of Information Sciences and Electronics University of Tsukuba, Tsukuba 05, Japan 2 Department of Comper

More information

Modularity of Confluence: A Simplified Proof

Modularity of Confluence: A Simplified Proof 1 Modularity of Confluence: A Simplified Proof Jan Willem Klop 1,2,5,6 Aart Middeldorp 3,5 Yoshihito Toyama 4,7 Roel de Vrijer 2 1 Department of Software Technology CWI, Kruislaan 413, 1098 SJ Amsterdam

More information

Modular Termination Proofs for Rewriting Using Dependency Pairs

Modular Termination Proofs for Rewriting Using Dependency Pairs J. Symbolic Computation (2002) 34, 21 58 doi:10.1006/jsco.2002.0541 Available online at http://www.idealibrary.com on Modular Termination Proofs for Rewriting Using Dependency Pairs JÜRGEN GIESL, THOMAS

More information

Massimo Marchiori. Abstract. One of the key results in the eld of modularity for Term

Massimo Marchiori. Abstract. One of the key results in the eld of modularity for Term Modularity of Completeness Revisited Massimo Marchiori Department of Pure and Applied Mathematics University of Padova Via Belzoni 7, 35131 Padova, Italy max@hilbert.math.unipd.it Abstract. One of the

More information

Bi-rewrite Systems. Universitat Politecnica de Catalunya. Consejo Superior de Investigaciones Cientcas. Abstract

Bi-rewrite Systems. Universitat Politecnica de Catalunya. Consejo Superior de Investigaciones Cientcas. Abstract Bi-rewrite Systems Jordi Levy z and Jaume Agust x z Departament de Llenguatges i Sistemes nformatics Universitat Politecnica de Catalunya x nstitut d'nvestigacio en ntelligencia Articial Consejo Superior

More information

Massimo Marchiori. Abstract. from the simpler theory of unconditional rewriting. We introduce a new tool, called unraveling, to

Massimo Marchiori. Abstract. from the simpler theory of unconditional rewriting. We introduce a new tool, called unraveling, to Unravelings and Ultra-properties Massimo Marchiori Department of Pure and Applied Mathematics University ofpadova Via Belzoni 7, 511 Padova, Italy Phone: +9 49 8275972 Fax: +9 49 8758596 max@math.unipd.it

More information

Termination of term rewriting by semantic labelling H. Zantema Utrecht University, Department of Computer Science, P.O. box , 3508 TB Utrecht, T

Termination of term rewriting by semantic labelling H. Zantema Utrecht University, Department of Computer Science, P.O. box , 3508 TB Utrecht, T Termination of term rewriting by semantic labelling H. Zantema Utrecht University, Department of Computer Science, P.O. box 80.089, 3508 TB Utrecht, The Netherlands e-mail: hansz@cs.ruu.nl Abstract A new

More information

Level-Conuence of Conditional Rewrite Systems. with Extra Variables in Right-Hand Sides. Taro Suzuki Aart Middeldorp Tetsuo Ida.

Level-Conuence of Conditional Rewrite Systems. with Extra Variables in Right-Hand Sides. Taro Suzuki Aart Middeldorp Tetsuo Ida. Level-Conuence of Conditional Rewrite Systems with Extra Variables in Right-Hand Sides Taro Suzuki Aart Middeldorp Tetsuo Ida Institute of Information Sciences and Electronics and Center for Tsukuba Advanced

More information

Exhaustive Classication of Finite Classical Probability Spaces with Regard to the Notion of Causal Up-to-n-closedness

Exhaustive Classication of Finite Classical Probability Spaces with Regard to the Notion of Causal Up-to-n-closedness Exhaustive Classication of Finite Classical Probability Spaces with Regard to the Notion of Causal Up-to-n-closedness Michaª Marczyk, Leszek Wro«ski Jagiellonian University, Kraków 16 June 2009 Abstract

More information

Equational Logic. Chapter 4

Equational Logic. Chapter 4 Chapter 4 Equational Logic From now on First-order Logic is considered with equality. In this chapter, I investigate properties of a set of unit equations. For a set of unit equations I write E. Full first-order

More information

EXTENDED ABSTRACT. 2;4 fax: , 3;5 fax: Abstract

EXTENDED ABSTRACT. 2;4 fax: , 3;5 fax: Abstract 1 Syntactic denitions of undened: EXTENDED ABSTRACT on dening the undened Zena Ariola 1, Richard Kennaway 2, Jan Willem Klop 3, Ronan Sleep 4 and Fer-Jan de Vries 5 1 Computer and Information Science Department,

More information

Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs

Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs Masahiko Sakai,Kouji Okamoto,Toshiki Sakabe Graduate School of Information Science, Nagoya University, Furo-cho, Chikusa-ku,

More information

1.2 Disjoint sums of Term Rewriting Systems : : : : : : : : : : Reduction strategies for orthogonal TRS's : : : : : : : : : : 76

1.2 Disjoint sums of Term Rewriting Systems : : : : : : : : : : Reduction strategies for orthogonal TRS's : : : : : : : : : : 76 Term Rewriting Systems J. W. Klop 1 Contents 1 Abstract Reduction Systems : : : : : : : : : : : : : : : : : : : : : 3 1.1 Basic notions : : : : : : : : : : : : : : : : : : : : : : : : : : 11 1.2 Disjoint

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Equational Reasoning and Completion. Dominik Klein

Equational Reasoning and Completion. Dominik Klein Equational Reasoning and Completion by Dominik Klein submitted to Japan Advanced Institute of Science and Technology in partial fulfillment of the requirements for the degree of Doctor of Philosophy Supervisor:

More information

Abstract. In this paper we study clausal specications over built-in algebras. To keep things simple, we consider built-in algebras only that

Abstract. In this paper we study clausal specications over built-in algebras. To keep things simple, we consider built-in algebras only that Partial Functions in Clausal Specications? J. Avenhaus, K. Madlener Universitat Kaiserslautern e-mail: favenhaus, madlener g@informatik.uni-kl.de Abstract. In this paper we study clausal specications over

More information

Outline. Overview. Introduction. Well-Founded Monotone Algebras. Monotone algebras. Polynomial Interpretations. Dependency Pairs

Outline. Overview. Introduction. Well-Founded Monotone Algebras. Monotone algebras. Polynomial Interpretations. Dependency Pairs Overview Lecture 1: Introduction, Abstract Rewriting Lecture 2: Term Rewriting Lecture 3: Combinatory Logic Lecture 4: Termination Lecture 5: Matching, Unification Lecture 6: Equational Reasoning, Completion

More information

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori Combining Unication- and Disunication Algorithms Tractable and Intractable Instances Klaus U. Schulz CIS, University of Munich Oettingenstr. 67 80538 Munchen, Germany e-mail: schulz@cis.uni-muenchen.de

More information

Tableau Calculus for Local Cubic Modal Logic and it's Implementation MAARTEN MARX, Department of Articial Intelligence, Faculty of Sciences, Vrije Uni

Tableau Calculus for Local Cubic Modal Logic and it's Implementation MAARTEN MARX, Department of Articial Intelligence, Faculty of Sciences, Vrije Uni Tableau Calculus for Local Cubic Modal Logic and it's Implementation MAARTEN MARX, Department of Articial Intelligence, Faculty of Sciences, Vrije Universiteit Amsterdam, De Boelelaan 1081a, 1081 HV Amsterdam,

More information

Cheat Sheet Equational Logic (Spring 2013) Terms. Inductive Construction. Positions: Denoting Subterms TERMS

Cheat Sheet Equational Logic (Spring 2013) Terms. Inductive Construction. Positions: Denoting Subterms TERMS TERMS Cheat Sheet Equational Logic (Spring 2013) The material given here summarizes those notions from the course s textbook [1] that occur frequently. The goal is to have them at hand, as a quick reminder

More information

Learnability of Term Rewrite Systems from Positive Examples

Learnability of Term Rewrite Systems from Positive Examples Learnability of Term Rewrite Systems from Positive Examples M.R.K. Krishna Rao Information and Computer Science Department King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia. Email:

More information

Modular Termination of r-consistent and Left-Linear, Term Rewriting Systems

Modular Termination of r-consistent and Left-Linear, Term Rewriting Systems Modular Termination of r-consistent and Left-Linear, Term Rewriting Systems Manfred Schmidt-Schauß, Massimo Marchiori, Sven Eric Panitz Fachbereich Informatik, J.W.Goethe-Universität Frankfurt, PO-Box

More information

Solvability of Word Equations Modulo Finite Special And. Conuent String-Rewriting Systems Is Undecidable In General.

Solvability of Word Equations Modulo Finite Special And. Conuent String-Rewriting Systems Is Undecidable In General. Solvability of Word Equations Modulo Finite Special And Conuent String-Rewriting Systems Is Undecidable In General Friedrich Otto Fachbereich Mathematik/Informatik, Universitat GH Kassel 34109 Kassel,

More information

Superposition with Completely Built-in. Abelian Groups. Jordi Girona 1, Barcelona, Spain.

Superposition with Completely Built-in. Abelian Groups. Jordi Girona 1, Barcelona, Spain. Article Submitted to Journal of Symbolic Computation Superposition with Completely Built-in Abelian Groups Guillem Godoy 1 and Robert Nieuwenhuis 1 1 Dept. LSI, Technical University of Catalonia, Jordi

More information

Behavioural theories and the proof of. LIENS, C.N.R.S. U.R.A & Ecole Normale Superieure, 45 Rue d'ulm, F{75230 Paris Cedex 05, France

Behavioural theories and the proof of. LIENS, C.N.R.S. U.R.A & Ecole Normale Superieure, 45 Rue d'ulm, F{75230 Paris Cedex 05, France Behavioural theories and the proof of behavioural properties Michel Bidoit a and Rolf Hennicker b b a LIENS, C.N.R.S. U.R.A. 1327 & Ecole Normale Superieure, 45 Rue d'ulm, F{75230 Paris Cedex 05, France

More information

Unique Normal Forms and Confluence of Rewrite Systems: Persistence

Unique Normal Forms and Confluence of Rewrite Systems: Persistence Unique Normal Forms and Confluence of Rewrite Systems: Persistence Rakesh M. Verma* Department of Computer Science University of Houston Houston, TX 77204, U. S. A. E-mail: rmverma@cs.uh.edu Abstract Programming

More information

A Parallel Narrowing Strategy TR January 8, Abstract. We generalize to narrowing the notion of necessary set of redexes proposed by Sekar

A Parallel Narrowing Strategy TR January 8, Abstract. We generalize to narrowing the notion of necessary set of redexes proposed by Sekar A Parallel Narrowing Strategy Sergio Antoy y Rachid Echahed z Michael Hanus x TR 96-1 January 8, 1996 Abstract We generalize to narrowing the notion of necessary set of redexes proposed by Sekar and Ramakrishnan

More information

Splitting a Default Theory. Hudson Turner. University of Texas at Austin.

Splitting a Default Theory. Hudson Turner. University of Texas at Austin. Splitting a Default Theory Hudson Turner Department of Computer Sciences University of Texas at Austin Austin, TX 7872-88, USA hudson@cs.utexas.edu Abstract This paper presents mathematical results that

More information

Decidable Call by Need Computations in Term Rewriting (Extended Abstract)

Decidable Call by Need Computations in Term Rewriting (Extended Abstract) Decidable Call by Need Computations in Term Rewriting (Extended Abstract) Irène Durand 1 and Aart Middeldorp 2 1 LaBRI 2 Institute of Information Sciences and Electronics Université de Bordeaux I University

More information

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd CDMTCS Research Report Series A Version of for which ZFC can not Predict a Single Bit Robert M. Solovay University of California at Berkeley CDMTCS-104 May 1999 Centre for Discrete Mathematics and Theoretical

More information

TERESE LITE. Excerpts from the book TERM REWRITING SYSTEMS by Terese

TERESE LITE. Excerpts from the book TERM REWRITING SYSTEMS by Terese TERESE LITE Excerpts from the book TERM REWRITING SYSTEMS by Terese For exclusive use with the course Term Rewriting Systems at the Vrije Universiteit, fall 2006. Do not copy or distribute. Contents Preface

More information

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees Francesc Rosselló 1, Gabriel Valiente 2 1 Department of Mathematics and Computer Science, Research Institute

More information

Math 42, Discrete Mathematics

Math 42, Discrete Mathematics c Fall 2018 last updated 10/10/2018 at 23:28:03 For use by students in this class only; all rights reserved. Note: some prose & some tables are taken directly from Kenneth R. Rosen, and Its Applications,

More information

Denotational Semantics

Denotational Semantics 5 Denotational Semantics In the operational approach, we were interested in how a program is executed. This is contrary to the denotational approach, where we are merely interested in the effect of executing

More information

Tree sets. Reinhard Diestel

Tree sets. Reinhard Diestel 1 Tree sets Reinhard Diestel Abstract We study an abstract notion of tree structure which generalizes treedecompositions of graphs and matroids. Unlike tree-decompositions, which are too closely linked

More information

Complete Selection Functions for a Lazy Conditional Narrowing Calculus

Complete Selection Functions for a Lazy Conditional Narrowing Calculus Complete Selection Functions for a Lazy Conditional Narrowing Calculus Aart Middeldorp Institute of Information Sciences and Electronics University of Tsukuba, Tsukuba 305-8573, Japan ami@is.tsukuba.ac.jp

More information

A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1. Julian Zinn 2 and Rakesh Verma

A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1. Julian Zinn 2 and Rakesh Verma A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1 Julian Zinn 2 and Rakesh Verma Computer Science Department University of Houston Houston, TX, 77204, USA http://www.cs.uh.edu

More information

The nite submodel property and ω-categorical expansions of pregeometries

The nite submodel property and ω-categorical expansions of pregeometries The nite submodel property and ω-categorical expansions of pregeometries Marko Djordjevi bstract We prove, by a probabilistic argument, that a class of ω-categorical structures, on which algebraic closure

More information

Klaus Madlener. Internet: Friedrich Otto. Fachbereich Mathematik/Informatik, Universitat Kassel.

Klaus Madlener. Internet: Friedrich Otto. Fachbereich Mathematik/Informatik, Universitat Kassel. Some Undecidability Results For Finitely Generated Thue Congruences On A Two-Letter Alphabet Klaus Madlener Fachbereich Informatik, Universitat Kaiserslautern D{67653 Kaiserslautern Internet: madlener@informatik.uni-kl.de

More information

every symbol we can dene inside which of its arguments reduction is allowed or not. This kind of rewriting is called context-sensitive rewriting. It i

every symbol we can dene inside which of its arguments reduction is allowed or not. This kind of rewriting is called context-sensitive rewriting. It i Termination of context-sensitive rewriting H. Zantema Utrecht University, Department of Computer Science, P.O. box 80.089, 3508 TB Utrecht, The Netherlands e-mail: hansz@cs.ruu.nl Abstract Context-sensitive

More information

Functional Database Query Languages as. Typed Lambda Calculi of Fixed Order. Gerd G. Hillebrand and Paris C. Kanellakis

Functional Database Query Languages as. Typed Lambda Calculi of Fixed Order. Gerd G. Hillebrand and Paris C. Kanellakis Functional Database Query Languages as Typed Lambda Calculi of Fixed Order Gerd G. Hillebrand and Paris C. Kanellakis Department of Computer Science Brown University Providence, Rhode Island 02912 CS-94-26

More information

F UR. On Extra Variables in (Equational) Logic. Michael Hanus. MPI{I{94{246 September 1994

F UR. On Extra Variables in (Equational) Logic. Michael Hanus. MPI{I{94{246 September 1994 MAX-PLANCK-INSTITUT F UR INFORMATIK On Extra Variables in (Equational) Logic Programming Michael Hanus MPI{I{94{246 September 1994 k I N F O R M A T I K Im Stadtwald D 66123 Saarbrucken Germany Author's

More information

Essentially based on Paramodulation [14], various renements for the ecient

Essentially based on Paramodulation [14], various renements for the ecient Model Elimination with Basic Ordered Paramodulation Max Moser 1? Christopher Lynch 2 Joachim Steinbach 1? 1 Institut fur Informatik, Technische Universitat Munchen 80290 Munchen, Germany, Phone: +49-89/521096,

More information

Jacques Fleuriot. Automated Reasoning Rewrite Rules

Jacques Fleuriot. Automated Reasoning Rewrite Rules Automated Reasoning Rewrite Rules Jacques Fleuriot Lecture 8, page 1 Term Rewriting Rewriting is a technique for replacing terms in an expression with equivalent terms useful for simplification, e.g. given

More information

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable.

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable. 4.4 Critical Pairs Showing local confluence (Sketch): Problem: If t 1 E t 0 E t 2, does there exist a term s such that t 1 E s E t 2? If the two rewrite steps happen in different subtrees (disjoint redexes):

More information

Every formula evaluates to either \true" or \false." To say that the value of (x = y) is true is to say that the value of the term x is the same as th

Every formula evaluates to either \true or \false. To say that the value of (x = y) is true is to say that the value of the term x is the same as th A Quick and Dirty Sketch of a Toy Logic J Strother Moore January 9, 2001 Abstract For the purposes of this paper, a \logic" consists of a syntax, a set of axioms and some rules of inference. We dene a

More information

A Dependency Pair Framework for A C-Termination

A Dependency Pair Framework for A C-Termination A Dependency Pair Framework for A C-Termination Beatriz Alarcón Raúl Gutiérrez Salvador Lucas José Meseguer* DSIC, Universidad Politécnica de Valencia Camino de Vera s/n, E-46022 Valencia, Spain {balarcon,rgutierrez,slucas}@dsic.upv.es

More information

Cartesian Products and Relations

Cartesian Products and Relations Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) : (a A) and (b B)}. The following points are worth special

More information

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) Contents 1 Vector Spaces 1 1.1 The Formal Denition of a Vector Space.................................. 1 1.2 Subspaces...................................................

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 September 2, 2004 These supplementary notes review the notion of an inductive definition and

More information

example like a b, which is obviously not true. Using our method, examples like this will quickly halt and say there is no solution. A related deciency

example like a b, which is obviously not true. Using our method, examples like this will quickly halt and say there is no solution. A related deciency Goal-Directed E-Unication Christopher Lynch and Barbara Morawska Department of Mathematics and Computer Science Box 5815, Clarkson University, Potsdam, NY 13699-5815, USA, E-mail: clynch@clarkson.edu,morawskb@clarkson.edu??

More information

The rest of the paper is organized as follows: in Section 2 we prove undecidability of the existential-universal ( 2 ) part of the theory of an AC ide

The rest of the paper is organized as follows: in Section 2 we prove undecidability of the existential-universal ( 2 ) part of the theory of an AC ide Undecidability of the 9 8 part of the theory of ground term algebra modulo an AC symbol Jerzy Marcinkowski jma@tcs.uni.wroc.pl Institute of Computer Science University of Wroc law, ul. Przesmyckiego 20

More information

32 Divisibility Theory in Integral Domains

32 Divisibility Theory in Integral Domains 3 Divisibility Theory in Integral Domains As we have already mentioned, the ring of integers is the prototype of integral domains. There is a divisibility relation on * : an integer b is said to be divisible

More information

1 Introduction It will be convenient to use the inx operators a b and a b to stand for maximum (least upper bound) and minimum (greatest lower bound)

1 Introduction It will be convenient to use the inx operators a b and a b to stand for maximum (least upper bound) and minimum (greatest lower bound) Cycle times and xed points of min-max functions Jeremy Gunawardena, Department of Computer Science, Stanford University, Stanford, CA 94305, USA. jeremy@cs.stanford.edu October 11, 1993 to appear in the

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 August 28, 2003 These supplementary notes review the notion of an inductive definition and give

More information

Laboratoire de Recherche en Informatique, Bat. 490, Universite de Paris Sud, F Orsay, France,

Laboratoire de Recherche en Informatique, Bat. 490, Universite de Paris Sud, F Orsay, France, Rewrite Proofs and Computations Jean-Pierre Jouannaud Laboratoire de Recherche en Informatique, Bat. 490, Universite de Paris Sud, F-91405 Orsay, France, jouannaud@lri.fr Abstract. Rewriting is a general

More information

Proof Theoretical Studies on Semilattice Relevant Logics

Proof Theoretical Studies on Semilattice Relevant Logics Proof Theoretical Studies on Semilattice Relevant Logics Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

PROOFS AND COMPUTATIONS IN CONDITIONAL EQUATIONAL THEORIES G. SIVAKUMAR. B.Tech., Indian Institute of Technology, 1982

PROOFS AND COMPUTATIONS IN CONDITIONAL EQUATIONAL THEORIES G. SIVAKUMAR. B.Tech., Indian Institute of Technology, 1982 PROOFS AND COMPUTATIONS IN CONDITIONAL EQUATIONAL THEORIES BY G. SIVAKUMAR B.Tech., Indian Institute of Technology, 1982 M.S., Rensselaer Polytechnic Institute, 1984 THESIS Submitted in partial fulllment

More information

A.J. Kfoury y. December 20, Abstract. Various restrictions on the terms allowed for substitution give rise

A.J. Kfoury y. December 20, Abstract. Various restrictions on the terms allowed for substitution give rise A General Theory of Semi-Unication Said Jahama Boston University (jahama@cs.bu.edu) A.J. Kfoury y Boston University (kfoury@cs.bu.edu) December 20, 1993 Technical Report: bu-cs # 93-018 Abstract Various

More information

Counting and Constructing Minimal Spanning Trees. Perrin Wright. Department of Mathematics. Florida State University. Tallahassee, FL

Counting and Constructing Minimal Spanning Trees. Perrin Wright. Department of Mathematics. Florida State University. Tallahassee, FL Counting and Constructing Minimal Spanning Trees Perrin Wright Department of Mathematics Florida State University Tallahassee, FL 32306-3027 Abstract. We revisit the minimal spanning tree problem in order

More information

Techniques de réécriture et transformations

Techniques de réécriture et transformations Techniques de réécriture et transformations Horatiu CIRSTEA, Pierre-Etienne MOREAU Session 2008/2009 Horatiu CIRSTEA, Pierre-Etienne MOREAU Techniques de réécriture et transformations Session 2008/2009

More information

Stochastic dominance with imprecise information

Stochastic dominance with imprecise information Stochastic dominance with imprecise information Ignacio Montes, Enrique Miranda, Susana Montes University of Oviedo, Dep. of Statistics and Operations Research. Abstract Stochastic dominance, which is

More information

Part V. 17 Introduction: What are measures and why measurable sets. Lebesgue Integration Theory

Part V. 17 Introduction: What are measures and why measurable sets. Lebesgue Integration Theory Part V 7 Introduction: What are measures and why measurable sets Lebesgue Integration Theory Definition 7. (Preliminary). A measure on a set is a function :2 [ ] such that. () = 2. If { } = is a finite

More information

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations D. R. Wilkins Academic Year 1996-7 1 Number Systems and Matrix Algebra Integers The whole numbers 0, ±1, ±2, ±3, ±4,...

More information

Implementing -Reduction by. Hypergraph Rewriting. Sabine Kuske 1. Fachbereich Mathematik und Informatik. Universitat Bremen. D{28334 Bremen, Germany

Implementing -Reduction by. Hypergraph Rewriting. Sabine Kuske 1. Fachbereich Mathematik und Informatik. Universitat Bremen. D{28334 Bremen, Germany URL: http://www.elsevier.nl/locate/entcs/volume2.html 8 pages Implementing -Reduction by Hypergraph Rewriting abine Fachbereich Mathematik und Informatik Universitat Bremen D{28334 Bremen, Germany email:

More information

Automated Complexity Analysis Based on the Dependency Pair Method

Automated Complexity Analysis Based on the Dependency Pair Method Automated Complexity Analysis Based on the Dependency Pair Method Nao Hirokawa 1 and Georg Moser 2 1 School of Information Science, Japan Advanced Institute of Science and Technology, Japan, hirokawa@jaist.ac.jp

More information

Abstract In usual type theory, if a function f is of type! 0 and an argument a is of type, then the type of fa is immediately given to be 0 and no men

Abstract In usual type theory, if a function f is of type! 0 and an argument a is of type, then the type of fa is immediately given to be 0 and no men Canonical typing and -conversion Fairouz Kamareddine y Department of Computing Science 17 Lilybank Gardens University of Glasgow Glasgow G1 8QQ, Scotland email: fairouz@dcs.glasgow.ac.uk and Rob Nederpelt

More information

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Chapter 2 An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Assertions In this chapter, we give a more detailed exposition of the assertions of separation logic: their meaning,

More information

F -inverse covers of E-unitary inverse monoids

F -inverse covers of E-unitary inverse monoids F -inverse covers of E-unitary inverse monoids Outline of Ph.D. thesis Nóra Szakács Supervisor: Mária B. Szendrei Doctoral School of Mathematics and Computer Science University of Szeged 2016 1 1 Introduction

More information

for average case complexity 1 randomized reductions, an attempt to derive these notions from (more or less) rst

for average case complexity 1 randomized reductions, an attempt to derive these notions from (more or less) rst On the reduction theory for average case complexity 1 Andreas Blass 2 and Yuri Gurevich 3 Abstract. This is an attempt to simplify and justify the notions of deterministic and randomized reductions, an

More information

Abstract In this paper, we introduce the logic of a control action S4F and the logic of a continuous control action S4C on the state space of a dynami

Abstract In this paper, we introduce the logic of a control action S4F and the logic of a continuous control action S4C on the state space of a dynami Modal Logics and Topological Semantics for Hybrid Systems Mathematical Sciences Institute Technical Report 97-05 S. N. Artemov, J. M. Davoren y and A. Nerode z Mathematical Sciences Institute Cornell University

More information

Math 541 Fall 2008 Connectivity Transition from Math 453/503 to Math 541 Ross E. Staffeldt-August 2008

Math 541 Fall 2008 Connectivity Transition from Math 453/503 to Math 541 Ross E. Staffeldt-August 2008 Math 541 Fall 2008 Connectivity Transition from Math 453/503 to Math 541 Ross E. Staffeldt-August 2008 Closed sets We have been operating at a fundamental level at which a topological space is a set together

More information

Proving Completeness for Nested Sequent Calculi 1

Proving Completeness for Nested Sequent Calculi 1 Proving Completeness for Nested Sequent Calculi 1 Melvin Fitting abstract. Proving the completeness of classical propositional logic by using maximal consistent sets is perhaps the most common method there

More information

An Alternative To The Iteration Operator Of. Propositional Dynamic Logic. Marcos Alexandre Castilho 1. IRIT - Universite Paul Sabatier and

An Alternative To The Iteration Operator Of. Propositional Dynamic Logic. Marcos Alexandre Castilho 1. IRIT - Universite Paul Sabatier and An Alternative To The Iteration Operator Of Propositional Dynamic Logic Marcos Alexandre Castilho 1 IRIT - Universite Paul abatier and UFPR - Universidade Federal do Parana (Brazil) Andreas Herzig IRIT

More information

Contents. 2.1 Vectors in R n. Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v. 2.50) 2 Vector Spaces

Contents. 2.1 Vectors in R n. Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v. 2.50) 2 Vector Spaces Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v 250) Contents 2 Vector Spaces 1 21 Vectors in R n 1 22 The Formal Denition of a Vector Space 4 23 Subspaces 6 24 Linear Combinations and

More information

A shrinking lemma for random forbidding context languages

A shrinking lemma for random forbidding context languages Theoretical Computer Science 237 (2000) 149 158 www.elsevier.com/locate/tcs A shrinking lemma for random forbidding context languages Andries van der Walt a, Sigrid Ewert b; a Department of Mathematics,

More information

Characterization of Semantics for Argument Systems

Characterization of Semantics for Argument Systems Characterization of Semantics for Argument Systems Philippe Besnard and Sylvie Doutre IRIT Université Paul Sabatier 118, route de Narbonne 31062 Toulouse Cedex 4 France besnard, doutre}@irit.fr Abstract

More information

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition)

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition) Vector Space Basics (Remark: these notes are highly formal and may be a useful reference to some students however I am also posting Ray Heitmann's notes to Canvas for students interested in a direct computational

More information

Multiplicative Conjunction and an Algebraic. Meaning of Contraction and Weakening. A. Avron. School of Mathematical Sciences

Multiplicative Conjunction and an Algebraic. Meaning of Contraction and Weakening. A. Avron. School of Mathematical Sciences Multiplicative Conjunction and an Algebraic Meaning of Contraction and Weakening A. Avron School of Mathematical Sciences Sackler Faculty of Exact Sciences Tel Aviv University, Tel Aviv 69978, Israel Abstract

More information

TECHNISCHE UNIVERSITÄT DRESDEN. Fakultät Informatik. Technische Berichte Technical Reports. Daniel Kirsten. TUD / FI 98 / 07 - Mai 1998

TECHNISCHE UNIVERSITÄT DRESDEN. Fakultät Informatik. Technische Berichte Technical Reports. Daniel Kirsten. TUD / FI 98 / 07 - Mai 1998 TECHNISCHE UNIVERSITÄT DRESDEN Fakultät Informatik TUD / FI 98 / 07 - Mai 998 Technische Berichte Technical Reports ISSN 430-X Daniel Kirsten Grundlagen der Programmierung Institut für Softwaretechnik

More information

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic Boolean Algebra and Propositional Logic Takahiro Kato June 23, 2015 This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a more direct connection

More information

Supplementary Notes on Inductive Definitions

Supplementary Notes on Inductive Definitions Supplementary Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 August 29, 2002 These supplementary notes review the notion of an inductive definition

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic Boolean Algebra and Propositional Logic Takahiro Kato September 10, 2015 ABSTRACT. This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a

More information

Computing the acceptability semantics. London SW7 2BZ, UK, Nicosia P.O. Box 537, Cyprus,

Computing the acceptability semantics. London SW7 2BZ, UK, Nicosia P.O. Box 537, Cyprus, Computing the acceptability semantics Francesca Toni 1 and Antonios C. Kakas 2 1 Department of Computing, Imperial College, 180 Queen's Gate, London SW7 2BZ, UK, ft@doc.ic.ac.uk 2 Department of Computer

More information

Interpolation via translations

Interpolation via translations Interpolation via translations Walter Carnielli 2,3 João Rasga 1,3 Cristina Sernadas 1,3 1 DM, IST, TU Lisbon, Portugal 2 CLE and IFCH, UNICAMP, Brazil 3 SQIG - Instituto de Telecomunicações, Portugal

More information

1 The Well Ordering Principle, Induction, and Equivalence Relations

1 The Well Ordering Principle, Induction, and Equivalence Relations 1 The Well Ordering Principle, Induction, and Equivalence Relations The set of natural numbers is the set N = f1; 2; 3; : : :g. (Some authors also include the number 0 in the natural numbers, but number

More information

1 Basic Combinatorics

1 Basic Combinatorics 1 Basic Combinatorics 1.1 Sets and sequences Sets. A set is an unordered collection of distinct objects. The objects are called elements of the set. We use braces to denote a set, for example, the set

More information

form, but that fails as soon as one has an object greater than every natural number. Induction in the < form frequently goes under the fancy name \tra

form, but that fails as soon as one has an object greater than every natural number. Induction in the < form frequently goes under the fancy name \tra Transnite Ordinals and Their Notations: For The Uninitiated Version 1.1 Hilbert Levitz Department of Computer Science Florida State University levitz@cs.fsu.edu Intoduction This is supposed to be a primer

More information

The Dierential Lambda-Calculus

The Dierential Lambda-Calculus The Dierential Lambda-Calculus Thomas Ehrhard and Laurent Regnier Institut de Mathématiques de Luminy, C.N.R.S. U.P.R. 9016 ehrhard@iml.univ-mrs.fr and regnier@iml.univ-mrs.fr July 17, 2003 Abstract We

More information

Indian Institute of Information Technology Design and Manufacturing, Kancheepuram Chennai , India. Instructor N.Sadagopan Scribe: P.

Indian Institute of Information Technology Design and Manufacturing, Kancheepuram Chennai , India. Instructor N.Sadagopan Scribe: P. Indian Institute of Information Technology Design and Manufacturing, Kancheepuram Chennai 600 127, India An Autonomous Institute under MHRD, Govt of India An Institute of National Importance www.iiitdm.ac.in

More information

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability 16.2. MINIMAL ARITHMETIC AND REPRESENTABILITY 207 If T is a consistent theory in the language of arithmetic, we say a set S is defined in T by D(x) if for all n, if n is in S, then D(n) is a theorem of

More information

Diagram Techniques for Confluence

Diagram Techniques for Confluence Information and Computation 141, 172204 (1998) Article No. IC972683 Diagram Techniques for Confluence Marc Bezem Department of Philosophy, Utrecht University, P.O. Box 80126, 3508 TC Utrecht, The Netherlands

More information

ON FIRST-ORDER CONS-FREE TERM REWRITING AND PTIME

ON FIRST-ORDER CONS-FREE TERM REWRITING AND PTIME ON FIRST-ORDER CONS-FREE TERM REWRITING AND PTIME CYNTHIA KOP Department of Computer Science, Copenhagen University e-mail address: kop@diku.dk Abstract. In this paper, we prove that (first-order) cons-free

More information

Rewrite-Based Equational Theorem Proving With Selection and Simplification. Leo Bachmair Harald Ganzinger

Rewrite-Based Equational Theorem Proving With Selection and Simplification. Leo Bachmair Harald Ganzinger Rewrite-Based Equational Theorem Proving With Selection and Simplification Leo Bachmair Harald Ganzinger MPI I 91 208 September 1991 Authors Addresses Leo Bachmair, Department of Computer Science, SUNY

More information

Extremal Cases of the Ahlswede-Cai Inequality. A. J. Radclie and Zs. Szaniszlo. University of Nebraska-Lincoln. Department of Mathematics

Extremal Cases of the Ahlswede-Cai Inequality. A. J. Radclie and Zs. Szaniszlo. University of Nebraska-Lincoln. Department of Mathematics Extremal Cases of the Ahlswede-Cai Inequality A J Radclie and Zs Szaniszlo University of Nebraska{Lincoln Department of Mathematics 810 Oldfather Hall University of Nebraska-Lincoln Lincoln, NE 68588 1

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

Rewriting, Explicit Substitutions and Normalisation

Rewriting, Explicit Substitutions and Normalisation Rewriting, Explicit Substitutions and Normalisation XXXVI Escola de Verão do MAT Universidade de Brasilia Part 1/3 Eduardo Bonelli LIFIA (Fac. de Informática, UNLP, Arg.) and CONICET eduardo@lifia.info.unlp.edu.ar

More information