Call-By-Name Is Just Call-By-Value with Delimited Control

12/16/2022
by   Mateusz Pyzik, et al.
0

Delimited control operator shift0 exhibits versatile capabilities: it can express layered monadic effects, or equivalently, algebraic effects. Little did we know it can express lambda calculus too! We present Λ_$, a call-by-value lambda calculus extended with shift0 and control delimiter $ with carefully crafted reduction theory, such that the lambda calculus with beta and eta reductions can be isomorphically embedded into Λ_$ via a right inverse of a continuation-passing style translation. While call-by-name reductions of lambda calculus can trivially simulate its call-by-value version, we show that addition of shift0 and $ is the golden mean of expressive power that suffices to simulate beta and eta reductions while still admitting a simulation back. As a corollary, calculi Λμ_v, λ_$, Λ_$ and λ all correspond equationally.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/30/2021

On the relative power of algebraic approximations of graph isomorphism

We compare the capabilities of two approaches to approximating graph iso...
research
04/24/2023

On the Expressive Power of Schemes

We present a calculus, called the scheme-calculus, that permits to expre...
research
07/16/2019

Recovering Purity with Comonads and Capabilities

In this paper, we take a pervasively effectful (in the style of ML) type...
research
02/20/2019

The Weak Call-By-Value λ-Calculus is Reasonable for Both Time and Space

We study the weak call-by-value λ-calculus as a model for computational ...
research
04/28/2023

The Logical Essence of Compiling With Continuations

The essence of compiling with continuations is that conversion to contin...
research
06/01/2023

chemSKI with tokens: world building and economy in the SKI universe

chemSKI with tokens is a confluent graph rewrite system where all rewrit...
research
08/27/2018

On the Distributability of Mobile Ambients

Modern society is dependent on distributed software systems and to verif...

Please sign up or login with your details

Forgot password? Click here to reset