Abstract
We introduce a new higher-order rewriting formalism, called expression reduction systems with patterns (ERSP), where abstraction is allowed not only on variables but also on nested patterns with metavariables. These patterns are built by combining standard algebraic patterns with choice constructors denoting cases. In other words, the nondeterministic choice between different rewrite rules which is inherent to classical rewriting formalisms can be lifted here to the level of patterns. We show that confluence holds for a reasonable class of systems and terms.
Similar content being viewed by others
References
Baader, F., Nipkow, T.: Term Rewriting and all that. Cambridge University Press (1998)
Barendregt, H.: The lambda calculus: its syntax and semantics, vol. 103. Studies in Logic and the Foundations of Mathematics. North-Holland. Revised Edition (1984)
Blanqui, F., Jouannaud, J.-P., Okada, M.: Inductive-data-type systems. Theoretical Comput. Sci. 277, 41–68 (2002)
Bonelli, E., Kesner, D., Ríos, A.: A de Bruijn notation for higher-order rewriting. In: L. Bachmair (ed.) 11th International Conference on Rewriting Techniques and Applications, vol. 1833 of Lecture Notes in Computer Science. pp. 62–79, Springer (2000)
Cerrito, S., Kesner, D.: Pattern matching as cut elimination. In: Longo, G. (ed.) 14th Annual IEEE Symposium on Logic in Computer Science (LICS), pp. 98–108. IEEE Computer Society Press (1999)
Cerrito, S., Kesner, D.: Pattern matching as cut elimination. Theoretical Comput. Sci. 323, 71–127 (2004)
Cirstea, H., Kirchner, C.: ρ-Calculus, the rewriting calculus. In: 5th International Workshop on Constraints in Computational Logics (1998)
Forest, J.: A weak calculus with explicit operators for pattern matching and substitution. In: Tison, S. (ed.) 13th International Conference on Rewriting Techniques and Applications, vol. 2378 of Lecture Notes in Computer Science. pp. 174–191, Springer (2002)
Forest, J., Kesner, D.: Expression reduction systems with patterns. In: Nieuwenhuis, R. (ed.) 14th International Conference on Rewriting Techniques and Applications, vol. 2706 of Lecture Notes in Computer Science. pp. 107–122, Springer (2003)
Goguen, J., Thatcher, J., Wagner, E.: An initial algebra approach to the specification, correctness and implementation of abstract data types. In: Current Trends in Programming Methodology, vol. 4. Prentice Hall, pp. 80–149 (1978)
Huet, G., Oppen, D.: Equations and rewrite rules: a survey. In: Book, R.V. (ed.) Formal Language Theory: Perspectives and Open Problems. Academic, pp. 349–405 (1980)
Jay, C.B., Kesner, D.: Pure pattern calculus. In: Sestoft, P. (ed.) Proceedings of the European Symposium on Programming (ESOP). LNCS, vol. 3924, pp. 100–114, Vienna, Austria, March–April 2006
Jouannaud, J.-P., Rubio, A.: The higher-order recursive path ordering. In: Longo, G. (ed.) 14th Annual IEEE Symposium on Logic in Computer Science (LICS), pp. 402–411. IEEE Computer Society Press (1999)
Kahl, W.: Basic pattern matching calculi: syntax, reduction, confluence, and normalisation. Technical Report 16, Software Quality Research Laboratory, McMaster University (2003)
Kesner, D., Puel, L., Tannen, V.: A typed pattern calculus. Inf. Comput. 124(1), 32–61 (1996)
Khasidashvili, Z.: Expression reduction systems. In: Proceedings of IN Vekua Institute of Applied Mathematics, vol. 36. Tbilisi (1990)
Klop, J.-W.: Combinatory reduction systems, vol. 127 of Mathematical Centre Tracts. Amsterdam, Mathematisch Centrum. Ph.D. thesis (1980)
Klop, J.-W.: Term rewriting systems, vol. 2. Oxford University Press (1992)
Klop, J.-W., van Oostrom, V., van Raamsdonk, F.: Combinatory reduction systems: introduction and survey. Theoretical Computer Science 121, 279–308 (1993)
Nipkow, T.: Higher-order critical pairs. In: 6th Annual IEEE Symposium on Logic in Computer Science (LICS). pp. 342–349 (1991)
Takahashi, M.: Parallel reductions in Lambda-Calculus. J. Symbolic Comput. 2(7), 113–123 (1989)
van Oostrom, V.: Lambda calculus with patterns. Technical Report IR-228, Vrije Universiteit, Amsterdam (1990)
van Oostrom, V., van Raamsdonk, F.: Weak orthogonality implies confluence: the higher-order case. In: Nerode, A., Matiyasevich, Y. (eds.) Proceedings of the 3rd International Symposium on Logical Foundations of Computer Science, vol. 813 of Lecture Notes in Computer Science. pp. 379–392, Springer-Verlag (1994)
van Raamsdonk, F.: On termination of higher-order rewriting. In: Middeldorp, A. (ed.) 12th International Conference on Rewriting Techniques and Applications, vol. 2051 of Lecture Notes in Computer Science. pp. 261–275, Springer (2001)
Wolfram, D.: The Clausal Theory of Types, vol. 21 of Cambridge Tracts in Theoretical Computer Science. Cambridge University Press (1993)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Forest, J., Kesner, D. Expression Reduction Systems with Patterns. J Autom Reasoning 39, 513–541 (2007). https://doi.org/10.1007/s10817-007-9083-0
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10817-007-9083-0