Abstract Rewriting a = the Set of Nite Sequences Over ,

Total Page:16

File Type:pdf, Size:1020Kb

Abstract Rewriting a = the Set of Nite Sequences Over , Formal denition of rewriting Given a set of objects A, an (abstract) rewriting system is a relation A A. R ⊆ × Example : Abstract Rewriting A = the set of nite sequences over , , . {◦ • •} ◦ • →1 • ◦ Rewriting system = 2 R • • → • • • ◦ →3 ◦ • 2 Closure notions An -rewrite sequence has the form R s = s0 s1 ... sn = t (for n 0). →R →R →R ≥ s + t is the transitive closure of . → →R = Ris the reexive closure. Example of -rewrite sequence R →R ∗ is the reexive transitive closure of . →R →R is the symmetrique closure. ↔R ∗ is the reexive, symetrique and transitive closure. ↔R 3 4 ◦ • • ◦ • • ◦ • • ↓ • ◦ • ◦ • • ◦ • • More basic vocabulary ↓ A term t is -reducible i there exists s s.t. t s. • ◦ • • ◦ • ◦ • • R →R A term t is in -normal form i it is no -reducible. ↓ R R A term s is a -normal form of t i t s and s is in R →∗ • ◦ • • ◦ • ◦ • • -normal form. R R ↓ • • ◦ • ◦ • ◦ • • ↓∗ • • • ◦ ◦ ◦ • • • 5 6 Same meaning for equivalent terms Dierent meaning for equivalent terms Given again is Church-Rosser i f(x, x) c R → = a b R u ∗ v → f(x, b) d ↔R → ∗R ∗R we can compute from the same term f(a, a) two dierent results c ↘ ↙ and d. s 7 8 Conuence notions Conuence diagrams is conuent i R A diagram like : t ∗ u →R t 1 u ↓∗R ↓∗R R v ∗ s →R R2 R3 v 4 s is locally conuent i R R reads : t u →R for all t, u, v such that t 1 u and t 2 v, R R ↓R ↓∗R there exist such that and . s u 3 s v 4 s v ∗ s R R →R 9 10 is strongly conuent i R t u →R ↓R ↓∗R v = s →R Equivalent notions has the diamond property i R Theorem : is Church-Rosser i is conuent. R R t u →R ↓R ↓R v s →R This is a particular case of strongly conuence. 11 12 Not equivalent notions Termination notions The following system [Curry] : The element s is -weakly normalising (WN) i s has at least R c a one normal form. → c d The element s is - strongly normalising (SN) i there is no = → R innite sequence i every -reduction R d c s = s0 s1 ... →R →R R → sequence starting at is nite. We note . d b s s SN → ∈ S The system is weakly normalising (WN) i every element is R is locally conuent but not conuent : WN. The system terminates or is strongly normalising (SN) or R noetherien or well-founded (WF) i every element is SN. a c ∗ b s ← → 13 14 Weak vs strong normalisation Convergent Systems Dénition : The system is convergent i it is conuent and f(a) c R = → strongly normalising. R f(x) f(a) → The system is weakly normalising but not strongly normalising : Remarque : f(b) f(a) c If is conuent, then every element has at most a normal form. R → → If is convergent, then every element has one and only one R normal form. In this case, we use the functional notation (t) to f(b) f(a) f(a) ... R → → denote the -normal form of t. R 15 16 Conuence from local conuence Important remark Lemma : (Newmann) Let be a SN system. Then is The following (innite) system on natural numbers : R R locally conuent i is conuent. 2.n 2.n + 1 R → Proof. (By Huet) By well-founded induction on s SN. 2.n a ∈ = → R 2.m + 1 2.m + 2 s t′ ∗ t → → → t′ < s 2.m + 1 b LC → ↓ u <↓∗ s ↓∗ ′ u′ ∗ v I.H. is locally conuent but not conuent : a 0 b → ↓∗ ← →∗ I.H. In fact it is not SN ↓∗ ↓∗ ↓∗ u ∗ p ∗ p′ → → 0 1 2 3 ... → → → → 17 18.
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]