Tree Automata and Term Rewrite Systems

4 downloads 0 Views 75KB Size Report
properties of tree automata; this implies decidability of any property expressible. L. Bachmair (Ed.): RTA 2000, LNCS 1833, pp. 27–30, 2000. cO Springer-Verlag ...
Tree Automata and Term Rewrite Systems (Extended Abstract) Sophie Tison LIFL, Bˆ at M3, Universit´e Lille 1 F59655 Villeneuve d’Ascq cedex, France [email protected]

Abstract. This tutorial is devoted to tree automata. We will present some of the most fruitful applications of tree automata in rewriting theory and we will give an outline of the current state of research on tree automata. We give here just a sketch of the presentation. The reader can also refer to the on-line book “Tree Automata and Their Applications” [CDG+ 97].

1

Introduction

Tree Automata theory and term rewriting theory are strongly connected [Dau94, Ott99]. On one side, tree automata can be viewed as a subclass of ground term rewrite systems [Bra69a, Bra69b]. On the other hand, tree automata have been used successfully as decision tools in rewriting theory. In this tutorial, we will present some of the most fruitful applications of tree automata in rewriting theory and we point out some promising research directions in this area. For definitions and properties of tree automata the reader can refer to [GS96, CDG+97]. Most of the results we mention here and more references can be found in [CDG+97].

2

Classical Tree Automata and Rewrite Systems

If you want to use tree automata in rewriting theory, the ideal situation occurs when the reducibility relation is recognizable: a binary relation is said recognizable Iff the set of its encodings is a recognizable tree language; a couple is just encoded by overlapping its two terms: e.g. the [f(a,b), f(f(a,a,),a)] will be encoded into [f,f] ([a,f]([⊥,a],[⊥,a]),[b,a]). E.g., reducibility relations are recognizable for ground rewrite systems (more generally for linear term rewriting system such that left and right members of the rules do not share variables). Now, let us consider the following logical theory: the set of formulas is the set of all firstorder formulas using no function symbols and a single binary predicate symbol, the predicate symbol is interpreted as the reducibility relation associated with a given rewrite system. When the reducibility relation is recognizable, you get easily the decidability of the theory, thanks to the good closure and decision properties of tree automata; this implies decidability of any property expressible L. Bachmair (Ed.): RTA 2000, LNCS 1833, pp. 27–30, 2000. c Springer-Verlag Berlin Heidelberg 2000

28

Sophie Tison

in this theory, like confluence. Furthermore, under some counditions, you can enrich the theory for expressing termination properties [DT90]. Clearly, recognizability of the reducibility relation is a very strong property restricted to limited subclasses of rewrite systems. Now, you can just require that the reducibility relation preserves recognizability, i.e. that the set of descendants (resp. the ancestors) of a recognizable tree language is recognizable. (Let us note that this is not the case even for linear systems). For example, reachability can then be easily reduced to membership to recognizable tree language. If preservation of regularity is undecidable [GT95], some conditions ensure it and it leads to decidability of reachability and joinability for some subclasses of term rewriting systems. ([Sal88, CDGV94, Jac96, FJSV98, NT99]). You can also require recognizability of the language of ground normal forms: it provides for example a very simple procedure for testing the ground reducibility of a term. Clearly, the set of ground normal forms is a regular tree language for left-linear rewrite systems. Moreover, recognizability of the set of normal forms has been proven decidable [VG92, Kou92]. Finally, recognizability of the set of normalizable terms (it’s clearly ensured when the set of ground normal forms is recognizable and the inverse reducibilty relation preseves recognizability) ensures decidability of the sequentiality of the system, when left-linear [Com95]. All the previous approaches provide good decision procedures but only for very restricted classes of rewrite systems. If you are interested in one particular rewrite system, you can also try to prove “experimentally” its good behavior w.r.t. to recognizability. E.g. J. Waldmann has proven by computer the recognizability of the set of normalizing S-terms [Wal98]. Some pointers to software for manipulating tree regular expressions and automata can be found in [CDG+97]. But a question rises: How far can we go in using tree automata when describing properties of term rewriting systems? Can we find new “interesting” classes of t.r.s. with good properties w.r.t. recognizability?

3

How to Go beyond the Limits of Usual Tree Automata?

A way of going beyond the limits of the previous approaches is to consider approximation of rewrite systems. For example, Comon and Jacquemard study by these means reduction strategies and sequentiality [Com95, Jac96]. More recently, T. Genet and F. Klay compute regular over-approximations of the set of the descendants [Gen98] and use them for the verification of cryptographic protocols [GK00]. But to go beyond the limits of tree automata, you can also use extensions of tree automata. The idea is roughly to enrich the notion of tree automata for dealing with the non-linearity while keeping good closure and decision properties. Several classes have been defined in this view and have been sucessfully applied in term rewriting theory. For example, the reduction automata provide decision procedures for emptiness and finiteness of the language of ground normal forms for every term rewriting system and they give a new procedure for testing ground reducibility [Pla85, DCC95, CJ97, CJ94]. Tree automata with tests between

Tree Automata and Term Rewrite Systems

29

brothers which have good decision properties allow also to get some new results for non-linear rewrite systems [CSTT99, STT99]. Let us finally cite also the powerful notion of tree t-uple synchronized grammars which has been used in unification theory end rewriting theory [LR98, LR99]. Of course, you can combine these two last approaches, e.g. by approximating the set of the descendants by extended recognizable tree languages. This opens new prospects and will require design of software for dealing with extended tree automata.

References W. S. Brainerd. Semi-thue systems and representations of trees. In Proc. 10th IEEE Symposium on Foundations of Computer Science (FOCS), pages 240–244, 1969. [Bra69b] W. S. Brainerd. Tree generating regular systems. Information and Control, 14(2):217–231, February 1969. [CDG+ 97] H. Comon, M. Dauchet, R. Gilleron, F. Jacquemard, D. Lugiez, S. Tison, and M. Tommasi. Tree automata techniques and applications. Available on: http://l3ux02.univ-lille3.fr/tata, 1997. [CDGV94] J.L. Coquide, M. Dauchet, R. Gilleron, and S. Vagvolgyi. Bottom-up tree pushdown automata : Classification and connection with rewrite systems. Theorical Computer Science, 127:69–98, 1994. [CJ94] H. Comon and F. Jacquemard. Ground reducibility and automata with disequality constraints. In Patrice Enjalbert, editor, 11th Annual Symposium on Theoretical Aspects of Computer Science, volume 775 of LNCS, pages 151–162, 1994. [CJ97] H. Comon and F. Jacquemard. Ground reducibility is EXPTIMEcomplete. In Proceedings, 12th Annual IEEE Symposium on Logic in Computer Science, pages 26–34. IEEE Computer Society Press, 1997. [Com95] H. Comon. Sequentiality, second-order monadic logic and tree automata. In Proceedings, Tenth Annual IEEE Symposium on Logic in Computer Science. IEEE Computer Society Press, 26–29 June 1995. [CSTT99] A.-C. Caron, F. Seynhaeve, S. Tison, and M. Tommasi. Deciding the satisfiability of quantifier free formulae on one-step rewriting. In M. Rusinowitch F. Narendran, editor, 10th International Conference on Rewriting Techniques and Applications, volume 1631 of LNCS, Trento, Italy, 1999. Springer Verlag. [Dau94] M. Dauchet. Rewriting and tree automata. In H. Comon and J.-P. Jouannaud, editors, Proc. Spring School on Theoretical Computer Science: Rewriting, LNCS, Odeillo, France, 1994. Springer Verlag. [DCC95] M. Dauchet, A.-C. Caron, and J.-L. Coquid´e. Reduction properties and automata with constraints. Journal of Symbolic Computation, 20:215–233, 1995. [DT90] M. Dauchet and S. Tison. The theory of ground rewrite systems is decidable. In Proceedings, Fifth Annual IEEE Symposium on Logic in Computer Science, pages 242–248. IEEE Computer Society Press, 4–7 June 1990. [FJSV98] A. Flp, E. Jurvanen, M. Steinby, and S. Vagvlgy. On one-pass term rewriting. In L. Brim, J. Gruska, and J. Zlatusaksv, editors, Proceedings of Mathematical Foundations of Computer Science, volume 1450 of LNCS, pages 248–256. Springer Verlag, 1998. [Bra69a]

30 [Gen98]

[GK00] [GS96]

[GT95] [Jac96]

[Kou92] [LR98]

[LR99]

[NT99]

[Ott99]

[Pla85] [Sal88] [STT99]

[VG92]

[Wal98]

Sophie Tison T. Genet. Decidable approximations of sets of descendants and sets of normal forms. In T. Nipkow, editor, 9th International Conference on Rewriting Techniques and Applications, volume 1379 of LNCS, pages 151–165, Tsukuba, Japan, 1998. Springer Verlag. T. Genet and F. Klay. Rewriting for cryptographic protocol verification. Technical Report, INRIA, 2000, to appear in CADE2000, 2000. F. G´ecseg and M. Steinby. Tree languages. In G. Rozenberg and A. Salomaa, editors, Handbook of Formal Languages, volume 3, pages 1–68. Springer Verlag, 1996. R. Gilleron and S. Tison. Regular tree languages and rewrite systems. Fundamenta Informaticae, 24:157–176, 1995. F. Jacquemard. Decidable approximations of term rewriting systems. In H. Ganzinger, editor, Proceedings. Seventh International Conference on Rewriting Techniques and Applications, volume 1103 of LNCS, 1996. E. Kounalis. Testing for the ground (co)-reducibility in term rewriting systems. Theorical Computer Science, 106(1):87–117, 1992. S. Limet and P. R´ety. Solving Disequations modulo some Class of Rewrite System. In T. Nipkow, editor, 9th International Conference on Rewriting Techniques and Applications, volume 1379 of LNCS, pages 121–135, Tsukuba, Japan, 1998. Springer Verlag. S. Limet and P. R´ety. A new result about the decidability of the existential one-step rewriting theory. In M. Rusinowitch F. Narendran, editor, 10th International Conference on Rewriting Techniques and Applications, volume 1631 of LNCS, Trento, Italy, 1999. Springer Verlag. T. Nagaya and Y. Toyama. Decidability for left-linear growing term rewriting systems. In M. Rusinowitch F. Narendran, editor, 10th International Conference on Rewriting Techniques and Applications, volume 1631 of LNCS, Trento, Italy, 1999. Springer Verlag. F. Otto. On the connections between rewriting and formal languauge theory. In M. Rusinowitch F. Narendran, editor, 10th International Conference on Rewriting Techniques and Applications, volume 1631 of LNCS, pages 332–355, Trento, Italy, 1999. Springer Verlag. D.A. Plaisted. Semantic confluence tests and completion method. Information and Control, 65:182–215, 1985. K. Salomaa. Deterministic tree pushdown automata and monadic tree rewriting systems. Journal of Comput. and Syst. Sci., 37:367–394, 1988. F. Seynhaeve, S. Tison, and M. Tommasi. Homomorphisms and concurrent term rewriting. In G. Ciobanu and G. Paun, editors, Proceedings of the twelfth International Conference on Fundamentals of Computation theory, number 1684 in Lecture Notes in Computer Science, Iasi, Romania, 1999. S. V´ agv¨ olgyi and R. Gilleron. For a rewrite system it is decidable whether the set of irreducible ground terms is recognizable. Bulletin of the European Association of Theoretical Computer Science, 48:197–209, October 1992. J. Waldmann. Normalization of s-terms is decidable. In T. Nipkow, editor, 9th International Conference on Rewriting Techniques and Applications, volume 1379 of LNCS, pages 138–150, Tsukuba, Japan, 1998. Springer Verlag.