Skip to main content

Relating graph and term rewriting via Böhm models

  • Conference paper
Rewriting Techniques and Applications (RTA 1993)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 690))

Included in the following conference series:

  • 193 Accesses

Abstract

Dealing properly with sharing is important for expressing some of the common compiler optimizations, such as common subexpressions elimination, lifting of free expressions and removal of invariants from a loop, as source-to-source transformations. Graph rewriting is a suitable vehicle to accommodate these concerns. In [4] we have presented a term model for graph rewriting systems (GRSs) without interfering rules, and shown the partial correctness of the aforementioned optimizations. In this paper we define a different model for GRSs, which allows us to prove total correctness of those optimizations. Differently from [4] we will discard sharing from our observations and introduce more restrictions on the rules. We will introduce the notion of Böhm tree for GRSs, and show that in a system without interfering and non-left linear rules (orthogonal GRSs), Böhm tree equivalence defines a congruence. Total correctness then follows in a straightforward way from showing that if a program M contains less sharing than a program N, then both M and N have the same Böhm tree.

We will also show that orthogonal GRSs are a correct implementation of orthogonal TRSs. The basic idea of the proof is to show that the behavior of a graph can be deduced from its finite approximations, that is, graph rewriting is a continuous operation. Our approach differs from that of other researchers [6, 9], which is based on infinite rewriting.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Z. Ariola and Arvind. P-TAC: A Parallel Intermediate Language. In Proc. ACM Conference on Functional Programming Languages and Computer Architecture, London, September 1989.

    Google Scholar 

  2. Z. Ariola and Arvind. A Syntactic Approach to Program Transformations. In Proc. ACM SIGPLAN Symposium on Partial Evaluation and Semantics Based Program Manipulation, Yale University, New Haven, CT, June 1991.

    Google Scholar 

  3. Z. Ariola and Arvind. Compilation of Id. In Proc. of the Fourth Worskshop on Languages and Compilers for Parallel Computing, Santa Clara, California, Springer-Verlag LNCS 589, August 1991.

    Google Scholar 

  4. Z. Ariola and Arvind. Graph Rewriting Systems For Efficient Compilation, chapter 6. John Wiley & Sons, 1993.

    Google Scholar 

  5. H. Barendregt, M. van Eekelen, J. Glauert, J. Kennaway, M. Plasmeijer, and M. Sleep. Term Graph Rewriting. In Proceedings of the PARLE Conference, Eindhoven, The Netherlands, Springer-Verlag LNCS 259, pages 141–158, June 1987.

    Google Scholar 

  6. W. Farmer and R. Watro. Redex Capturing in Term Graph Rewriting. Technical Report M89-59, MITRE corporation, Massachusetts, 1989.

    Google Scholar 

  7. M. Hennessy. Algebraic Theory of Processes. MIT Press, 1988.

    Google Scholar 

  8. G. Huet and J.-J. Lévy. Computations in Orthogonal Rewriting Systems 1 and 2. In Computational logic. Essays in Honor of Alan Robinson. Ed. J.-L. Lassez & G.D. Plotkin, 1991.

    Google Scholar 

  9. J. Kennaway, J. Klop, M. Sleep, and F. de Vries. Transfinite Reductions in Orthogonal Term Rewriting Systems. In Proc. RTA '91, Springer-Verlag LNCS, 1991.

    Google Scholar 

  10. J.-J. Lévy. Réductions Correctes et Optimales dans le Lambda-Calcul. PhD thesis, Universite Paris VII, October 1978.

    Google Scholar 

  11. R. S. Nikhil. Id (Version 90.0) Reference Manual. Technical Report CSG Memo 284-a, MIT Laboratory for Computer Science, 545 Technology Square, Cambridge, MA 02139, USA, July 1990.

    Google Scholar 

  12. C. Wadsworth. Semantics And Pragmatics Of The Lambda-Calculus. PhD thesis, University of Oxford, September 1971.

    Google Scholar 

  13. C. Wadsworth. The Relation between Computational and Denotational Properties for Scott's D∞-Models of the Lambda-Calculus. Theoretical Computer Science, 5, 1976.

    Google Scholar 

  14. C. Wadsworth. Approximate Reduction and Lambda Calculus Models. Theoretical Computer Science, 7, 1978.

    Google Scholar 

  15. P. Welch. Continuous Semantics and Inside-out Reductions. In λ-Calculus and Computer Science Theory, Italy (Springer-Verlag LNCS 37), March 1975.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Ariola, Z.M. (1993). Relating graph and term rewriting via Böhm models. In: Kirchner, C. (eds) Rewriting Techniques and Applications. RTA 1993. Lecture Notes in Computer Science, vol 690. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-21551-7_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-21551-7_15

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-56868-1

  • Online ISBN: 978-3-662-21551-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics