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

Size: px
Start display at page:

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

Transcription

1 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 de nvestigaciones Cientcas Abstract n this article we propose an extension of term rewriting techniques to automate the deduction in monotone pre-order theories. To prove an inclusion a b from a given set of them, we generate from, using a completion procedure, a bi-rewrite system h; i, that is, a pair of rewrite relations! and!, and seek a common term c such that a! c and b! c. Each component of the bi-rewrite system! and! is allowed to be a subset of the corresponding inclusion relation or dened by the theory of. n order to assure the decidability and completeness of such proof procedure we study the termination and commutation of! and!. The proof of the commutation property is based on a critical pair lemma, using an extended denition of critical pair. We also extend the existing techniques of rewriting modulo equalities to bi-rewriting modulo a set of inclusions. Although we center our attention on the completion process a la Knuth-Bendix, the same notion of extended critical pair is suitable of being applied to the so called unfailing completion procedures. The completion process is illustrated by means of an example corresponding to the theory of the union operator. We show that conuence of extended critical pairs may be ensured adding rule schemes. Such rule schemes contain variables denoting schemes of expressions, instead of expressions. We propose the use of the linear second-order typed -calculus to codify these expression schemes. Although the general second-order unication problem is only semi-decidable, the second-order unication problems we need to solve during the completion process are decidable. 1 ntroduction ewrite systems are usually associated with rewriting on equivalence classes of terms, dened by a set of equations. However term rewriting techniques may be used to compute other relations than congruence. Particularly interesting are non-symmetric relations like pre-orders. n this article we will show the applicability of rewrite techniques to monotonic pre-order relations on terms, that is the deduction of inequalities here we call them inclusions from a given set of them. This work was partially supported by the project DSCO (TC C02-01) funded by the CCYT. 1

2 The idea of applying rewrite techniques to the deduction of inclusions between terms, like a b, is very simple. We compute by repeatedly replacing both 1) subterms of a by \bigger" terms using the axioms and 2) subterms of b by \smaller" terms using the same axioms until a path is found between a and b. Evidently there are many paths starting from a in the direction! and from b in the direction! (see gure 1). Many of them are blind alleys and others are not terminating. t is essential that the search procedure avoids innite sequences of rewrite steps with innitely many dierent terms (innite paths due to cycles can be avoided if we control the introduction of repeated terms). Obviously innitely many dierent rewrite steps would prevent the termination of the procedure. The solution to non-termination is, like in term rewriting systems, to orient the axioms using a well founded ordering on terms. Because the relation is non-symmetric, the orientation results in a pair of rewrite systems h ; i, i.e. we get what we call a bi-rewrite system. We introduce the denitions of Church-osser and quasi-terminating bi-rewrite system in order to assure the soundness, completeness and termination of the search procedure. That is, given a set of axioms, if we can orient and complete them obtaining a quasi-terminating and Church-osser bi-rewrite system, then we will have a decision algorithm to test a b. a (a [ b) [ a b [ a a [ (a (b [ a) [ a -b [ (a [ J] J J a HY H a a [ (b [ H (a [ a) [ [ (b [ c) b J c b [ c 8 < X [ Y! Y [ X = (X [ Y ) [ Z! X [ (Y [ Z) a [ c : X [ X! X = X [ Y! X [ Y! X Y Figure 1: A graphical representation of the bi-rewrite algorithm Most of the notions of rewriting developed for the equational case can be extended to birewriting and the development of the article follows the same pattern as equational rewriting: the Church-osser property is proved by means of a critical pair lemma, and we use a completion process to ensure the conuence of the critical pairs (Knuth and Bendix, 1970; Huet, 1980; Klop, 1987; Dershowitz and Jouannaud, 1990). However there are also some dierences. Equational rewriting is in essence a theory of normal forms, while bi-rewriting disregards this notion. Bi-rewriting can also be seen as a generalization of equational rewriting: equations can be translated to pairs of inclusions and then we can reproduce the equational case. One of the costs of this generalization is that bi-rewriting is based on a search procedure, which is avoided in canonical rewrite systems thanks to the existence of unique normal forms. Another cost is that now critical pairs must be computed considering variable overlapping, producing possibly innitely many of them, which are represented as critical pair schemes. This article proceeds as follows. n section 2 we present a version of the critical pair lemma for bi-rewrite systems using 2

3 an extended denition of critical pairs. We also give a counter-example that invalidates this lemma stated only in terms of standard critical pairs. n section 3 we generalize the results of section 2 to bi-rewrite systems modulo a set of (non-orientable) inclusions. We have divided this section in two subsections, the rst devoted to abstract bi-rewrite properties and the second to term dependent properties. n section 4 we present an example of canonical bi-rewrite system for the theory of nondistributive lattices. We show that although in general extended critical pairs could be intractable, there exist for this theory, and possibly for others, practical ways to handle them. We also show in section 5 some of the disadvantages of using equations to model inclusions in lattice theories. Unfortunately, the set of extended critical pairs is in general innite. Although there exists canonical bi-rewrite systems for many inclusion theories, the standard completion procedures are of little practical help to automatically complete a bi-rewrite system. n section 6 we show how these innitely many extended critical pairs can be made conuent introducing rule schemes, where these rule schemes can be implemented using second-order rules. However, the use of the simply typed second-order -calculus for rewriting purposes introduces some problems, stated in subsection 6.1. Because of that, we dene a restricted second-order language called linear second-order -calculus, which is described in section 7. There we also describe a unication procedure for the linear second-order typed -calculus. Then the new critical pair lemma for second-order bi-rewrite systems is proved in section 8. We illustrate how the Knuth-Bendix completion procedure could be implemented for second-order bi-rewrite systems by means of an example in section 9. n section 10 we present related work and in section 11 we conclude summarizing present and further work. 2 nclusions and Bi-rewrite Systems f nothing is said, we follow the notation and the standard denitions used in (Huet, 1980; Klop, 1987; Dershowitz and Jouannaud, 1990). We are concerned with rst-order terms T (F; X ) over a nonempty signature F = S n2nf n of function symbols, and a denumerable set X of variables. 1 The set of variables of a term t is denoted by FV(t). A position p is a sequence of positive integers. Given two positions, p 1 p 2 denotes their concatenation. We write p 1 p 2 when p 1 is a prex of p 2 and p 1 jp 2 when they are disjoint. The occurrence of a subexpression at a position p of a term t is denoted by tj p. The expression t[u] p denotes the result of replacing in t the occurrence of tj p by u. A context F [] p is an expression with a hole [] at a distinguished position p. 2 A substitution = [X 1 7! t 1 ; : : :; X n 7! t n ] is a mapping from a nite set fx 1 ; : : :; X n g X of variables to T (F; X ), extended as a morphism to T (F; X )! T (F; X ). The set Dom() def = fx 1 ; : : :; X n g is called the domain of the substitution. 1 As we will see later, in most cases we also require the niteness of F. We suppose that F n are disjoint sets. The set T (F; X ) is dened as the smallest set containing X such that if f 2 F n and t i 2 T (F; X ) for i = 1; : : : ; n then f(t 1; : : : ; t n) 2 T (F; X ). 2 We write p 1 p 2 when there exists a sequence q such that p 2 = p 1 q, and p 1jp 2 when p 1 6 p 2 def and p 2 6 p 1. f p is an empty sequence then tj p is dened by tj <> = t otherwise it is dened inductively by f(t 1; : : : ; t n)j <i1 ;i 2 ;:::;ir> = t i1 j <i2 ;:::;ir>. f p is the empty sequence then t[u] <> = u, otherwise def def f(t 1; : : : ; t n)[u] <i1 ;:::;im> def = f(t 1; : : : ; t i1 [u] <i2 ;:::;im>; : : : ; t n). 3

4 We use the relational logic notation (dekogel, 1992; Baumer, 1992) to present the abstract bi-rewriting properties. The inverse of the relation is denoted by?1, its reexive-transitive closure by, the transitive composition by 1 2, the union by 1 [ 2, and the intersection by 1 \ 2. Notation + is a shorthand for. A relation is said to be terminating if + is a well-founded ordering, quasi-terminating if the set fu j t ug is nite for any value t; and nitely branching if fu j t ug is nite for any t. A binary relation on terms is said to be closed under substitutions if t u implies (t) (u), for any substitution and pair of terms t and u; monotonic if t u implies F [t] p F [u] p, for any context F [] p ; and a rewrite relation if it is closed under substitutions and monotonic. We denote by! the rewrite relation dened by the set of rules. 3 Notation is a shorthand for (! )?1. An inclusion is a pair of terms s; t 2 T (F; X ) written s t. Given a nite set of inclusions Ax and a pair of terms s and t, we say that s Ax t i Ax `POL s t, where POL stands for Partial Order Logic and `POL is the entailment relation dened by the following inference rules `POL s t `POL t u ; s t `POL s t `POL s s `POL s u `POL s t `POL (s) (t) `POL s t `POL u[s] p u[t] p where is a substitution, p a position in u, i.e. u[] p is a context, and is a nite set of inclusions. Meseguer (1990,1992) has studied widely the logic of conditional inequalities, which he names rewriting logic, and its models. The set of inclusions s t that can be inferred from Ax using `POL forms an inclusion theory, noted by T h(ax). Notice that, in rst-order logic, T h(ax) is a denumerable set and the deduction problem Ax `POL s t is semi-decidable. n the following we will propose sucient conditions to have a decision algorithm for Ax `POL s t based on rewrite techniques. Given an inclusion s t of Ax, we can orient it obtaining either a term rewriting rule s! t or a rule t! s. Thus, the orientation, for rewriting purposes, of a nite set of inclusions Ax results in two sets of rewrite rules, with rules like s! t and with rules like s! t. The pair h ; i is called a bi-rewrite system. Denition 1 A (term) bi-rewriting system is a pair h ; i of nite sets of (term) rewriting rules = fs 1! t 1 ; : : :; s n! t n g = fu 1! v 1 ; : : :; u m! v m g Given a bi-rewrite system h ; i, its corresponding inclusion theory is dened by the set of axioms Ax = fs t j s! t 2 _ t! s 2 g. The orientation criteria is based, like in rewrite systems, on a well-founded ordering on terms (noted as ) (Dershowitz, 1987). n this section we suppose that each inclusion s t in Ax may be oriented, putting either s! t in if s t, or t! s in if t s. n the next section we will consider the case of inclusions which can not be oriented because s 6 t and t 6 s. For example, inclusions dening the inclusion theory of the union may be oriented using a simplication ordering as it is shown in gure 2. 3 The minimal rewrite relation satisfying s! t for any rule s! t 2. 4

5 8 >< Ax = >: X [ X X X X [ Y Y X [ Y n = = ( r 1 : X [ X! X r 2 : X [ Y! X r 3 : X [ Y! Y Figure 2: Orientation of the inclusion theory of the union. Given a bi-rewrite system h ; i the monotonic and substitution closure of each one of its components and results in a pair of rewrite relations, noted by! and! respectively, dened as follows. Denition 2 We say that s -rewrites to t, written s! [p;;l!r] t, or simply s! t when there is no confusion, if there exist a rule l! r 2, a position p in s, and a substitution, such that sj p = (l) and t = s[(r)] p. f sj p = (l) then we say that sj p and l match. Notice that if FV(r) FV(l) then the substitution in the previous denition, with its domain restricted to Dom() FV(l), is unique. A variant of the theorem of Birkho (Birkho, 1935) allows to prove the following lemma. Lemma 3 Given a bi-rewrite system h ; i and its corresponding inclusion theory Ax, for any pair of terms s, t we have s (! ) t if, and only if, Ax `POL s t. [ However, the relation (! [ ) is in general not computable, i.e. given two terms s and t there does not exist a decision algorithm for s (! [ ) t. We are interested in reducing the previous relation into the subrelation!, which we will show is computable. Based on the bi-rewrite system h ; i a deduction procedure for its corresponding inclusion theory T h(ax) can be easily dened (see gure 1). To prove Ax `POL s t the procedure enumerates recursively the nodes of two trees T 1 and T 2, dened by roott 1 = s, roott 2 = t, brancht 1 (s 1 ) = fs 2 j s 1! s 2 g and brancht 2 (t 1 ) = ft 2 j t 1! t 2 g, avoiding repeated nodes. f the procedure nds a common node in both trees then it stops and answers true, otherwise if both sets of nodes are nite then it stops and answers false or else it does not stop. Notice that the nodes of both trees are always recursively enumerable, although the trees may be innitely branching. We say that a tree is innitely branching if it contains a node with innitely many branches. The following denition states sucient conditions for the soundness and completeness, and for the termination of this procedure. Notice that the soundness and completeness properties are based on the equivalence of the relation! computed by the algorithm and the relation (! [ ) implementing the inclusion relation dened by the theory. The termination property is based on the niteness of both search trees. Denition 4 A bi-rewrite system h ; i is said to be (i). terminating i (! [! ) is a well-founded ordering; 5

6 (ii). quasi-terminating or globally nite i the sets fu j t! both nite for any term t; and (iii). Church-osser i (! [ )!. ug and fv j t! vg are n previous versions of this work (Levy and Agust, 1993; Levy, 1994), a bi-rewrite system h ; i is said to be terminating i both! and! are well-founded orderings. This is a weaker condition and clearly it is not enough to prove later the equivalence between the Church-osser and the local bi-conuence properties. This error was communicated to the authors by Professor Harald Ganzinger. We can prove the following results for the decision procedure based on a bi-rewrite system, and the Ax `POL t u deduction problem of its corresponding inclusion theory. Lemma 5 f the bi-rewrite system h ; i is Church-osser then the decision procedure based on it is sound and complete, i.e. Ax `POL t u holds if, and only if, the procedure terminates and answers true. f the bi-rewrite system is Church-osser and quasi-terminating then the decision procedure is sound, complete and terminates, therefore the satisability problem is decidable. We only need to require the quasi-termination property of the bi-rewrite system which is (strictly) weaker than the termination property in order to prove the termination of the procedure; whereas in the equational case, the termination property of the rewrite system is needed to prove the termination of a procedure based on the computation of the normal form. Lemma 6 Any terminating term bi-rewriting system is quasi-terminating. Proof: f (! [! ) is terminating then both! and! are terminating, and the problem is reduced to prove that any terminating term rewrite system is quasi-terminating. First we prove that any terminating term rewriting relation is nitely branching. f! is terminating then any rewrite rule l! r in satises FV(r) FV(l). Now, to rewrite a term we have nitely many ways to select a rule l! r and a subterm tj p. Once we have xed them, if it exists, there is a unique substitution satisfying Dom() FV(l) and tj p = (l). Finally, if FV(r) FV(l), such substitution determines the result of the rewrite step. Second to prove that any nitely branching and terminating relation is quasi-terminating is a straightforward application of the Koenig's lemma. n order to test automatically the Church-osser property we extend the standard procedure used in term rewriting to bi-rewriting. So we reduce the Church-osser property to three simpler properties, namely bi-conuence (or commutativity), local bi-conuence and critical pair bi-conuence. Denition 7 A bi-rewrite system h ; i is said to be (i). bi-conuent i!! (ii). locally bi-conuent i!! A pair of terms hs; ti is said to be bi-conuent i s! t. 6

7 A variant of the Newman's lemma (Newman, 1942; Huet, 1980) proves the following result for bi-rewrite systems. f fact the statement is implied by lemma 1.2 in (Bachmair and Dershowitz, 1986a). Lemma 8 A terminating bi-rewrite system is Church-osser i it is locally bi-conuent. Proof: The only if implication is trivially proved since! (! [ ). The proof for the if implication is done by noetherian induction. We prove that property u P (t) def = 8u; v : u v 0 local t! v ) u! holds for any term t by noetherian induction, using the well-founded ordering (! [ u induc. t 0 t = induc.?? =!! ) +.? The base cases t = u or t = v satised. The induction case follows directly from the induction hypothesis P (u 0 ) and P (v 0 ) using the diagram on the left. Notice that in the previous lemma we require the union of both rewrite relations to be wellfounded, and it is not sucient if both relations are well-founded separately. The following counter-example was communicated to the authors by Professor Harald Ganzinger to show this fact. This counter-example invalidates the corresponding previous results in (Levy and Agust, 1993; Levy, 1994). The bi-rewrite system dened by = fb! c; c! dg and = fc! b; b! ag is locally bi-conuent and both rewrite relations! and! are terminating, not their union. However, the bi-rewrite system is not Church-osser. A simple adaptation of the standard critical pair denition (Knuth and Bendix, 1970) can be given for bi-rewrite systems. However, as we will see, it is not sucient to prove the critical pair lemma. This simple denition of critical pair arises from the most general non-variable overlap between the left hand side of a rule in and a sub-term of the left hand side of a rule in, (or vice versa). Given a pair of rules l! r and s! t, a position p of a non-variable subterm of s, and the most general unier of l and sj p, the pair (t) (s[r] p ) is a (standard) critical pair between and ; and similarly for critical pairs between and. Unfortunately, in the presence of non-left-linear rules, 4 the critical pair lemma stated in terms of such standard critical pairs can not be proved because the conuence of variable overlaps is no longer possible. The same fact has already been discussed in (Bachmair, 1991). Here is a simple counter-example to the validity of this lemma. Counter-example 9 The following bi-rewrite system = f(x; X)! X = a! b is terminating and has no standard critical pairs, however the divergence f(a; b) f(a; a)! a 4 A rule l! r is left- (right-) linear i any variable in l (in r) occurs at most once in l (in r). 7

8 does not satisfy the Church-osser property (the pair f(a; b) a is not bi-conuent). This problem would be avoided if a! b 2, but then the inclusion theory corresponding to the bi-rewrite system would be dierent. Non-left-linear rules also invalidate the bi-rewrite parallel of Toyama's theorem (Toyama, 1987) as the following counter-example shows. Counter-example 10 The following bi-rewrite system 8 >< = >: X [ X! X X [ Y! X [ (Y [ Z)! Y [ X (X [ Y ) [ Z = ( X [ Y! X [ Y! X Y is Church-osser and quasi-terminating, if we consider a signature containing uniquely constants and the binary union operator, i.e. F 2 = f[g and F i = ; for i 62 f0; 2g. However, if we introduce a new 1-ary symbol in the signature f 2 F 1 then we have the following divergence which is not bi-conuent. f(x) [ f(y ) f(x) [ f(x [ Y ) f(x [ Y ) [ f(x [ Y )! f(x [ Y ) This means that many properties of bi-rewrite systems depend not only on the axioms of the theory but also on the signature. Using the standard denition of critical pairs, the critical pair lemma is only true for left-linear systems: a terminating and left-linear bi-rewrite system is Church-osser i all standard critical pairs are bi-conuent. n order to keep this lemma for non-left-linear birewrite systems, we have to enlarge the set of critical pairs to be considered as follows. Denition 11 f l! r 2 and s! t 2 are two rewrite rules (with variables distinct) and p a position in s, then (i). if sj p is a non-variable subterm and is the most general unier of sj p and l then (t) (s[r] p ) is a (standard) critical pair of ECP ( ; ) (ii). if sj p = x is a repeated variable in s, F is a term not sharing variables with s! that Fj q = l, and l! r does not hold, 5 then t such t[x 7! F ] (s[x 7! F ])[r] pq is an (extended) critical pair of ECP ( ; ). Similarly for critical pairs between and, written ECP ( ; ). 5 f this condition is satised then we can make the pair resulting from the variable overlapping conuent like in the equational case. 8

9 The set of (extended) critical pairs of the previous denition is in general innite, t[x 7! F ] (s[x 7! F ])[r] pq is really a critical pair scheme because we do not impose any restriction on the context F [] q (notice that the only condition imposed to F is Fj q = l). n section 4 we will see an example where we use such kind of schemes. So the critical pair lemma even if true with this denition of critical pairs, will be of little practical help to test bi-conuence. Then the conditions of bi-conuence have to be studied in each case taking into account the particular shape of the non-left-linear rules. n section 6 we face the problem of testing bi-conuence automatically by codifying extended critical pairs using the linear second-order typed -calculus. Theorem 12 (Extended Critical Pair Lemma) A terminating bi-rewrite system h ; i is Church-osser i any (standard or extended) critical pair s t in ECP ( ; ) or s t in ECP ( ; ) is bi-conuent, i.e. it satises s! t. Proof: For the if part, see the proof of theorem 24, which states a more general result, taking = ;. For the only if part, extended critical pairs are sound deductions, therefore if s t is an extended critical pair, then s(! [ ) t holds. Now, if the bi-rewrite system is Church-osser, then s! t. This theorem, lemma 21 and theorem 24 could be considered as instances of the general critical pair theorem proved by Geser in his thesis (Geser, 1990). Nevertheless, we think it is worthy to face the critical pair problem directly for our case. The extended critical pair theorem generalizes the critical pair lemma (Knuth and Bendix, 1970) for bi-rewrite systems. However, we require the bi-conuence of not only the standard critical pairs, but also of the extended critical pairs. Nevertheless, if all rules come from the translation of an equational theory E, then any equation a = b with a b results in two bi-rewrite rules a! b in and a! b in and both bi-rewrite relations! =! are equal. Then we only obtain standard critical pairs because the condition l! r in the denition 11 of extended critical pair is always satised. So we recover the old results for the equational case. 3 Bi-rewriting Modulo a Set of nclusions Like in equational rewriting, in bi-rewriting it is not always possible to orient all inclusions of a theory presentation in two terminating rewrite relations, as was assumed in the previous section. Frequently enough, we must handle three rewrite relations, the terminating relations! and! resulting from the inclusions and oriented to the right and to the left respectively, and the non-terminating relation?! resulting from the non-oriented inclusions. Then we say to have a h ; i bi-rewrite system modulo. Although we use the word modulo, it does not mean that?! is a congruence, be aware it is a non-symmetric relation (monotonic pre-order). Figure 3 in section 4 shows an example of these bi-rewrite systems. The inverse of the relation is noted?!. The Birkho's theorem is stated then as Ax `POL t u i t (! [?! [ ) u. 9

10 3.1 From Church-osser to Local Bi-Conuence The simplest way to have a complete and decidable proof procedure based on the h ; i bi-rewrite system modulo is reducing it to the bi-rewrite system h [ ; [ i and, using the results of the previous section, requiring of it the following properties: 1. The relations! [?! and! [?! are both quasi-terminating, and 2. they satisfy the (weak) Church-osser property (! [?! [ ) (! [?! ) ( [?! However, as we have seen in the previous section the quasi-termination of! [?! and! [?! is not enough to reduce the (weak) Church-osser property to the local bi-conuence property ( [?! )(! [?! ) (! [ ) ( [?! ) using lemma 8. To do this we would need the termination of! [?! [! [?!, which of course never holds, because the relation?! [?! is cycling. The solution to this problem comes from requiring the termination of?!! [?!!. Using this termination property, the weak Church-osser property can be reduced to a local bi-conuence property. is terminating, then the following proper- Lemma 13 f the relation?! ties! [?!! (! [?! [ ) (! [?! ) ( [?!?!! (?!! )?! (?! are equivalent. ) ) (weak) Church-osser ) (weak) local bi-conuence Proof: Using the equalities (A [ B) = (A B) A = A (BA ) we prove that right hand sides of both inclusions are equal. Now?!! (! [?! [ ) shows that Church-osser implies local bi-conuence. For the converse we use (A [ B) A B, B A A B to prove the equivalence between the Church-osser property and the following one.?! (?! ) (?!! )?! (?!! )?! (?! Now, if?!! [?!! is terminating we can prove by noetherian induction that this property is equivalent to the local bi-conuence property. The base cases?! (?! ) n (?!! ) m?! with n = 0 or m = 0 trivially hold. The following diagram shows a sketch of the proof for n > 0 and m > 0.?@ A bi-conf. A - - induc.?? =?!! =?!!? - =?! ) 10

11 f?! is symmetric (?! =?! ) the above termination property becomes similar to the termination property required in rewriting modulo a set of equations (Bachmair and Dershowitz, 1989a). That is,?! symmetric means we can dene equivalence classes ([s]! [t] i s?!!?! t) and, the termination of?!! [?!! is ensured by the existence of a well-founded -compatible quasi-ordering, i.e. by the existence of a well-founded, reexive and transitive relation satisfying!,! and?! =?!, where the equivalence relation is the intersection of and and the strict ordering is the dierence of and. The quasi-termination property of?! means that each?! -class of equivalence is nite. However, like in the equational case, rewriting by?!! is inecient, and the local commutativity of?!! and?!! can not be reduced to the bi-conuence of a nite set of critical pairs. Therefore we will approximate them by two weaker, but more practical rewrite relations, named n and n respectively by similarity to the corresponding equational denitions. Notice that although we use the notation! n, it does not means that this relation is the monotonic and substitution closure of a set of rules. n the following, we prove the abstract properties of these relations. We will suppose that they satisfy:!?! n?!!!?! n?!! leaving their denition for the next subsection. We require these new rewrite relations to satisfy what we call a strong Church-osser modulo property, dened as follows. Denition 14 The bi-rewrite system h ; i modulo is (strong) Church-osser i (! [?! [ )?! n?!? The following lemma states sucient conditions to dene a search decision procedure for Ax `POL t u based on the relations n and n. Lemma 15 f the relations?! n are both computable 6 and quasi-terminating, the relation?! is decidable, and h ; i is strong Church-osser modulo, then there exists a decision procedure for the inclusion relation dened by these relations. n and?! Proof: Like in the simpler case of the previous section, given two terms s and t, the algorithm generates the sets fs 0 j s?! n s 0 g and ft 0 j t?! n t 0 g and seek for a term s 0 from the rst set and a term t 0 from the second one such that s 0?! t 0. f relations?! n and?! n satisfy the above inclusions and the Church-osser property then (! [?! [ ) =?! n?!? n. Now, it is easy to prove that the algorithm is a decision procedure for the relation?! n?!? n and Ax `POL s t is equivalent to s(! [?! [ ) t. n The solutions we propose of reducing the strong Church-osser property to a local biconuence property are inspired mainly by the solutions known for the equational case. n the following we consider how they can be adapted to bi-rewriting. 6 We say that a relation! is computable i for any term t, the set fu j t! ug is calculable. We say that a relation! is decidable i for any pair of terms t and u, it is decidable when t! u holds or not. 11

12 Huet (1980) proved that given a set of rules and equations E such that?! E! is terminating, is strong Church-osser modulo E i all peaks and clis are conuent:!!?! E and?! E!!?! E. Notice that these are sucient and, what is also important, necessary conditions. Besides, the niteness of the E-equivalence classes is not required. However, these conuence properties are too strong and can not be reduced to the conuence of critical pairs unless the rules are left-linear. To overcome this limitation for non-left-linear systems Peterson and Stickel (1981) propose the use of a new rewrite relation En satisfying!?! En?! E!. They prove that when this relation is E-compatible, that is when?! E!?! En?! E (?! E ), and terminating, then the Church-osser property becomes equivalent to the conuence of peaks of the form En??! En?! En?! E? En. They also study how a rewrite relation can be extended to obtain a E-compatible rewrite relation En when E is an associative and commutative theory. However, in this case the problem is that the set of critical pairs of the form t En? u?! En v is in general innite. Jouannaud and Kirchner (1986, theorem 5) and Kirchner (1985, theorem 4, chapter 2) generalize the Peterson and Stickel's concept of E-compatibility to coherence, and prove that when?! E! is terminating ( is E-terminating) then the following three conditions are equivalent 7 1. is En-Church-osser modulo E (! [?! E [ )?! En?! E? En 2. En is conuent and coherent modulo E En??! En?! En?! E? En?! E! En?! En?! E? En 3. En is locally conuent and locally coherent modulo E?! En?! En?! E? En?! E! En?! En?! E? En (global) peak (global) cli local peak local cli Then local conuence and coherence can be reduced to critical pair conuence and to extended rules respectively. Here we call these properties conuence of peaks and conuence of clis respectivelly, following the notation of Dershowitz and Jouannaud (1990). Jouannaud and Kirchner also notice that this result is false if we require termination of?! En instead of that for?! E!. As a counter-example 8 we can take the rewrite system = En = fb! a; a! dg with E = fa = b; b = cg. t satises local conuence properties and termination of?! En, but it is not Church-osser. However, termination of?! En is enough to prove the equivalence between Church-osser property and \global" conuence properties (see (Huet, 1980) for a similar proof). Evidently, this termination property is not enough to prove equivalence between local and global conuence properties. For our purposes, we are more interested on global conuence properties than on the local ones, therefore we use them in the following lemma. 7 They dene coherence as?! E! En! + En?! E En, however, as they notice, if is E terminating, both denitions are equivalent. 8 This counter-example is, in fact, equivalent to one given by Huet (1980). 12

13 n be two rewrite relations satisfying!?! n. f their union?! n [?! n is terminating then the following three global conuence properties Lemma 16 Let?! n and?!?!! and!?! n?!!?!?! n?! n?!? n n??!?! n?!? n 9 >= >; clis n??! n?! n?!? n peaks and the strong Church-osser property are equivalent. (! [?! [ )?! n?!? Proof: t is evident that the Church-osser property implies the three local bi-conuence properties, so we will prove the opposite implication. Such proof is based on the ideas of proof transformation and proof ordering proposed by Bachmair in his thesis (Bachmair, 1991) and in (Bachmair et al., 1986b). Given a sequence of terms hv 1 ; : : :v n i, we say that it is a proof of s t i v 1 = s, v n = t, and for any i 2 [1::n?1] we have v i?! n v i+1 or v i n? v i+1 or v i?! + v i+1. Notice that we allow to concentrate one or more?! rewrite steps in a single proof step. Evidently, t u has a proof i t(! [?! [ ) u. n the following we dene a set of transformations on the proofs of an inclusion. Given a proof transformation rule hs; t; ui ) hs; v; ui, we can use it to transform hw 1 ; s; t; u; w 2 i ) hw 1 ; s; v; u; w 2 i. To prove the termination of such transformation relation we associate a multiset S(hv 1 ; : : :; v n i) of terms to each proof hv 1 ; : : :; v n i dened as follows. S(hvi) = ; S(hv 1 ; : : :; v n i) = S(hv 1 ; : : :; v n?1 i) [ 8 >< >: n fv n?1 ; v n g if v n?1?! n v n or v n?! n v n?1 fv 2 n?1 ; ng v2 if v n?1?! + where [ denotes the multiset union operator and superscripts denote the number of occurrences of an element in a multiset. We dene a well-founded ordering on these term multisets as the multiset extension of the order relation?! + n [?! + n which we have supposed terminating. This ordering on associated multisets denes a well-founded ordering on proofs. Notice that this ordering is monotonic, i.e. if S(hs; t; ui) S(hs; v; ui), then S(hw 1 ; s; t; u; w 2 i) S(hw 1 ; s; v; u; w 2 i). This is a key point to prove that if any proof transformation rule hs; t; ui ) hs; v; ui satises S(hs; t; ui) S(hs; v; ui) then the proof transformation relation is terminating. f clis are bi-conuent, then for any cli s?! + t?! u we have n s?! n v 1 v p?1?! n v p?! w q n? w q?1 w 1? n v n u 13

14 and we can apply one of the following proof transformations rules to eliminate it hs; t; ui ) hs; v 1 ; : : :; v p ; w q ; : : :; w 1 ; ui if v p?! + w q hs; t; ui ) hs; v 1 ; : : :; v p?1 ; w q ; : : :; w 1 ; ui if s?! + n v p = w q + hs; t; ui ) hs; w q?1 ; : : :; w 1 ; ui if s = v p = w q n? hs; t; ui ) hsi if s = v p = w q = u where p; q 0, except in the second rule where p 1, and the third rule where q 1. Now, taking into account that s v 1 v p and t u w 1 w q, we can prove that the multiset associated to the left part of the rules S(hs; t; ui) = fs 2 ; t 3 ; ug is strictly greater than the multisets associated to the right part of the rules, which are respectively: S(hs; v 1 ; : : :; v p ; w q ; : : :; w 1 ; ui) = fs; v 2 1 ; : : :; v2 p ; w2 q ; w2 2 ; : : :; w2 1 ; ug [ 9 fv p ; w q g S(hs; v 1 ; : : :; v p?1 ; w q ; : : :; w 1 ; ui) = fs; v 2 1 ; : : :; v2 p?1 ; w2 q ; : : :; w2 1 ; ug S(hs; w q?1 ; : : :; w 1 ; ui) = fs; w 2 q?1 ; : : :; w2 1 ; ug S(hsi) = ; Similarly, if peaks are bi-conuent, then we can also apply the same proof transformations rule to any peak s n? t?! n u. And, taking into account that now t s v 1 v p and t u w 1 w q, we can also prove that the multiset associated to the left part of the rule, now S(hs; t; ui) = fs; t 2 ; ug is also strictly greater than the multisets associated to the corresponding right parts of the rules. Evidently, if we iterate this process, the resulting canonical (normal) proof will not contain any clis nor peaks. Therefore it will be of the form?! n?!? n. The process can not be applied innitely, because the transformation relation is terminating. We conclude that if s t has a proof, then it has a canonical proof of the form s?! n?!? n t. Therefore, the Church-osser property holds for these rewrite relations. Now, the logical process would be to reduce the bi-conuence of peaks of the form n??! n to the bi-conuence of peaks of the form n?! or?! n, as Jouannaud and Kirchner did for the equational case. However, as the following counterexample shows, not any denition of?! n satisfying!?! n?!! permits such reduction, unless we require termination of (?! [?! ) (! [! ). Counter-example 17 Consider the rewrite relations dened by the following sets of rules. = fa 1?! b; b?! a 2 g = fa 1! b; a 2! c c 2 g 1 a 1 - b - a 2 - c 2 = fa 2! b; a 1! c 1 g def def f we dene?! n =! [?!! and?! n =! [?!!, we will obtain two rewrite relations such that?! n [?! n is terminating and the properties!?! n?!! hold. However, although any peak of the form n?! or?! n and any cli is bi-conuent, there is a peak c 1 n? b?! n c 2 which is not bi-conuent. Notice that in this counter-example?!! [?!! is also terminating, not so (?! [?! ) (! [! ). cases. 9 Notice that in this case we can have s = v p, u = w q or both together. With such union we capture four u 14

15 emark 18 The reader may prove that, when (?! [?! ) (! [! ) is terminating, then (strong) Church-osser property and \local" conuence properties are equivalent. This result is closer to the theorem proved by Jouannaud and Kirchner (1986, theorem 5), and its proof is left to the reader. Alternately, if we only require the termination of?! n [?! n, then the method of rule extensions and the concrete denition of the relation?! n ensures that, if inclusions in are linear, then?! and?! n commute, i.e.?!?! n?! n?!. This property is stronger than the conuence of clis, and permits the desired reduction. However, such method takes into account the structure of terms, so we will describe it in the next subsection. 3.2 From Local Bi-Conuence to (Extended) Critical Pairs Till now, we have studied Church-osser, termination and bi-conuence properties in the framework of relational algebra (Baumer, 1992). All proofs were done without any reference to the structure of terms. n the following, we will consider the term structure in order to reduce the bi-conuence properties to the bi-conuence of critical pairs and rule extensions. We begin dening the rewrite relations n and n that were only axiomatically characterized by!?! n?!! in the previous subsection. The choice of such denition is motivated, as in the equational case, by the fact that local bi-conuence of peaks?! n and n?! can be reduced to the bi-conuence of a selected set of critical pairs. t, i there (l) n [p;;l!r] t when we want to make explicit the position, Denition 19 We say that s -rewrites to t modulo, written s?! n exists a rule l! r in, an occurrence p in s, and a substitution such that sj p?! and t = s[(r)] p. We write s?! substitution and rule involved in the rewrite step. Similarly for s -rewrites to t modulo, written s?! n t. With this denition?! n really veries!?! n?!! although in general?!! 6?! n. Notice that in a?! n rewrite step, the?! rewrite steps take place bellow the! rewrite step. We say that the! rewrite step covers such?! rewrite steps. We will use the notions of E-matching and E-unication from (Peterson and Stickel, 1981) but adapted to bi-rewriting. Given two terms s and t, we say that s -matches t i there exists a substitution such that s?! (t), and s?1 -matches t i there exists a substitution such that s?! (t). We say that s -unies with t i there exists a substitution such that (s)?! (t). Notice that, since?! is not necessarily symmetric, -matching and?1 -matching are in general dierent non-symmetric relations, and -unication also is a non-symmetric relation. We will suppose in the following that -unication and and?1 - matching are decidable. We have to be careful dening minimum uniers since denition of critical pairs is based on them. Given two terms s and t, we say that M is a complete set of minimum uniers i for any -unier of s and t, there exists a minimum unier 2 M and a substitution such that (x)(?! \?! )((x)) for any x 2 Dom(). We will suppose in the following that a nite and complete set of minimum uniers exists for our relation?!. As in the equational case (to prove bi-conuence of clis or E-compatibility), we will prove the commutativity properties by means of the rule extension and the extensionally closed property dened as follows. 15

16 Denition 20 Given an inclusion l r in, and a rule s! s, being a minimum unier, and rj p is neither a variable nor equal to r, then we say that (l)! (r[t] p ) is a right--extended rule of. t in, if rj p -unies with Given a set of rules and inclusions, is said to be right--extensionally closed n?! r. i any right--extended rule l! r of satises l?! We dene left--extended rule and left--extensionally closed similarly changing by and \rj p -unies with s" by \s -unies with rj p ". Notice that in the previous denition, to consider a bi-rewrite system extensionally closed, we require any rule extension l! r to satisfy l?! n?! r. t is not enough to require the pair l r to be bi-conuent. Since?! may be non-symmetric, we have had to distinguish between right- and leftextensionality in the previous denition. We will use a completion procedure to ensure that the nal bi-rewrite system satises that is right--extensionally closed, and that is left--extensionally closed. The following lemma states that, if all inclusions in are linear, then the extensionally closed property ensures the commutativity of?! and?! n. Notice that this property is stronger than the bi-conuence of clis required in the previous subsection. Lemma 21 (Critical Cli Lemma) f all inclusions in are linear, and is right- -extensionally closed, then?! and?! n commute, i.e. they satisfy?!?! n?!. Moreover, we also have?! Similarly for?!?! n?! n?! [?! and?! n. if the later is left--extensionally closed.?! Proof: The conclusion of the lemma is equivalent to?!?! n?! n?! [?!. Suppose that a?! [p1 ;;st] b?! n [p2 ;;l!r] c where p 1 and p 2 are positions, is a substitution (assume that FV(t) \ FV(l) = ;), s t is an inclusion of and l! r a rule of. We have to consider the following four cases. case p 1 jp 2 n f p 1 and p 2 are disjoint occurrences then both rewrite steps trivially commute. case p 1 p 2 Let v satisfy p 2 = p 1 v. We have (t)j v?! (l). There are two possibilities: variable overlapping There exist two occurrences v 1 and v 2 satisfying p 1 v 1 v 2 = p 2 and being tj v1 = x a variable. f all inclusions in are right-linear then tj v1 is the only occurrence of x in t, moreover if all inclusions are left-linear then x occurs at most once in s. Let v 0 1 be this occurrence of x in s, if there is one. First, we have aj p1 v 0 1 v 2?! (l) and therefore a?! n [p1 v 0 1 v a[(r)] 2;;l!r] p1 v 0 1 v. Second, 2 we prove that a[(r)]?! p1 v 0 1 v 2 [p 1 ; 0 ;st] c where 0 is dened as 0 (y) = (y) for any y 6= x, and 0 (x) = (x)[(r)] v2. Otherwise, if x does not occur in s then we have a?! [p1 ; 0 ;st]; c, where 0 is dened as above. Notice that it is in this case, with variable overlapping, when we have to require both left- and right-linearity of s t. 16

17 strict overlapping f v is a position in t, and tj v is not a variable, we are in the conditions of denition 20, i.e. tj v -unies with l being a minimum unier, and we can generate an extensional rule l 0! r 0 def = (s)! (t[r] v ) between s t and l! r. Now, using our concrete denition of minimum -unier, a variant of the E-critical pair lemma (Jouannaud, 1983) ensures that aj p1 (?! \?! )(l 0 ) and cj p1 (?! \?! )(r 0 ) where =. n particular, we have aj p1?! (l 0 ) and (r 0 )?! cj p1. n the equational case (Jouannaud and Kirchner, 1986) we would need to require the termination of the subterm relation modulo. However, the stronger condition required in the denition of extensional closure allows us to disregard this requirement. f is -extensionally closed, then l 0?! n?! r 0. The aj p1?! (l 0 ) rewrite steps are \covered" by the?! n rewrite step, obtaining aj p1?! n?! (r 0 )?! cj p1. Notice that the proof aj p1?! n?! (r 0 )?! cj p1 is normal, whereas if we only require extended rules to be bi-conuent, we would obtain aj p1?! n?!? n (r 0 )?! cj p1. The later of course is not a normal proof and we would need to require the well-foundness of the strict subterm modulo relation to prove that it is smaller than the original proof. case p 1 p 2 The a?! b rewrite step is covered by the?! n rewrite step. Let v be the occurrence such that p 2 v = p 1. We prove aj p2?! [v;;st] bj p2, so aj p2?! bj p2?! (l) and we have a?! n [p2 ;;l!r] c. Notice that like in (Peterson and Stickel, 1981), and dierently from (Jouannaud and Kirchner, 1986), the inclusions in are required to be (both left- and right-) linear. However, thanks to the stronger condition required to extended rules, we can disregard the well-founded condition on the strict subterm modulo relation. emark 22 The attentive reader will notice that our assumptions dier from those assumed in the equational case by Jouannaud and Kirchner (1986). Everywhere we have tried to require the weakest termination condition. Another option, similar to the one developed by Struth (1996), 10 starts from requiring the termination of the strict subterm relation modulo?! [?! and the termination of the relation (?! [?! ) (! [! ), (notice that these conditions are stronger than the termination of?! n [?! n assumed in this paper). They would allow us to relax the condition on extended rules l r, requiring them to be bi-conuence l?! n?!? n r instead of l?! n?! r. Moreover, if we also applied the notion of extended critical pair to extended critical cli, requiring them to be bi-conuent, then we could drop the requirement on the linearity of the inclusions dening?!. These assumptions would also allow us to reproduce the classical results when any inclusion comes from an equality, and we have?! =?! and! =!. The reader is invited to reproduce the proofs of Jouannaud and Kirchner (1986) for bi-rewrite systems. 10 Struth (1996) requires the termination of?!!?! [?!!?!, which is a weaker condition than the termination of (?! [?! ) (! [! ). However, then he has to use a condition for the local peaks and clis stronger than bi-conuence. 17

18 The conclusion of the critical cli lemma, not only ensures the bi-conuence of clis, but also allows to reduce the bi-conuence of peaks of the form n??! n to the conuence of the peaks of the form?! n or n?! using the following sequence of inclusions n??! n?!?! n : : : (?! n?! [?! ) if clis commute?! n?!? n?! if peaks are bi-conuent?! n?!? if clis commute n For the bi-conuence of peaks we use a denition of (extended) critical pairs similar to the one introduced in the previous section. Denition 23 f l! r 2 and s! t 2 are two rewrite rules normalized apart, and p is a position in s, then (i). if sj p is not a variable and sj p -unies with l being the minimum -unier, then (t) (s[r] p ) is a (standard) critical pair of ECP (n ; ) (ii). if sj p = x is a repeated variable in s, F is a term not sharing variables with s! that Fj q?! (l) for some, and l?! n?! r does not hold, then t such t[x 7! F ] (s[x 7! F ])[(r)] pq is an (extended) critical pair of ECP (n ; ). Moreover, if?! is symmetric, then we can restrict extended critical pairs to those which satisfy Fj q = l, like in denition 11. The set ECP (n ; ) can be dened similarly. Again we have had to introduce critical pair schemes which may generate innitely many critical pairs. Unlike denition 11 of previous section, here, if?! is non-symmetric, then the whole term F is undetermined, not only the context F [] q. The only restriction on Fj q is Fj q?! (l) for some substitution. Using this extended denition of critical pairs and the denition of extensionally closed bi-rewrite system we can prove the following theorem which characterizes the strong Church- osser property of a h ; i bi-rewrite system modulo. Theorem 24 (Critical Pair Theorem) Given two sets of rules and and a set of inclusions, if?! n [?! n is terminating,?! n is right--extensionally closed,?! n is left--extensionally closed, all inclusions in are linear, and all standard and extended critical pairs ECP (n ; ) and ECP ( ; n ) are bi-conuent, then h ; i is (strongly) Church-osser modulo. Proof: We use lemma 16 of previous sub-section to prove the Church-osser property. We are in the conditions of lemma 21, therefore we can suppose that clis commute. As we 18

19 have commented, this condition is stronger than the bi-conuence of global clis required by lemma 16. Let's concentrate on the bi-conuence of global peaks. Assume that a n? [p 1 ;;s!t] b?! n [p 2 ;;l!r] c f p 1 jp 2, as in the commutativity case, both rewrite steps trivially commute and we can reduce a and c to the same term b[(t)] p1 [(r)] p2 = b[(r)] p2 [(t)] p1. Otherwise, we can suppose, without lose of generality that p 1 p 2. We have: a? [p 1 ;;s!t] a 0?! b?! n [p 2 ;;l!r] c where all the?! rewrite steps between a 0 and b takes place bellow the position p 1 (notice that they are covered by the?! n rewrite step). Now, lemma 21 allow us to commute these?! steps and the?! step. We will have either or n a? [p 1 ;;s!t] a 0?! a? [p 1 ;;s!t] a 0?! n [p 0 2 ;;l!r] c 0?! where p 0 is a position bellow or equal to 2 p 1 (notice that the original steps were all them bellow p 1, therefore, after commuting them, the resulting steps will also be bellow p 1 ). Taking into account that we can also commute?! steps and?! n steps, we only have to prove that local peaks of the form: c t 1? [p 1 ;;s!t] t 2?! n [p 2 ;;l!r] t 3 where p 1 p 2, are bi-conuent. Let v be the occurrence such that p 2 = p 1 v. There are three possibilities: Strict overlapping Position v is a non-variable occurrence of s. This case works as case strict overlapping in the proof of critical cli lemma 21. That is, there exists a standard critical pair l 0 r 0, obtained -unifying sj v and l, such that t 1 j p1?! (l 0 ) and (r 0 )?! t 3 j p1. f standard critical pairs are conuent then (l 0 )?! n?!? n (r 0 ). Finally, if lemma 21 holds, then pair t 1 t 3 is bi-conuent. Non-repeated variable overlapping Subterm sj v is a or is bellow a non-repeated variable, i.e. there exist two positions such that v = v 1 v 2 and sj v1 = x is a non-repeated variable of s. This case works similarly to case variable overlapping of lemma 21. That is, we can rewrite t 1 and t 3 into a common term in the following way. We apply the rewrite step (x) =?! n [v 2 ;;l!r] (x)[(r)] v2 to any occurrence of x in t, i.e. to some sub-terms (x) of t 1. On the other side, we apply the rule s! t to the position p 1 of t 3, but using the substitution 0 dened as 0 (y) = (y) for any y 6= x and 0 (x) = (x)[(r)] v2 instead of. t can be proved that in both cases we obtain the same result. epeated variable overlapping Subterm sj v is a or is below a repeated variable x of s, i.e. there exists a pair of positions v 1 v 2 = v such that sj v1 is a repeated variable x of s. c 19

Bi-rewriting, a Term Rewriting Technique for. and

Bi-rewriting, a Term Rewriting Technique for.   and Bi-rewriting, a Term Rewriting Technique for Monotonic Order Relations? Jordi Levy and Jaume Agust Institut d'investigacio en Intelligencia Articial (CSIC) Cam Sta. Barbara s/n, 17300 Blanes, Girona, Spain.

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

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

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

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

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

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

On the Word Problem for Free Lattices Georg Struth Max-Planck-Institut fur Informatik Im Stadtwald D Saarbrucken, Germany A

On the Word Problem for Free Lattices Georg Struth Max-Planck-Institut fur Informatik Im Stadtwald D Saarbrucken, Germany A 1 On the Word Problem for Free Lattices Georg Struth Max-Planck-Institut fur Informatik Im Stadtwald D-66123 Saarbrucken, Germany struth@mpi-sb.mpg.de Abstract. We prove completeness of a rewrite-based

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

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

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

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

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

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

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

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

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

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

The Inclusion Exclusion Principle and Its More General Version

The Inclusion Exclusion Principle and Its More General Version The Inclusion Exclusion Principle and Its More General Version Stewart Weiss June 28, 2009 1 Introduction The Inclusion-Exclusion Principle is typically seen in the context of combinatorics or probability

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

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

Hierarchic Superposition: Completeness without Compactness

Hierarchic Superposition: Completeness without Compactness Hierarchic Superposition: Completeness without Compactness Peter Baumgartner 1 and Uwe Waldmann 2 1 NICTA and Australian National University, Canberra, Australia Peter.Baumgartner@nicta.com.au 2 MPI für

More information

Logic Part I: Classical Logic and Its Semantics

Logic Part I: Classical Logic and Its Semantics Logic Part I: Classical Logic and Its Semantics Max Schäfer Formosan Summer School on Logic, Language, and Computation 2007 July 2, 2007 1 / 51 Principles of Classical Logic classical logic seeks to model

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

Hierarchy among Automata on Linear Orderings

Hierarchy among Automata on Linear Orderings Hierarchy among Automata on Linear Orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 Abstract In a preceding paper, automata and rational

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

Computability and Complexity

Computability and Complexity Computability and Complexity Non-determinism, Regular Expressions CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard

More information

Proof Techniques (Review of Math 271)

Proof Techniques (Review of Math 271) Chapter 2 Proof Techniques (Review of Math 271) 2.1 Overview This chapter reviews proof techniques that were probably introduced in Math 271 and that may also have been used in a different way in Phil

More information

Herbrand Theorem, Equality, and Compactness

Herbrand Theorem, Equality, and Compactness CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order

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

Recursive definitions on surreal numbers

Recursive definitions on surreal numbers Recursive definitions on surreal numbers Antongiulio Fornasiero 19th July 2005 Abstract Let No be Conway s class of surreal numbers. I will make explicit the notion of a function f on No recursively defined

More information

set inclusions. They applied rewrite techniques to inclusional theories [25] and generalized the notions of Church-Rosser and termination of rewrite s

set inclusions. They applied rewrite techniques to inclusional theories [25] and generalized the notions of Church-Rosser and termination of rewrite s Electronic Notes in Theoretical Computer Science 4 (1996 Bi-rewriting Rewriting Logic? W. Marco Schorlemmer Institut d'investigacio en Intelligencia Articial Consell Superior d'investigacions Cientques

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

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

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

Spurious Chaotic Solutions of Dierential. Equations. Sigitas Keras. September Department of Applied Mathematics and Theoretical Physics

Spurious Chaotic Solutions of Dierential. Equations. Sigitas Keras. September Department of Applied Mathematics and Theoretical Physics UNIVERSITY OF CAMBRIDGE Numerical Analysis Reports Spurious Chaotic Solutions of Dierential Equations Sigitas Keras DAMTP 994/NA6 September 994 Department of Applied Mathematics and Theoretical Physics

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

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

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More 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

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

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

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s 1 THE LARGEST FIRST-ORDER-AXIOMATIZALE CARTESIAN CLOSED CATEGORY OF DOMAINS 1 June 1986 Carl A. Gunter Cambridge University Computer Laboratory, Cambridge C2 3QG, England Introduction The inspiration for

More information

Modal and temporal logic

Modal and temporal logic Modal and temporal logic N. Bezhanishvili I. Hodkinson C. Kupke Imperial College London 1 / 83 Overview Part II 1 Soundness and completeness. Canonical models. 3 lectures. 2 Finite model property. Filtrations.

More information

Fundamenta Informaticae 30 (1997) 23{41 1. Petri Nets, Commutative Context-Free Grammars,

Fundamenta Informaticae 30 (1997) 23{41 1. Petri Nets, Commutative Context-Free Grammars, Fundamenta Informaticae 30 (1997) 23{41 1 IOS Press Petri Nets, Commutative Context-Free Grammars, and Basic Parallel Processes Javier Esparza Institut fur Informatik Technische Universitat Munchen Munchen,

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

The Relation Between. Second-Order Unication and. Simultaneous Rigid E-Unication. Margus Veanes. MPI{I{98{2-005 February 1998

The Relation Between. Second-Order Unication and. Simultaneous Rigid E-Unication. Margus Veanes. MPI{I{98{2-005 February 1998 '$'$ I N F O R M A T I K The Relation Between Second-Order Unication and Simultaneous Rigid E-Unication Margus Veanes MPI{I{98{2-005 February 1998 FORSCHUNGSBERICHT RESEARCH REPORT M A X - P L A N C K

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

INDEPENDENCE OF THE CONTINUUM HYPOTHESIS

INDEPENDENCE OF THE CONTINUUM HYPOTHESIS INDEPENDENCE OF THE CONTINUUM HYPOTHESIS CAPSTONE MATT LUTHER 1 INDEPENDENCE OF THE CONTINUUM HYPOTHESIS 2 1. Introduction This paper will summarize many of the ideas from logic and set theory that are

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

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

MORE ON CONTINUOUS FUNCTIONS AND SETS

MORE ON CONTINUOUS FUNCTIONS AND SETS Chapter 6 MORE ON CONTINUOUS FUNCTIONS AND SETS This chapter can be considered enrichment material containing also several more advanced topics and may be skipped in its entirety. You can proceed directly

More information

arxiv: v1 [math.co] 5 May 2016

arxiv: v1 [math.co] 5 May 2016 Uniform hypergraphs and dominating sets of graphs arxiv:60.078v [math.co] May 06 Jaume Martí-Farré Mercè Mora José Luis Ruiz Departament de Matemàtiques Universitat Politècnica de Catalunya Spain {jaume.marti,merce.mora,jose.luis.ruiz}@upc.edu

More information

Boolean Algebras, Boolean Rings and Stone s Representation Theorem

Boolean Algebras, Boolean Rings and Stone s Representation Theorem Boolean Algebras, Boolean Rings and Stone s Representation Theorem Hongtaek Jung December 27, 2017 Abstract This is a part of a supplementary note for a Logic and Set Theory course. The main goal is to

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

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

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

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

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

CHAPTER 3: THE INTEGERS Z

CHAPTER 3: THE INTEGERS Z CHAPTER 3: THE INTEGERS Z MATH 378, CSUSM. SPRING 2009. AITKEN 1. Introduction The natural numbers are designed for measuring the size of finite sets, but what if you want to compare the sizes of two sets?

More information

Rewrite Closure for Ground and Cancellative AC Theories

Rewrite Closure for Ground and Cancellative AC Theories Rewrite Closure for Ground and Cancellative AC Theories Ashish Tiwari SRI International, 333 Ravenswood Ave, Menlo Park, CA, U.S.A tiwari@csl.sri.com Abstract. Given a binary relation IE IR on the set

More information

only nite eigenvalues. This is an extension of earlier results from [2]. Then we concentrate on the Riccati equation appearing in H 2 and linear quadr

only nite eigenvalues. This is an extension of earlier results from [2]. Then we concentrate on the Riccati equation appearing in H 2 and linear quadr The discrete algebraic Riccati equation and linear matrix inequality nton. Stoorvogel y Department of Mathematics and Computing Science Eindhoven Univ. of Technology P.O. ox 53, 56 M Eindhoven The Netherlands

More information

usual one uses sequents and rules. The second one used special graphs known as proofnets.

usual one uses sequents and rules. The second one used special graphs known as proofnets. Math. Struct. in omp. Science (1993), vol. 11, pp. 1000 opyright c ambridge University Press Minimality of the orrectness riterion for Multiplicative Proof Nets D E N I S B E H E T RIN-NRS & INRILorraine

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

Lean clause-sets: Generalizations of minimally. unsatisable clause-sets. Oliver Kullmann. University of Toronto. Toronto, Ontario M5S 3G4

Lean clause-sets: Generalizations of minimally. unsatisable clause-sets. Oliver Kullmann. University of Toronto. Toronto, Ontario M5S 3G4 Lean clause-sets: Generalizations of minimally unsatisable clause-sets Oliver Kullmann Department of Computer Science University of Toronto Toronto, Ontario M5S 3G4 e-mail: kullmann@cs.toronto.edu http://www.cs.utoronto.ca/kullmann/

More information

2 THE COMPUTABLY ENUMERABLE SUPERSETS OF AN R-MAXIMAL SET The structure of E has been the subject of much investigation over the past fty- ve years, s

2 THE COMPUTABLY ENUMERABLE SUPERSETS OF AN R-MAXIMAL SET The structure of E has been the subject of much investigation over the past fty- ve years, s ON THE FILTER OF COMPUTABLY ENUMERABLE SUPERSETS OF AN R-MAXIMAL SET Steffen Lempp Andre Nies D. Reed Solomon Department of Mathematics University of Wisconsin Madison, WI 53706-1388 USA Department of

More information

Logic Part II: Intuitionistic Logic and Natural Deduction

Logic Part II: Intuitionistic Logic and Natural Deduction Yesterday Remember yesterday? classical logic: reasoning about truth of formulas propositional logic: atomic sentences, composed by connectives validity and satisability can be decided by truth tables

More information

Decision Problems Concerning. Prime Words and Languages of the

Decision Problems Concerning. Prime Words and Languages of the Decision Problems Concerning Prime Words and Languages of the PCP Marjo Lipponen Turku Centre for Computer Science TUCS Technical Report No 27 June 1996 ISBN 951-650-783-2 ISSN 1239-1891 Abstract This

More information

Halpern situations incomparable as far as normality or likelihood goes. For example, one situation may be better in one dimension but worse in another

Halpern situations incomparable as far as normality or likelihood goes. For example, one situation may be better in one dimension but worse in another Journal of Articial Intelligence Research 7 (1997) 1{24 Submitted 2/97; published 7/97 Dening Relative Likelihood in Partially-Ordered Preferential Structures Joseph Y. Halpern Cornell University, Computer

More information

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic CHAPTER 10 Gentzen Style Proof Systems for Classical Logic Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. By humans, not mentioning

More information

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) MATH 378, CSUSM. SPRING 2009. AITKEN This chapter reviews some of the background concepts needed for Math 378. This chapter is new to the course (added Spring

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

More information

2. Prime and Maximal Ideals

2. Prime and Maximal Ideals 18 Andreas Gathmann 2. Prime and Maximal Ideals There are two special kinds of ideals that are of particular importance, both algebraically and geometrically: the so-called prime and maximal ideals. Let

More information

07 Equational Logic and Algebraic Reasoning

07 Equational Logic and Algebraic Reasoning CAS 701 Fall 2004 07 Equational Logic and Algebraic Reasoning Instructor: W. M. Farmer Revised: 17 November 2004 1 What is Equational Logic? Equational logic is first-order logic restricted to languages

More information

How to Pop a Deep PDA Matters

How to Pop a Deep PDA Matters How to Pop a Deep PDA Matters Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University Kyoto 603-8555, Japan email:leupold@cc.kyoto-su.ac.jp Abstract Deep PDA are push-down automata

More information

2 Garrett: `A Good Spectral Theorem' 1. von Neumann algebras, density theorem The commutant of a subring S of a ring R is S 0 = fr 2 R : rs = sr; 8s 2

2 Garrett: `A Good Spectral Theorem' 1. von Neumann algebras, density theorem The commutant of a subring S of a ring R is S 0 = fr 2 R : rs = sr; 8s 2 1 A Good Spectral Theorem c1996, Paul Garrett, garrett@math.umn.edu version February 12, 1996 1 Measurable Hilbert bundles Measurable Banach bundles Direct integrals of Hilbert spaces Trivializing Hilbert

More information

Introduction to generalized topological spaces

Introduction to generalized topological spaces @ Applied General Topology c Universidad Politécnica de Valencia Volume 12, no. 1, 2011 pp. 49-66 Introduction to generalized topological spaces Irina Zvina Abstract We introduce the notion of generalized

More information

Their proof is rather lengthy and hard to grasp; it ultimately relies on showing a periodicity for any transition graph generated from normed context-

Their proof is rather lengthy and hard to grasp; it ultimately relies on showing a periodicity for any transition graph generated from normed context- Bisimulation Equivalence is Decidable for all Context-Free Processes Sren Christensen Hans Huttel y Colin Stirling 1 Introduction Over the past decade much attention has been devoted to the study of process

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

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

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

Denition 2: o() is the height of the well-founded relation. Notice that we must have o() (2 ) +. Much is known about the possible behaviours of. For e

Denition 2: o() is the height of the well-founded relation. Notice that we must have o() (2 ) +. Much is known about the possible behaviours of. For e Possible behaviours for the Mitchell ordering James Cummings Math and CS Department Dartmouth College Hanover NH 03755 January 23, 1998 Abstract We use a mixture of forcing and inner models techniques

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

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

Associative-commutative rewriting via flattening

Associative-commutative rewriting via flattening Associative-commutative rewriting via flattening Jean-Pierre Jouannaud LIX, École Polytechnique 91400 Palaiseau, France Email: jouannaud@lix.polytechnique.fr http://www.lix.polytechnique.fr/labo/jouannaud

More information

Redundancy, Deduction Schemes, and Minimum-Size Bases for Association Rules

Redundancy, Deduction Schemes, and Minimum-Size Bases for Association Rules Redundancy, Deduction Schemes, and Minimum-Size Bases for Association Rules José L. Balcázar Departament de Llenguatges i Sistemes Informàtics Laboratori d Algorísmica Relacional, Complexitat i Aprenentatge

More information

Consequence Relations and Natural Deduction

Consequence Relations and Natural Deduction Consequence Relations and Natural Deduction Joshua D. Guttman Worcester Polytechnic Institute September 9, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations

More information

THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS

THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS THE MAXIMAL SUBGROUPS AND THE COMPLEXITY OF THE FLOW SEMIGROUP OF FINITE (DI)GRAPHS GÁBOR HORVÁTH, CHRYSTOPHER L. NEHANIV, AND KÁROLY PODOSKI Dedicated to John Rhodes on the occasion of his 80th birthday.

More information

Introduction. Chapter 1

Introduction. Chapter 1 Chapter 1 Introduction Logic is concerned mainly with two concepts: truth and provability. These concepts have been investigated extensively for centuries, by philosophers, linguists, and mathematicians.

More information

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions AN INTRODUCTION TO SEPARATION LOGIC 2. Assertions John C. Reynolds Carnegie Mellon University January 7, 2011 c 2011 John C. Reynolds Pure Assertions An assertion p is pure iff, for all stores s and all

More information

1 Introduction We study classical rst-order logic with equality but without any other relation symbols. The letters ' and are reserved for quantier-fr

1 Introduction We study classical rst-order logic with equality but without any other relation symbols. The letters ' and are reserved for quantier-fr UPMAIL Technical Report No. 138 March 1997 (revised July 1997) ISSN 1100{0686 Some Undecidable Problems Related to the Herbrand Theorem Yuri Gurevich EECS Department University of Michigan Ann Arbor, MI

More information

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c. Properties of the Integers The set of all integers is the set and the subset of Z given by Z = {, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, }, N = {0, 1, 2, 3, 4, }, is the set of nonnegative integers (also called

More information

Properties of the Integers

Properties of the Integers Properties of the Integers The set of all integers is the set and the subset of Z given by Z = {, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, }, N = {0, 1, 2, 3, 4, }, is the set of nonnegative integers (also called

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

On 3-valued paraconsistent Logic Programming

On 3-valued paraconsistent Logic Programming Marcelo E. Coniglio Kleidson E. Oliveira Institute of Philosophy and Human Sciences and Centre For Logic, Epistemology and the History of Science, UNICAMP, Brazil Support: FAPESP Syntax Meets Semantics

More information

A NEW SET THEORY FOR ANALYSIS

A NEW SET THEORY FOR ANALYSIS Article A NEW SET THEORY FOR ANALYSIS Juan Pablo Ramírez 0000-0002-4912-2952 Abstract: We present the real number system as a generalization of the natural numbers. First, we prove the co-finite topology,

More information

Kirsten Lackner Solberg. Dept. of Math. and Computer Science. Odense University, Denmark

Kirsten Lackner Solberg. Dept. of Math. and Computer Science. Odense University, Denmark Inference Systems for Binding Time Analysis Kirsten Lackner Solberg Dept. of Math. and Computer Science Odense University, Denmark e-mail: kls@imada.ou.dk June 21, 1993 Contents 1 Introduction 4 2 Review

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

cachan.fr/publis/ In Proc. 10th IEEE Symp. Logic in Computer Science (LICS 95), San Diego, CA, USA, June 1995, pages , 1995.

cachan.fr/publis/ In Proc. 10th IEEE Symp. Logic in Computer Science (LICS 95), San Diego, CA, USA, June 1995, pages , 1995. http://www.lsv.ens cachan.fr/publis/ In Proc. 10th IEEE Symp. Logic in Computer Science (LICS 95), San Diego, CA, USA, June 1995, pages 375 385, 1995. Orderings, AC-Theories and Symbolic Constraint Solving

More information