skip to main content
article
Free Access

Confluence properties of weak and strong calculi of explicit substitutions

Published:01 March 1996Publication History
Skip Abstract Section

Abstract

Categorical combinators [Curien 1986/1993; Hardin 1989; Yokouchi 1989] and more recently λσ-calculus [Abadi 1991; Hardin and Le´vy 1989], have been introduced to provide an explicit treatment of substitutions in the λ-calculus. We reintroduce here the ingredients of these calculi in a self-contained and stepwise way, with a special emphasis on confluence properties. The main new results of the paper with respect to Curien [1986/1993], Hardin [1989], Abadi [1991], and Hardin and Le´vy [1989] are the following:

(1) We present a confluent weak calculus of substitutions, where no variable clashes can be feared; (2) We solve a conjecture raised in Abadi [1991]: λσ-calculus is not confluent (it is confluent on ground terms only).

This unfortunate result is “repaired” by presenting a confluent version of λσ-calculus, named the λEnv-caldulus in Hardin and Le´vy [1989], called here the confluent λσ-calculus.

References

  1. ABADI, M., CARDELLI, L., CURmN, P.-L., AND LI~VY, J.-J. 1991. Explicit substitutions. J. Funct. Prog. I, 4, 375-416.Google ScholarGoogle ScholarCross RefCross Ref
  2. ABRAMSgY, S. 1989. The lazy A-calculus. In Declarative Programming. D. Turner, ed. Addison- Wesley, Reading, Mass., pp. 65-116.Google ScholarGoogle Scholar
  3. BARENDREGT, H. P. 1984. The Lambda-Calculus, vol. 103. Elsevier Science Publishing Company, Amsterdam, The Netherlands.Google ScholarGoogle Scholar
  4. BERRY, G. AND LI~VY, J.-J. 1979. Minimal and optimal computations of recursive programs. J. ACM 26, 1 (Jan.), 148-175. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. BOtJDOL, G. 1994. A lambda-calculus for (strict) parallel functions. Inf. Comput. 108, 51-127. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. BREAZU-TANNEN, V. 1988. A combining algebra and higher-order types. In Proceedings of LICS 88, Edinburgh.Google ScholarGoogle Scholar
  7. COUSINEAU, G., CURIEN, P.-L., AND MAUNY, M. 1987. The Categorical Abstract Machine. Sci. Comput. Prog. 8, 173-202. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. CUmEN, P.-L. 1986/1993. Categorical combinators, sequential algorithms and functional programming. In Research Notes in Theoretical Computer Science. Pitman, London, 1986; Revised edition, Birkh/iiiser.Google ScholarGoogle Scholar
  9. CURIEN, P.-L. 1991. An abstract framework for environment machines. Theoret. Comput. Sci. 82, 389-402. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. CURIEN, P.-L. AND HARDXr~, T. 1994. Yet another counterexample for a + SP. J. Funct. Prog. 4, 1, 113-115.Google ScholarGoogle ScholarCross RefCross Ref
  11. CURIEN, P.-L., HAROlr~, T., AND RIOS, A. 1992. Strong Normalization of Substitutions. In Proceedings of the Mathematical Foundations of Computer Science (Prague). Lecture Notes in Computer Science, vol 629. North-Holland, Amsterdam, The Netherlands. Google ScholarGoogle Scholar
  12. CURRY, H. B. 1958. Combinatory Logic, vol 1. North-Holland, The Netherlands.Google ScholarGoogle Scholar
  13. DE BRUIJN, N. 1972. Lambda-calculus notation with nameless dummies, a tool for automatic formula manipulation, with application to the Church-Rosser Theorem. Indag. Math. 34, 5, 381-392.Google ScholarGoogle ScholarCross RefCross Ref
  14. DE BRUUN, N. 1978. Lambda-calculus notation with namefree formulas involving symbols that represent reference transforming mappings. Indag. Math. 40, 348-356.Google ScholarGoogle ScholarCross RefCross Ref
  15. DE VRIJER, R. 1987. Surjective Pairing and Strong Normalisation: two themes in A-calculus. Dissertation. Univ. Amsterdam, Amsterdam, The Netherlands.Google ScholarGoogle Scholar
  16. DERSHOWrrz, N. 1982. Ordering for term rewriting systems. Theoret. Comput. Sci. 17, 3 (Mar.). 279-301.Google ScholarGoogle Scholar
  17. FIELD, J. 1990. On laziness and optimality in larnbda interpreters. In Proceed/rigs of the 17th Annual ACM Symposium on Principles of Programming Languages (San Francisco, Calif., Jan. 17-19). ACM, New York, pp. 1-15. Google ScholarGoogle Scholar
  18. HARDIN, T. 1987. R6sultats de confluence pour les R~gles fortes de la Logique Combinatoire Cat6gorique et Liens avec les Lambda-calculs. Th6se de Doctorat, Universit6 de Paris 7, Pads, France.Google ScholarGoogle Scholar
  19. HARDIN, T. 1989. Confluence results for the pure strong categorical logic CCL. X-calculi as subsystems of CCL. Theoret. Computer Sci. 65, 291-342. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. HARDIN, T., AND LAVaLLE, A. 1986. Proof of termination of the rewriting system subst on C.C.L. Theoret. Computer Sci. 46, 305-312. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. HARDIN, T., AND I.,~VY, J.-J. 1989. A confluent calculus of substitutions. In France4apan Artificial Intelligence and Computer Science Symposium (Izu, Japan).Google ScholarGoogle Scholar
  22. HI~3LE't, R., AND SF-LDIN, J. 1986. Introduction to Combinators and A-Calculus. Vol. 1 of London Mathematical Society Student texts. Cambridge University Press, Cambridge, England. Google ScholarGoogle Scholar
  23. HUET, G. 1980. Confluent reductions: Abstract properties and applications to term rewriting systems. J. ACM 27, 4 (Oct.), 797-821. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. HUET, G., AND Ll~vY, J.-J. 1991. Computations in Orthogonal Rewriting Systems 1 et 2. Computational logic, Essays in Honor of Alan Robinson, J.-L. Lassez and G. D. PIotkin, eds., MIT Press, Cambridge, Mass.Google ScholarGoogle Scholar
  25. KAMIN, S., AND LI~VY, J.-J. 1980. Two generalisations of recursive path orderings. Unpublished note.Google ScholarGoogle Scholar
  26. KATHAm, V. 1990. Optimal interpreters. Ph.D. dissertation. MIT, Cambridge, Mass.Google ScholarGoogle Scholar
  27. KLOP, J. W. 1982. Combinatory reduction systems. Ph.D. dissertation, Mathematisch Centrum Amsterdam, The Netherlands.Google ScholarGoogle Scholar
  28. KLOP, J. W., AND DE VRIJER, R. 1987. Unique Normal Forms for A-calculus with Surjective Pairing. Rapport 87-03. Centre of Mathematics and Computer Science, Amsterdam, The Netherlands.Google ScholarGoogle Scholar
  29. l~trrH, D., AND BENDIX, P. 1970. Simple word problems in universal algebras. In Computational Problems in Abstract Algebra. J. Leech, ed. Pergamon, pp. 263-297.Google ScholarGoogle Scholar
  30. LA~mEK, J., AND SCOW, P. J. 1987. Introduction to Higher Order Categorical Logic. Cambridge University Press, Cambridge, England. Google ScholarGoogle Scholar
  31. LAMPlr~G, J. 1990. An algorithm for optimal lambda calculus reduction. In Proceedings of the 17th Annual ACM Symposium on Pn'nciples of Programming Languages (San Francisco, Calif., Jan. 17-19). ACM, New York, pp. 16-30. Google ScholarGoogle Scholar
  32. Lt~vY, J.-J. 1978. R6ductions correctes and optimales dans le Lambda-Calcul, Th~se d'Etat, Universit6 de Paris 7, Paris, France.Google ScholarGoogle Scholar
  33. MARANOe'r, L. 1991. Optimal derivatives in weak lambda.calculi and in orthogonal term rewriting systems. POPL 91. Google ScholarGoogle Scholar
  34. MAUNY, M. 1985. Compilation des Langages Fonctionnels dans les Combinateurs Cat6goriques. Th~se de Troisi~,me Cycle, Universit6 Paris 7, Paris, France.Google ScholarGoogle Scholar
  35. OI~G, C.-H. LUKE. 1988. Fully abstract models of the lazy A-calculus. Proceedings of the Symposium of the Foundations of Computer Science. IEEE, New York, pp. 368-376.Google ScholarGoogle Scholar
  36. YOKOUCHI, H., AND HIKITA, T. 1988. A rewriting system for categorical combinators with multiple arguments. In RIMS Lecture Note 655. Kyoto Univ., Kyoto, Japan, pp. 186-208.Google ScholarGoogle Scholar
  37. YOKOUCHI, H. 1989. Relationship between A-calculus and rewriting systems for categorical combinators. Theoret. Computer Sci. 65, 271-290. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Confluence properties of weak and strong calculi of explicit substitutions

          Recommendations

          Reviews

          Gabriel M. Ciobanu

          The lambda-sigma-calculus was introduced to provide explicit treatment of substitutions in the lambda-calculus. In this paper, the authors describe various calculi of explicit substitutions, emphasizing their confluence properties. They first define a “conditional weak” lambda-sigma-calculus, which is confluent. Then a “weak” calculus of explicit substitutions is defined, and critical pairs are solved by adding a new composition operation to substitutions. This weak lambda-sigma-calculus is confluent also. Using the De Bruijn notation to deal with name clashes, the authors add a new operator to handle substitutions under lambda. The resulting calculus is the lambda-sigma-calculus described in previous works. This lambda-sigma-calculus is ground-confluent, but not even locally confluent. A locally confluent theory called lambda-sigma_SP is obtained by adding a “surjective pairing” rule; lambda-sigma_SP is not confluent. Finally, a confluent lambda-sigma-calculus called lambdaEnv is obtained by introducing a new operator for substitutions that is able to cross the lambda abstractions. Moreover, a rather simple proof of termination is given for this confluent lambda-sigma-calculus. Mainly these calculi of explicit substitutions are presented as sigma-algebras with two sorts (lambda terms and substitutions), and then the techniques and results (particularly the Knuth-Bendix algorithm) for rewriting systems can be applied. Some confluence results are proven using the method described by Hardin for the categorical combinators.

          Access critical reviews of Computing literature here

          Become a reviewer for Computing Reviews.

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in

          Full Access

          • Published in

            cover image Journal of the ACM
            Journal of the ACM  Volume 43, Issue 2
            March 1996
            205 pages
            ISSN:0004-5411
            EISSN:1557-735X
            DOI:10.1145/226643
            • Editor:
            • F. T. Leighton
            Issue’s Table of Contents

            Copyright © 1996 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 1 March 1996
            Published in jacm Volume 43, Issue 2

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader