Skip to main content

A Finite Simulation Method in a Non-deterministic Call-by-Need Lambda-Calculus with Letrec, Constructors, and Case

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 5117))

Abstract

The paper proposes a variation of simulation for checking and proving contextual equivalence in a non-deterministic call-by-need lambda-calculus with constructors, case, seq, and a letrec with cyclic dependencies. It also proposes a novel method to prove its correctness. The calculus’ semantics is based on a small-step rewrite semantics and on may-convergence. The cyclic nature of letrec bindings, as well as non-determinism, makes known approaches to prove that simulation implies contextual preorder, such as Howe’s proof technique, inapplicable in this setting. The basic technique for the simulation as well as the correctness proof is called pre-evaluation, which computes a set of answers for every closed expression. If simulation succeeds in finite computation depth, then it is guaranteed to show contextual preorder of expressions.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Ariola, Z.M., Blom, S.: Skew confluence and the lambda calculus with letrec. Annals of Pure and Applied Logic 117, 95–168 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  2. Abramsky, S.: The lazy lambda calculus. In: Turner, D.A. (ed.) Research Topics in Functional Programming, pp. 65–116. Addison-Wesley, Reading (1990)

    Google Scholar 

  3. Ariola, Z.M., Klop, J.W.: Lambda calculus with explicit recursion. Inform. and Comput. 139(2), 154–233 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  4. Ariola, Z.M., Klop, J.W.: Equational term graph rewriting. Fundamentae Informaticae 26(3,4), 207–240 (1996)

    MATH  MathSciNet  Google Scholar 

  5. Gordon, A.D.: Bisimilarity as a theory of functional programming. Theoret. Comput. Sci. 228(1-2), 5–47 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  6. Hanus, M.: A unified computation model for functional and logic programming. In: POPL 1997, pp. 80–93. ACM, New York (1996)

    Google Scholar 

  7. Howe, D.: Equality in lazy computation systems. In: 4th IEEE Symp. on Logic in Computer Science, pp. 198–203 (1989)

    Google Scholar 

  8. Howe, D.: Proving congruence of bisimulation in functional programming languages. Inform. and Comput. 124(2), 103–112 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  9. Kutzner, A., Schmidt-Schauß, M.: A nondeterministic call-by-need lambda calculus. In: ICFP 1998, pp. 324–335. ACM Press, New York (1998)

    Chapter  Google Scholar 

  10. Machkasova, E.: Computational Soundness of Non-Confluent Calculi with Applications to Modules and Linking. PhD thesis, Boston University (2002)

    Google Scholar 

  11. Machkasova, E.: Computational soundness of a call by name calculus of recursively-scoped records. In: 7th WRS. ENTCS (2007)

    Google Scholar 

  12. Mann, M.: Congruence of bisimulation in a non-deterministic call-by-need lambda calculus. In: SOS 2004, BRICS NS-04-1, pp. 20–38 (2004)

    Google Scholar 

  13. Moran, A.K.D., Sands, D., Carlsson, M.: Erratic fudgets: A semantic theory for an embedded coordination language. In: Ciancarini, P., Wolf, A.L. (eds.) COORDINATION 1999. LNCS, vol. 1594, pp. 85–102. Springer, Heidelberg (1999)

    Google Scholar 

  14. Machkasova, E., Turbak, F.A.: A calculus for link-time compilation. In: Smolka, G. (ed.) ESOP 2000 and ETAPS 2000. LNCS, vol. 1782, pp. 260–274. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  15. Jones, S.P.: Haskell 98 language and libraries: the Revised Report. Cambridge University Press, Cambridge (2003), http://www.haskell.org

    Google Scholar 

  16. Peyton Jones, S., Gordon, A., Finne, S.: Concurrent Haskell. In: Proc. 23th Principles of Programming Languages (1996)

    Google Scholar 

  17. Plotkin, G.D.: Call-by-name, call-by-value, and the lambda-calculus. Theoret. Comput. Sci. 1, 125–159 (1975)

    Article  MATH  MathSciNet  Google Scholar 

  18. Schmidt-Schauß, M., Mann, M.: On equivalences and standardization in a non-deterministic call-by-need lambda calculus. Frank report 31, Inst. f. Informatik, J.W.Goethe-University, Frankfurt (August 2007)

    Google Scholar 

  19. Schmidt-Schauß, M., Machkasova, E.: A finite simulation method in a non-deterministic call-by-need calculus with letrec, constructors and case. Frank 32, Inst. f. Informatik, J.W.Goethe-University, Frankfurt (2008)

    Google Scholar 

  20. Sabel, D., Schmidt-Schauß, M.: A call-by-need lambda-calculus with locally bottom-avoiding choice: Context lemma and correctness of transformations. Math. Structures Comput. Sci (accepted for publication, 2007)

    Google Scholar 

  21. Schmidt-Schauß, M., Sabel, D.: On generic context lemmas for lambda calculi with sharing. Frank 27, Inst. Informatik, J.W.G-Univ., Frankfurt (2007)

    Google Scholar 

  22. Schmidt-Schauß, M., Schütz, M., Sabel, D.: On the safety of Nöcker’s strictness analysis. Frank 19, Inst. Informatik, J.W.G-Univ., Frankfurt (2004)

    Google Scholar 

  23. Schmidt-Schauß, M., Schütz, M., Sabel, D.: Safety of Nöcker’s strictness analysis. J. Funct. Programming (accepted for publication, 2008)

    Google Scholar 

  24. Wells, J.B., Plump, D., Kamareddine, F.: Diagrams for meaning preservation. In: Nieuwenhuis, R. (ed.) RTA 2003. LNCS, vol. 2706, pp. 88–106. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Andrei Voronkov

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Schmidt-Schauss, M., Machkasova, E. (2008). A Finite Simulation Method in a Non-deterministic Call-by-Need Lambda-Calculus with Letrec, Constructors, and Case. In: Voronkov, A. (eds) Rewriting Techniques and Applications. RTA 2008. Lecture Notes in Computer Science, vol 5117. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-70590-1_22

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-70590-1_22

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-70588-8

  • Online ISBN: 978-3-540-70590-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics