Type System for Four Delimited Control Operators

05/04/2023
by   Chiaki Ishio, et al.
0

The operational behavior of control operators has been studied comprehensively in the past few decades, but type systems of control operators have not. There are distinct type systems for shift, control, and shift0 without any relationship between them, and there has not been a type system that directly corresponds to control0. This paper remedies this situation by giving a uniform type system for all the four control operators. Following Danvy and Filinski's approach, we derive a monomorphic type system from the CPS interpreter that defines the operational semantics of the four control operators. By implementing the typed CPS interpreter in Agda, we show that the CPS translation preserves types and that the calculus with all the four control operators is terminating. Furthermore, we show the relationship between our type system and the previous type systems for shift, control, and shift0.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/14/2021

A Functional Abstraction of Typed Invocation Contexts

In their paper "A Functional Abstraction of Typed Contexts", Danvy and F...
research
04/23/2018

Bisimulations for Delimited-Control Operators

We propose a survey of the behavioral theory of an untyped lambda-calcul...
research
11/19/2019

Results on bivariate Szasz-Mirakyan type operators in polynomial weight spaces

In this paper, bivariate Szasz-Mirakjan type operators are introduced al...
research
07/07/2017

Complete Call-by-Value Calculi of Control Operators, I

We give new call-by-value calculi of control operators that are complete...
research
07/18/2023

Combining dependency, grades, and adjoint logic

We propose two new dependent type systems. The first, is a dependent gra...
research
12/05/2021

Another look at synthetic-type control charts

During the last two decades, in statistical process monitoring plentiful...
research
01/28/2022

A survey on flexible/restricted skyline and their applicability

Skyline and Top-k are two of the most important methods to extract infor...

Please sign up or login with your details

Forgot password? Click here to reset