Abstract
Context-sensitive rewriting (CSR) is a variant of rewriting where only selected arguments of function symbols can be rewritten. Consequently, the subterm positions of a term are classified as either active, i.e., positions of subterms that can be rewritten; or frozen, i.e., positions that cannot. Frozen positions can be used to denote subexpressions whose evaluation is delayed or just forbidden. A typical example is the if-then-else operator whose second and third arguments are not evaluated until the evaluation of the first argument yields either true or false. Imposing replacement restrictions can improve the termination behavior of rewriting-based computational systems. Termination of CSR has been investigated by several authors and a number of automatic tools are able to prove it. In this paper, we analyze how frozen subterms affect termination of CSR. This analysis helps us to improve our Context-Sensitive Dependency Pair (CS-DP) framework for automatically proving termination of CSR. We have implemented these improvements in our tool mu-term. The experiments show the power of the improvements in practice.
Partially supported by the EU (FEDER), MINECO project TIN 2013-45732-C4-1-P, and GV project PROMETEO/2011/052. Salvador Lucas’ research was developed during a sabbatical year at the CS Dept. of the UIUC and was also partially supported by NSF grant CNS 13-19109. Raúl Gutiérrez is also partially supported by a Juan de la Cierva Fellowship from the Spanish MINECO, ref. JCI-2012-13528.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
The notion of context-sensitive rewriting was developed as part of Lucas’ Master Thesis (1994) to implement concurrent programming languages that, like the \(\pi \)-calculus, forbid reductions on some arguments of its operations.
- 2.
Note that minimal non-\(\mu \)-terminating terms may contain minimal non-\(\mu \)-terminating terms (at frozen positions, though). We use darker shades for such nested minimal non-\(\mu \)-terminating terms.
- 3.
In order to keep our presentation simple, we do not introduce here the notions related with completeness of processors, needed for nontermination proofs.
- 4.
A binary relation \(\mathsf{R}\) on terms is \(\mu \)-monotonic if for all terms \(s, t, t_1,\ldots ,t_m\), and m-ary symbols f, whenever \(s\,\mathsf{R}\,t\) and \(i \in \mu (f)\) we have \(f(\ldots ,t_{i-1},s,\ldots )\,\mathsf{R}\, f(\ldots ,t_{i-1},t,\ldots )\).
- 5.
References
Alarcón, B., Emmes, F., Fuhs, C., Giesl, J., Gutiérrez, R., Lucas, S., Schneider-Kamp, P., Thiemann, R.: Improving context-sensitive dependency pairs. In: Cervesato, I., Veith, H., Voronkov, A. (eds.) LPAR 2008. LNCS (LNAI), vol. 5330, pp. 636–651. Springer, Heidelberg (2008)
Alarcón, B., Gutiérrez, R., Lucas, S.: Context-sensitive dependency pairs. In: Arun-Kumar, S., Garg, N. (eds.) FSTTCS 2006. LNCS, vol. 4337, pp. 297–308. Springer, Heidelberg (2006)
Alarcón, B., Gutiérrez, R., Lucas, S.: Context-Sensitive dependency pairs. Inf. Comput. 208, 922–968 (2010)
Alarcón, B., Gutiérrez, R., Lucas, S., Navarro-Marset, R.: Proving termination properties with mu-term. In: Johnson, M., Pavlovic, D. (eds.) AMAST 2010. LNCS, vol. 6486, pp. 201–208. Springer, Heidelberg (2011)
Arts, T., Giesl, J.: Proving innermost normalisation automatically. In: Comon, H. (ed.) RTA 1997. LNCS, vol. 1232, pp. 151–171. Springer, Heidelberg (1997)
Arts, T., Giesl, J.: Termination of term rewriting using dependency pairs. Theor. Comput. Sci. 236(1–2), 133–178 (2000)
Baader, F., Nipkow, T.: Term Rewriting and All That. Cambridge University Press, Cambridge (1998)
Borovanský, P., Kirchner, C., Kirchner, H., Moreau, P., Ringeissen, C.: An overview of ELAN. Electr. Notes Theor. Comput. Sci. 15, 55–70 (1998). http://dx.doi.org/10.1016/S15710661(05)825526
Clavel, M., Durán, F., Eker, S., Lincoln, P., Martí-Oliet, N., Meseguer, J., Talcott, C. (eds.): All About Maude - A High-Performance Logical Framework. LNCS, vol. 4350. Springer, Heidelberg (2007)
Emmes, F.: Automated Termination Analysis of Context-Sensitive Term Rewrite Systems. Master’s thesis, Fakultät für Mathematik, Informatik und Naturwissenschaften der Rheinisch-Westfälischen Technischen Hochschule Aachen, Aachen, Germany (2008)
Futatsugi, K., Goguen, J.A., Jouannaud, J.P., Meseguer, J.: Principles of OBJ2. In: Proceedings of the 12th ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages, POPL 1985, pp. 52–66. ACM (1985)
Futatsugi, K., Nakagawa, A.: An overview of CAFE specification environment-an algebraic approach for creating, verifying, and maintaining formal specifications over networks. In: Proceedings of the 1st International Conference on Formal Engineering Methods, ICFEM 1997, p. 170. IEEE Computer Society (1997)
Giesl, J., Middeldorp, A.: Innermost termination of context-sensitive rewriting. In: Ito, M., Toyama, M. (eds.) DLT 2002. LNCS, vol. 2450, pp. 231–244. Springer, Heidelberg (2003)
Giesl, J., Thiemann, R., Schneider-Kamp, P., Falke, S.: Mechanizing and improving dependency pairs. J. Autom. Reasoning 37(3), 155–203 (2006)
Goguen, J.A., Winkler, T., Meseguer, J., Futatsugi, K., Jouannaud, J.P.: Software Engineering with OBJ: Algebraic Specification in Action. Kluwer, Boston (2000). chap. Introducing OBJ
Gramlich, B.: Generalized sufficient conditions for modular termination of rewriting. Appl. Algebra Eng. Commun. Comput. 5, 131–151 (1994)
Gutiérrez, R., Lucas, S.: Proving termination in the context-sensitive dependency pair framework. In: Ölveczky, P.C. (ed.) WRLA 2010. LNCS, vol. 6381, pp. 18–34. Springer, Heidelberg (2010)
Gutiérrez, R., Lucas, S.: Function calls at frozen positions in termination of context-sensitive rewriting. Technical report, DSIC, Universitat Politècnica de València, May 2015. http://hdl.handle.net/10251/50750
Gutiérrez, R., Lucas, S., Urbain, X.: Usable rules for context-sensitive rewrite systems. In: Voronkov, A. (ed.) RTA 2008. LNCS, vol. 5117, pp. 126–141. Springer, Heidelberg (2008)
Hendrix, J., Meseguer, J.: On the completeness of context-sensitive order-sorted specifications. In: Baader, F. (ed.) RTA 2007. LNCS, vol. 4533, pp. 229–245. Springer, Heidelberg (2007)
Hirokawa, N., Middeldorp, A.: Dependency pairs revisited. In: van Oostrom, V. (ed.) RTA 2004. LNCS, vol. 3091, pp. 249–268. Springer, Heidelberg (2004)
Hirokawa, N., Middeldorp, A.: Tyrolean termination tool: techniques and features. Inf. Comput. 205(4), 474–511 (2007)
Lucas, S.: Context-sensitive computations in functional and functional logic programs. J. Funct. Logic Program. 1998(1), 1–61 (1998)
Lucas, S.: Termination of on-demand rewriting and termination of OBJ programs. In: De Nicola, R., Søndergaard, H. (eds.) Proceedings of the 3rd Internatinal Conference on Principles and Practice of Declarative Programming, PPDP 2001, pp. 82–93. ACM Press (2001)
Lucas, S.: Termination of rewriting with strategy annotations. In: Nieuwenhuis, R., Voronkov, A. (eds.) LPAR 2001. LNCS (LNAI), vol. 2250, pp. 666–680. Springer, Heidelberg (2001)
Lucas, S.: Polynomials over the reals in proofs of termination: from theory to practice. RAIRO Theor. Inf. Appl. 39(3), 547–586 (2005)
Lucas, S.: Completeness of context-sensitive rewriting. Inf. Process. Lett. 115(2), 87–92 (2015). http://dx.doi.org/10.1016/j.ipl.2014.07.004
Ohlebusch, E.: On the modularity of termination of term rewriting systems. Theor. Comput. Sci. 136, 333–360 (1994)
Zantema, H.: Termination of context-sensitive rewriting. In: Comon, H. (ed.) RTA 1997. LNCS, vol. 1232. Springer, Heidelberg (1997)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Gutiérrez, R., Lucas, S. (2015). Function Calls at Frozen Positions in Termination of Context-Sensitive Rewriting. In: Martí-Oliet, N., Ölveczky, P., Talcott, C. (eds) Logic, Rewriting, and Concurrency. Lecture Notes in Computer Science(), vol 9200. Springer, Cham. https://doi.org/10.1007/978-3-319-23165-5_15
Download citation
DOI: https://doi.org/10.1007/978-3-319-23165-5_15
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-23164-8
Online ISBN: 978-3-319-23165-5
eBook Packages: Computer ScienceComputer Science (R0)