Simulation in the call-by-need lambda-calculus with letrec, case, constructors, and seq

  • This paper shows equivalence of several versions of applicative similarity and contextual approximation, and hence also of applicative bisimilarity and contextual equivalence, in LR, the deterministic call-by-need lambda calculus with letrec extended by data constructors, case-expressions and Haskell's seq-operator. LR models an untyped version of the core language of Haskell. The use of bisimilarities simplifies equivalence proofs in calculi and opens a way for more convenient correctness proofs for program transformations. The proof is by a fully abstract and surjective transfer into a call-by-name calculus, which is an extension of Abramsky's lazy lambda calculus. In the latter calculus equivalence of our similarities and contextual approximation can be shown by Howe's method. Similarity is transferred back to LR on the basis of an inductively defined similarity. The translation from the call-by-need letrec calculus into the extended call-by-name lambda calculus is the composition of two translations. The first translation replaces the call-by-need strategy by a call-by-name strategy and its correctness is shown by exploiting infinite trees which emerge by unfolding the letrec expressions. The second translation encodes letrec-expressions by using multi-fixpoint combinators and its correctness is shown syntactically by comparing reductions of both calculi. A further result of this paper is an isomorphism between the mentioned calculi, which is also an identity on letrec-free expressions.

Download full text files

Export metadata

Additional Services

Share in Twitter Search Google Scholar
Metadaten
Author:Manfred Schmidt-SchaußORCiDGND, David SabelORCiDGND, Elena Machkasova
URN:urn:nbn:de:hebis:30:3-403417
DOI:https://doi.org/10.2168/LMCS-11(1:7)2015
ISSN:1860-5974
ArXiv Id:http://arxiv.org/abs/1502.03216
Parent Title (English):Logical Methods in Computer Science
Publisher:Department of Theoretical Computer Science, Technical University of Braunschweig
Place of publication:Braunschweig
Document Type:Article
Language:English
Date of Publication (online):2015/03/13
Date of first Publication:2015/03/13
Publishing Institution:Universitätsbibliothek Johann Christian Senckenberg
Release Date:2016/06/16
Volume:11
Issue:1:7
Page Number:50
First Page:1
Last Page:50
Note:
Creative Commons: http://creativecommons.org/licenses/by-nd/2.0/
HeBIS-PPN:425323072
Institutes:Informatik und Mathematik / Informatik
Dewey Decimal Classification:0 Informatik, Informationswissenschaft, allgemeine Werke / 00 Informatik, Wissen, Systeme / 004 Datenverarbeitung; Informatik
Sammlungen:Universitätspublikationen
Licence (German):License LogoCreative Commons - Namensnennung-Keine Bearbeitung