Abstract
In this paper we provide foundations to contextual rewriting. We present the class of LOG-specifications, which may be seen, essentially, as a variety of conditional specifications, which may be seen, essentially, as a of LOG-specifications are LOG-algebras, i.e. algebras satisfying that their boolean part coincides with the boolean algebra of two elements. With respect to this semantics, a proof-system called L is presented characterizing logical consequence proof-theoretically. Then, we show that, under adequate assumptions of confluence and finite termination, contextual rewriting is a complete method for this kind of specifications.
Similar content being viewed by others
References
Arbib, M.E., Manes, E.G.: Arrows, structures and functors: the categorical imperative. New York: Academic Press 1975
Bell, J.L., Slomson, A.B.: Models and ultraproducts: an introduction. Amsterdam: North-Holland 1971
Bergstra, J.A., Klop, J.W.: Conditional rewrite rules: confluence and termination. J. Comput. Syst. Sci.32, 323–362 (1986)
Bergstra, J.A., Tucker, J.V.: A characterization of computable data types by means of a finite, equational specification method. Proceedings 7th ICALP, Noordwijkerhout (Holland). (Lect. Notes Comput. Sci., vol. 85, pp. 76–90) Berlin Heidelberg New York: Springer 1980
Bertling, H., Ganzinger, H., Schafers, R.: CEC: a system for conditional equational completion. User Manual (Version 1.0). Report, PROSPECTRA-Project, University of Dortmund, 1988
Bousdira, W., Remy, J.L.: Hierarchical contextual rewriting with several levels. Proceedings 5th Symposium on Theoretical Aspects of Computer Science, Berlin (Lect. Notes Comput. Sci., vol. 294, pp. 193–206) Berlin Heidelberg New York: Springer 1988
Brand, D., Darringuer, J.A., Joyner, W.H.: Completeness of conditional reductions. IBM T.J. Watson Res. Center Rep. RC-7404 (1978)
Drosten, K.: Towards executable specification using conditional axioms. T.U. Braunschweig Rep. 83-01 (1983)
Ehrig, H., Mahr, B.: Fundamentals of algebraic specification 1. (EATCS Monogr. Theor. Comput. Sci., vol. 6) Berlin Heidelberg New York: Springer 1985
Futatsugi, K., Goguen, J.A., Jouannaud, J.-P., Meseguer, J.: Principles of OBJ2. Proceedings 12th ACM Symposium on Principles of Programming Languages, New Orleans, pp. 52–66 (1985)
Ganzinger, H.: Ground term confluence in parametric conditional equational specifications. Proceedings 4th Symposium on Theoretical Aspects of Computer Science, Passau, RFA (Lect. Notes Comput. Sci., vol. 247, pp. 286–298) Berlin Heidelberg New York: Springer 1987
Ganzinger, H.: Completion with history-dependent complexities for generated equations. University of Dortmund. 1988 (Lect. Notes Comput. Sci., vol. 332, pp. 73–91) Berlin Heidelberg New York: Springer 1988
Goguen, J.A., Thatcher, J.W., Wagner, E.G.: An initial algebra approach to the specification, correctness and implementation of abstract data types. In: Yeh, R.T. (ed.) Current trends in programming methodology, IV: Data Structuring, pp. 80–149. Englewood Cliffs, NJ: Prentice-Hall 1978
Goguen, J.A., Meseguer, J.: Completeness of many-sorted equational logic. Sigplan Notices16, 24–32 (1981)
Goguen, J.A., Meseguer, J.: Universal realization, persistent interconnection and implementation of abstract modules. Proceedings IX ICALP (Lect. Notes Comput. Sci., vol. 140, pp. 265–281) Berlin Heidelberg New York: Springer 1982
Goguen, J.A., Meseguer, J.: Equality, types modules and (why not?) generics for logic programming. J. Logic Program.1, 179–210 (1984)
Huet, G., Oppen, D.C.: Equations and rewrite rules: a survey. In: Book, R. (ed.) Formal language theory: perspectives and open problems. New York: Academic Press 1980
Jouannaud, J.P., Waldmann, B.: Reductive conditional term rewriting systems. Proceedings 3rd IFIP Conference on Formal Description of Programming Concepts, Lyngby, Denmark, 1986
Kaplan, S.: Conditional rewrite rules. Theor. Comput. Sci.33, 175–193 (1984)
Kaplan, S.: Fair conditional term rewriting systems: unification, termination and confluence. In: Kreowski, H.-J. (ed.) Recent trends in data type specification. (Inf. Fachber., Bd. 116) Berlin Heidelberg New York: Springer 1985
Lankford, D.S.: Some new approaches to the theory and applications of conditional term rewriting systems. Report MTP-6, Math. Dept., Louisiana Tech. U., 1979
Lescanne, P.: Computer experiments with the REVE term rewriting system generator. Proceedings 10th ACM Symposium Principles of Programming Languages. Austin, Texas, USA, 1983
Makowski, J.A.: Why horn formulas matter in computer science: initial structures and generic examples. In: Ehrig, H., Floyd, Ch. (eds.) Formal methods and software development, vol. 1 (Lect. Notes Comput. Sci., vol. 186, pp. 374–387) Berlin Heidelberg New York: Springer 1985
Meseguer, J., Goguen, J.A.: Initiallity, induction and computability. In: Nivat, M., Reynolds, J. (eds.) Algebraic methods in semantics, pp. 459–540. Cambridge: Cambridge University Press 1985
Navarro, M.: Técnicas de reescritura para especificaciones condicionales. Tesis Doctoral, Bareelona, Spain, 1987
Navarro, M., Orejas, F.: On the equivalence of hierarchical and non-hierarchical rewriting on conditional term rewriting systems. EUROSAM 84 (Lect. Notes Comput. Sci., vol. 174, pp. 74–85) Berlin Heidelberg New York: Springer 1984
Navarro, M., Orejas, F.: Parameterized horn clause specifications: proof theory and correctness. TAPSOFT '87, Pisa (Lect. Notes Comput. Sci., vol. 249, pp. 202–216) Berlin Heidelberg New York: Springer 1987
Nieuwenhuis, R., Orejas, F.: Clausal rewriting. Proceedings 2nd International Workshop on Conditional and Typed Rewriting Systems. (Lect. Notes Comput. Sci., vol. 516, pp. 246–261) Berlin Heidelberg New York: Springer 1990
Nieuwenhuis, R., Orejas, F., Rubio, A.: TRIP: an implementation of clausal rewriting. Proceedings 10th International Conference on Automated Deduction. (Lect. Notes Comput. Sci., vol. 449, pp. 667–668) Berlin Heidelberg New York: Springer 1990
Orejas, F.: On the power of conditional specifications. Sigplan Notices14, 7 (1979)
Padawitz, P.: Computing in horn clause theories (EATCS Monogr. Theor. Comput. Sci., vol. 16) Berlin Heidelberg New York: Springer 1988
Pletat, U., Engels, G., Ehrich, H-D.: Operational semantics of algebraic specifications with conditional equations. Dormunt Univ. Rep. 118/81, 1981
Ponasse, D., Carrega, J.C.: Algebre et topologie booleennes Paris: Masson 1979
Remy, J.-L.: Etudes des systemes de reecriture conditionnels et applications aux types abstraits algebriques. These d'Etat, C.R.I. Nancy, 1982
Remy, J.-L.: Proving conditional identities by equational case reasoning, rewriting and normalization. Tech. Rep. C.R.I. Nancy, 1982
Remy, J.-L.: A review of several closure properties in universal algebra and first order logic. CRI Nancy Rep. 85-R-081 (1985)
Remy, J.-L., Zhang, H.: REVEUR 4: a system for validating conditional algebraic specifications of abstract data types. Proceedings 6th E.C.A.I. Pisa, 1984
Sanella, D., Wirsing, M.: A kernel language for algebraic specification and implementation. Proceedings FCT, Bergholm, 1983
Selman, A.: Completeness of calculi for axiomatically defined classes of algebras. Algebra Univers.2, 20–32 (1972)
Thatcher, J.W., Wagner, E.G., Wright, J.B.: Specification of abstract data types using conditional axioms. IBM T.J. Watson Res. Center Rep. RC-6214 (1976)
Thatcher, J.W., Wagner, E.G., Wright, J.B.: Data type specification: parameterization and the power of specification techniques. ACM TOPLAS4, 711–732 (1982)
Wagner, E.G., Ehrig, H.: Canonical constraints for parameterized data types. Theor. Comput. Sci.50, 323–349 (1987)
Zhang, H.: REVEUR 4: etude et mise en œuvre de la reecriture conditionnelle. Thèse de 3ème cycle. Nancy, France, 1984
Zhang, H., Remy, J.-L.: Contextual rewriting. Proceedings Conference on Rewriting Techniques and Applications, Dijon (Lect. Notes Comput. Sci., vol. 202) Berlin Heidelberg New York: Springer 1985
Author information
Authors and Affiliations
Additional information
This work was partially done during the first author's stay at C.R.I.N., with financial support of the Spain-France Integrated Action 34/212. Research partially supported by a subcontract with SESA-Alcatel under the ESPRIT program in the project PROSPECTRA, ref # 390.
Rights and permissions
About this article
Cite this article
Navarro, M., Orejas, F. & Remy, JL. Contextual rewriting as a sound and complete proof method for conditional LOG-specifications. Acta Informatica 30, 147–180 (1993). https://doi.org/10.1007/BF01178578
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01178578