skip to main content
10.1145/1982185.1982469acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

Relating function spaces to resourced function spaces

Published:21 March 2011Publication History

ABSTRACT

In order to prove the computational adequacy of the (operational) natural semantics for lazy evaluation with respect to a standard denotational semantics, Launchbury defines a resourced denotational semantics. This should be equivalent to the standard one when given infinite resources, but this fact cannot be so directly established, because each semantics produces values in a different domain. The values obtained by the standard semantics belong to the usual lifted function space D = [DD]⊥, while those produced by the resourced semantics belong to [CE] where E satisfies the equation E = [[CE] → [CE]]⊥ and C (the domain of resources) is a countable chain domain defined as the least solution of the domain equation C = C⊥.

We propose a way to relate functional values in the standard lifted function space to functional values in the corresponding resourced function space. We first construct the initial solution for the domain equation E = [[CE]] → [CE]]⊥ following Abramsky's construction of the initial solution of D = [DD]⊥. Then we define a "similarity" relation between values in the constructed domain and values in the standard lifted function space. This relation is inspired by Abramsky's applicative bisimulation.

Finally we prove the desired equivalence between the standard denotational semantics and the resourced semantics for the lazy λ-calculus.

References

  1. S. Abramsky. Research Topics in Functional Programming, chapter The Lazy Lambda Calculus, pages 65--116. Addison-Wesley, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. S. Abramsky and C.-H. L. Ong. Full abstraction in the lazy lambda calculus. Information and Computation, 105(2): 159--267, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. C. Baker-Finch, D. King, and P. W. Trinder. An operational semantics for parallel lazy evaluation. In ACM International Conference on Functional Programming (ICFP'00), pages 162--173, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. H. P. Barendregt. The Lambda Calculus: Its Syntax and Semantics, volume 103 of Studies in Logic and the Foundations of Mathematics. North-Holland, 1984.Google ScholarGoogle Scholar
  5. G. Boudol, P. Curien, and C. Lavatelli. A semantics for lambda calculi with resources. Mathematical Structures in Computer Science, 9(4): 437--482, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. C. Gunter and D. S. Scott. Semantic domains. In Handbook of Theoretical Computer Science, Volume B: Formal Models and Semantics, pages 633--674. Elsevier Science, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. J. Launchbury. A natural semantics for lazy evaluation. In ACM Symposium on Principles of Programming Languages (POPL'93), pages 144--154. ACM Press, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. A. Melton, D. A. Schmidt, and G. E. Strecker. Galois connections and computer science applications. In Category Theory and Computer Programming, pages 299--312. LNCS 240, Springer, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. K. Nakata and M. Hasegawa. Small-step and big-step semantics for call-by-need. Journal of Functional Programming, 19(6): 699--722, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. G. D. Plotkin. Call-by-name, call-by-value and the λ-calculus. Journal of Theoretical Computer Science, 1(2): 125--159, 1975.Google ScholarGoogle ScholarCross RefCross Ref
  11. L. Sánchez-Gil, M. Hidalgo-Herrero, and Y. Ortega-Mallén. Trends in Functional Programming, volume 10, chapter An Operational Semantics for Distributed Lazy Evaluation, pages 65--80. Intellect, 2010.Google ScholarGoogle Scholar
  12. M. Schmidt-Schauǧ. Equivalence of call-by-name and call-by-need for lambda-calculi with letrec. Technical report, Institut für Informatik. J. W. Goethe Universität Frankfurt am Main, Germany, 2006.Google ScholarGoogle Scholar
  13. D. S. Scott. Continuous lattices. In Toposes, Algebraic Geometry and Logic, pages 97--136. LNCS 274, Springer, 1972.Google ScholarGoogle Scholar
  14. P. Sestoft. Deriving a lazy abstract machine. Journal of Functional Programming, 7(3): 231--264, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. M. van Eekelen and M. de Mol. Reflections on Type Theory, λ-calculus, and the Mind. Essays dedicated to Henk Barendregt on the Occasion of his 60th Birthday, chapter Proving Lazy Folklore with Mixed Lazy/Strict Semantics, pages 87--101. Radboud University Nijmegen, The Netherlands, 2007.Google ScholarGoogle Scholar

Index Terms

  1. Relating function spaces to resourced function spaces

      Recommendations

      Comments

      Login options

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

      Sign in
      • Published in

        cover image ACM Conferences
        SAC '11: Proceedings of the 2011 ACM Symposium on Applied Computing
        March 2011
        1868 pages
        ISBN:9781450301138
        DOI:10.1145/1982185

        Copyright © 2011 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: 21 March 2011

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate1,650of6,669submissions,25%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader